comparison retropath2.xml @ 2:8a04f97b785d draft

"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
author tduigou
date Mon, 07 Feb 2022 15:20:35 +0000
parents d3f66245c4a6
children 8e56fc458ca5
comparison
equal deleted inserted replaced
1:d3f66245c4a6 2:8a04f97b785d
1 <tool id="retropath2" name="RetroPath2.0" version="2.0.5"> 1 <tool id="retropath2" name="RetroPath2.0" version="2.3.0">
2 <description>Build a reaction network from a set of source compounds to a set of sink compounds</description> 2 <description>Build a reaction network from a set of source compounds to a set of sink compounds</description>
3 <requirements> 3 <requirements>
4 <requirement type="package" version="2.0.5">retropath2_wrapper</requirement> 4 <requirement type="package" version="2.3.0">retropath2_wrapper</requirement>
5 </requirements> 5 </requirements>
6 <stdio> 6 <stdio>
7 <exit_code range="1" level="fatal" description="Source has been found in the sink" /> 7 <exit_code range="1" level="fatal" description="Source has been found in the sink" />
8 <exit_code range="2" level="fatal" description="Cannot find source-in-sink file" /> 8 <exit_code range="2" level="fatal" description="Cannot find source-in-sink file" />
9 <exit_code range="3" level="fatal" description="Running the RetroPath2.0 Knime program produced an OSError" /> 9 <exit_code range="3" level="fatal" description="Running the RetroPath2.0 Knime program produced an OSError" />
13 <command detect_errors="exit_code"><![CDATA[ 13 <command detect_errors="exit_code"><![CDATA[
14 python -m retropath2_wrapper 14 python -m retropath2_wrapper
15 '$sinkfile' 15 '$sinkfile'
16 '$rulesfile' 16 '$rulesfile'
17 out 17 out
18 --source_inchi '$source_inchi' 18 --source_inchi '$source_inchi_type.source_inchi'
19 #if $source_name: 19 --source_name '$source_name'
20 --source_name '$source_name' 20 --rp2_version '$adv.version'
21 #end if
22 --max_steps '$adv.max_steps' 21 --max_steps '$adv.max_steps'
23 --topx '$adv.topx' 22 --topx '$adv.topx'
24 --dmin '$adv.dmin' 23 --dmin '$adv.dmin'
25 --dmax '$adv.dmax' 24 --dmax '$adv.dmax'
26 --mwmax_source '$adv.mwmax_source' 25 --mwmax_source '$adv.mwmax_source'
31 else 30 else
32 cp out/results.csv '$Reaction_Network'; 31 cp out/results.csv '$Reaction_Network';
33 fi 32 fi
34 ]]></command> 33 ]]></command>
35 <inputs> 34 <inputs>
36 <param name="rulesfile" type="data" format="csv" label="Rules File" /> 35 <param name="rulesfile" type="data" format="csv" label="Rules File"/>
37 <param name="sinkfile" type="data" format="csv" label="Sink File" /> 36 <param name="sinkfile" type="data" format="csv" label="Sink File"/>
38 <param name="source_inchi" type="text" label="Source InChI" optional="false" > 37 <conditional name="source_inchi_type">
39 <validator type="empty_field" message="You must provide the InChI key" /> 38 <param name="inchi_type" type="select" label="InChI type">
40 </param> 39 <!-- <option value="name" selected="true">By name</option> -->
41 <param name="source_name" type="text" value="target" optional="true" label="Source name" /> 40 <option value="string">By string</option>
41 </param>
42 <when value="string">
43 <param name="source_inchi" type="text" label="Source InChI" optional="false">
44 <validator type="empty_field" message="You must provide the InChI string"/>
45 </param>
46 </when>
47 </conditional>
48 <param name="source_name" type="text" value="target" optional="true" label="Source name"/>
42 <section name="adv" title="Advanced Options" expanded="false"> 49 <section name="adv" title="Advanced Options" expanded="false">
43 <param name="max_steps" type="integer" value="3" label="Maximal Pathway length" /> 50 <param name="version" type="select" label="Workflow version">
51 <option value="v9">v9</option>
52 <option value="r20210127">r20210127</option>
53 <option value="r20220104" selected="true">r20220104</option>
54 </param>
55 <param name="max_steps" type="integer" value="3" label="Maximal Pathway length" />
44 <param name="topx" type="integer" value="100" label="TopX" /> 56 <param name="topx" type="integer" value="100" label="TopX" />
45 <param name="dmin" type="integer" value="0" label="Minimum rule diameter" /> 57 <param name="dmin" type="integer" value="0" label="Minimum rule diameter" />
46 <param name="dmax" type="integer" value="1000" label="Maximum rule diameter" /> 58 <param name="dmax" type="integer" value="1000" label="Maximum rule diameter" />
47 <param name="mwmax_source" type="integer" value="1000" label="Molecular weight of source (Da)" /> 59 <param name="mwmax_source" type="integer" value="1000" label="Molecular weight of source (Da)" />
48 <param name="mwmax_cof" type="integer" value="1000" label="Molecular weight of cofactors (Da)" /> 60 <param name="mwmax_cof" type="integer" value="1000" label="Molecular weight of cofactors (Da)" />
71 Input 83 Input
72 ----- 84 -----
73 85
74 Required: 86 Required:
75 87
76
77 * **-sinkfile**\ : (string) Path to the sink file 88 * **-sinkfile**\ : (string) Path to the sink file
78 * **-sourcefile**\ : (string) Path to the source file 89 * **-sourcefile**\ : (string) Path to the source file
79 * **-max_steps**\ : (integer) Maximal number of steps 90 * **-max_steps**\ : (integer) Maximal number of steps
80 * **-rulesfile**\ : (string) Path to the rules file 91 * **-rulesfile**\ : (string) Path to the rules file
81 * **-rulesfile_format**\ : (string) Valid Options: tar, csv. Format of the rules file 92 * **-rulesfile_format**\ : (string) Valid Options: tar, csv. Format of the rules file
82 93
94 The InChI source DB entries are obtained by the following command:
95
96 `cat chem_prop.tsv | awk -F'\\t' '{print "\\t\\t\\t\\t\\t<option value=\\""$6"\\"\\>" "["$1"]\\t " $2 "</option>"}' | sed 's/\\&/\\&amp;/g'`
97
98 where `chem_prop.tsv` has been downloaded on MetaNetX.
99
83 Advanced options: 100 Advanced options:
84
85 101
86 * **-topx**\ : (integer, default: 100) For each iteration, number of rules 102 * **-topx**\ : (integer, default: 100) For each iteration, number of rules
87 * **-dmin**\ : (integer, default: 0) 103 * **-dmin**\ : (integer, default: 0)
88 * **-dmax**\ : (integer, default: 1000) 104 * **-dmax**\ : (integer, default: 1000)
89 * **-mwmax_source**\ : (integer, default: 1000) 105 * **-mwmax_source**\ : (integer, default: 1000)
91 * **-timeout**\ : (integer, default: 30) Timeout in minutes 107 * **-timeout**\ : (integer, default: 30) Timeout in minutes
92 108
93 Output 109 Output
94 ------ 110 ------
95 111
96
97 * **-scope_csv**\ : (string) Path to the output scope csv file 112 * **-scope_csv**\ : (string) Path to the output scope csv file
98
99 Version
100 -------
101
102 v2.0.4
103 113
104 Authors 114 Authors
105 ------- 115 -------
106 116
107 117 * **Joan Hérisson**
108 * **Melchior du Lac** 118 * Melchior du Lac
109 * Joan Hérisson
110 119
111 License 120 License
112 ------- 121 -------
113 122
114 This project is licensed under the MIT License. 123 This project is licensed under the MIT License.
115 124
116 Acknowledgments 125 Acknowledgments
117 --------------- 126 ---------------
118
119 127
120 * Thomas Duigou 128 * Thomas Duigou
121 129
122 ]]></help> 130 ]]></help>
123 <citations> 131 <citations>