-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathKBaseRelationEngine.spec
More file actions
249 lines (197 loc) · 6.62 KB
/
KBaseRelationEngine.spec
File metadata and controls
249 lines (197 loc) · 6.62 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
/*
A KBase module: KBaseRelationEngine
*/
module KBaseRelationEngine {
typedef int boolean;
typedef structure{
int nodes_created;
int nodes_deleted;
int relationships_created;
int relationships_deleted;
int properties_set;
} GraphUpdateStat;
typedef structure{
string taxonomy_guid;
string feature_guid;
string proteinSequence;
string nucleotideSequence;
} FeatureSequence;
/**
One of guids should provided.
*/
typedef structure{
string taxonomy_guid;
string ortholog_guid;
string goterm_guid;
}GetFeatureSequencesParams;
funcdef getFeatureSequences(GetFeatureSequencesParams params) returns(list<FeatureSequence>) authentication required;
typedef structure{
string guid;
string name;
string data_type;
string taxonomy_guid;
string ws_ndarray_id;
} CompendiumDescriptor;
/**
data_type - one of ["expression","fitness"]
*/
typedef structure{
string taxonomy_guid;
string data_type;
}GetCompendiumDescriptorsParams;
funcdef getCompendiumDescriptors(GetCompendiumDescriptorsParams params) returns(list<CompendiumDescriptor>) authentication required;
typedef structure{
string guid;
string name;
string version;
int last_run_epoch;
int nodes_created;
int relations_created;
int properties_set;
} KEAppDescriptor;
typedef structure{
KEAppDescriptor app;
}StoreKEAppDescriptorParams;
funcdef storeKEAppDescriptor(StoreKEAppDescriptorParams params) returns (GraphUpdateStat) authentication required;
typedef structure{
string app_guid;
}CleanKEAppResultsParams;
funcdef cleanKEAppResults(CleanKEAppResultsParams params) returns () authentication required;
typedef structure{
string app_guid;
}GetKEAppDescriptorParams;
funcdef getKEAppDescriptor(GetKEAppDescriptorParams params) returns (KEAppDescriptor) authentication required;
typedef structure{
string guid;
string keapp_guid;
string compendium_guid;
string taxonomy_guid;
list<string> feature_guids;
list<string> condition_guids;
} Bicluster;
typedef structure{
list<Bicluster> biclusters;
} StoreBiclustersParams;
funcdef storeBiclusters(StoreBiclustersParams params) returns(GraphUpdateStat) authentication required;
typedef structure{
string keapp_guid;
string taxonomy_guid;
string compendium_guid;
}GetBiclustersParams;
funcdef getBiclusters(GetBiclustersParams params) returns (list<Bicluster>) authentication required;
typedef structure{
string term_guid;
string term_name;
int sample_count;
int total_count;
int expected_count;
float p_value;
} TermEnrichment;
typedef structure{
string guid;
string keapp_guid;
string source_gene_set_guid;
string source_gene_set_type;
boolean with_expression;
boolean with_fitness;
string term_namespace;
list<TermEnrichment> terms;
} TermEnrichmentProfile;
typedef structure{
list<TermEnrichmentProfile> profiles;
} StoreTermEnrichmentProfilesParams;
funcdef storeTermEnrichmentProfiles(StoreTermEnrichmentProfilesParams params) returns(GraphUpdateStat) authentication required;
typedef structure{
string feature_guid;
string feature_name;
string ref_term_guid;
string ref_term_name;
list<TermEnrichmentProfile> profiles;
} GetWSFeatureTermEnrichmentProfilesOutput;
typedef structure{
string ws_feature_guid;
boolean ortholog_profiles;
list<string> keapp_guids;
}GetWSFeatureTermEnrichmentProfilesParams;
funcdef getWSFeatureTermEnrichmentProfiles(GetWSFeatureTermEnrichmentProfilesParams params) returns(GetWSFeatureTermEnrichmentProfilesOutput) authentication required;
typedef structure{
string feature_guid;
string feature_name;
string feature_function;
list<string> feature_aliases;
boolean with_expression;
boolean with_fitness;
string ref_term_guid;
string ref_term_name;
string target_term_guid;
string target_term_name;
} WSFeatureTermPair;
typedef structure{
string ws_genome_guid;
string target_keapp_guid;
}GetWSFeatureTermPairsParams;
funcdef getWSFeatureTermPairs(GetWSFeatureTermPairsParams params) returns(list<WSFeatureTermPair>) authentication required;
typedef structure{
string feature_guid;
list<string> term_guids;
} FeatureTerms;
typedef structure{
string taxon_guid;
string term_space;
} GetFeatureTermsParams;
funcdef getFeatureTerms(GetFeatureTermsParams params) returns (list<FeatureTerms>) authentication required;
typedef structure{
string guid;
string name;
string space;
} Term;
typedef structure{
list<string> term_guids;
} GetTermsParams;
funcdef getTerms(GetTermsParams params) returns(list<Term>) authentication required;
typedef structure{
boolean with_term_enrichmnet_profiles;
list<string> app_guids;
} GetOrthologGroupsParams;
typedef structure{
list<string> ortholog_group_guids;
} GetOrthologGroupsOutput;
funcdef getOrthologGroups(GetOrthologGroupsParams params) returns(GetOrthologGroupsOutput) authentication required;
typedef structure{
mapping<string,list<TermEnrichmentProfile>> ortholog2profiles;
} GetOrthologTermEnrichmentProfilesOutput;
typedef structure{
list<string> ortholog_group_guids;
list<string> app_guids;
}GetOrthologTermEnrichmentProfilesParams;
funcdef getOrthologTermEnrichmentProfiles(GetOrthologTermEnrichmentProfilesParams params) returns(GetOrthologTermEnrichmentProfilesOutput) authentication required;
typedef string ws_genome_obj_ref;
typedef string ws_feature_guid;
typedef string ref_ontology_term_guid;
typedef structure{
ws_genome_obj_ref genome_ref;
list<ws_feature_guid> feature_guids;
} StoreWSGenomeParams;
funcdef storeWSGenome(StoreWSGenomeParams params) returns (GraphUpdateStat) authentication required;
typedef structure{
string guid;
string name;
string function;
list<string> aliases;
string ref_term_guid;
} WSFeature;
typedef structure{
ws_genome_obj_ref genome_ref;
list<WSFeature> features;
mapping<string,string> ws2ref_feature_guids;
} StoreRichWSGenomeParams;
funcdef storeRichWSGenome(StoreRichWSGenomeParams params) returns (GraphUpdateStat) authentication required;
typedef structure{
mapping<string,string> ws2ref_feature_guids;
} ConnectWSFeatures2RefOrthologsParams;
funcdef connectWSFeatures2RefOrthologs(ConnectWSFeatures2RefOrthologsParams params) returns (GraphUpdateStat) authentication required;
typedef structure{
mapping<ws_feature_guid,list<ref_ontology_term_guid>> feature2term_list;
} ConnectWSFeatures2RefOTermsParams;
funcdef connectWSFeatures2RefOTerms(ConnectWSFeatures2RefOTermsParams params) returns (GraphUpdateStat) authentication required;
};