-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkb_escher.spec
102 lines (85 loc) · 2.54 KB
/
kb_escher.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
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
/*
A KBase module: kb_escher
*/
module kb_escher {
typedef int boolean;
typedef structure {
string map_name;
string map_id;
string map_description;
string homepage;
string schema; /* default: https://escher.github.io/escher/jsonschema/1-0-0# */
list<string> authors;
} EscherMapMetadata;
typedef structure {
string bigg_id;
float coefficient;
} EscherMapLayoutReactionMetabolite;
typedef structure {
float x;
float y;
} EscherMapLayout2DPoint;
/*
@optional b1 b2
*/
typedef structure {
string from_node_id;
string to_node_id;
EscherMapLayout2DPoint b1;
EscherMapLayout2DPoint b2;
} EscherMapLayoutReactionSegment;
typedef structure {
string bigg_id;
string name;
float label_x;
float label_y;
boolean reversibility;
string gene_reaction_rule;
list<EscherMapLayoutReactionMetabolite> metabolites;
mapping<string, EscherMapLayoutReactionSegment> segments;
list<string> genes;
} EscherMapLayoutReaction;
/*
@optional bigg_id name label_x label_y node_is_primary
*/
typedef structure {
string node_type;
float x;
float y;
string bigg_id;
string name;
float label_x;
float label_y;
boolean node_is_primary;
} EscherMapLayoutNode;
typedef structure {
float x;
float y;
string text;
} EscherMapLayoutLabel;
typedef structure {
float x;
float y;
float width;
float height;
} EscherMapLayoutCanvas;
typedef structure {
mapping<string, EscherMapLayoutReaction> reactions;
mapping<string, EscherMapLayoutNode> nodes;
mapping<string, EscherMapLayoutLabel> text_labels;
EscherMapLayoutCanvas canvas;
} EscherMapLayout;
typedef structure {
EscherMapMetadata metadata;
EscherMapLayout layout;
} EscherMap;
typedef structure {
string report_name;
string report_ref;
} ReportResults;
/*
This example function accepts any number of parameters and returns results in a KBaseReport
*/
funcdef run_kb_escher(mapping<string,UnspecifiedObject> params) returns (ReportResults output) authentication required;
funcdef run_kb_escher_pathway(mapping<string,UnspecifiedObject> params) returns (ReportResults output) authentication required;
};