annotate COBRAxy/custom_data_generator.xml @ 52:53135cc0e7ea draft

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