annotate sort_filter.xml @ 1:4812dc209abd draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db567a29443284f2cec1444ec9db9aa6bd913fad"
author bgruening
date Fri, 03 Apr 2020 13:33:32 -0400
parents 784a9f7f079e
children a6ec6c55267e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
1 <tool id="rdock_sort_filter" name="SDF sort and filter" version="0.1.0">
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
2 <description>using the sdsort provided with rDock</description>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
3 <macros>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
4 <import>rdock_macros.xml</import>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
5 </macros>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
6 <expand macro="requirements"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
7 <command><![CDATA[
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
8
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
9 sdsort -n $descending -s -f'$sort_field' -id'$name_field' '$input' |
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
10 sdfilter -f'\$_COUNT <= $top' -s'$name_field' |
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
11 sdsort -n $descending -f'$sort_field' > '$output'
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
12
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
13 ]]></command>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
14
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
15 <inputs>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
16 <param type="data" name="input" format="sdf" label="Molecules" help="Molecules in SDF format"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
17 <param name="top" type="integer" value="1" label="Number of records to keep in output" help="Number of best scoring records to keep"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
18 <param name="sort_field" type="text" label="Field to sort on" optional="false" help="Name of the field to sort records by">
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
19 <sanitizer>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
20 <valid initial="string.printable">
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
21 <remove value="&apos;"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
22 </valid>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
23 <mapping initial="none"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
24 </sanitizer>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
25 </param>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
26 <param name="name_field" type="text" label="Grouping field name" optional="false" help="Name of the field to group records by (must be sequential)">
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
27 <sanitizer>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
28 <valid initial="string.printable">
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
29 <remove value="&apos;"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
30 </valid>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
31 <mapping initial="none"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
32 </sanitizer>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
33 </param>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
34 <param name="descending" type="boolean" label="Sort descending" truevalue="-r" falsevalue="" checked="true"
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
35 help="Generate the name field (first line) for cases where this is empty"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
36 </inputs>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
37 <outputs>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
38 <data name="output" format="sdf" label="SDF sort+filter on ${on_string}"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
39 </outputs>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
40 <tests>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
41 <test>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
42 <param name="input" value="poses.sdf"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
43 <param name="sort_field" value="TransFSScore"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
44 <param name="name_field" value="Name"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
45 <output name="output" file="poses-descending.sdf" ftype="sdf" />
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
46 </test>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
47 <test>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
48 <param name="input" value="poses.sdf"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
49 <param name="sort_field" value="TransFSScore"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
50 <param name="name_field" value="Name"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
51 <param name="descending" value="False"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
52 <output name="output" file="poses-ascending.sdf" ftype="sdf" />
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
53 </test>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
54 </tests>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
55 <help><![CDATA[
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
56
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
57 .. class:: infomark
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
58
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
59 This tool sorts and filters SD files using the sdsort and sdfilter tools from the rDock suite.
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
60 See http://rdock.sourceforge.net/ for more details about rDock and associated programs.
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
61 The expected use is for filtering and sorting virtual screening results such as docking.
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
62
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
63 -----
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
64
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
65 .. class:: infomark
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
66
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
67 **Inputs**
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
68 An SD-file, together with names of fields to sort and group records by, and the number of records to appear in the output.
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
69 The sorting is performed on groups of molecules, with the group being identified by a field in the SDF (the name_field
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
70 parameter). Records from a group MUST be sequential.
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
71 The records within each group are sorted by the value of a field in the SDF (the sort_field parameter) and you can
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
72 specify ascending or descending order (the descending parameter).
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
73 Finally a number of top scoring (the top parameter, typically having a value of 1) are written to the output.
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
74
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
75 -----
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
76
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
77 .. class:: infomark
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
78
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
79 **Outputs**
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
80 An SD-file, containing molecules filtered by the field specified.
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
81
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
82 ]]></help>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
83 <expand macro="citations"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
84 </tool>