Mercurial > repos > bgruening > rdock_rbdock
comparison rbdock.xml @ 6:07fa39ed62c7 draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/rdock commit e9c627440028cfd2c743462927672e0c5e3576aa"
author | bgruening |
---|---|
date | Sat, 25 Apr 2020 08:54:06 -0400 |
parents | a428230b38f6 |
children | c362398df83b |
comparison
equal
deleted
inserted
replaced
5:e4b7d1507a75 | 6:07fa39ed62c7 |
---|---|
1 <tool id="rdock_rbdock" name="rDock docking" version="0.1.3" profile="19.01"> | 1 <tool id="rdock_rbdock" name="rDock docking" version="0.1.4" profile="19.01"> |
2 <description>- perform protein-ligand docking with rDock</description> | 2 <description>- perform protein-ligand docking with rDock</description> |
3 <macros> | 3 <macros> |
4 <import>rdock_macros.xml</import> | 4 <import>rdock_macros.xml</import> |
5 </macros> | 5 </macros> |
6 <expand macro="requirements"/> | 6 <expand macro="requirements"/> |
7 <command><![CDATA[ | 7 <command><![CDATA[ |
8 ln -s '$active_site' receptor.as && | 8 ln -s '$active_site' receptor.as && |
9 ln -s '$receptor' receptor.mol2 && | 9 ln -s '$receptor' receptor.mol2 && |
10 ln -s $receptor_prm receptor.prm && | 10 |
11 #if $custom_rec.custom_rec_select == 'true': | |
12 ## simple check that the receptor file name is correct | |
13 grep -q 'RECEPTOR_FILE receptor.mol2' $custom_rec.prm_file || (echo "Error: a custom receptor.prm file must contain the line 'RECEPTOR_FILE receptor.mol2'" >&2 && exit 1) && | |
14 ln -s '$custom_rec.prm_file' receptor.prm && | |
15 #else | |
16 ln -s '$receptor_prm' receptor.prm && | |
17 #end if | |
18 | |
11 #if $name == 'Y': | 19 #if $name == 'Y': |
12 sdmodify -f_REC '$ligands' > ligands.sdf && | 20 sdmodify -f_REC '$ligands' > ligands.sdf && |
13 #else | 21 #else |
14 ln -s '$ligands' ligands.sdf && | 22 ln -s '$ligands' ligands.sdf && |
15 #end if | 23 #end if |
40 ]]></command> | 48 ]]></command> |
41 | 49 |
42 <configfiles> | 50 <configfiles> |
43 <configfile name="receptor_prm">RBT_PARAMETER_FILE_V1.00 | 51 <configfile name="receptor_prm">RBT_PARAMETER_FILE_V1.00 |
44 RECEPTOR_FILE receptor.mol2 | 52 RECEPTOR_FILE receptor.mol2 |
45 RECEPTOR_FLEX 3.0 | 53 #if $custom_rec.custom_rec_select == 'false': |
54 RECEPTOR_FLEX $custom_rec.flex | |
55 #end if | |
46 </configfile> | 56 </configfile> |
47 </configfiles> | 57 </configfiles> |
48 | 58 |
49 <inputs> | 59 <inputs> |
50 <param type="data" name="receptor" format="mol2" label="Receptor" help="Select a receptor (mol2 format)."/> | 60 <param type="data" name="receptor" format="mol2" label="Receptor" help="Select a receptor (mol2 format)."/> |
51 <param type="data" name="active_site" format="rdock_as" label="Active site" help="Active site file"/> | 61 <param type="data" name="active_site" format="rdock_as" label="Active site" help="Active site file"/> |
52 <param type="data" name="ligands" format="sdf,mol" label="Ligands" help="Ligands in SDF format (or single ligand in MOL format)"/> | 62 <param type="data" name="ligands" format="sdf,mol" label="Ligands" help="Ligands in SDF format (or single ligand in MOL format)"/> |
63 <conditional name="custom_rec"> | |
64 <param name="custom_rec_select" type="select" label="Use a custom receptor.prm file?" help="Useful for more advanced use-cases, such as tethered docking."> | |
65 <option value="true">Use custom receptor.prm file</option> | |
66 <option value="false" selected="true">Use default options (no user upload required)</option> | |
67 </param> | |
68 <when value="true"> | |
69 <param type="data" name="prm_file" format="txt" label="Receptor prm file" help="Note the file must contain the line 'RECEPTOR_FILE receptor.mol2', else the tool will fail."/> | |
70 </when> | |
71 <when value="false"> | |
72 <param name="flex" type="float" value="3.0" min="0.0" label="Receptor flex" help="Value for RECEPTOR_FLEX (default 3)"/> | |
73 </when> | |
74 </conditional> | |
75 | |
53 <param name="num" type="integer" value="10" label="Number of dockings" help="Number of poses to generate"/> | 76 <param name="num" type="integer" value="10" label="Number of dockings" help="Number of poses to generate"/> |
54 <conditional name="filter"> | 77 <conditional name="filter"> |
55 <param name="filter_select" type="select" label="Filter the docking results" help="Using sdfilter"> | 78 <param name="filter_select" type="select" label="Filter the docking results" help="Using sdfilter"> |
56 <option value="filter">Show filter options</option> | 79 <option value="filter">Show filter options</option> |
57 <option value="no_filter">No filtering</option> | 80 <option value="no_filter">No filtering</option> |
78 <test expect_failure="true" expect_exit_code="23"> | 101 <test expect_failure="true" expect_exit_code="23"> |
79 <param name="receptor" value="receptor.mol2"/> | 102 <param name="receptor" value="receptor.mol2"/> |
80 <param name="ligands" value="broken_ligand.sdf"/> | 103 <param name="ligands" value="broken_ligand.sdf"/> |
81 <param name="active_site" value="receptor.as"/> | 104 <param name="active_site" value="receptor.as"/> |
82 <param name="num" value="3"/> | 105 <param name="num" value="3"/> |
106 <param name="flex" value="3"/> | |
83 <param name="seed" value="3"/> | 107 <param name="seed" value="3"/> |
84 <conditional name="filter"> | 108 <conditional name="filter"> |
85 <param name="filter_select" value="filter"/> | 109 <param name="filter_select" value="filter"/> |
86 <param name="top" value="1"/> | 110 <param name="top" value="1"/> |
87 </conditional> | 111 </conditional> |
90 <test> | 114 <test> |
91 <param name="receptor" value="receptor.mol2"/> | 115 <param name="receptor" value="receptor.mol2"/> |
92 <param name="ligands" value="ligands_names.sdf"/> | 116 <param name="ligands" value="ligands_names.sdf"/> |
93 <param name="active_site" value="receptor.as"/> | 117 <param name="active_site" value="receptor.as"/> |
94 <param name="num" value="3"/> | 118 <param name="num" value="3"/> |
119 <param name="flex" value="3"/> | |
95 <param name="seed" value="3"/> | 120 <param name="seed" value="3"/> |
96 <conditional name="filter"> | 121 <conditional name="filter"> |
97 <param name="filter_select" value="filter"/> | 122 <param name="filter_select" value="filter"/> |
98 <param name="top" value="1"/> | 123 <param name="top" value="1"/> |
99 </conditional> | 124 </conditional> |
108 <test> | 133 <test> |
109 <param name="receptor" value="receptor.mol2"/> | 134 <param name="receptor" value="receptor.mol2"/> |
110 <param name="ligands" value="ligands_nonames.sdf"/> | 135 <param name="ligands" value="ligands_nonames.sdf"/> |
111 <param name="active_site" value="receptor.as"/> | 136 <param name="active_site" value="receptor.as"/> |
112 <param name="num" value="3"/> | 137 <param name="num" value="3"/> |
138 <param name="flex" value="3"/> | |
113 <param name="seed" value="3"/> | 139 <param name="seed" value="3"/> |
114 <conditional name="filter"> | 140 <conditional name="filter"> |
115 <param name="filter_select" value="filter"/> | 141 <param name="filter_select" value="filter"/> |
116 <param name="top" value="1"/> | 142 <param name="top" value="1"/> |
117 </conditional> | 143 </conditional> |
127 <test> | 153 <test> |
128 <param name="receptor" value="receptor.mol2"/> | 154 <param name="receptor" value="receptor.mol2"/> |
129 <param name="ligands" value="ligands_nonames.sdf"/> | 155 <param name="ligands" value="ligands_nonames.sdf"/> |
130 <param name="active_site" value="receptor.as"/> | 156 <param name="active_site" value="receptor.as"/> |
131 <param name="num" value="3"/> | 157 <param name="num" value="3"/> |
158 <param name="flex" value="3"/> | |
132 <param name="seed" value="3"/> | 159 <param name="seed" value="3"/> |
133 <conditional name="filter"> | 160 <conditional name="filter"> |
134 <param name="filter_select" value="no_filter"/> | 161 <param name="filter_select" value="no_filter"/> |
135 </conditional> | 162 </conditional> |
136 <param name="name" value="true"/> | 163 <param name="name" value="true"/> |
144 <test> | 171 <test> |
145 <param name="receptor" value="receptor.mol2"/> | 172 <param name="receptor" value="receptor.mol2"/> |
146 <param name="ligands" value="ligands_names.sdf"/> | 173 <param name="ligands" value="ligands_names.sdf"/> |
147 <param name="active_site" value="receptor.as"/> | 174 <param name="active_site" value="receptor.as"/> |
148 <param name="num" value="1"/> | 175 <param name="num" value="1"/> |
176 <param name="flex" value="3"/> | |
149 <param name="seed" value="3"/> | 177 <param name="seed" value="3"/> |
150 <conditional name="filter"> | 178 <conditional name="filter"> |
151 <param name="filter_select" value="filter"/> | 179 <param name="filter_select" value="filter"/> |
152 <param name="score" value="10"/> | 180 <param name="score" value="10"/> |
153 <param name="nscore" value="1"/> | 181 <param name="nscore" value="1"/> |
157 <assert_contents> | 185 <assert_contents> |
158 <has_text text="Rbt.Current_Directory"/> | 186 <has_text text="Rbt.Current_Directory"/> |
159 <has_n_lines n="352"/> | 187 <has_n_lines n="352"/> |
160 </assert_contents> | 188 </assert_contents> |
161 </output> | 189 </output> |
190 </test> | |
191 <!-- test with custom receptor.prm --> | |
192 <test> | |
193 <param name="receptor" value="receptor.mol2"/> | |
194 <param name="ligands" value="ligands_names.sdf"/> | |
195 <param name="active_site" value="receptor.as"/> | |
196 <param name="custom_rec_select" value="true"/> | |
197 <param name="prm_file" value="receptor.prm"/> | |
198 <param name="num" value="1"/> | |
199 <param name="seed" value="3"/> | |
200 <conditional name="filter"> | |
201 <param name="filter_select" value="filter"/> | |
202 <param name="score" value="10"/> | |
203 <param name="nscore" value="1"/> | |
204 </conditional> | |
205 <param name="name"/> | |
206 <output name="output"> | |
207 <assert_contents> | |
208 <has_text text="Rbt.Current_Directory"/> | |
209 <has_n_lines n="352"/> | |
210 </assert_contents> | |
211 </output> | |
212 </test> | |
213 <!-- test with custom but broken receptor.prm --> | |
214 <test expect_failure="true" expect_exit_code="1"> | |
215 <param name="receptor" value="receptor.mol2"/> | |
216 <param name="ligands" value="ligands_names.sdf"/> | |
217 <param name="active_site" value="receptor.as"/> | |
218 <param name="custom_rec_select" value="true"/> | |
219 <param name="prm_file" value="wrong_receptor.prm"/> | |
220 <param name="num" value="1"/> | |
221 <param name="seed" value="3"/> | |
222 <conditional name="filter"> | |
223 <param name="filter_select" value="no_filter"/> | |
224 </conditional> | |
225 <param name="name"/> | |
162 </test> | 226 </test> |
163 </tests> | 227 </tests> |
164 <help><![CDATA[ | 228 <help><![CDATA[ |
165 | 229 |
166 .. class:: infomark | 230 .. class:: infomark |