-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcb_annotation_ontology_api.spec
executable file
·69 lines (59 loc) · 2.41 KB
/
cb_annotation_ontology_api.spec
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
/*
A KBase module: cb_annotation_ontology_api
*/
module cb_annotation_ontology_api {
typedef structure {
/*Optional - ID of existing entity upon which a comparison is made or propagation is performed*/
/*Type specifies what type of entity this is (e.g. UNIPROTID,KBGENE,KO) while ref entity is the ID itself*/
tuple<string entity_type,string ref_entity> reference;
/*Required - specifies a set of typed scores assigned to the annotation*/
/*Allowed types include: probability,evalue,bits,identify,qalignstart,qalignstop,salignstart,salignstop,kmerhits,tmscore,rmsd,hmmscore*/
mapping<string type,float score> scores;
} Evidence;
typedef structure {
string term;
list<string> modelseed_ids;
int evidence_only;/*Enables assignment of metadata to an existing annotation without adding a new annotation*/
Evidence evidence;/*Supports adding an array of contextual information aboutthis annotation*/
} AnnotationOntologyTerm;
typedef structure {
string event_id;
string description;
string ontology_id;
string method;
string method_version;
string timestamp;
mapping<string gene_id,string type> feature_types;
mapping<string gene_id,list<AnnotationOntologyTerm> terms> ontology_terms;
} AnnotationOntologyEvent;
typedef structure {
string input_ref;
string input_workspace;
list<string> query_events;
list<string> query_genes;
int standardize_modelseed_ids;
} GetAnnotationOntologyEventsParams;
typedef structure {
list<AnnotationOntologyEvent> events;
} GetAnnotationOntologyEventsOutput;
/*
Retrieves annotation ontology events in a standardized form cleaning up inconsistencies in underlying data
*/
funcdef get_annotation_ontology_events(GetAnnotationOntologyEventsParams params) returns (GetAnnotationOntologyEventsOutput output) authentication optional;
typedef structure {
string input_ref;
string input_workspace;
string output_name;
string output_workspace;
int clear_existing;
int overwrite_matching;
list<AnnotationOntologyEvent> events;
} AddAnnotationOntologyEventsParams;
typedef structure {
string output_ref;
} AddAnnotationOntologyEventsOutput;
/*
Adds a new annotation ontology event to a genome or AMA
*/
funcdef add_annotation_ontology_events(AddAnnotationOntologyEventsParams params) returns (AddAnnotationOntologyEventsOutput output) authentication optional;
};