comparison build/tools/ExtractSubReactionNetwork/ExtractSubReactionNetwork.xml @ 6:7a6f2380fc1d draft

planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
author metexplore
date Wed, 17 May 2023 13:26:37 +0000
parents
children 1436e9cde9c9
comparison
equal deleted inserted replaced
5:35c9abcd8934 6:7a6f2380fc1d
1 <?xml version="1.0" encoding="UTF-8"?>
2 <tool id="met4j_ExtractSubReactionNetwork" name="ExtractSubReactionNetwork" version="1.3.0">
3 <description>Create a subnetwork from a GSMN in SBML format, and two files containing lists of reactions of interests ids, one per row, plus one file of the same format containing side compounds ids.</description>
4 <xrefs>
5 <xref type="bio.tools">met4j</xref>
6 </xrefs>
7 <requirements>
8 <container type="singularity">oras://registry.forgemia.inra.fr/metexplore/met4j/met4j-singularity:1.3.0</container>
9 </requirements>
10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh networkAnalysis.ExtractSubReactionNetwork -i "$inputPath"
11 -s "$sourcePath"
12 $undirected
13 $asTable
14 -t "$targetPath"
15 -sc "$sideCompoundFile"
16 #if str($weightFile) != 'None':
17 -cw "$weightFile"
18 #end if
19 #if str($k):
20 -k "$k"
21 #end if
22 $st
23 -o "$outputPath"
24 ]]></command>
25 <inputs>
26 <param argument="-i" format="sbml" label="input SBML file" name="inputPath" optional="false" type="data" value=""/>
27 <param argument="-s" format="txt" label="input sources txt file" name="sourcePath" optional="false" type="data" value=""/>
28 <param argument="-u" checked="false" falsevalue="" label="Ignore reaction direction" name="undirected" truevalue="-u" type="boolean" value="false"/>
29 <param argument="-tab" checked="false" falsevalue="" label="Export in tabulated file instead of .GML" name="asTable" truevalue="-tab" type="boolean" value="false"/>
30 <param argument="-t" format="txt" label="input targets txt file" name="targetPath" optional="false" type="data" value=""/>
31 <param argument="-sc" format="txt" label="a file containing list of side compounds to ignore" name="sideCompoundFile" optional="false" type="data" value=""/>
32 <param argument="-cw" format="tsv" label="an optional file containing weights for reactions pairs" name="weightFile" optional="true" type="data" value=""/>
33 <param argument="-k" label="Extract k-shortest paths" name="k" optional="true" type="text" value="1">
34 <sanitizer invalid_char="_">
35 <valid initial="string.printable"/>
36 </sanitizer>
37 </param>
38 <param argument="-st" checked="false" falsevalue="" label="Extract Steiner Tree" name="st" truevalue="-st" type="boolean" value="false"/>
39 </inputs>
40 <outputs>
41 <data format="gml" name="outputPath"/>
42 </outputs>
43 <tests>
44 <test>
45 <param name="inputPath" value="toy_model.xml"/>
46 <param name="sourcePath" value="seeds.txt"/>
47 <param name="targetPath" value="targets.txt"/>
48 <param name="sideCompoundFile" value="sides.txt"/>
49 <output ftype="gml" name="outputPath">
50 <assert_contents>
51 <has_line_matching expression=".*node.*" n="3"/>
52 <has_line_matching expression=".*edge.*" n="2"/>
53 </assert_contents>
54 </output>
55 </test>
56 </tests>
57 <help><![CDATA[Create a subnetwork from a GSMN in SBML format, and two files containing lists of reactions of interests ids, one per row, plus one file of the same format containing side compounds ids.
58 The subnetwork corresponds to part of the network that connects reactions from the first list to reactions from the second list.
59 Sources and targets list can have elements in common. The connecting part can be defined as the union of shortest or k-shortest paths between sources and targets, or the Steiner tree connecting them. Contrary to compound graph, reaction graph often lacks weighting policy for edge relevance. In order to ensure appropriate network density, a list of side compounds to ignore for linking reactions must be provided. An optional edge weight file, if available, can also be used.]]></help>
60 <citations/>
61 </tool>