Mercurial > repos > bimib > cobraxy
comparison custom_data_generator.xml @ 344:eff58e727e4b draft
Uploaded
| author | francesco_lapi |
|---|---|
| date | Thu, 04 Sep 2025 22:10:03 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 343:4165326259cc | 344:eff58e727e4b |
|---|---|
| 1 <tool id="CustomDataGenerator" name="Custom Data Generator" 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 </requirements> | |
| 13 | |
| 14 <command detect_errors="exit_code"> | |
| 15 <![CDATA[ | |
| 16 python $__tool_directory__/custom_data_generator.py | |
| 17 --medium_selector $cond_medium.medium_selector | |
| 18 --output_format $output_format | |
| 19 #if $cond_model.model_selector == 'Custom_model' | |
| 20 --input $cond_model.input | |
| 21 --name $cond_model.name | |
| 22 #else | |
| 23 --model $cond_model.model_selector | |
| 24 --name $cond_model.model_selector | |
| 25 #end if | |
| 26 #if $cond_medium.medium_selector == 'Custom' | |
| 27 --medium $cond_medium.medium | |
| 28 #end if | |
| 29 --out_log $log | |
| 30 --out_data $out_data | |
| 31 ]]> | |
| 32 </command> | |
| 33 <inputs> | |
| 34 <!-- modello --> | |
| 35 <conditional name="cond_model"> | |
| 36 <expand macro="options_model"/> | |
| 37 <when value="Custom_model"> | |
| 38 <param name="input" argument="--input" type="data" format="json,xml" label="Custom model file:" /> | |
| 39 <param name="name" argument="--name" type="text" label="Model's name:" value="CustomModel" help="Default: CustomModel. Do not use spaces or special symbols." /> | |
| 40 </when> | |
| 41 </conditional> | |
| 42 | |
| 43 <!-- formato output --> | |
| 44 <param name="output_format" argument="--output_format" type="select" label="Output format:"> | |
| 45 <option value="tabular" selected="true">CSV (tabular)</option> | |
| 46 <option value="xlsx">Excel (.xlsx)</option> | |
| 47 </param> | |
| 48 | |
| 49 <!-- medium --> | |
| 50 <conditional name="cond_medium"> | |
| 51 <expand macro="options_ras_to_bounds_medium"/> | |
| 52 <when value="Custom"> | |
| 53 <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" /> | |
| 54 </when> | |
| 55 </conditional> | |
| 56 </inputs> | |
| 57 | |
| 58 <outputs> | |
| 59 <data name="log" format="txt" label="CustomDataGenerator - Log" /> | |
| 60 <data name="out_data" format="$output_format" label="${cond_model.model_selector}_data" /> | |
| 61 </outputs> | |
| 62 | |
| 63 <help> | |
| 64 <![CDATA[ | |
| 65 What it does | |
| 66 ------------- | |
| 67 | |
| 68 This tool generates four files containing reactions, rules, reaction bounds and medium composition respectively, starting from a custom model in JSON or XML format. | |
| 69 Reactions and rules can be used as inputs for the RAS and RPS generator tools. | |
| 70 | |
| 71 Accepted files: | |
| 72 - A model: JSON or XML file reporting reactions and rules contained in the model. Supported compressed formats: .zip, .gz and .bz2 - Filename must end with .json.zip (.xml.zip), .json.gz (.xml.gz) or .json.bz2 (.xml.bz2) for JSON (XML) files. | |
| 73 | |
| 74 | |
| 75 Output: | |
| 76 ------------- | |
| 77 | |
| 78 The tool generates: | |
| 79 - rules: reporting the rules for each reaction in the custom model given. Format: csv (tab separated). | |
| 80 - reactions: reporting the reactions in the custom model given. Format: csv (tab separated). | |
| 81 - reaction bounds: reporting the lower and upper bounds of each model reaction. Format: csv (tab separated). | |
| 82 - medium composition: reporting the list of exchange/transport reactions. Format: csv (tab separated). | |
| 83 - a log file (.txt). | |
| 84 ]]> | |
| 85 </help> | |
| 86 <expand macro="citations" /> | |
| 87 </tool> |
