Mercurial > repos > metexplore > met4j
annotate tools/networkAnalysis/DistanceMatrix/DistanceMatrix.xml @ 2:e69a78624877 draft
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit cb957f5d5540a48293fe8487c0cfad78ab439d7c
author | metexplore |
---|---|
date | Tue, 19 Jul 2022 14:20:07 +0000 |
parents | 9b162ee6ff8e |
children | 6bd9aad9626d |
rev | line source |
---|---|
0
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
1 <?xml version="1.0" encoding="UTF-8"?> |
2
e69a78624877
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit cb957f5d5540a48293fe8487c0cfad78ab439d7c
metexplore
parents:
1
diff
changeset
|
2 <tool id="met4j_DistanceMatrix" name="DistanceMatrix" version="1.0.1"> |
0
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
3 <description>Create a compound to compound distance matrix.</description> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
4 <xrefs> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
5 <xref type="bio.tools">met4j</xref> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
6 </xrefs> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
7 <requirements> |
2
e69a78624877
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit cb957f5d5540a48293fe8487c0cfad78ab439d7c
metexplore
parents:
1
diff
changeset
|
8 <container type="singularity">oras://registry.forgemia.inra.fr/metexplore/met4j/met4j-singularity:1.0.1</container> |
0
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
9 </requirements> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh networkAnalysis.DistanceMatrix -i "$inputPath" |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
11 #if str($sideCompoundFile) != 'None': |
1
9b162ee6ff8e
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 12798951d21c3b2b13514b38148b2848cb422c95
metexplore
parents:
0
diff
changeset
|
12 -sc "$sideCompoundFile" |
9b162ee6ff8e
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 12798951d21c3b2b13514b38148b2848cb422c95
metexplore
parents:
0
diff
changeset
|
13 #end if |
9b162ee6ff8e
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 12798951d21c3b2b13514b38148b2848cb422c95
metexplore
parents:
0
diff
changeset
|
14 #if str($seedFile) != 'None': |
9b162ee6ff8e
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 12798951d21c3b2b13514b38148b2848cb422c95
metexplore
parents:
0
diff
changeset
|
15 -s "$seedFile" |
0
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
16 #end if |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
17 $degree |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
18 #if str($weightFile) != 'None': |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
19 -w "$weightFile" |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
20 #end if |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
21 $undirected |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
22 -o "$outputPath" |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
23 ]]></command> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
24 <inputs> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
25 <param argument="-i" format="sbml" label="input SBML file" name="inputPath" optional="false" type="data" value=""/> |
2
e69a78624877
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit cb957f5d5540a48293fe8487c0cfad78ab439d7c
metexplore
parents:
1
diff
changeset
|
26 <param argument="-sc" format="txt" label="an optional file containing list of side compounds to ignore" name="sideCompoundFile" optional="true" type="data" value=""/> |
e69a78624877
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit cb957f5d5540a48293fe8487c0cfad78ab439d7c
metexplore
parents:
1
diff
changeset
|
27 <param argument="-s" format="txt" label="an optional file containing list of compounds of interest. The returned distance matrix contains only the corresponding rows and columns" name="seedFile" optional="true" type="data" value=""/> |
0
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
28 <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"/> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
29 <param argument="-w" format="tsv" label="an optional file containing weights for compound pairs" name="weightFile" optional="true" type="data" value=""/> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
30 <param argument="-u" checked="false" falsevalue="" label="Ignore reaction direction" name="undirected" truevalue="-u" type="boolean" value="false"/> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
31 </inputs> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
32 <outputs> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
33 <data format="csv" name="outputPath"/> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
34 </outputs> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
35 <tests> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
36 <test> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
37 <param name="inputPath" value="toy_model.xml"/> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
38 <output ftype="csv" name="outputPath"> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
39 <assert_contents> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
40 <has_n_lines n="9"/> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
41 <has_line_matching expression="B,1.0,0.0,Infinity,2.0,1.0,Infinity,2.0,Infinity" n="1"/> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
42 </assert_contents> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
43 </output> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
44 </test> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
45 <test> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
46 <param name="inputPath" value="toy_model.xml"/> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
47 <param name="sideCompoundFile" value="sides.txt"/> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
48 <param name="degree" value="true"/> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
49 <param name="undirected" value="true"/> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
50 <output ftype="csv" name="outputPath"> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
51 <assert_contents> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
52 <has_n_lines n="8"/> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
53 <has_line_matching expression="B,9.0,0.0,13.0,16.0,32.0,17.0,36.0" n="1"/> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
54 </assert_contents> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
55 </output> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
56 </test> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
57 </tests> |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
58 <help><![CDATA[Create a compound to compound distance matrix. |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
59 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. |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
60 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. |
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
61 If no edge weighting is set, it is recommended to provide a list of side compounds to ignore during network traversal.]]></help> |
1
9b162ee6ff8e
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 12798951d21c3b2b13514b38148b2848cb422c95
metexplore
parents:
0
diff
changeset
|
62 <citations/> |
0
dcd16521b969
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
metexplore
parents:
diff
changeset
|
63 </tool> |