annotate rrparser.xml @ 7:90e260b93a3a draft

planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
author tduigou
date Wed, 02 Apr 2025 08:16:50 +0000
parents d7882cf07d98
children 2ec2fae2a58d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
d7882cf07d98 planemo upload for repository https://github.com/brsynth/rrparser commit eadd9bb9edbc70361b9e8d7900e6743b37142ee3
tduigou
parents: 4
diff changeset
1 <tool id="rrparser" name="RRules Parser" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.09" license="MIT">
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
2 <description>Retrieve the reaction rules from RetroRules</description>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
3 <macros>
7
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
4 <token name="@VERSION_SUFFIX@">1</token>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
5 <token name="@TOOL_VERSION@">2.7.0</token>
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
6 </macros>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
7 <requirements>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
8 <requirement type="package" version="@TOOL_VERSION@">rrparser</requirement>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
9 </requirements>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
10 <stdio>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
11 <regex match="WARNING:" level="warning" />
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
12 <regex match="ERROR:" level="fatal" />
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
13 </stdio>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
14 <command detect_errors="exit_code"><![CDATA[
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
15 python -m rrparser
4
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
16 #if str($rules.type) != "rules-file":
5
d7882cf07d98 planemo upload for repository https://github.com/brsynth/rrparser commit eadd9bb9edbc70361b9e8d7900e6743b37142ee3
tduigou
parents: 4
diff changeset
17 --rules_file retrorules
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
18 --rule-type '$rules.type'
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
19 #else:
5
d7882cf07d98 planemo upload for repository https://github.com/brsynth/rrparser commit eadd9bb9edbc70361b9e8d7900e6743b37142ee3
tduigou
parents: 4
diff changeset
20 --rules_file '$rules.file'
4
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
21 --input-format '$rules.input_format'
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
22 #end if
7
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
23 --diameters '$adv.diameters'
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
24 --output-format csv
5
d7882cf07d98 planemo upload for repository https://github.com/brsynth/rrparser commit eadd9bb9edbc70361b9e8d7900e6743b37142ee3
tduigou
parents: 4
diff changeset
25 --rules-dir "\${TMPDIR:-.}"
7
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
26 #if str($adv.compress) == "true":
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
27 --outfile '$out_rules'.csv.gz
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
28 && mv '$out_rules'.csv.gz '$out_rules'
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
29 #else:
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
30 --outfile '$out_rules'
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
31 #end if
7
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
32 #if str($adv.input_conditional_ec.input_type) == "in"
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
33 --ec '$adv.input_conditional_ec.input_ec_in'
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
34 #end if
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
35 #if str($adv.input_conditional_ec.input_type) == "out"
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
36 --ecx '$adv.input_conditional_ec.input_ec_out'
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
37 #end if
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
38 #if $adv.input_scores_file
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
39 --scores '$adv.input_scores_file'
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
40 #end if
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
41 ]]></command>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
42 <inputs>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
43 <conditional name="rules">
4
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
44 <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">
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
45 <option value="retro" selected="True">RetroRules (retro)</option>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
46 <option value="forward">RetroRules (forward)</option>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
47 <option value="all">RetroRules (all)</option>
4
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
48 <option value="rules-file">Other reaction rules...</option>
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
49 </param>
5
d7882cf07d98 planemo upload for repository https://github.com/brsynth/rrparser commit eadd9bb9edbc70361b9e8d7900e6743b37142ee3
tduigou
parents: 4
diff changeset
50 <when value="retro"/>
d7882cf07d98 planemo upload for repository https://github.com/brsynth/rrparser commit eadd9bb9edbc70361b9e8d7900e6743b37142ee3
tduigou
parents: 4
diff changeset
51 <when value="forward"/>
d7882cf07d98 planemo upload for repository https://github.com/brsynth/rrparser commit eadd9bb9edbc70361b9e8d7900e6743b37142ee3
tduigou
parents: 4
diff changeset
52 <when value="all"/>
4
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
53 <when value="rules-file">
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
54 <param name="file" type="data" format="csv" optional="False" label="Rules File" help="Filename of reaction rules"/>
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
55 <param name="input_format" type="select" optional="False" label="File format" help="Input file format (default: csv)">
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
56 <option value="csv" selected="True">csv</option>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
57 <option value="tsv">tsv</option>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
58 </param>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
59 </when>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
60 </conditional>
7
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
61 <section name="adv" title="Advanced Options" expanded="false" >
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
62 <param name="compress" type="boolean" checked="false" label="Compress output" />
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
63 <param name="input_scores_file" type="data" format="csv" optional="True" label="Score File" help="Filename containing rules names and scores" />
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
64 <conditional name="input_conditional_ec">
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
65 <param name="input_type" type="select" label="Filter based on EC number">
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
66 <option value="no" selected="True">No</option>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
67 <option value="in">EC numbers to keep</option>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
68 <option value="out">EC numbers to remove</option>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
69 </param>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
70 <when value="no" />
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
71 <when value="in">
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
72 <param name="input_ec_in" type="data" format="csv" label="File containing EC numbers" help="EC numbers on one line separted by a comma" />
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
73 </when>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
74 <when value="out">
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
75 <param name="input_ec_out" type="data" format="csv" label="File containing EC numbers" help="EC numbers on one line separted by a comma" />
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
76 </when>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
77 </conditional>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
78 <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">
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
79 <option selected="true" value="2">2</option>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
80 <option selected="true" value="4">4</option>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
81 <option selected="true" value="6">6</option>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
82 <option selected="true" value="8">8</option>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
83 <option selected="true" value="10">10</option>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
84 <option selected="true" value="12">12</option>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
85 <option selected="true" value="14">14</option>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
86 <option selected="true" value="16">16</option>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
87 </param>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
88 </section>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
89
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
90 </inputs>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
91 <outputs>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
92 <data name="out_rules" format="csv" label="${tool.name}(${rules.type}, d=$diameters)" >
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
93 <change_format>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
94 <when input="compress" format="tar" value="true"/>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
95 </change_format>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
96 </data>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
97 </outputs>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
98 <tests>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
99 <test>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
100 <!-- test 1: check if identical outputs are produced with default parameters-->
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
101 <output name="out_rules" md5="54806bd44f7a8414e78439e3bb99e6d8"/>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
102 </test>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
103 <test>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
104 <!-- test 2: check if identical outputs are produced with diameters=2,4,6-->
7
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
105 <section name="adv">
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
106 <param name="diameters" value="2,4,6"/>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
107 </section>
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
108 <output name="out_rules" md5="12a55e1a3c7822a35ed799afa59b2aa2"/>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
109 </test>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
110 <test>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
111 <!-- test 3: check if identical outputs are produced with csv input rules file-->
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
112 <conditional name="rules">
4
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
113 <param name="type" value="rules-file"/>
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
114 <param name="file" value="rules_in.csv" />
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
115 </conditional>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
116 <output name="out_rules" file="rules_out.csv" ftype="csv" compare="diff"/>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
117 </test>
7
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
118 <test>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
119 <!-- test 4 -->
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
120 <conditional name="rules">
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
121 <param name="type" value="rules-file"/>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
122 <param name="file" value="rules_in.csv" />
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
123 </conditional>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
124 <section name="adv">
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
125 <conditional name="input_conditional_ec">
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
126 <param name="input_type" value="in"/>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
127 <param name="input_ec_in" value="ec.csv"/>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
128 </conditional>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
129 </section>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
130 <output name="out_rules" file="test.4.output.csv" ftype="csv" compare="diff"/>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
131 </test>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
132 <test>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
133 <!-- python -m rrparser -rules_file rules_in.csv -input-format csv -ecx ec.csv -diameters 2,4,6,8,10,12,14,16 -output-format csv -outfile test.5.output.csv -->
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
134 <conditional name="rules">
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
135 <param name="type" value="rules-file"/>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
136 <param name="file" value="rules_in.csv" />
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
137 </conditional>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
138 <section name="adv">
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
139 <conditional name="input_conditional_ec">
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
140 <param name="input_type" value="out"/>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
141 <param name="input_ec_out" value="ec.csv"/>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
142 </conditional>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
143 </section>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
144 <output name="out_rules" file="test.5.output.csv" ftype="csv" compare="diff"/>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
145 </test>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
146 <test>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
147 <!-- python -m rrparser -rules_file rules_in.csv -input-format csv -diameters 2,4,6,8,10,12,14,16 -output-format csv -outfile rules_scores.csv -scores scores.csv -->
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
148 <conditional name="rules">
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
149 <param name="type" value="rules-file"/>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
150 <param name="file" value="rules_in.csv" />
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
151 </conditional>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
152 <section name="adv" >
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
153 <param name="input_scores_file" value="scores.csv" />
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
154 </section>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
155 <output name="out_rules" file="rules_scores.csv" ftype="csv" compare="diff"/>
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
156 </test>
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
157 </tests>
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
158 <help><![CDATA[
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
159 RRulesParser
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
160 ============
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
161
4
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
162 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).
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
163
7
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
164 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.html>`_) in order to enumerate all possible biosynthetic routes connecting a target molecule to its precursors.
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
165
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
166 Input
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
167 -----
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
168
4
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
169 * **Rule Type**: (string) Return the rules that are in reverse, forward, both direction or from an input user file
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
170 * **rules-file**: (string) Filename of reaction rules provided in csv or tsv format.
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
171 * **input_format**: (string) input file format (csv: default, tsv)
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
172 * **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
7
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
173 * **EC numbers to filter**: retain or remove some EC numbers. A file is expected containing EC numbers separated by a comma on the first line.
90e260b93a3a planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 5
diff changeset
174 * **Scores file**: file containing rules names and scores
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
175
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
176 Ouput
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
177 -----
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
178
4
3f39c7d3c14e "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 3
diff changeset
179 * **out_rules**: (string): file containing the parsed reactions rules (default=csv). It will be zipped if *Compress output* is set to yes.
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
180 ]]></help>
5
d7882cf07d98 planemo upload for repository https://github.com/brsynth/rrparser commit eadd9bb9edbc70361b9e8d7900e6743b37142ee3
tduigou
parents: 4
diff changeset
181 <creator>
d7882cf07d98 planemo upload for repository https://github.com/brsynth/rrparser commit eadd9bb9edbc70361b9e8d7900e6743b37142ee3
tduigou
parents: 4
diff changeset
182 <organization name="BioRetroSynth" url="https://github.com/brsynth"/>
d7882cf07d98 planemo upload for repository https://github.com/brsynth/rrparser commit eadd9bb9edbc70361b9e8d7900e6743b37142ee3
tduigou
parents: 4
diff changeset
183 </creator>
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
184 <citations>
5
d7882cf07d98 planemo upload for repository https://github.com/brsynth/rrparser commit eadd9bb9edbc70361b9e8d7900e6743b37142ee3
tduigou
parents: 4
diff changeset
185 <citation type="doi">10.1093/nar/gky940</citation>
3
392f18980ff4 "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
186 </citations>
5
d7882cf07d98 planemo upload for repository https://github.com/brsynth/rrparser commit eadd9bb9edbc70361b9e8d7900e6743b37142ee3
tduigou
parents: 4
diff changeset
187 </tool>