annotate rrparser.xml @ 6:77845de246f9 draft default tip

planemo upload for repository https://github.com/brsynth/rrparser commit 1e01b679611d980f87089184e7d8a538b96d68c7
author tduigou
date Tue, 30 May 2023 21:11:27 +0000
parents ada9a9847d10
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
71ee7ebb4a67 planemo upload commit 7165071f816fde476feb2b6838d9f431c198f532
tduigou
parents: 3
diff changeset
1 <tool id="rrparser" name="RRules Parser" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.09" license="MIT">
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
2 <description>Retrieve the reaction rules from RetroRules</description>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
3 <macros>
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
4 <token name="@VERSION_SUFFIX@">0</token>
4
71ee7ebb4a67 planemo upload commit 7165071f816fde476feb2b6838d9f431c198f532
tduigou
parents: 3
diff changeset
5 <token name="@TOOL_VERSION@">2.5.2</token>
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
6 </macros>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
7 <requirements>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
8 <requirement type="package" version="@TOOL_VERSION@">rrparser</requirement>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
9 </requirements>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
10 <stdio>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
11 <regex match="WARNING:" level="warning" />
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
12 <regex match="ERROR:" level="fatal" />
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
13 </stdio>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
14 <command detect_errors="exit_code"><![CDATA[
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
15 python -m rrparser
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
16 #if str($rules.type) != "rules-file":
3
dd0dfd2cb8a8 planemo upload commit 9c19f737cd6e2152151c8bf97a53ab1afe51a4a0
tduigou
parents: 2
diff changeset
17 --rules_file retrorules
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
18 --rule-type '$rules.type'
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
19 #else:
3
dd0dfd2cb8a8 planemo upload commit 9c19f737cd6e2152151c8bf97a53ab1afe51a4a0
tduigou
parents: 2
diff changeset
20 --rules_file '$rules.file'
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
21 --input-format '$rules.input_format'
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
22 #end if
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
23 --diameters '$diameters'
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
24 --output-format csv
3
dd0dfd2cb8a8 planemo upload commit 9c19f737cd6e2152151c8bf97a53ab1afe51a4a0
tduigou
parents: 2
diff changeset
25 --rules-dir "\${TMPDIR:-.}"
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
26 #if str($compress) == "true":
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
27 --outfile '$out_rules'.csv.gz
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
28 && mv '$out_rules'.csv.gz '$out_rules'
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
29 #else:
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
30 --outfile '$out_rules'
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
31 #end if
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
32 ]]></command>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
33 <inputs>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
34 <conditional name="rules">
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
35 <param name="type" type="select" label="Rule Type" help="Return the rules that are in reverse, forward, both direction or from an input user file">
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
36 <option value="retro" selected="True">RetroRules (retro)</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
37 <option value="forward">RetroRules (forward)</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
38 <option value="all">RetroRules (all)</option>
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
39 <option value="rules-file">Other reaction rules...</option>
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
40 </param>
5
ada9a9847d10 planemo upload for repository https://github.com/brsynth/rrparser commit 2e8aa2e7c0581c7eed2074d15f7e4317ecde2ad6
tduigou
parents: 4
diff changeset
41 <when value="retro"/>
ada9a9847d10 planemo upload for repository https://github.com/brsynth/rrparser commit 2e8aa2e7c0581c7eed2074d15f7e4317ecde2ad6
tduigou
parents: 4
diff changeset
42 <when value="forward"/>
ada9a9847d10 planemo upload for repository https://github.com/brsynth/rrparser commit 2e8aa2e7c0581c7eed2074d15f7e4317ecde2ad6
tduigou
parents: 4
diff changeset
43 <when value="all"/>
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
44 <when value="rules-file">
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
45 <param name="file" type="data" format="csv" optional="False" label="Rules File" help="Filename of reaction rules"/>
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
46 <param name="input_format" type="select" optional="False" label="File format" help="Input file format (default: csv)">
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
47 <option value="csv" selected="True">csv</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
48 <option value="tsv">tsv</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
49 </param>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
50 </when>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
51 </conditional>
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
52 <param argument="--diameters" type="select" display="checkboxes" multiple="True" label="Select the diameters of the reactions rules" help=" Diameter of the sphere including the atoms around the reacting center (default is including all values: 2,4,6,8,10,12,14,16). The higher is the diameter, the more specific are the rules">
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
53 <option selected="true" value="2">2</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
54 <option selected="true" value="4">4</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
55 <option selected="true" value="6">6</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
56 <option selected="true" value="8">8</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
57 <option selected="true" value="10">10</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
58 <option selected="true" value="12">12</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
59 <option selected="true" value="14">14</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
60 <option selected="true" value="16">16</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
61 </param>
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
62 <param name="compress" type="boolean" checked="false" label="Compress output" />
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
63 </inputs>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
64 <outputs>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
65 <data name="out_rules" format="csv" label="${tool.name}(${rules.type}, d=$diameters)" >
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
66 <change_format>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
67 <when input="compress" format="tar" value="true"/>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
68 </change_format>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
69 </data>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
70 </outputs>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
71 <tests>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
72 <test>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
73 <!-- test 1: check if identical outputs are produced with default parameters-->
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
74 <output name="out_rules" md5="54806bd44f7a8414e78439e3bb99e6d8"/>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
75 </test>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
76 <test>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
77 <!-- test 2: check if identical outputs are produced with diameters=2,4,6-->
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
78 <param name="diameters" value="2,4,6"/>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
79 <output name="out_rules" md5="12a55e1a3c7822a35ed799afa59b2aa2"/>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
80 </test>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
81 <test>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
82 <!-- test 3: check if identical outputs are produced with csv input rules file-->
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
83 <conditional name="rules">
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
84 <param name="type" value="rules-file"/>
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
85 <param name="file" value="rules_in.csv" />
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
86 </conditional>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
87 <output name="out_rules" file="rules_out.csv" ftype="csv" compare="diff"/>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
88 </test>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
89 </tests>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
90 <help><![CDATA[
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
91 RRulesParser
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
92 ============
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
93
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
94 Retrieve the reaction rules from `RetroRules <https://retrorules.org/>`_ extracted from public databases and expressed in the community-standard SMARTS (SMILES arbitrary target specification) format, augmented by a rule representation at different levels of specificity (the atomic environment around the reaction center).
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
95
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
96 The generated output is a file containing reaction rules which are generic descriptions of chemical reactions that can be used in retrosynthesis workflows (e.g. `Retrosynthesis KNIME Workflow <https://www.myexperiment.org/workflows/4987/versions/2.html>`_) in order to enumerate all possible biosynthetic routes connecting a target molecule to its precursors.
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
97
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
98 Input
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
99 -----
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
100
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
101 * **Rule Type**: (string) Return the rules that are in reverse, forward, both direction or from an input user file
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
102 * **rules-file**: (string) Filename of reaction rules provided in csv or tsv format.
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
103 * **input_format**: (string) input file format (csv: default, tsv)
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
104 * **diameters**: (integer list) diameter of the sphere including the atoms around the reacting center (default is including all values: 2,4,6,8,10,12,14,16). The higher is the diameter, the more specific are the rules
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
105
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
106 Ouput
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
107 -----
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
108
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
109 * **out_rules**: (string): file containing the parsed reactions rules (default=csv). It will be zipped if *Compress output* is set to yes.
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
110 ]]></help>
4
71ee7ebb4a67 planemo upload commit 7165071f816fde476feb2b6838d9f431c198f532
tduigou
parents: 3
diff changeset
111 <creator>
71ee7ebb4a67 planemo upload commit 7165071f816fde476feb2b6838d9f431c198f532
tduigou
parents: 3
diff changeset
112 <organization name="BioRetroSynth" url="https://github.com/brsynth"/>
71ee7ebb4a67 planemo upload commit 7165071f816fde476feb2b6838d9f431c198f532
tduigou
parents: 3
diff changeset
113 </creator>
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
114 <citations>
5
ada9a9847d10 planemo upload for repository https://github.com/brsynth/rrparser commit 2e8aa2e7c0581c7eed2074d15f7e4317ecde2ad6
tduigou
parents: 4
diff changeset
115 <citation type="doi">10.1093/nar/gky940</citation>
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
116 </citations>
4
71ee7ebb4a67 planemo upload commit 7165071f816fde476feb2b6838d9f431c198f532
tduigou
parents: 3
diff changeset
117 </tool>