comparison Sbml2CompoundGraph.xml @ 0:533e924a57f6 draft

planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit e28ca123295d50b85ba872e5a4720fd72697ecc3
author metexplore
date Thu, 13 Mar 2025 15:49:24 +0000
parents
children e4fe3d5892dd
comparison
equal deleted inserted replaced
-1:000000000000 0:533e924a57f6
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <tool id="met4j_Sbml2CompoundGraph" name="Sbml2CompoundGraph" version="@TOOL_VERSION@">
3 <description>Advanced creation of a compound graph representation of a SBML file content</description>
4 <macros>
5 <import>macros.xml</import>
6 </macros>
7 <expand macro="bio_tools"/>
8 <expand macro="requirements"/>
9 <command detect_errors="exit_code"><![CDATA[met4j fr.inrae.toulouse.metexplore.met4j_toolbox.convert.Sbml2CompoundGraph -i "$inputPath"
10 #if str($inputSide) != 'None':
11 -sc "$inputSide"
12 #end if
13 #if str($mergingStrat):
14 -mc "$mergingStrat"
15 #end if
16 $mergeEdges
17 $removeIsolated
18 $degree
19 #if str($weightFile) != 'None':
20 -cw "$weightFile"
21 #end if
22 $undirected
23 $computeWeight
24 #if str($format):
25 -f "$format"
26 #end if
27 -o "$output"
28 ]]></command>
29 <inputs>
30 <param argument="-i" format="sbml" label="input SBML file" name="inputPath" optional="false" type="data" value=""/>
31 <param argument="-sc" format="txt" label="input Side compound file" name="inputSide" optional="true" type="data" value=""/>
32 <param argument="-mc" label="merge compartments. Use names if consistent and unambiguous across compartments, or identifiers if compartment suffix is present (id in form &quot;xxx_y&quot; with xxx as base identifier and y as compartment label)." name="mergingStrat" optional="true" type="select" value="no">
33 <option selected="true" value="no">no</option>
34 <option value="by_name">by_name</option>
35 <option value="by_id">by_id</option>
36 </param>
37 <param argument="-me" checked="false" falsevalue="" label="merge parallel edges to produce a simple graph" name="mergeEdges" truevalue="-me" type="boolean" value="false"/>
38 <param argument="-ri" checked="false" falsevalue="" label="remove isolated nodes" name="removeIsolated" truevalue="-ri" type="boolean" value="false"/>
39 <param argument="-dw" checked="false" falsevalue="" label="penalize traversal of hubs by using degree square weighting" name="degree" truevalue="-dw" type="boolean" value="false"/>
40 <param argument="-cw" format="tsv" label="an optional file containing weights for compound pairs" name="weightFile" optional="true" type="data" value=""/>
41 <param argument="-un" checked="false" falsevalue="" label="create as undirected" name="undirected" truevalue="-un" type="boolean" value="false"/>
42 <param argument="-tp" checked="false" falsevalue="" label="set weight as random walk transition probability, normalized by reaction" name="computeWeight" truevalue="-tp" type="boolean" value="false"/>
43 <param argument="-f" label="Format of the exported graphTabulated edge list by default (source id &#9; edge type &#9; target id). Other options include GML, JsonGraph, and tabulated node list (label &#9; node id &#9; node type)." name="format" optional="true" type="select" value="tab">
44 <option value="gml">gml</option>
45 <option selected="true" value="tab">tab</option>
46 <option value="nodeList">nodeList</option>
47 <option value="json">json</option>
48 <option value="matrix">matrix</option>
49 </param>
50 </inputs>
51 <outputs>
52 <data format="txt" name="output"/>
53 </outputs>
54 <tests>
55 <test>
56 <param name="inputPath" value="XF_network.sbml"/>
57 <param name="inputSide" value="XF_network_C_Side.tab"/>
58 <param name="format" value="gml"/>
59 <output name="output">
60 <assert_contents>
61 <has_line_matching expression=".*node.*" n="1101"/>
62 <has_line_matching expression=".*edge.*" n="5581"/>
63 </assert_contents>
64 </output>
65 </test>
66 <test>
67 <param name="inputPath" value="XF_network.sbml"/>
68 <param name="inputSide" value="XF_network_C_Side.tab"/>
69 <param name="undirected" value="true"/>
70 <param name="computeWeight" value="true"/>
71 <param name="removeIsolated" value="true"/>
72 <param name="degree" value="true"/>
73 <param name="mergingStrat" value="by_id"/>
74 <param name="format" value="gml"/>
75 <output name="output">
76 <assert_contents>
77 <has_line_matching expression=".*node.*" n="793"/>
78 <has_line_matching expression=".*edge.*" n="9372"/>
79 </assert_contents>
80 </output>
81 </test>
82 </tests>
83 <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.
84 While Carbon Skeleton Graph offer a relevant alternative topology for graph-based analysis, it requires compounds' structure information, usually not provided in model, and difficult to retrieve for model with sparse cross-reference annotations.
85 In contrary to the Sbml2Graph app that performs a raw conversion of the SBML content, the present app propose a fine-tuned creation of compound graph from predefined list of side compounds and degree weighting to get relevant structure without structural data.This app also enables Markov-chain based analysis of metabolic networks by computing reaction-normalized transition probabilities on the network.
86 @ATTRIBUTION@]]></help>
87 <citations/>
88 </tool>