-
Notifications
You must be signed in to change notification settings - Fork 0
/
tcrop_config.module
118 lines (104 loc) · 2.51 KB
/
tcrop_config.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
/**
* Contains generic functions for this module.
*/
/**
*
*/
function tcrop_configure_get_modules($include_prereqs = FALSE) {
$module_prereqs = [
'libraries',
'advanced_help', 'ctools date', 'dragndrop_upload', 'ds', 'entity',
'field_formatter_class', 'field_formatter_settings',
'field_group', 'field_group_table', 'jquery_update', 'link', 'maillog',
'panels', 'queue_ui', 'redirect', 'services', 'ultimate_cron', 'views', 'webform',
'tripal', 'tripal_chado', 'tripal_ws', 'tripal_ds',
];
$modules = [
'chado_custom_search', 'trpfancy_fields', 'tripald3', 'trpdownload_api',
'analyzedphenotypes', 'divseek_search', 'nd_genotypes', 'tripal_elasticsearch',
'tripal_galaxy', 'tripal_jbrowse_page', 'tripal_jbrowse_mgmt',
'tripal_qtl', 'vcf_filter', 'tripal_germplasm_importer', 'tripal_map'
];
if ($include_prereqs) {
return array_merge($module_prereqs, $modules);
}
else {
return $modules;
}
}
/**
* Returns the Tripal Pane categories for Germplasm Tripal Content Types.
*/
function tcrop_config_get_field_categories_germplasm() {
$categories = [];
$categories['hidden'] = [
'name' => 'Hidden',
'display' => 'disabled',
'fields' => [
'rdfs__type',
'local__is_obsolete',
],
];
$categories['names'] = [
'name' => 'Accessions',
'display' => 'right',
'fields' => [
'obi__organism',
'schema__name',
'data__identifier',
'data__accession',
],
];
$categories['passport'] = [
'name' => 'Passport Data',
'display' => 'right',
'fields' => [
'schema__description',
'sio__annotation',
'sbo__database_cross_reference',
],
];
$categories['phenotype_summary'] = [
'name' => 'Phenotypic Data Summary',
'display' => 'right',
'fields' => [
'local__number_of_traits',
'local__number_of_experiments',
'local__number_of_locations',
'local__number_of_years',
],
];
$categories['phenotypes'] = [
'name' => 'Phenotypic Data',
'display' => 'right',
'fields' => [
'local__magnitude_of_phenotypes',
'hp__phenotypic_variability',
'local__child_studies',
],
];
$categories['genotypes'] = [
'name' => 'Genotypic Data',
'display' => 'right',
'fields' => [
'local__stock_quick_filter',
'local__germ_marker_summary',
],
];
$categories['relationships'] = [
'name' => 'Related Germplasm',
'display' => 'right',
'fields' => [
'sbo__relationship',
],
];
$categories['publications'] = [
'name' => 'Associated Publications',
'display' => 'right',
'fields' => [
'schema__publication',
],
];
return $categories;
}