4
|
1 <tool id="MaREA RAS to bounds" name="RAStoBounds" 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 <requirement type="package" version="1.4.2">joblib</requirement>
|
|
13 </requirements>
|
|
14
|
|
15 <command detect_errors="exit_code">
|
|
16 <![CDATA[
|
|
17 python $__tool_directory__/ras_to_bounds.py
|
|
18 --tool_dir $__tool_directory__
|
|
19 --model_selector $cond_model.model_selector
|
49
|
20 --cell_class $cell_class
|
4
|
21 #if $cond_model.model_selector == 'Custom'
|
|
22 --model $model
|
|
23 --model_name $model.element_identifier
|
|
24 #end if
|
|
25 --medium_selector $cond_medium.medium_selector
|
|
26 #if $cond_medium.medium_selector == 'Custom'
|
|
27 --medium $medium
|
|
28 #end if
|
|
29 --ras_selector $cond_ras.ras_choice
|
|
30 #if $cond_ras.ras_choice == "True"
|
|
31 --input_ras $cond_ras.input_ras
|
50
|
32 --classes $cond_ras.classes
|
4
|
33 #end if
|
|
34 --out_log $log
|
|
35 ]]>
|
|
36 </command>
|
|
37 <inputs>
|
|
38 <conditional name="cond_model">
|
|
39 <expand macro="options_ras_to_bounds_model"/>
|
|
40 <when value="Custom">
|
|
41 <param name="model" argument="--model" type="data" format="json, xml" label="Custom model" />
|
|
42 </when>
|
|
43 </conditional>
|
|
44
|
|
45 <conditional name="cond_ras">
|
|
46 <param name="ras_choice" argument="--ras_choice" type="select" label="Do want to use RAS?">
|
|
47 <option value="True" selected="true">Yes</option>
|
|
48 <option value="False">No</option>
|
|
49 </param>
|
|
50 <when value="True">
|
49
|
51 <param name="input_ras" argument="--input_ras" multiple="true" type="data" format="tabular, csv, tsv" label="RAS matrix:" />
|
53
|
52 <param name="classes" argument="--classes" type="text" value="None" label="Classes:" help="Write here the the classes to assign to each of the uploaded RAS matrices. Example for two RAS matrices:'cellNormal, cellCancer'. If you uploaded just one matrix, leave default value." />
|
4
|
53 </when>
|
|
54 </conditional>
|
|
55
|
|
56 <conditional name="cond_medium">
|
|
57 <expand macro="options_ras_to_bounds_medium"/>
|
|
58 <when value="Custom">
|
|
59 <param name="medium" argument="--medium" type="data" format="tabular, csv, tsv" label="Custom medium" />
|
|
60 </when>
|
|
61 </conditional>
|
|
62
|
|
63 </inputs>
|
|
64
|
|
65 <outputs>
|
|
66 <data format="txt" name="log" label="RAStoBounds- Log" />
|
49
|
67 <data format="tabular" name="cell_class" label="RAStoBounds - Cells class" />
|
4
|
68 <collection name="ras_to_bounds" type="list" label="Ras to Bounds">
|
|
69 <discover_datasets name = "collection" pattern="__name_and_ext__" directory="ras_to_bounds"/>
|
|
70 </collection>
|
|
71
|
|
72 </outputs>
|
|
73
|
|
74 <help>
|
|
75
|
|
76 <![CDATA[
|
|
77
|
|
78 What it does
|
|
79 -------------
|
|
80
|
15
|
81 This tool generates the reactions bounds for a given metabolic model (JSON or XML format) both with and without the use of the Reaction Activity Scores (RAS) matrix generated by RAS generator.
|
|
82 Moreover, it enables to use custom/pre-defined growth mediums to constrain exchange reactions. For a custom medium, It is suggested to use the template file returned by the Custom Data Generator tool.
|
|
83 If the RAS matrix, generated by the RAS generator tool, is used, then a bounds file is generated for each cell. Otherwise, a single bounds file is returned.
|
4
|
84
|
|
85 Accepted files:
|
|
86 - A model: JSON or XML file reporting reactions and rules contained in the model.
|
49
|
87 - RAS matrix: tab-separated RAS file as returned by RAS generator. It can be a collection of RAS files too (e.g. one RAS matrix for normal cells and one for cancer cells). Note that if multiple RAs matrices are uploaded, the bounds are normalzed across all cells.
|
|
88 - Classes: If multiple RAS matrices are uploaded, then the tool returns a simple file containing for each cell the class it belongs to (cells coming from the same RAS matrix are assigned to the same class). This file is useful in the Flux enrichment analysis tool.
|
4
|
89 - Medium: tab-separated file containing lower and upper-bounds of medium reactions.
|
|
90
|
15
|
91 Example of custum growth medium file:
|
4
|
92
|
17
|
93
|
4
|
94 +------------+----------------+----------------+
|
18
|
95 | Reaction ID| lower_bound | upper_bound |
|
4
|
96 +============+================+================+
|
|
97 | r1 | 0.123167 | 0.371355 |
|
|
98 +------------+----------------+----------------+
|
|
99 | r2 | 0.268765 | 0.765567 |
|
|
100 +------------+----------------+----------------+
|
|
101
|
|
102
|
|
103 Output:
|
|
104 -------------
|
|
105
|
|
106 The tool generates:
|
|
107 - bounds: reporting the bounds of the model, or cells if RAS is used. Format: tab-separated.
|
49
|
108 - Classes: a file containing the class of each cell (only if multiple RAS matrices were uploaded). Format: tab-separated.
|
4
|
109 - a log file (.txt).
|
|
110 ]]>
|
|
111 </help>
|
|
112 <expand macro="citations" />
|
|
113 </tool> |