changeset 346:0ac89744208f draft

Uploaded
author francesco_lapi
date Thu, 04 Sep 2025 22:16:11 +0000
parents 5725e5bcccf9
children bae19cd2194f
files ._COBRAxy COBRAxy/._.gitignore COBRAxy/._GSOC project submission.html COBRAxy/._README.md COBRAxy/._custom_data_generator.py COBRAxy/._data_tutorial.zip COBRAxy/._flux_simulation.py COBRAxy/._flux_simulation.xml COBRAxy/._flux_to_map.py COBRAxy/._flux_to_map.xml COBRAxy/._local COBRAxy/._marea.py COBRAxy/._marea.xml COBRAxy/._marea_cluster.py COBRAxy/._marea_cluster.xml COBRAxy/._marea_macros.xml COBRAxy/._ras_generator.py COBRAxy/._ras_generator.xml COBRAxy/._ras_to_bounds.py COBRAxy/._ras_to_bounds.xml COBRAxy/._rps_generator.py COBRAxy/._rps_generator.xml COBRAxy/._testing.py COBRAxy/._utils COBRAxy/local/._ENGRO2_rules.csv COBRAxy/local/._medium COBRAxy/local/._models COBRAxy/local/._pickle files COBRAxy/local/._readme.txt COBRAxy/local/._svg metabolic maps COBRAxy/local/medium/._medium.csv COBRAxy/local/models/._ENGRO2.xml COBRAxy/local/pickle files/._ENGRO2_genes.p COBRAxy/local/pickle files/._ENGRO2_genes.pickle COBRAxy/local/pickle files/._ENGRO2_rules.p COBRAxy/local/pickle files/._HMRcore_genes.p COBRAxy/local/pickle files/._HMRcore_genes.pickle COBRAxy/local/pickle files/._HMRcore_rules.p COBRAxy/local/pickle files/._RECON_genes.pickle COBRAxy/local/pickle files/._Recon_genes.p COBRAxy/local/pickle files/._Recon_rules.p COBRAxy/local/pickle files/._black_list.pickle COBRAxy/local/pickle files/._reactions.pickle COBRAxy/local/pickle files/._substrate_frequencies.pickle COBRAxy/local/pickle files/._synonyms.pickle COBRAxy/local/pickle files/._synonyms_dict_recon_keys_filtered.pkl COBRAxy/local/svg metabolic maps/._ENGRO2_map.svg COBRAxy/local/svg metabolic maps/._ENGRO2_no_legend_map.svg COBRAxy/local/svg metabolic maps/._HMRcore_map.svg COBRAxy/local/svg metabolic maps/._HMRcore_no_legend_map.svg COBRAxy/utils/._CBS_backend.py COBRAxy/utils/.___init__.py COBRAxy/utils/._general_utils.py COBRAxy/utils/._reaction_parsing.py COBRAxy/utils/._rule_parsing.py custom_data_generator.xml
diffstat 56 files changed, 0 insertions(+), 87 deletions(-) [+]
line wrap: on
line diff
Binary file ._COBRAxy has changed
Binary file COBRAxy/._.gitignore has changed
Binary file COBRAxy/._GSOC project submission.html has changed
Binary file COBRAxy/._README.md has changed
Binary file COBRAxy/._custom_data_generator.py has changed
Binary file COBRAxy/._data_tutorial.zip has changed
Binary file COBRAxy/._flux_simulation.py has changed
Binary file COBRAxy/._flux_simulation.xml has changed
Binary file COBRAxy/._flux_to_map.py has changed
Binary file COBRAxy/._flux_to_map.xml has changed
Binary file COBRAxy/._local has changed
Binary file COBRAxy/._marea.py has changed
Binary file COBRAxy/._marea.xml has changed
Binary file COBRAxy/._marea_cluster.py has changed
Binary file COBRAxy/._marea_cluster.xml has changed
Binary file COBRAxy/._marea_macros.xml has changed
Binary file COBRAxy/._ras_generator.py has changed
Binary file COBRAxy/._ras_generator.xml has changed
Binary file COBRAxy/._ras_to_bounds.py has changed
Binary file COBRAxy/._ras_to_bounds.xml has changed
Binary file COBRAxy/._rps_generator.py has changed
Binary file COBRAxy/._rps_generator.xml has changed
Binary file COBRAxy/._testing.py has changed
Binary file COBRAxy/._utils has changed
Binary file COBRAxy/local/._ENGRO2_rules.csv has changed
Binary file COBRAxy/local/._medium has changed
Binary file COBRAxy/local/._models has changed
Binary file COBRAxy/local/._pickle files has changed
Binary file COBRAxy/local/._readme.txt has changed
Binary file COBRAxy/local/._svg metabolic maps has changed
Binary file COBRAxy/local/medium/._medium.csv has changed
Binary file COBRAxy/local/models/._ENGRO2.xml has changed
Binary file COBRAxy/local/pickle files/._ENGRO2_genes.p has changed
Binary file COBRAxy/local/pickle files/._ENGRO2_genes.pickle has changed
Binary file COBRAxy/local/pickle files/._ENGRO2_rules.p has changed
Binary file COBRAxy/local/pickle files/._HMRcore_genes.p has changed
Binary file COBRAxy/local/pickle files/._HMRcore_genes.pickle has changed
Binary file COBRAxy/local/pickle files/._HMRcore_rules.p has changed
Binary file COBRAxy/local/pickle files/._RECON_genes.pickle has changed
Binary file COBRAxy/local/pickle files/._Recon_genes.p has changed
Binary file COBRAxy/local/pickle files/._Recon_rules.p has changed
Binary file COBRAxy/local/pickle files/._black_list.pickle has changed
Binary file COBRAxy/local/pickle files/._reactions.pickle has changed
Binary file COBRAxy/local/pickle files/._substrate_frequencies.pickle has changed
Binary file COBRAxy/local/pickle files/._synonyms.pickle has changed
Binary file COBRAxy/local/pickle files/._synonyms_dict_recon_keys_filtered.pkl has changed
Binary file COBRAxy/local/svg metabolic maps/._ENGRO2_map.svg has changed
Binary file COBRAxy/local/svg metabolic maps/._ENGRO2_no_legend_map.svg has changed
Binary file COBRAxy/local/svg metabolic maps/._HMRcore_map.svg has changed
Binary file COBRAxy/local/svg metabolic maps/._HMRcore_no_legend_map.svg has changed
Binary file COBRAxy/utils/._CBS_backend.py has changed
Binary file COBRAxy/utils/.___init__.py has changed
Binary file COBRAxy/utils/._general_utils.py has changed
Binary file COBRAxy/utils/._reaction_parsing.py has changed
Binary file COBRAxy/utils/._rule_parsing.py has changed
--- a/custom_data_generator.xml	Thu Sep 04 22:10:56 2025 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,87 +0,0 @@
-<tool id="CustomDataGenerator" name="Custom Data Generator" version="2.0.0">
-    
-    <macros>
-        <import>marea_macros.xml</import>
-    </macros>
-
-	<requirements>
-        <requirement type="package" version="1.24.4">numpy</requirement>
-        <requirement type="package" version="2.0.3">pandas</requirement>
-		<requirement type="package" version="0.29.0">cobra</requirement>
-        <requirement type="package" version="5.2.2">lxml</requirement>
-	</requirements>
-
-    <command detect_errors="exit_code">
-        <![CDATA[
-      	python $__tool_directory__/custom_data_generator.py
-        --medium_selector $cond_medium.medium_selector
-        --output_format $output_format
-        #if $cond_model.model_selector == 'Custom_model'
-            --input $cond_model.input
-            --name $cond_model.name
-        #else
-            --model $cond_model.model_selector
-            --name $cond_model.model_selector
-        #end if
-        #if $cond_medium.medium_selector == 'Custom'
-            --medium $cond_medium.medium
-        #end if
-        --out_log $log
-        --out_data $out_data
-        ]]>
-    </command>
-    <inputs>
-        <!-- modello -->
-        <conditional name="cond_model">
-            <expand macro="options_model"/>
-            <when value="Custom_model">
-                <param name="input" argument="--input" type="data" format="json,xml" label="Custom model file:" />
-                <param name="name" argument="--name" type="text" label="Model's name:" value="CustomModel" help="Default: CustomModel. Do not use spaces or special symbols." />
-            </when>
-        </conditional>
-
-        <!-- formato output -->
-        <param name="output_format" argument="--output_format" type="select" label="Output format:">
-            <option value="tabular" selected="true">CSV (tabular)</option>
-            <option value="xlsx">Excel (.xlsx)</option>
-        </param>
-
-        <!-- medium -->
-        <conditional name="cond_medium">
-            <expand macro="options_ras_to_bounds_medium"/>
-            <when value="Custom">
-                <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" />
-            </when>
-        </conditional> 
-    </inputs>
-
-    <outputs>
-        <data name="log" format="txt" label="CustomDataGenerator - Log" />
-        <data name="out_data" format="$output_format" label="${cond_model.model_selector}_data" />
-    </outputs>
-
-    <help>
-    <![CDATA[
-What it does
--------------
-
-This tool generates four files containing reactions, rules, reaction bounds and medium composition respectively, starting from a custom model in JSON or XML format.
-Reactions and rules can be used as inputs for the RAS and RPS generator tools.
-
-Accepted files:
-    - 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.   
-
-
-Output:
--------------
-
-The tool generates:
-    - rules: reporting the rules for each reaction in the custom model given. Format: csv (tab separated).
-    - reactions: reporting the reactions in the custom model given. Format: csv (tab separated).
-    - reaction bounds: reporting the lower and upper bounds of each model reaction. Format: csv (tab separated).
-    - medium composition: reporting the list of exchange/transport reactions. Format: csv (tab separated).
-    - a log file (.txt).
-    ]]>
-    </help>
-    <expand macro="citations" />
-</tool>
\ No newline at end of file