annotate rdock.xml @ 1:30e2440b2173 draft

planemo upload
author marpiech
date Mon, 29 Aug 2016 08:38:19 -0400
parents 4cc079c67fab
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
1 <tool id="rdock" name="rdock" version="1.0">
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
2 <description>tail-to-head</description>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
3 <command>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
4 <![CDATA[
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
5 cat $inputmol2 > inputmol2.mol2; cat $inputprm | sed "s|RECEPTOR_FILE.*|RECEPTOR_FILE inputmol2.mol2|g" | sed "s|REF_MOL.*|REF_MOL ligand.sd|g" > new.prm;
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
6 cp -r $__tool_directory__/tools/rdock/data .;
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
7 mkdir data/ligands;
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
8 cp $inputsd data/ligands/ligand.sd;
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
9 LD_LIBRARY_PATH=$__tool_directory__/tools/rdock/lib $__tool_directory__/tools/rdock/bin/rbcavity -r new.prm -was > /tmp/rbcavity.log;
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
10 LD_LIBRARY_PATH=$__tool_directory__/tools/rdock/lib $__tool_directory__/tools/rdock/bin/rbdock -r new.prm -p dock.prm -n 100 -i $inputsd -o output_docking_out > /tmp/docking_out.log;
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
11 PERL5LIB=$__tool_directory__/tools/rdock/lib/ LD_LIBRARY_PATH=$__tool_directory__/tools/rdock/lib $__tool_directory__/tools/rdock/bin/sdsort -n -f'SCORE' output_docking_out.sd > sorted.sd;
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
12 PYTHONPATH=/usr/lib/python2.7/dist-packages/ $__tool_directory__/tools/rdock/bin/sdrmsd $inputsd sorted.sd > $output_rdock
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
13 ]]>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
14 </command>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
15 <inputs>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
16 <param name="inputprm" format="prm" type="data" label="PRM file" />
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
17 <param name="inputmol2" format="mol2" type="data" label="MOL2 file" />
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
18 <param name="inputsd" format="sd" type="data" label="SD file" />
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
19 </inputs>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
20 <outputs>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
21 <data name="output_rdock" format="data" />
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
22 </outputs>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
23 <tests>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
24 <test>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
25 <param name="inputprm" value="rdock/1sj0_rdock.prm" />
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
26 <param name="inputmol2" value="rdock/1sj0_rdock.mol2" />
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
27 <param name="inputsd" value="rdock/1sj0_ligand.sd" />
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
28 <output name="output_rdock">
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
29 <assert_contents>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
30 <has_n_columns n="2" />
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
31 </assert_contents>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
32 </output>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
33 </test>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
34 <test>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
35 <param name="inputprm" value="rdock/1nem_rdock.prm" />
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
36 <param name="inputmol2" value="rdock/1nem_rdock.mol2" />
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
37 <param name="inputsd" value="rdock/1nem_lig.sd" />
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
38 <output name="output_rdock">
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
39 <assert_contents>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
40 <has_n_columns n="2" />
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
41 </assert_contents>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
42 </output>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
43 </test>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
44 </tests>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
45 <help>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
46 rDock tool
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
47 </help>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
48 <citations>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
49 <citation type="doi">doi:10.1371/journal.pcbi.1003571</citation>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
50 </citations>
4cc079c67fab planemo upload
marpiech
parents:
diff changeset
51 </tool>