annotate COBRAxy/flux_simulation.xml @ 520:6f8d63f8f6b6 draft

Uploaded
author luca_milaz
date Thu, 09 Oct 2025 10:29:41 +0000
parents c3c1d3b3941f
children 73c1de8f2d89
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
1 <tool id="fluxSimulation" name="Flux Simulation" 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
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
7 <requirements>
93
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>
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
10 <requirement type="package" version="0.29.0">cobra</requirement>
93
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 <requirement type="package" version="1.4.2">joblib</requirement>
307
d905439271fa Uploaded
francesco_lapi
parents: 229
diff changeset
13 <requirement type="package" version="1.11">scipy</requirement>
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
14 </requirements>
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
15
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
16 <command detect_errors="exit_code">
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
17 <![CDATA[
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
18 python $__tool_directory__/flux_simulation.py
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
19 --tool_dir $__tool_directory__
518
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
20
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
21 --model_and_bounds $model_and_bounds.model_and_bounds
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
22
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
23 #if $model_and_bounds.model_and_bounds == 'True':
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
24 --model_upload $model_and_bounds.model_upload
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
25 --input "${",".join(map(str, $model_and_bounds.inputs))}"
511
0cb727788cae Uploaded
francesco_lapi
parents: 489
diff changeset
26 #set $names_list = []
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
27 #for $input_temp in $model_and_bounds.inputs:
511
0cb727788cae Uploaded
francesco_lapi
parents: 489
diff changeset
28 #silent $names_list.append(str($input_temp.element_identifier))
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
29 #end for
511
0cb727788cae Uploaded
francesco_lapi
parents: 489
diff changeset
30 --name "${",".join($names_list)}"
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
31 #else:
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
32 --input "${",".join(map(str, $model_and_bounds.model_files))}"
511
0cb727788cae Uploaded
francesco_lapi
parents: 489
diff changeset
33 #set $names_list = []
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
34 #for $input_temp in $model_and_bounds.model_files:
511
0cb727788cae Uploaded
francesco_lapi
parents: 489
diff changeset
35 #silent $names_list.append(str($input_temp.element_identifier))
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
36 #end for
511
0cb727788cae Uploaded
francesco_lapi
parents: 489
diff changeset
37 --name "${",".join($names_list)}"
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
38 #end if
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
39
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
40 --sampling_enabled $sampling_params.sampling_enabled
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
41
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
42 #if $sampling_params.sampling_enabled == 'true':
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
43 --thinning 0
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
44 #if $sampling_params.algorithm_param.algorithm == 'OPTGP':
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
45 --thinning $sampling_params.algorithm_param.thinning
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
46 #end if
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
47 --algorithm $sampling_params.algorithm_param.algorithm
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
48 --n_batches $sampling_params.n_batches
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
49 --n_samples $sampling_params.n_samples
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
50 --seed $sampling_params.seed
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
51 --output_type "${",".join(map(str, $sampling_params.output_types))}"
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
52 #else:
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
53 --thinning 0
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
54 --algorithm 'CBS'
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
55 --n_batches 1
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
56 --n_samples 1
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
57 --seed 0
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
58 --output_type 'mean'
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
59 #end if
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
60
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
61 --output_type_analysis "${",".join(map(str, $output_types_analysis))}"
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
62
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
63 #if 'FVA' in str($output_types_analysis):
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
64 --perc_opt $fva_params.optimality_fraction
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
65 #end if
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
66
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
67 --out_log $log
518
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
68
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
69 #if $sampling_params.sampling_enabled == 'true':
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
70 #if 'mean' in str($sampling_params.output_types):
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
71 --out_mean $mean_results
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
72 #end if
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
73 #if 'median' in str($sampling_params.output_types):
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
74 --out_median $median_results
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
75 #end if
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
76 #if 'quantiles' in str($sampling_params.output_types):
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
77 --out_quantiles $quantile_results
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
78 #end if
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
79 #end if
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
80
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
81 #if 'FVA' in str($output_types_analysis):
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
82 --out_fva $fva_results
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
83 #end if
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
84 #if 'pFBA' in str($output_types_analysis):
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
85 --out_pfba $pFBA_results
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
86 #end if
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
87 #if 'sensitivity' in str($output_types_analysis):
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
88 --out_sensitivity $sensitivity_results
c3c1d3b3941f Uploaded
luca_milaz
parents: 516
diff changeset
89 #end if
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
90 ]]>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
91 </command>
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
92
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
93 <inputs>
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
94 <conditional name="model_and_bounds">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
95 <param name="model_and_bounds" argument="--model_and_bounds" type="select" label="Upload mode:" help="Choose whether to upload the model and bounds in separate files or to upload multiple complete model files.">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
96 <option value="True" selected="true">Model + bounds (separate files)</option>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
97 <option value="False">Multiple complete models</option>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
98 </param>
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
99
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
100 <when value="True">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
101 <param name="model_upload" argument="--model_upload" type="data" format="csv,tsv,tabular"
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
102 label="Model (rules) file:"
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
103 help="Upload a CSV/TSV file that contains the model reaction rules. Recommended columns: ReactionID, Reaction (formula), Rule (GPR). Optional columns: name, lower_bound, upper_bound, InMedium. If bounds are present here they may be overridden by separate bound files." />
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
104
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
105 <param name="inputs" argument="--inputs" multiple="true" type="data" format="tabular,csv,tsv"
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
106 label="Bound file(s):"
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
107 help="Upload one or more CSV/TSV files containing reaction bounds. Each file must include at least: ReactionID, lower_bound, upper_bound. Files are applied in the order provided; later files override earlier ones for the same ReactionID." />
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
108 </when>
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
109
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
110 <when value="False">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
111 <param name="model_files" argument="--model_files" multiple="true" type="data" format="csv,tsv,tabular"
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
112 label="Complete model files:"
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
113 help="Upload one or more CSV/TSV files, each containing both model rules and reaction bounds for different contexts/cells. Required columns: ReactionID, Reaction, Rule, lower_bound, upper_bound." />
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
114 </when>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
115 </conditional>
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
116
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
117 <conditional name="sampling_params">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
118 <param name="sampling_enabled" argument="--sampling_enabled" type="boolean" display="checkboxes" checked="false" label="Enable sampling" help="Enable flux sampling"/>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
119
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
120 <when value="true">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
121 <conditional name="algorithm_param">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
122 <param name="algorithm" argument="--algorithm" type="select" label="Choose sampling algorithm:">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
123 <option value="CBS" selected="true">CBS</option>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
124 <option value="OPTGP">OPTGP</option>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
125 </param>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
126 <when value="OPTGP">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
127 <param name="thinning" argument="--thinning" type="integer" label="Thinning:" value="100" help="Number of iterations to wait before taking a sample."/>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
128 </when>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
129 </conditional>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
130
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
131 <param name="n_samples" argument="--n_samples" type="integer" label="Samples:" value="1000" min="1" max="1000"/>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
132 <param name="n_batches" argument="--n_batches" type="integer" label="Batches:" value="1" help="This is useful for computational performances."/>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
133 <param name="seed" argument="--seed" type="integer" label="Seed:" value="0" help="Random seed."/>
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
134
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
135 <param type="select" argument="--output_types" multiple="true" name="output_types" label="Choose outputs from sampling">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
136 <option value="mean" selected="true">Mean</option>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
137 <option value="median" selected="true">Median</option>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
138 <option value="quantiles" selected="true">Quantiles</option>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
139 <option value="fluxes" selected="false">All fluxes</option>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
140 </param>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
141 </when>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
142
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
143 <when value="false">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
144 <!-- Hidden parameters when sampling is disabled -->
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
145 <param name="algorithm" type="hidden" value="CBS"/>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
146 <param name="n_samples" type="hidden" value="1000"/>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
147 <param name="n_batches" type="hidden" value="1"/>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
148 <param name="seed" type="hidden" value="0"/>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
149 <param name="output_types" type="hidden" value="mean"/>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
150 </when>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
151 </conditional>
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
152
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
153 <param type="select" argument="--output_types_analysis" multiple="true" name="output_types_analysis" label="Choose outputs from optimization">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
154 <option value="FVA" selected="true">FVA</option>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
155 <option value="pFBA" selected="false">pFBA</option>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
156 <option value="sensitivity" selected="false">Sensitivity reaction knock-out (Biomass)</option>
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
157 </param>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
158
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
159 <conditional name="fva_params">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
160 <param name="show_fva_options" type="boolean" display="checkboxes" checked="false" label="Configure FVA parameters" help="Show additional FVA configuration options"/>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
161 <when value="true">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
162 <param name="optimality_fraction" argument="--fva_optimality" type="float" label="FVA Optimality (fraction):" value="0.90" min="0.0" max="1.0"
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
163 help="Fraction of optimality for FVA analysis. 1.0 means the flux must be optimal, lower values allow suboptimal solutions."/>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
164 </when>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
165 <when value="false">
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
166 <param name="optimality_fraction" argument="--fva_optimality" type="hidden" value="1.0"/>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
167 </when>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
168 </conditional>
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
169
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
170 </inputs>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
171
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
172 <outputs>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
173 <data format="txt" name="log" label="Flux Simulation - Log" />
516
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
174 <!---<data name="output" format="tabular" label="Fluxes">
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
175 <discover_datasets pattern="__name_and_ext__" directory="flux_simulation" visible="true" />
516
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
176 </data>-->
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
177 <collection name="fluxes_results" type="list" label="Fluxes">
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
178 <filter>'fluxes' in str($sampling_params.output_types)</filter>
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
179 <discover_datasets name = "collection" pattern="__name_and_ext__" directory="flux_simulation"/>
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
180 </collection>
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
181 <data format="tabular" name="mean_results" label="Mean">
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
182 <filter>'mean' in str($sampling_params.output_types)</filter>
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
183 </data>
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
184 <data format="tabular" name="median_results" label="Median">
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
185 <filter>'median' in str($sampling_params.output_types)</filter>
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
186 </data>
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
187 <data format="tabular" name="quantile_results" label="Quantiles">
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
188 <filter>'quantiles' in str($sampling_params.output_types)</filter>
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
189 </data>
514
e24998921824 Uploaded
luca_milaz
parents: 511
diff changeset
190 <data format="tabular" name="fva_results" label="FVA">
e24998921824 Uploaded
luca_milaz
parents: 511
diff changeset
191 <filter>'FVA' in str($output_types_analysis)</filter>
e24998921824 Uploaded
luca_milaz
parents: 511
diff changeset
192 </data>
516
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
193 <data format="tabular" name="pFBA_results" label="pFBA">
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
194 <filter>'pFBA' in str($output_types_analysis)</filter>
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
195 </data>
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
196 <data format="tabular" name="sensitivity_results" label="Sensitivity">
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
197 <filter>'sensitivity' in str($output_types_analysis)</filter>
7726a4a7173f Uploaded
luca_milaz
parents: 514
diff changeset
198 </data>
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
199 </outputs>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
200
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
201 <help>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
202 <![CDATA[
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
203 What it does
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
204 -------------
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
205
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
206 This tool generates flux samples starting from metabolic models using CBS (Corner-based sampling) or OPTGP (Improved Artificial Centering Hit-and-Run sampler) algorithms.
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
207
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
208 Two upload modes are supported:
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
209 1. **Model + bounds**: Upload one base model and multiple bound files (one per context/cell type)
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
210 2. **Multiple complete models**: Upload multiple complete model files, each with integrated bounds
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
211
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
212 It can return sampled fluxes by applying summary statistics:
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
213 - mean
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
214 - median
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
215 - quantiles (0.25, 0.50, 0.75)
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
216
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
217 Flux analysis can be performed over the metabolic model by using the objective function already set in the model. The following analyses are supported:
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
218 - parsimonious-FBA (optimized by Biomass)
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
219 - FVA (with configurable optimality percentage)
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
220 - Biomass sensitivity analysis (single reaction knock-out)
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
221
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
222 Output:
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
223 -------------
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
224
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
225 The tool generates:
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
226 - Samples: reporting the sampled fluxes for each reaction (reaction names on the rows and sample names on the columns). Format: tab-separated.
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
227 - a log file (.txt).
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
228
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
229 **TIP**: Bounds generated by RAStoBound are grouped in a collection. You can select collections by clicking on "Dataset Collection" option in the "Bound file(s):" input parameter.
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
230
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
231 **TIP**: The Batches parameter helps maintain memory efficiency. For 10,000 samples, use n_samples=1,000 and n_batches=10.
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
232
489
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
233 **TIP**: The Thinning parameter for OPTGP helps converge to stationary distribution.
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
234
97eea560a10f Uploaded
francesco_lapi
parents: 381
diff changeset
235 **TIP**: FVA optimality percentage allows you to explore suboptimal flux ranges. 100% restricts to optimal solutions, while lower values (e.g., 90%) allow broader flux ranges.
93
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
236 ]]>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
237 </help>
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
238 <expand macro="citations_fluxes" />
7e703e546998 Uploaded
luca_milaz
parents:
diff changeset
239 </tool>