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
|
66
|
32 #set $names = ""
|
|
33 #for $input_temp in $cond_ras.input_ras:
|
|
34 #set $names = $names + $input_temp.element_identifier + ","
|
|
35 #end for
|
70
|
36 --name $names
|
4
|
37 #end if
|
|
38 --out_log $log
|
|
39 ]]>
|
|
40 </command>
|
|
41 <inputs>
|
|
42 <conditional name="cond_model">
|
|
43 <expand macro="options_ras_to_bounds_model"/>
|
|
44 <when value="Custom">
|
|
45 <param name="model" argument="--model" type="data" format="json, xml" label="Custom model" />
|
|
46 </when>
|
|
47 </conditional>
|
|
48
|
|
49 <conditional name="cond_ras">
|
|
50 <param name="ras_choice" argument="--ras_choice" type="select" label="Do want to use RAS?">
|
|
51 <option value="True" selected="true">Yes</option>
|
|
52 <option value="False">No</option>
|
|
53 </param>
|
|
54 <when value="True">
|
49
|
55 <param name="input_ras" argument="--input_ras" multiple="true" type="data" format="tabular, csv, tsv" label="RAS matrix:" />
|
4
|
56 </when>
|
|
57 </conditional>
|
|
58
|
|
59 <conditional name="cond_medium">
|
|
60 <expand macro="options_ras_to_bounds_medium"/>
|
|
61 <when value="Custom">
|
|
62 <param name="medium" argument="--medium" type="data" format="tabular, csv, tsv" label="Custom medium" />
|
|
63 </when>
|
|
64 </conditional>
|
|
65
|
|
66 </inputs>
|
|
67
|
|
68 <outputs>
|
|
69 <data format="txt" name="log" label="RAStoBounds- Log" />
|
49
|
70 <data format="tabular" name="cell_class" label="RAStoBounds - Cells class" />
|
4
|
71 <collection name="ras_to_bounds" type="list" label="Ras to Bounds">
|
|
72 <discover_datasets name = "collection" pattern="__name_and_ext__" directory="ras_to_bounds"/>
|
|
73 </collection>
|
|
74
|
|
75 </outputs>
|
|
76
|
|
77 <help>
|
|
78
|
|
79 <![CDATA[
|
|
80
|
|
81 What it does
|
|
82 -------------
|
|
83
|
15
|
84 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.
|
|
85 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.
|
|
86 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
|
87
|
|
88 Accepted files:
|
|
89 - A model: JSON or XML file reporting reactions and rules contained in the model.
|
59
|
90 - RAS matrix: tab-separated RAS file as returned by RAS generator. Multiple RAS files can be uploaded 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.
|
4
|
91 - Medium: tab-separated file containing lower and upper-bounds of medium reactions.
|
|
92
|
15
|
93 Example of custum growth medium file:
|
4
|
94
|
17
|
95
|
4
|
96 +------------+----------------+----------------+
|
18
|
97 | Reaction ID| lower_bound | upper_bound |
|
4
|
98 +============+================+================+
|
|
99 | r1 | 0.123167 | 0.371355 |
|
|
100 +------------+----------------+----------------+
|
|
101 | r2 | 0.268765 | 0.765567 |
|
|
102 +------------+----------------+----------------+
|
|
103
|
59
|
104 Example for multiple RAS matrices:
|
|
105 - cancer.csv and normal.csv generated by RAS generator tool (the two class names are 'cancer' and 'normal').
|
|
106 - This tool returns one unique collection of bounds files for both cancer and normal cells (normalization is performed across all cells).
|
68
|
107 - The association cell-class is reported in the 'cell_class' file that is useful to perform flux enrichment analysis based on class partenrship.
|
4
|
108
|
|
109 Output:
|
|
110 -------------
|
|
111
|
|
112 The tool generates:
|
|
113 - bounds: reporting the bounds of the model, or cells if RAS is used. Format: tab-separated.
|
59
|
114 - Classes: a file containing the class of each cell (only if multiple RAS matrices were uploaded). The class name of a RAS matrix corresponds to its file name. Format: tab-separated.
|
4
|
115 - a log file (.txt).
|
|
116 ]]>
|
|
117 </help>
|
|
118 <expand macro="citations" />
|
|
119 </tool> |