|
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
|
|
|
7 <requirements>
|
|
|
8 <requirement type="package" version="1.24.4">numpy</requirement>
|
|
|
9 <requirement type="package" version="2.0.3">pandas</requirement>
|
|
|
10 <requirement type="package" version="0.29.0">cobra</requirement>
|
|
|
11 <requirement type="package" version="5.2.2">lxml</requirement>
|
|
|
12 </requirements>
|
|
|
13
|
|
|
14 <command detect_errors="exit_code">
|
|
|
15 <![CDATA[
|
|
|
16 python $__tool_directory__/custom_data_generator.py
|
|
354
|
17 --tool_dir $__tool_directory__
|
|
345
|
18 --medium_selector $cond_medium.medium_selector
|
|
|
19 --output_format $output_format
|
|
|
20 #if $cond_model.model_selector == 'Custom_model'
|
|
|
21 --input $cond_model.input
|
|
|
22 --name $cond_model.name
|
|
|
23 #else
|
|
|
24 --model $cond_model.model_selector
|
|
|
25 --name $cond_model.model_selector
|
|
|
26 #end if
|
|
|
27 #if $cond_medium.medium_selector == 'Custom'
|
|
|
28 --medium $cond_medium.medium
|
|
|
29 #end if
|
|
93
|
30 --out_log $log
|
|
364
|
31 --out_data $out_data
|
|
362
|
32
|
|
93
|
33 ]]>
|
|
|
34 </command>
|
|
|
35 <inputs>
|
|
345
|
36 <!-- modello -->
|
|
|
37 <conditional name="cond_model">
|
|
|
38 <expand macro="options_model"/>
|
|
|
39 <when value="Custom_model">
|
|
|
40 <param name="input" argument="--input" type="data" format="json,xml" label="Custom model file:" />
|
|
|
41 <param name="name" argument="--name" type="text" label="Model's name:" value="CustomModel" help="Default: CustomModel. Do not use spaces or special symbols." />
|
|
|
42 </when>
|
|
|
43 </conditional>
|
|
|
44
|
|
|
45 <!-- formato output -->
|
|
|
46 <param name="output_format" argument="--output_format" type="select" label="Output format:">
|
|
|
47 <option value="tabular" selected="true">CSV (tabular)</option>
|
|
|
48 <option value="xlsx">Excel (.xlsx)</option>
|
|
|
49 </param>
|
|
|
50
|
|
|
51 <!-- medium -->
|
|
|
52 <conditional name="cond_medium">
|
|
|
53 <expand macro="options_ras_to_bounds_medium"/>
|
|
|
54 <when value="Custom">
|
|
|
55 <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" />
|
|
|
56 </when>
|
|
|
57 </conditional>
|
|
93
|
58 </inputs>
|
|
|
59
|
|
|
60 <outputs>
|
|
345
|
61 <data name="log" format="txt" label="CustomDataGenerator - Log" />
|
|
364
|
62 <data name="out_data" format="tabular,xlsx" label="${cond_model.model_selector}_data"/>
|
|
93
|
63 </outputs>
|
|
|
64
|
|
358
|
65
|
|
362
|
66
|
|
93
|
67 <help>
|
|
|
68 <![CDATA[
|
|
|
69 What it does
|
|
|
70 -------------
|
|
|
71
|
|
|
72 This tool generates four files containing reactions, rules, reaction bounds and medium composition respectively, starting from a custom model in JSON or XML format.
|
|
|
73 Reactions and rules can be used as inputs for the RAS and RPS generator tools.
|
|
|
74
|
|
|
75 Accepted files:
|
|
345
|
76 - A model: JSON or XML file reporting reactions and rules contained in the model. Supported compressed formats: .zip, .gz and .bz2 - Filename must end with .json.zip (.xml.zip), .json.gz (.xml.gz) or .json.bz2 (.xml.bz2) for JSON (XML) files.
|
|
93
|
77
|
|
|
78
|
|
|
79 Output:
|
|
|
80 -------------
|
|
|
81
|
|
|
82 The tool generates:
|
|
|
83 - rules: reporting the rules for each reaction in the custom model given. Format: csv (tab separated).
|
|
|
84 - reactions: reporting the reactions in the custom model given. Format: csv (tab separated).
|
|
|
85 - reaction bounds: reporting the lower and upper bounds of each model reaction. Format: csv (tab separated).
|
|
|
86 - medium composition: reporting the list of exchange/transport reactions. Format: csv (tab separated).
|
|
|
87 - a log file (.txt).
|
|
|
88 ]]>
|
|
|
89 </help>
|
|
|
90 <expand macro="citations" />
|
|
|
91 </tool> |