Mercurial > repos > metexplore > met4j
diff build/tools/Sbml2CarbonSkeletonNet/Sbml2CarbonSkeletonNet.xml @ 9:0976a6257300 draft
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 05db35f63cadb9d56dafff594a3507c59cd85273
author | metexplore |
---|---|
date | Fri, 31 Jan 2025 18:28:53 +0000 |
parents | |
children | 6a112eaf8f38 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build/tools/Sbml2CarbonSkeletonNet/Sbml2CarbonSkeletonNet.xml Fri Jan 31 18:28:53 2025 +0000 @@ -0,0 +1,371 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<tool id="met4j_Sbml2CarbonSkeletonNet" name="Sbml2CarbonSkeletonNet" version="develop"> + <description>Create a carbon skeleton graph representation of a SBML file content, using GSAM atom-mapping file (see https://forgemia.inra.fr/metexplore/gsam)</description> + <xrefs> + <xref type="bio.tools">met4j</xref> + </xrefs> + <requirements> + <container type="singularity">oras://registry.forgemia.inra.fr/metexplore/met4j/met4j-singularity:develop</container> + </requirements> + <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh convert.Sbml2CarbonSkeletonNet -i "$inputPath" + -g "$inputAAM" + $keepSingleCarbon + $mergeComp + $mergeEdges + $removeIsolated + $undirected + $computeWeight +#if str($format): + -f "$format" +#end if + $main + $fromIndexes + -o "$output" +]]></command> + <inputs> + <param argument="-i" format="sbml" label="input SBML file" name="inputPath" optional="false" type="data" value=""/> + <param argument="-g" format="gsam" label="input GSAM file" name="inputAAM" optional="false" type="data" value=""/> + <param argument="-ks" checked="false" falsevalue="" label="keep edges involving single-carbon compounds, such as CO2 (requires formulas in SBML)" name="keepSingleCarbon" truevalue="-ks" type="boolean" value="false"/> + <param argument="-mc" checked="false" falsevalue="" label="merge compartments (requires unique compound names that are consistent across compartments)" name="mergeComp" truevalue="-mc" type="boolean" value="false"/> + <param argument="-me" checked="false" falsevalue="" label="merge parallel edges to produce a simple graph" name="mergeEdges" truevalue="-me" type="boolean" value="false"/> + <param argument="-ri" checked="false" falsevalue="" label="remove isolated nodes" name="removeIsolated" truevalue="-ri" type="boolean" value="false"/> + <param argument="-un" checked="false" falsevalue="" label="create as undirected" name="undirected" truevalue="-un" type="boolean" value="false"/> + <param argument="-tp" checked="false" falsevalue="" label="set transition probability as weight" name="computeWeight" truevalue="-tp" type="boolean" value="false"/> + <param argument="-f" label="Format of the exported graphTabulated edge list by default (source id 	 edge type 	 target id). Other options include GML, JsonGraph, and tabulated node list (label 	 node id 	 node type)." name="format" optional="true" type="select" value="tab"> + <option value="gml">gml</option> + <option selected="true" value="tab">tab</option> + <option value="nodeList">nodeList</option> + <option value="json">json</option> + <option value="matrix">matrix</option> + </param> + <param argument="-main" checked="false" falsevalue="" label="Compute RPAIRS-like tags and keep only main transitions for each reaction" name="main" truevalue="-main" type="boolean" value="false"/> + <param argument="-fi" checked="false" falsevalue="" label="Use GSAM output with carbon indexes" name="fromIndexes" truevalue="-fi" type="boolean" value="false"/> + </inputs> + <outputs> + <data format="txt" name="output"/> + </outputs> + <tests> + <test> + + + + <param name="inputPath" value="Human-GEM_pathways.xml"/> + + + + <param name="inputAAM" value="Human-GEM_pathways-transitions.tab"/> + + + + <param name="format" value="gml"/> + + + + <output name="output"> + + + + <assert_contents> + + + + <has_n_lines n="2602"/> + + + + </assert_contents> + + + + </output> + + + + </test> + <test> + + + + <param name="inputPath" value="Human-GEM_pathways.xml"/> + + + + <param name="inputAAM" value="Human-GEM_pathways-transitions.tab"/> + + + + <param name="keepSingleCarbon" value="true"/> + + + + <param name="format" value="gml"/> + + + + <output name="output"> + + + + <assert_contents> + + + + <has_n_lines n="2629"/> + + + + </assert_contents> + + + + </output> + + + + </test> + <test> + + + + <param name="inputPath" value="Human-GEM_pathways.xml"/> + + + + <param name="inputAAM" value="Human-GEM_pathways-transitions.tab"/> + + + + <param name="mergeComp" value="true"/> + + + + <param name="format" value="gml"/> + + + + <output name="output"> + + + + <assert_contents> + + + + <has_n_lines n="2406"/> + + + + </assert_contents> + + + + </output> + + + + </test> + <test> + + + + <param name="inputPath" value="Human-GEM_pathways.xml"/> + + + + <param name="inputAAM" value="Human-GEM_pathways-transitions.tab"/> + + + + <param name="mergeEdges" value="true"/> + + + + <param name="format" value="gml"/> + + + + <output name="output"> + + + + <assert_contents> + + + + <has_n_lines n="2071"/> + + + + </assert_contents> + + + + </output> + + + + </test> + <test> + + + + <param name="inputPath" value="Human-GEM_pathways.xml"/> + + + + <param name="inputAAM" value="Human-GEM_pathways-transitions.tab"/> + + + + <param name="removeIsolated" value="true"/> + + + + <param name="format" value="gml"/> + + + + <output name="output"> + + + + <assert_contents> + + + + <has_n_lines n="2490"/> + + + + </assert_contents> + + + + </output> + + + + </test> + <test> + + + + <param name="inputPath" value="Human-GEM_pathways.xml"/> + + + + <param name="inputAAM" value="Human-GEM_pathways-transitions.tab"/> + + + + <param name="undirected" value="true"/> + + + + <param name="format" value="gml"/> + + + + <output name="output"> + + + + <assert_contents> + + + + <has_n_lines n="3214"/> + + + + </assert_contents> + + + + </output> + + + + </test> + <test> + + + + <param name="inputPath" value="Human-GEM_pathways.xml"/> + + + + <param name="inputAAM" value="Human-GEM_pathways-transitions.tab"/> + + + + <param name="format" value="matrix"/> + + + + <output name="output"> + + + + <assert_contents> + + + + <has_n_lines n="112"/> + + + + </assert_contents> + + + + </output> + + + + </test> + <test> + + + + <param name="inputPath" value="Human-GEM_pathways.xml"/> + + + + <param name="inputAAM" value="Human-GEM_pathways-transitions2.tab"/> + + + + <param name="fromIndexes" value="true"/> + + + + <param name="format" value="gml"/> + + + + <output name="output"> + + + + <assert_contents> + + + + <has_n_lines n="2611"/> + + + + </assert_contents> + + + + </output> + + + + </test> + </tests> + <help><![CDATA[Metabolic networks used for quantitative analysis often contain links that are irrelevant for graph-based structural analysis. For example, inclusion of side compounds or modelling artifacts such as 'biomass' nodes. Focusing on links between compounds that share parts of their carbon skeleton allows to avoid many transitions involving side compounds, and removes entities without defined chemical structure. This app produces a Carbon Skeleton Network relevant for graph-based analysis of metabolism, in GML or matrix format, from a SBML and an GSAM atom mapping file. GSAM (see https://forgemia.inra.fr/metexplore/gsam) performs atom mapping at genome-scale level using the Reaction Decoder Tool (https://github.com/asad/ReactionDecoder) and allows to compute the number of conserved atoms of a given type between reactants.This app also enables Markov-chain based analysis of metabolic networks by computing reaction-normalized transition probabilities on the Carbon Skeleton Network.]]></help> + <citations/> +</tool>