comparison ob_prepare_ligands.xml @ 0:06340f46ecb8 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/openbabel commit 72df8ae9b8fd9910b3d24aa0836b9b3c9d43f4fb
author bgruening
date Fri, 10 May 2019 08:55:09 -0400
parents
children de4c80d17527
comparison
equal deleted inserted replaced
-1:000000000000 0:06340f46ecb8
1 <tool id="prepare_ligands_for_docking" name="Prepare ligands for docking" version="@VERSION@.0">
2 <description>Tool to prepare ligands for docking with tools like Autodock Vina</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <command detect_errors="aggressive"><![CDATA[
8 mkdir output && obabel -i '${ligands.ext}' -o '$oformat' -O 'output/molecule.$oformat' -m '$ligands' $gen3d -p $ph_value
9 ]]></command>
10 <inputs>
11 <param type="data" name="ligands" format="sdf,mol2,inchi,smi" label="The ligands which need to be prepared" help="Input in SDF, MOL2, InChi or SMILES format." />
12 <param name="ph_value" type="float" value="7.4" min="0" max="14" label="Specify pH value"/>
13 <param name="gen3d" type="boolean" label="Generate 3D coordinates (--gen3d)" truevalue="--gen3d" falsevalue="" checked="false" />
14 <param name="oformat" type="select" label="Output format" >
15 <option value="pdb">PDB</option>
16 <option value="pdbqt">PDBQT</option>
17 <option value="mol">MOL</option>
18 <option value="mol2">MOL2</option>
19 </param>
20 </inputs>
21 <outputs>
22 <collection name="file_outputs" type="list" label="Prepared ligands" >
23 <discover_datasets pattern="__name_and_ext__" directory="output" visible="false" />
24 </collection>
25 </outputs>
26 <tests>
27 <test>
28 <param name="ligands" ftype="sdf" value="ob_prepare_ligands.sdf"/>
29 <param name="oformat" value="pdbqt"/>
30 <param name="ph_value" value="7.4"/>
31 <output_collection name="file_outputs" type="list" count="10">
32 <element name="molecule1" file="ob_prepare_ligands1.pdbqt" />
33 <element name="molecule2" file="ob_prepare_ligands2.pdbqt" />
34 <!-- we check only the first 2 -->
35 </output_collection>
36 </test>
37 <test>
38 <param name="ligands" ftype="sdf" value="ob_prepare_ligands.sdf"/>
39 <param name="oformat" value="mol2"/>
40 <param name="ph_value" value="7.4"/>
41 <output_collection name="file_outputs" type="list" count="10">
42 <element name="molecule1" file="ob_prepare_ligands1.mol2" />
43 <element name="molecule2" file="ob_prepare_ligands2.mol2" />
44 <!-- we check only the first 2 -->
45 </output_collection>
46 </test>
47 <test>
48 <param name="ligands" ftype="sdf" value="ob_prepare_ligands.sdf"/>
49 <param name="oformat" value="mol"/>
50 <param name="ph_value" value="7.4"/>
51 <output_collection name="file_outputs" type="list" count="10">
52 <!-- just check the count -->
53 </output_collection>
54 </test>
55 <test>
56 <param name="ligands" ftype="sdf" value="ob_prepare_ligands.sdf"/>
57 <param name="oformat" value="pdb"/>
58 <param name="ph_value" value="7.4"/>
59 <output_collection name="file_outputs" type="list" count="10">
60 <!-- just check the count -->
61 </output_collection>
62 </test>
63 </tests>
64 <help><![CDATA[
65 **What it does?**
66
67 This tool uses OpenBabel to convert an input molecule file, typically a SD file, to individual output molecule files in pdbqt, pdb,
68 mol or mol2 formats. There is one output file for each record in the input.
69 Protonation is performed at a specified pH and 3D coordinates can optionally be generated. 3D coordinate generation should be used when
70 the docking program requires 3D structures and the input is not 3D.
71
72 The most typical usage is to process a set of ligands in a SD file that will be docked by VINA. In this case the pdbqt output format should
73 be used, and the resulting collection of molecules can be used as input by VINA.
74
75 **Input**
76
77 Molecules such as an SD file dataset in history.
78
79 **Output**
80
81 A collection of individual molecule files in the specified format.
82
83 ]]></help>
84 <expand macro="citations"/>
85 </tool>
86