Mercurial > repos > metexplore > met4j
comparison tools/networkAnalysis/DistanceMatrix/DistanceMatrix.xml @ 0:dcd16521b969 draft
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
author | metexplore |
---|---|
date | Fri, 10 Jun 2022 10:31:34 +0000 |
parents | |
children | 9b162ee6ff8e |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:dcd16521b969 |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <tool id="met4j_DistanceMatrix" name="DistanceMatrix" version="0.11.0"> | |
3 <description>Create a compound to compound distance matrix.</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:0.11.0</container> | |
9 </requirements> | |
10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh networkAnalysis.DistanceMatrix -i "$inputPath" | |
11 #if str($sideCompoundFile) != 'None': | |
12 -s "$sideCompoundFile" | |
13 #end if | |
14 $degree | |
15 #if str($weightFile) != 'None': | |
16 -w "$weightFile" | |
17 #end if | |
18 $undirected | |
19 -o "$outputPath" | |
20 ]]></command> | |
21 <inputs> | |
22 <param argument="-i" format="sbml" label="input SBML file" name="inputPath" optional="false" type="data" value=""/> | |
23 <param argument="-s" format="text" label="an optional file containing list of side compounds to ignore" name="sideCompoundFile" optional="true" type="data" value=""/> | |
24 <param argument="-dw" checked="false" falsevalue="" label="penalize traversal of hubs by using degree square weighting (-w must not be set)" name="degree" truevalue="-dw" type="boolean" value="false"/> | |
25 <param argument="-w" format="tsv" label="an optional file containing weights for compound pairs" name="weightFile" optional="true" type="data" value=""/> | |
26 <param argument="-u" checked="false" falsevalue="" label="Ignore reaction direction" name="undirected" truevalue="-u" type="boolean" value="false"/> | |
27 </inputs> | |
28 <outputs> | |
29 <data format="csv" name="outputPath"/> | |
30 </outputs> | |
31 <tests> | |
32 <test> | |
33 <param name="inputPath" value="toy_model.xml"/> | |
34 <output ftype="csv" name="outputPath"> | |
35 <assert_contents> | |
36 <has_n_lines n="9"/> | |
37 <has_line_matching expression="B,1.0,0.0,Infinity,2.0,1.0,Infinity,2.0,Infinity" n="1"/> | |
38 </assert_contents> | |
39 </output> | |
40 </test> | |
41 <test> | |
42 <param name="inputPath" value="toy_model.xml"/> | |
43 <param name="sideCompoundFile" value="sides.txt"/> | |
44 <param name="degree" value="true"/> | |
45 <param name="undirected" value="true"/> | |
46 <output ftype="csv" name="outputPath"> | |
47 <assert_contents> | |
48 <has_n_lines n="8"/> | |
49 <has_line_matching expression="B,9.0,0.0,13.0,16.0,32.0,17.0,36.0" n="1"/> | |
50 </assert_contents> | |
51 </output> | |
52 </test> | |
53 </tests> | |
54 <help><![CDATA[Create a compound to compound distance matrix. | |
55 The distance between two compounds is computed as the length of the shortest path connecting the two in the compound graph, where two compounds are linked if they are respectively substrate and product of the same reaction. | |
56 An optional edge weighting can be used, turning the distances into the sum of edge weights in the lightest path, rather than the length of the shortest path.The default weighting use target's degree squared. Alternatively, custom weighting can be provided in a file. In that case, edges without weight are ignored during path search. | |
57 If no edge weighting is set, it is recommended to provide a list of side compounds to ignore during network traversal.]]></help> | |
58 </tool> |