annotate COBRAxy/custom_data_generator.xml @ 130:03bbbd9af67d draft

Uploaded
author luca_milaz
date Tue, 15 Oct 2024 18:31:34 +0000
parents 7e703e546998
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
1 <tool id="CustomDataGenerator" name="Custom Data Generator" version="2.0.0">
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
2
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
3 <macros>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
4 <import>marea_macros.xml</import>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
5 </macros>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
6
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
7 <requirements>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
8 <requirement type="package" version="1.24.4">numpy</requirement>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
9 <requirement type="package" version="2.0.3">pandas</requirement>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
10 <requirement type="package" version="0.29.0">cobra</requirement>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
11 <requirement type="package" version="5.2.2">lxml</requirement>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
12 </requirements>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
13
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
14 <command detect_errors="exit_code">
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
15 <![CDATA[
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
16 python $__tool_directory__/custom_data_generator.py
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
17 --input $input
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
18 --name $input.element_identifier
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
19 --out_log $log
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
20 --out_rules $rules
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
21 --out_reactions $reactions
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
22 --out_bounds $bounds
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
23 --out_medium $medium
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
24 ]]>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
25 </command>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
26 <inputs>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
27 <param name="input" argument="--input" type="data" format="xml, json" label="Custom model:" />
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
28 <param name="name" argument="--name" type="text" label="Model's name:" value="Model" help="Default: Model" />
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
29 </inputs>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
30
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
31 <outputs>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
32 <data format="txt" name="log" label="${tool.name} - Log" />
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
33 <data format="tabular" name="rules" label="${name}_Rules" />
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
34 <data format="tabular" name="reactions" label="${name}_Reactions" />
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
35 <data format="tabular" name="bounds" label="${name}_Bounds" />
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
36 <data format="tabular" name="medium" label="${name}_Medium" />
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
37 </outputs>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
38
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
39 <help>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
40 <![CDATA[
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
41 What it does
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
42 -------------
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
43
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
44 This tool generates four files containing reactions, rules, reaction bounds and medium composition respectively, starting from a custom model in JSON or XML format.
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
45 Reactions and rules can be used as inputs for the RAS and RPS generator tools.
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
46
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
47 Accepted files:
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
48 - A model: JSON or XML file reporting reactions and rules contained in the model.
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
49
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
50
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
51 Output:
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
52 -------------
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
53
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
54 The tool generates:
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
55 - rules: reporting the rules for each reaction in the custom model given. Format: csv (tab separated).
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
56 - reactions: reporting the reactions in the custom model given. Format: csv (tab separated).
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
57 - reaction bounds: reporting the lower and upper bounds of each model reaction. Format: csv (tab separated).
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
58 - medium composition: reporting the list of exchange/transport reactions. Format: csv (tab separated).
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
59 - a log file (.txt).
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
60 ]]>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
61 </help>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
62 <expand macro="citations" />
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
63 </tool>