4
|
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
|
|
17 --input $input
|
|
18 --name $input.element_identifier
|
|
19 --output_format $output_format
|
|
20 --out_log $log
|
|
21 ]]>
|
|
22 </command>
|
|
23 <inputs>
|
|
24 <param name="input" argument="--input" type="data" format="xml, json" label="Custom model:" />
|
|
25 <param name="name" argument="--name" type="text" label="Model's name:" value="Model" help="Default: Model" />
|
|
26
|
|
27 <param name="output_format" argument="--output_format" type="select" label="Output files format:">
|
|
28 <option value="p" selected="true">pickle extension (binary, non-editable, pre-parsed)</option>
|
|
29 <option value="csv">Comma Separated Values (csv text file, editable, raw)</option>
|
|
30 </param>
|
|
31 </inputs>
|
|
32
|
|
33 <outputs>
|
|
34 <data format="txt" name="log" label="CustomDataGenerator - $name - Log" />
|
|
35
|
|
36 <collection name="results" type="list" label="Custom Data Results ($output_format)">
|
|
37 <discover_datasets name = "collection" pattern="__name_and_ext__" directory="result"/>
|
|
38 </collection>
|
|
39 </outputs>
|
|
40
|
|
41 <help>
|
|
42 <![CDATA[
|
|
43 What it does
|
|
44 -------------
|
|
45
|
6
|
46 This tool generates four files containing reactions, rules, reaction bounds and medium composition respectively, starting from a custom model in JSON or XML format.
|
|
47 Reactions and rules can be used as inputs for the RAS and RPS generator tools.
|
4
|
48
|
|
49 Accepted files:
|
|
50 - A model: JSON or XML file reporting reactions and rules contained in the model.
|
|
51
|
|
52
|
|
53 Output:
|
|
54 -------------
|
|
55
|
|
56 The tool generates:
|
|
57 - rules: reporting the rules for each reaction in the custom model given. Format: csv or pickle.
|
|
58 - reactions: reporting the reactions in the custom model given. Format: csv or pickle.
|
6
|
59 - reaction bounds: reporting the lower and upper bounds of each model reaction. Format: csv or pickle.
|
|
60 - medium composition: reporting the list of exchange/transport reactions. Format: csv or pickle.
|
4
|
61 - a log file (.txt).
|
|
62 ]]>
|
|
63 </help>
|
|
64 <expand macro="citations" />
|
|
65 </tool> |