|
93
|
1 <tool id="CustomDataGenerator" name="Custom Data Generator" version="2.0.0">
|
|
|
2
|
|
|
3 <macros>
|
|
|
4 <import>marea_macros.xml</import>
|
|
|
5 </macros>
|
|
|
6
|
|
385
|
7 <requirements>
|
|
93
|
8 <requirement type="package" version="1.24.4">numpy</requirement>
|
|
|
9 <requirement type="package" version="2.0.3">pandas</requirement>
|
|
385
|
10 <requirement type="package" version="0.29.0">cobra</requirement>
|
|
93
|
11 <requirement type="package" version="5.2.2">lxml</requirement>
|
|
385
|
12 </requirements>
|
|
93
|
13
|
|
|
14 <command detect_errors="exit_code">
|
|
|
15 <![CDATA[
|
|
385
|
16 python $__tool_directory__/custom_data_generator.py
|
|
354
|
17 --tool_dir $__tool_directory__
|
|
385
|
18 --medium_selector $cond_model.medium_selector
|
|
345
|
19 #if $cond_model.model_selector == 'Custom_model'
|
|
|
20 --input $cond_model.input
|
|
|
21 --name $cond_model.name
|
|
|
22 #else
|
|
|
23 --model $cond_model.model_selector
|
|
|
24 --name $cond_model.model_selector
|
|
|
25 #end if
|
|
385
|
26 #if $cond_model.medium_selector == 'Custom'
|
|
|
27 --medium $cond_model.medium
|
|
345
|
28 #end if
|
|
93
|
29 --out_log $log
|
|
376
|
30 --out_tabular $out_tabular
|
|
93
|
31 ]]>
|
|
|
32 </command>
|
|
|
33 <inputs>
|
|
345
|
34 <conditional name="cond_model">
|
|
384
|
35 <param name="model_selector" argument="--model_selector" type="select" label="Model:">
|
|
|
36 <option value="HMRcore">HMRcore</option>
|
|
|
37 <option value="Recon">Recon 2.2</option>
|
|
|
38 <option value="ENGRO2" selected="true">ENGRO 2</option>
|
|
|
39 <option value="Custom_model">Custom</option>
|
|
|
40 </param>
|
|
379
|
41 <!-- ENGRO2 -->
|
|
|
42 <when value="ENGRO2">
|
|
|
43 <param name="name" argument="--name" type="text" value="ENGRO2" hidden="true" />
|
|
|
44 <conditional name="medium_selector">
|
|
382
|
45 <expand macro="options_ras_to_bounds_medium"/>
|
|
379
|
46 <when value="Custom">
|
|
|
47 <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" />
|
|
|
48 </when>
|
|
|
49 </conditional>
|
|
|
50 </when>
|
|
|
51
|
|
|
52 <!-- Recon -->
|
|
|
53 <when value="Recon">
|
|
|
54 <param name="name" argument="--name" type="text" value="Recon" hidden="true" />
|
|
|
55 <param name="medium_selector" argument="--medium_selector" type="select" label="Medium">
|
|
|
56 <option value="Default" selected="true">Default (Recon built-in medium)</option>
|
|
|
57 <option value="Custom">Custom medium file</option>
|
|
|
58 </param>
|
|
|
59 <conditional name="medium_selector">
|
|
|
60 <when value="Custom">
|
|
|
61 <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" />
|
|
|
62 </when>
|
|
|
63 </conditional>
|
|
|
64 </when>
|
|
|
65
|
|
|
66 <!-- HMRcore -->
|
|
|
67 <when value="HMRcore">
|
|
|
68 <param name="name" argument="--name" type="text" value="HMRcore" hidden="true" />
|
|
|
69 <param name="medium_selector" argument="--medium_selector" type="select" label="Medium">
|
|
|
70 <option value="Default" selected="true">Default (HMRcore built-in medium)</option>
|
|
|
71 <option value="Custom">Custom medium file</option>
|
|
|
72 </param>
|
|
|
73 <conditional name="medium_selector">
|
|
|
74 <when value="Custom">
|
|
|
75 <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" />
|
|
|
76 </when>
|
|
|
77 </conditional>
|
|
|
78 </when>
|
|
|
79
|
|
|
80 <!-- Custom model -->
|
|
345
|
81 <when value="Custom_model">
|
|
|
82 <param name="input" argument="--input" type="data" format="json,xml" label="Custom model file:" />
|
|
379
|
83 <param name="name" argument="--name" type="text" label="Model's name:" value="CustomModel" />
|
|
|
84 <param name="medium_selector" argument="--medium_selector" type="select" label="Medium">
|
|
|
85 <option value="Default" selected="true">Don't use a separate medium file (use model defaults)</option>
|
|
|
86 <option value="Custom">Custom medium file (required)</option>
|
|
|
87 </param>
|
|
|
88 <conditional name="medium_selector">
|
|
|
89 <when value="Custom">
|
|
|
90 <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" />
|
|
|
91 </when>
|
|
|
92 </conditional>
|
|
345
|
93 </when>
|
|
|
94 </conditional>
|
|
|
95
|
|
93
|
96 </inputs>
|
|
|
97
|
|
|
98 <outputs>
|
|
378
|
99 <data name="log" format="txt" label="CustomDataGenerator - Log" />
|
|
376
|
100
|
|
378
|
101 <data name="out_tabular" format="tabular"
|
|
376
|
102 label="${cond_model.model_selector}_data_tabular"
|
|
385
|
103 optional="true"/>
|
|
|
104 </outputs>
|
|
|
105
|
|
|
106 <help>
|
|
|
107 <![CDATA[
|
|
|
108 What it does
|
|
|
109 -------------
|
|
|
110
|
|
|
111 This tool generates four files containing reactions, rules, reaction bounds and medium composition respectively, starting from a custom model in JSON or XML format.
|
|
|
112 Reactions and rules can be used as inputs for the RAS and RPS generator tools.
|
|
|
113
|
|
|
114 Accepted files:
|
|
|
115 - A model: JSON, XML, MAT or YAML (.yml) file reporting reactions and rules contained in the model. Supported compressed formats: .zip, .gz and .bz2. Filename must follow the pattern: {model_name}.{extension}.[zip|gz|bz2]
|
|
|
116
|
|
|
117 Output:
|
|
|
118 -------------
|
|
|
119
|
|
|
120 The tool generates:
|
|
|
121 - rules: reporting the rules for each reaction in the custom model given. Format: csv (tab separated).
|
|
|
122 - reactions: reporting the reactions in the custom model given. Format: csv (tab separated).
|
|
|
123 - reaction bounds: reporting the lower and upper bounds of each model reaction. Format: csv (tab separated).
|
|
|
124 - medium composition: reporting the list of exchange/transport reactions. Format: csv (tab separated).
|
|
|
125 - a log file (.txt).
|
|
|
126 ]]>
|
|
|
127 </help>
|
|
|
128 <expand macro="citations" />
|
|
|
129 </tool><tool id="CustomDataGenerator" name="Custom Data Generator" version="2.0.0">
|
|
|
130
|
|
|
131 <macros>
|
|
|
132 <import>marea_macros.xml</import>
|
|
|
133 </macros>
|
|
|
134
|
|
|
135 <requirements>
|
|
|
136 <requirement type="package" version="1.24.4">numpy</requirement>
|
|
|
137 <requirement type="package" version="2.0.3">pandas</requirement>
|
|
|
138 <requirement type="package" version="0.29.0">cobra</requirement>
|
|
|
139 <requirement type="package" version="5.2.2">lxml</requirement>
|
|
|
140 </requirements>
|
|
|
141
|
|
|
142 <command detect_errors="exit_code">
|
|
|
143 <![CDATA[
|
|
|
144 python $__tool_directory__/custom_data_generator.py
|
|
|
145 --tool_dir $__tool_directory__
|
|
|
146 --medium_selector $cond_model.medium_selector
|
|
|
147 #if $cond_model.model_selector == 'Custom_model'
|
|
|
148 --input $cond_model.input
|
|
|
149 --name $cond_model.name
|
|
|
150 #else
|
|
|
151 --model $cond_model.model_selector
|
|
|
152 --name $cond_model.model_selector
|
|
|
153 #end if
|
|
|
154 #if $cond_model.medium_selector == 'Custom'
|
|
|
155 --medium $cond_model.medium
|
|
|
156 #end if
|
|
|
157 --out_log $log
|
|
|
158 --out_tabular $out_tabular
|
|
|
159 ]]>
|
|
|
160 </command>
|
|
|
161 <inputs>
|
|
|
162 <conditional name="cond_model">
|
|
|
163 <param name="model_selector" argument="--model_selector" type="select" label="Model:">
|
|
|
164 <option value="HMRcore">HMRcore</option>
|
|
|
165 <option value="Recon">Recon 2.2</option>
|
|
|
166 <option value="ENGRO2" selected="true">ENGRO 2</option>
|
|
|
167 <option value="Custom_model">Custom</option>
|
|
|
168 </param>
|
|
|
169 <!-- ENGRO2 -->
|
|
|
170 <when value="ENGRO2">
|
|
|
171 <param name="name" argument="--name" type="text" value="ENGRO2" hidden="true" />
|
|
|
172 <conditional name="medium_selector">
|
|
|
173 <expand macro="options_ras_to_bounds_medium"/>
|
|
|
174 <when value="Custom">
|
|
|
175 <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" />
|
|
|
176 </when>
|
|
|
177 </conditional>
|
|
|
178 </when>
|
|
|
179
|
|
|
180 <!-- Recon -->
|
|
|
181 <when value="Recon">
|
|
|
182 <param name="name" argument="--name" type="text" value="Recon" hidden="true" />
|
|
|
183 <param name="medium_selector" argument="--medium_selector" type="select" label="Medium">
|
|
|
184 <option value="Default" selected="true">Default (Recon built-in medium)</option>
|
|
|
185 <option value="Custom">Custom medium file</option>
|
|
|
186 </param>
|
|
|
187 <conditional name="medium_selector">
|
|
|
188 <when value="Custom">
|
|
|
189 <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" />
|
|
|
190 </when>
|
|
|
191 </conditional>
|
|
|
192 </when>
|
|
|
193
|
|
|
194 <!-- HMRcore -->
|
|
|
195 <when value="HMRcore">
|
|
|
196 <param name="name" argument="--name" type="text" value="HMRcore" hidden="true" />
|
|
|
197 <param name="medium_selector" argument="--medium_selector" type="select" label="Medium">
|
|
|
198 <option value="Default" selected="true">Default (HMRcore built-in medium)</option>
|
|
|
199 <option value="Custom">Custom medium file</option>
|
|
|
200 </param>
|
|
|
201 <conditional name="medium_selector">
|
|
|
202 <when value="Custom">
|
|
|
203 <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" />
|
|
|
204 </when>
|
|
|
205 </conditional>
|
|
|
206 </when>
|
|
|
207
|
|
|
208 <!-- Custom model -->
|
|
|
209 <when value="Custom_model">
|
|
|
210 <param name="input" argument="--input" type="data" format="json,xml" label="Custom model file:" />
|
|
|
211 <param name="name" argument="--name" type="text" label="Model's name:" value="CustomModel" />
|
|
|
212 <param name="medium_selector" argument="--medium_selector" type="select" label="Medium">
|
|
|
213 <option value="Default" selected="true">Don't use a separate medium file (use model defaults)</option>
|
|
|
214 <option value="Custom">Custom medium file (required)</option>
|
|
|
215 </param>
|
|
|
216 <conditional name="medium_selector">
|
|
|
217 <when value="Custom">
|
|
|
218 <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" />
|
|
|
219 </when>
|
|
|
220 </conditional>
|
|
|
221 </when>
|
|
|
222 </conditional>
|
|
|
223
|
|
|
224 </inputs>
|
|
|
225
|
|
|
226 <outputs>
|
|
|
227 <data name="log" format="txt" label="CustomDataGenerator - Log" />
|
|
|
228
|
|
|
229 <data name="out_tabular" format="tabular"
|
|
|
230 label="${cond_model.model_selector}_data_tabular"
|
|
|
231 optional="true"/>
|
|
|
232 </outputs>
|
|
362
|
233
|
|
93
|
234 <help>
|
|
|
235 <![CDATA[
|
|
|
236 What it does
|
|
|
237 -------------
|
|
|
238
|
|
|
239 This tool generates four files containing reactions, rules, reaction bounds and medium composition respectively, starting from a custom model in JSON or XML format.
|
|
|
240 Reactions and rules can be used as inputs for the RAS and RPS generator tools.
|
|
|
241
|
|
|
242 Accepted files:
|
|
381
|
243 - A model: JSON, XML, MAT or YAML (.yml) file reporting reactions and rules contained in the model. Supported compressed formats: .zip, .gz and .bz2. Filename must follow the pattern: {model_name}.{extension}.[zip|gz|bz2]
|
|
93
|
244
|
|
|
245 Output:
|
|
|
246 -------------
|
|
|
247
|
|
|
248 The tool generates:
|
|
|
249 - rules: reporting the rules for each reaction in the custom model given. Format: csv (tab separated).
|
|
|
250 - reactions: reporting the reactions in the custom model given. Format: csv (tab separated).
|
|
|
251 - reaction bounds: reporting the lower and upper bounds of each model reaction. Format: csv (tab separated).
|
|
|
252 - medium composition: reporting the list of exchange/transport reactions. Format: csv (tab separated).
|
|
|
253 - a log file (.txt).
|
|
|
254 ]]>
|
|
|
255 </help>
|
|
|
256 <expand macro="citations" />
|
|
|
257 </tool> |