annotate sort_filter.xml @ 6:d1ca4b45f615 draft default tip

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 944ea4bb8a9cd4244152a4a4fecd0485fabc2ad0"
author bgruening
date Tue, 28 Jul 2020 08:45:01 -0400
parents a6ec6c55267e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
d1ca4b45f615 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 944ea4bb8a9cd4244152a4a4fecd0485fabc2ad0"
bgruening
parents: 2
diff changeset
1 <tool id="rdock_sort_filter" name="rDock docking" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@">
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>
6
d1ca4b45f615 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 944ea4bb8a9cd4244152a4a4fecd0485fabc2ad0"
bgruening
parents: 2
diff changeset
5 <token name="@GALAXY_VERSION@">0</token>
0
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
6 </macros>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
7 <expand macro="requirements"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
8 <command><![CDATA[
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
9
2
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
10 cat '$input'
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
11 #if $filter
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
12 | sdfilter -f'$filter'
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
13 #end if
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
14 #if $name_field
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
15 | sdsort -n $descending -s -f'$sort_field' -id'$name_field'
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
16 | sdfilter -f'\$_COUNT <= $top' -s'$name_field'
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
17 #end if
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
18 #if $global_sort and $sort_field
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
19 | sdsort -n $descending -f'$sort_field'
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
20 #end if
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
21 > '$output'
0
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
22
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
23 ]]></command>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
24
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
25 <inputs>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
26 <param type="data" name="input" format="sdf" label="Molecules" help="Molecules in SDF format"/>
2
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
27
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
28 <param name="filter" type="text" label="Filter expression" optional="true" help="Perl expression for filter">
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
29 <sanitizer>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
30 <valid initial="string.printable">
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
31 <remove value="&apos;"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
32 <remove value="&quot;"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
33 <remove value="@"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
34 <remove value="#"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
35 <remove value="|"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
36 </valid>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
37 <mapping initial="none"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
38 </sanitizer>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
39 </param>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
40
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
41 <param name="sort_field" type="text" label="Field to sort on" optional="true" help="Name of the field to sort records by">
0
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
42 <sanitizer>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
43 <valid initial="string.printable">
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
44 <remove value="&apos;"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
45 </valid>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
46 <mapping initial="none"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
47 </sanitizer>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
48 </param>
2
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
49 <param name="descending" type="boolean" label="Sort descending" truevalue="-r" falsevalue="" checked="true"
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
50 help="Sort ascending or descending"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
51 <param name="global_sort" type="boolean" label="Global sort" checked="true"
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
52 help="Sort all records in file after filtering (true) or just sort within the blocks identified by $name_field (false)"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
53
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
54 <param name="name_field" type="text" label="Grouping field name" optional="true" help="Name of the field to group records by (must be sequential)">
0
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
55 <sanitizer>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
56 <valid initial="string.printable">
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
57 <remove value="&apos;"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
58 </valid>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
59 <mapping initial="none"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
60 </sanitizer>
2
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
61 </param>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
62 <param name="top" type="integer" value="1" label="Number of records to keep in output" optional="true" help="Number of best scoring records to keep"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
63
0
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
64 </inputs>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
65 <outputs>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
66 <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
67 </outputs>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
68 <tests>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
69 <test>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
70 <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
71 <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
72 <param name="name_field" value="Name"/>
2
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
73 <param name="descending" value="True"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
74 <output name="output" file="poses-descending.sdf" ftype="sdf"/>
0
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
75 </test>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
76 <test>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
77 <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
78 <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
79 <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
80 <param name="descending" value="False"/>
2
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
81 <output name="output" file="poses-ascending.sdf" ftype="sdf"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
82 </test>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
83 <test>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
84 <param name="input" value="poses.sdf"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
85 <param name="filter" value="$TransFSScore > 0.2"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
86 <param name="sort_field" value="TransFSScore"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
87 <param name="name_field" value="Name"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
88 <param name="descending" value="False"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
89 <output name="output" file="poses-filt-0.2.sdf" ftype="sdf"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
90 </test>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
91 <test>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
92 <param name="input" value="poses.sdf"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
93 <param name="filter" value="$TransFSScore > 0.1 and $TransFSScore > 0.2"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
94 <param name="sort_field" value="TransFSScore"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
95 <param name="name_field" value="Name"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
96 <param name="descending" value="False"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
97 <output name="output" file="poses-filt-0.2.sdf" ftype="sdf"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
98 </test>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
99 <test>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
100 <param name="input" value="poses.sdf"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
101 <param name="sort_field" value="TransFSScore"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
102 <param name="name_field" value="Name"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
103 <param name="descending" value="True"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
104 <param name="global_sort" value="False"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
105 <output name="output" file="poses-desc-noglobal.sdf" ftype="sdf"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
106 </test>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
107 <test>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
108 <param name="input" value="poses.sdf"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
109 <param name="filter" value="$TransFSScore > 0.2"/>
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
110 <output name="output" file="poses-filt-only.sdf" ftype="sdf"/>
0
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
111 </test>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
112 </tests>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
113 <help><![CDATA[
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
114
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
115 .. class:: infomark
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
116
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
117 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
118 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
119 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
120
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
121 -----
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
122
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
123 .. class:: infomark
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
124
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
125 **Inputs**
2
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
126 An SD-file, together with names of fields to filter, sort and group records by, and the number of records to appear in the output.
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
127
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
128 An optional filter can be specified that is first applied to the records. This filter (the 'filter' parameter) must be
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
129 specified as required by the 'sdfilter' application (see http://rdock.sourceforge.net/wp-content/uploads/2015/08/rDock_User_Guide.pdf)
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
130 which is a Perl expression. As an example, if your SDF has a field name 'SCORE' which has numeric values then a valid
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
131 filter expression would be '$SCORE > 90' (note the $ symbol).
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
132 If you require to use multiple filters then you can combine them in a single expression like this:
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
133 '$A < 5 and $B <7', or '$A < 5 or $B <7'
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
134
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
135 The sorting is then performed on groups of molecules, with the groups being identified by a field in the SD-file (the 'name_field'
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
136 parameter). Records from a group MUST be sequential in the input file. If 'name_field' is not specified then this grouping
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
137 and sorting step is skipped. Sorting is performed by the rDock 'sdsort' application.
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
138 The records within each group are sorted by the value of a field in the SD-file (the 'sort_field' parameter) and you can
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
139 specify ascending or descending order (the 'descending' parameter).
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
140 Then a number of top scoring (the 'top' parameter, typically having a value of 1) are retained.
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
141
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
142 Finally, if the 'global_sort' parameter is set to 'True' then the all the records remaining are sorted according to the
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
143 'sort_field' and 'descending' parameters. Note: this step can use lots of memory if the files are very big.
0
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
144
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
145 -----
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
146
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
147 .. class:: infomark
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
148
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
149 **Outputs**
2
a6ec6c55267e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit db76c3bc4ced257e2f622fcf8fcc6d2e28de3577"
bgruening
parents: 0
diff changeset
150 An SD-file, containing molecules filtered and sorted according to the parameters.
0
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
151
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
152 ]]></help>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
153 <expand macro="citations"/>
784a9f7f079e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit 9ffbed897a816616ac05c479dcff75103cf9a7e8"
bgruening
parents:
diff changeset
154 </tool>