annotate rrparser.xml @ 10:c3f0d59faed3 draft

planemo upload for repository https://github.com/brsynth/rrparser commit 2e4d2ba5eca95b744202f7a9d3a5a374c5215c61-dirty
author tduigou
date Wed, 02 Apr 2025 12:25:00 +0000
parents eb8ee05a9b52
children 17fbb6aa450b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
c3f0d59faed3 planemo upload for repository https://github.com/brsynth/rrparser commit 2e4d2ba5eca95b744202f7a9d3a5a374c5215c61-dirty
tduigou
parents: 9
diff changeset
1 <tool id="rrparser" name="RRules Parser" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="24.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>
10
c3f0d59faed3 planemo upload for repository https://github.com/brsynth/rrparser commit 2e4d2ba5eca95b744202f7a9d3a5a374c5215c61-dirty
tduigou
parents: 9
diff changeset
4 <token name="@VERSION_SUFFIX@">2</token>
8
d72f31975a06 planemo upload for repository https://github.com/brsynth/rrparser commit fbd6dda00a593fe34e82585ad32cf99ce6a989c9
tduigou
parents: 7
diff changeset
5 <token name="@TOOL_VERSION@">2.7.0</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
9
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
23 --diameters '$adv.diameters'
1
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:-.}"
9
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
26 #if str($adv.compress) == "true":
1
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
9
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
32 #if str($adv.input_conditional_ec.input_type) == "in"
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
33 --ec '$adv.input_conditional_ec.input_ec_in'
7
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
34 #end if
9
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
35 #if str($adv.input_conditional_ec.input_type) == "out"
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
36 --ecx '$adv.input_conditional_ec.input_ec_out'
7
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
37 #end if
9
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
38 #if $adv.input_scores_file
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
39 --scores '$adv.input_scores_file'
8
d72f31975a06 planemo upload for repository https://github.com/brsynth/rrparser commit fbd6dda00a593fe34e82585ad32cf99ce6a989c9
tduigou
parents: 7
diff changeset
40 #end if
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
41 ]]></command>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
42 <inputs>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
43 <conditional name="rules">
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
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">
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
45 <option value="retro" selected="True">RetroRules (retro)</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
46 <option value="forward">RetroRules (forward)</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
47 <option value="all">RetroRules (all)</option>
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
48 <option value="rules-file">Other reaction rules...</option>
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
49 </param>
5
ada9a9847d10 planemo upload for repository https://github.com/brsynth/rrparser commit 2e8aa2e7c0581c7eed2074d15f7e4317ecde2ad6
tduigou
parents: 4
diff changeset
50 <when value="retro"/>
ada9a9847d10 planemo upload for repository https://github.com/brsynth/rrparser commit 2e8aa2e7c0581c7eed2074d15f7e4317ecde2ad6
tduigou
parents: 4
diff changeset
51 <when value="forward"/>
ada9a9847d10 planemo upload for repository https://github.com/brsynth/rrparser commit 2e8aa2e7c0581c7eed2074d15f7e4317ecde2ad6
tduigou
parents: 4
diff changeset
52 <when value="all"/>
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
53 <when value="rules-file">
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
54 <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
55 <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
56 <option value="csv" selected="True">csv</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
57 <option value="tsv">tsv</option>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
58 </param>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
59 </when>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
60 </conditional>
9
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
61 <section name="adv" title="Advanced Options" expanded="false" >
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
62 <param name="compress" type="boolean" checked="false" label="Compress output" />
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
63 <param name="input_scores_file" type="data" format="csv" optional="True" label="Score File" help="Filename containing rules names and scores" />
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
64 <conditional name="input_conditional_ec">
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
65 <param name="input_type" type="select" label="Filter based on EC number">
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
66 <option value="no" selected="True">No</option>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
67 <option value="in">EC numbers to keep</option>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
68 <option value="out">EC numbers to remove</option>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
69 </param>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
70 <when value="no" />
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
71 <when value="in">
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
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" />
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
73 </when>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
74 <when value="out">
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
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" />
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
76 </when>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
77 </conditional>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
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">
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
79 <option selected="true" value="2">2</option>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
80 <option selected="true" value="4">4</option>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
81 <option selected="true" value="6">6</option>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
82 <option selected="true" value="8">8</option>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
83 <option selected="true" value="10">10</option>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
84 <option selected="true" value="12">12</option>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
85 <option selected="true" value="14">14</option>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
86 <option selected="true" value="16">16</option>
7
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
87 </param>
9
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
88 </section>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
89
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
90 </inputs>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
91 <outputs>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
92 <data name="out_rules" format="csv" label="${tool.name}(${rules.type}, d=$diameters)" >
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
93 <change_format>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
94 <when input="compress" format="tar" value="true"/>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
95 </change_format>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
96 </data>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
97 </outputs>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
98 <tests>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
99 <test>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
100 <!-- test 1: check if identical outputs are produced with default parameters-->
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
101 <output name="out_rules" md5="54806bd44f7a8414e78439e3bb99e6d8"/>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
102 </test>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
103 <test>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
104 <!-- test 2: check if identical outputs are produced with diameters=2,4,6-->
9
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
105 <section name="adv">
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
106 <param name="diameters" value="2,4,6"/>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
107 </section>
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
108 <output name="out_rules" md5="12a55e1a3c7822a35ed799afa59b2aa2"/>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
109 </test>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
110 <test>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
111 <!-- test 3: check if identical outputs are produced with csv input rules file-->
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
112 <conditional name="rules">
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
113 <param name="type" value="rules-file"/>
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
114 <param name="file" value="rules_in.csv" />
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
115 </conditional>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
116 <output name="out_rules" file="rules_out.csv" ftype="csv" compare="diff"/>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
117 </test>
7
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
118 <test>
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
119 <!-- test 4 -->
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
120 <conditional name="rules">
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
121 <param name="type" value="rules-file"/>
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
122 <param name="file" value="rules_in.csv" />
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
123 </conditional>
9
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
124 <section name="adv">
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
125 <conditional name="input_conditional_ec">
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
126 <param name="input_type" value="in"/>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
127 <param name="input_ec_in" value="ec.csv"/>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
128 </conditional>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
129 </section>
7
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
130 <output name="out_rules" file="test.4.output.csv" ftype="csv" compare="diff"/>
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
131 </test>
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
132 <test>
8
d72f31975a06 planemo upload for repository https://github.com/brsynth/rrparser commit fbd6dda00a593fe34e82585ad32cf99ce6a989c9
tduigou
parents: 7
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 -->
7
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
134 <conditional name="rules">
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
135 <param name="type" value="rules-file"/>
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
136 <param name="file" value="rules_in.csv" />
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
137 </conditional>
9
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
138 <section name="adv">
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
139 <conditional name="input_conditional_ec">
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
140 <param name="input_type" value="out"/>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
141 <param name="input_ec_out" value="ec.csv"/>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
142 </conditional>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
143 </section>
7
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
144 <output name="out_rules" file="test.5.output.csv" ftype="csv" compare="diff"/>
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
tduigou
parents: 5
diff changeset
145 </test>
8
d72f31975a06 planemo upload for repository https://github.com/brsynth/rrparser commit fbd6dda00a593fe34e82585ad32cf99ce6a989c9
tduigou
parents: 7
diff changeset
146 <test>
9
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
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 -->
8
d72f31975a06 planemo upload for repository https://github.com/brsynth/rrparser commit fbd6dda00a593fe34e82585ad32cf99ce6a989c9
tduigou
parents: 7
diff changeset
148 <conditional name="rules">
d72f31975a06 planemo upload for repository https://github.com/brsynth/rrparser commit fbd6dda00a593fe34e82585ad32cf99ce6a989c9
tduigou
parents: 7
diff changeset
149 <param name="type" value="rules-file"/>
d72f31975a06 planemo upload for repository https://github.com/brsynth/rrparser commit fbd6dda00a593fe34e82585ad32cf99ce6a989c9
tduigou
parents: 7
diff changeset
150 <param name="file" value="rules_in.csv" />
d72f31975a06 planemo upload for repository https://github.com/brsynth/rrparser commit fbd6dda00a593fe34e82585ad32cf99ce6a989c9
tduigou
parents: 7
diff changeset
151 </conditional>
9
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
152 <section name="adv" >
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
153 <param name="input_scores_file" value="scores.csv" />
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
154 </section>
eb8ee05a9b52 planemo upload for repository https://github.com/brsynth/rrparser commit b06816a566855a3f5c83b85fed0923853e562549-dirty
tduigou
parents: 8
diff changeset
155 <output name="out_rules" file="rules_scores.csv" ftype="csv" compare="diff"/>
8
d72f31975a06 planemo upload for repository https://github.com/brsynth/rrparser commit fbd6dda00a593fe34e82585ad32cf99ce6a989c9
tduigou
parents: 7
diff changeset
156 </test>
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
157 </tests>
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
158 <help><![CDATA[
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
159 RRulesParser
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
160 ============
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
161
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
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).
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
163
7
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
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.
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
165
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
166 Input
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
167 -----
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
168
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
169 * **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
170 * **rules-file**: (string) Filename of reaction rules provided in csv or tsv format.
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
diff changeset
171 * **input_format**: (string) input file format (csv: default, tsv)
1
ea590c609fec "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
de7b4c226b02 planemo upload for repository https://github.com/brsynth/rrparser commit a57357b9a0a5a7f5a4ac0e6fe3d00233afd11327
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.
8
d72f31975a06 planemo upload for repository https://github.com/brsynth/rrparser commit fbd6dda00a593fe34e82585ad32cf99ce6a989c9
tduigou
parents: 7
diff changeset
174 * **Scores file**: file containing rules names and scores
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
175
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
176 Ouput
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
177 -----
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
178
2
092545561208 "planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
tduigou
parents: 1
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.
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
180 ]]></help>
4
71ee7ebb4a67 planemo upload commit 7165071f816fde476feb2b6838d9f431c198f532
tduigou
parents: 3
diff changeset
181 <creator>
71ee7ebb4a67 planemo upload commit 7165071f816fde476feb2b6838d9f431c198f532
tduigou
parents: 3
diff changeset
182 <organization name="BioRetroSynth" url="https://github.com/brsynth"/>
71ee7ebb4a67 planemo upload commit 7165071f816fde476feb2b6838d9f431c198f532
tduigou
parents: 3
diff changeset
183 </creator>
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
184 <citations>
5
ada9a9847d10 planemo upload for repository https://github.com/brsynth/rrparser commit 2e8aa2e7c0581c7eed2074d15f7e4317ecde2ad6
tduigou
parents: 4
diff changeset
185 <citation type="doi">10.1093/nar/gky940</citation>
1
ea590c609fec "planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
tduigou
parents:
diff changeset
186 </citations>
4
71ee7ebb4a67 planemo upload commit 7165071f816fde476feb2b6838d9f431c198f532
tduigou
parents: 3
diff changeset
187 </tool>