annotate COBRAxy/custom_data_generator.xml @ 30:3a331d28a2c7 draft

Uploaded
author luca_milaz
date Thu, 19 Sep 2024 09:28:09 +0000
parents b61fc7f1b6ab
children fe40f555db0a
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" />
30
3a331d28a2c7 Uploaded
luca_milaz
parents: 27
diff changeset
33 <data format="tabular" name="rules" label="rules" />
3a331d28a2c7 Uploaded
luca_milaz
parents: 27
diff changeset
34 <data format="tabular" name="reactions" label="reactions" />
3a331d28a2c7 Uploaded
luca_milaz
parents: 27
diff changeset
35 <data format="tabular" name="bounds" label="bounds" />
3a331d28a2c7 Uploaded
luca_milaz
parents: 27
diff changeset
36 <data format="tabular" name="medium" label="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>