annotate rdock.xml @ 0:c7b5489be955 draft

planemo upload
author marpiech
date Mon, 29 Aug 2016 07:57:38 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
1 <tool id="rdock" name="rdock" version="1.0">
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
2 <description>tail-to-head</description>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
3 <command>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
4 <![CDATA[
c7b5489be955 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;
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
6 cp -r $__tool_directory__/tools/rdock/data .;
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
7 mkdir data/ligands;
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
8 cp $inputsd data/ligands/ligand.sd;
c7b5489be955 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;
c7b5489be955 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;
c7b5489be955 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;
c7b5489be955 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
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
13 ]]>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
14 </command>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
15 <inputs>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
16 <param name="inputprm" format="prm" type="data" label="PRM file" />
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
17 <param name="inputmol2" format="mol2" type="data" label="MOL2 file" />
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
18 <param name="inputsd" format="sd" type="data" label="SD file" />
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
19 </inputs>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
20 <outputs>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
21 <data name="output_rdock" format="data" />
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
22 </outputs>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
23 <tests>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
24 <test>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
25 <param name="inputprm" value="rdock/1sj0_rdock.prm" />
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
26 <param name="inputmol2" value="rdock/1sj0_rdock.mol2" />
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
27 <param name="inputsd" value="rdock/1sj0_ligand.sd" />
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
28 <output name="output_rdock">
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
29 <assert_contents>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
30 <has_n_columns n="2" />
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
31 </assert_contents>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
32 </output>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
33 </test>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
34 <test>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
35 <param name="inputprm" value="rdock/1nem_rdock.prm" />
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
36 <param name="inputmol2" value="rdock/1nem_rdock.mol2" />
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
37 <param name="inputsd" value="rdock/1nem_lig.sd" />
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
38 <output name="output_rdock">
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
39 <assert_contents>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
40 <has_n_columns n="2" />
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
41 </assert_contents>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
42 </output>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
43 </test>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
44 </tests>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
45 <help>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
46 rDock tool
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
47 </help>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
48 <citations>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
49 <citation type="doi">doi:10.1371/journal.pcbi.1003571</citation>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
50 </citations>
c7b5489be955 planemo upload
marpiech
parents:
diff changeset
51 </tool>