Repository 'autodock_vina'
hg clone https://toolshed.g2.bx.psu.edu/repos/bgruening/autodock_vina

Changeset 5:c410ffcabf9d (2019-05-07)
Previous changeset 4:3c8e86318a81 (2018-02-12) Next changeset 6:0ae768a0e5c0 (2019-06-19)
Commit message:
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/autodock_vina commit ed9b6859de648aa5f7cde483732f5df20aaff90e
modified:
docking.xml
b
diff -r 3c8e86318a81 -r c410ffcabf9d docking.xml
--- a/docking.xml Mon Feb 12 04:23:13 2018 -0500
+++ b/docking.xml Tue May 07 13:31:43 2019 -0400
[
b'@@ -1,5 +1,5 @@\n-<tool id="docking" name="Docking" version="0.1.0">\n-    <description>Tool to running molecular docking with Autodock Vina</description>\n+<tool id="docking" name="Docking" version="0.2.0">\n+    <description>tool to perform protein-ligand docking with Autodock Vina</description>\n     <requirements>\n         <requirement type="package" version="1.1.2">autodock-vina</requirement>\n     </requirements>\n@@ -7,12 +7,66 @@\n         <exit_code range="1" />\n     </stdio>\n     <command><![CDATA[\n-        vina --config "$box" --receptor "$receptor" --ligand "$ligand" --out "$file_output1" --log "$file_output2"\n+        #if $config_params.config_params == \'vals\':\n+            vina\n+                --center_x \'$config_params.center_x\' \n+                --center_y \'$config_params.center_y\' \n+                --center_z \'$config_params.center_z\' \n+                --size_x \'$config_params.size_x\' \n+                --size_y \'$config_params.size_y\' \n+                --size_z \'$config_params.size_z\' \n+                --exhaustiveness \'$config_params.exh\' \n+                --num_modes 9999 \n+                --energy_range 9999 \n+                --receptor \'$receptor\' \n+                --ligand \'$ligand\' \n+                --out \'$file_output1\' \n+                --log \'$file_output2\' \n+                --cpu \\${GALAXY_SLOTS:-1}\n+                #if $config_params.seed.seed == \'true\':\n+                    --seed \'$config_params.seed.seed_value\'\n+                #end if\n+        #end if\n+        #if $config_params.config_params == \'file\':\n+            vina \n+                --config \'$config_params.box\' \n+                --receptor \'$receptor\' \n+                --ligand \'$ligand\' \n+                --out \'$file_output1\' \n+                --log \'$file_output2\' \n+                --cpu \\${GALAXY_SLOTS:-1}\n+\n+        #end if\n+        \n     ]]></command>\n     <inputs>\n-        <param type="data" name="box" format="txt" label="Box configuration" help="Select a text file with the box configurations" />\n-        <param type="data" name="receptor" format="pdbqt" label="Receptor" help="Select a receptor PDBQT format. This can be prepared using the receptor preparation tool." />\n-        <param type="data" name="ligand" format="pdbqt"  label="Ligand" help="Select a ligand PDBQT format. This can be prepared using the ligand preparation tool." />\n+        <param type="data" name="receptor" format="pdbqt" label="Receptor" help="Select a receptor (PDBQT format). This can be prepared using the receptor preparation tool." />\n+        <param type="data" name="ligand" format="pdbqt"  label="Ligand" help="Select a ligand (PDBQT format). This can be prepared using the ligand preparation tool." />\n+        <conditional name="config_params">\n+            <param name="config_params" type="select" label="Specify parameters">\n+                <option value="file">Upload a config file to specify parameters</option>\n+                <option value="vals">Specify values directly</option>\n+            </param>\n+            <when value="vals">\n+                <param type="float" name="center_x" label="x coordinate" help="x coordinate of the binding site." value="0"/>\n+                <param type="float" name="center_y" label="y coordinate" help="y coordinate of the binding site." value="0"/>\n+                <param type="float" name="center_z" label="z coordinate" help="z coordinate of the binding site." value="0"/>\n+                <param type="float" name="size_x" label="x size" help="Length of the binding site (\xc3\x85) in the x direction." value="0"/>\n+                <param type="float" name="size_y" label="y size" help="Length of the binding site (\xc3\x85) in the y direction." value="0"/>\n+                <param type="float" name="size_z" label="z size" help="Length of the binding site (\xc3\x85) in the z direction." value="0"/>\n+                <param type="integer" name="exh" label="Exhaustiveness" help="The number of poses to return from the docking job" value="10"/>\n+      '..b'         </when>\n+        </conditional>\n     </inputs>\n     <outputs>\n         <data name="file_output1" format="pdbqt" />\n@@ -20,43 +74,43 @@\n     </outputs>\n     <tests>\n         <test>\n-            <param name="box" value="config_complexo_dm.txt"/>\n             <param name="receptor" value="3u1i_for_DM.pdbqt"/>\n             <param name="ligand" value="NuBBE_1_obabel_3D.pdbqt"/>\n+            <param name="config_params" value="vals"/>\n+            <param name="center_x" value="70.92" />\n+            <param name="center_y" value="70.57" />\n+            <param name="center_z" value="36.86" />\n+            <param name="size_x" value="20.00"  />\n+            <param name="size_y" value="18.40" />\n+            <param name="size_z" value="23.60" />\n+            <param name="seed" value="true" />\n+            <param name="seed_value" value="1" />\n+            <param name="exhaustivenesss" value="10" />\n+            <output name="file_output1" file="NuBBE_1_obabel_3D_-_3u1i_for_DM.pdbqt"/>\n+            <output name="file_output2" file="NuBBE_1_obabel_3D_-_3u1i_for_DM.log"/>\n+        </test>\n+        <test>\n+            <param name="receptor" value="3u1i_for_DM.pdbqt"/>\n+            <param name="ligand" value="NuBBE_1_obabel_3D.pdbqt"/>\n+            <param name="config_params" value="file"/>\n+            <param name="box" value="config_complexo_dm.txt"/>\n             <output name="file_output1" file="NuBBE_1_obabel_3D_-_3u1i_for_DM.pdbqt"/>\n             <output name="file_output2" file="NuBBE_1_obabel_3D_-_3u1i_for_DM.log"/>\n         </test>\n     </tests>\n     <help><![CDATA[\n-**What it does?**\n \n-This tool performs molecular docking with Autodock Vina program.\n+This tool performs protein-ligand docking using the Autodock Vina program.\n \n **Inputs**\n \n-Three inputs are required for use this tools. The first is a text file with the box configurations, this file looks like the following example::\n+The first two inputs required are files (in the pdbqt format) describing the receptor and ligand respectively. These files are produced by the receptor and ligand preparation tools.\n \n-    size_x =  20.00\n-    size_y =  18.40\n-    size_z =  23.60\n-    center_x =  70.92\n-    center_y =  70.57\n-    center_z =  36.86\n-    num_modes = 9999\n-    energy_range = 9999\n-    exhaustiveness = 10\n-    cpu = 4\n-    seed = 1\n-\n-Where the parameters size_x, size_y, size_z, center_x, center_y and center_z  are coordinates of the binding site. \n-The parameters num_modes, energy_range, exhaustiveness, cpu and seed are autodock vina configurations to execute the algorithm.\n-\n-The second input is a receptor file (pdbqt) what is a output of the prepare receptor tool.\n-The last input is a ligand file (pdbqt) what is a output of the prepare ligand tool.\n+In addition, parameters for docking must be defined. The Cartesian coordinates of the center of the binding site should be provided, along with the size of the binding site along each dimension. Effectively, this defines a cuboidal volume in which docking is performed. Alternatively, a config file can be uploaded containing this information - such a file can be generated from the box parameter calculation file. \n \n **Outputs**\n \n-Two outputs are generated by this tool. The first is a pdbqt file with the molecule structure resulting of the molecular docking, this file looks like the following example::\n+Two outputs are generated by this tool. The first is another pdbqt file containing the molecular structure resulting from docking, such as the following example::\n \n     MODEL 1\n     REMARK VINA RESULT:      -0.0      0.000      0.000\n@@ -117,7 +171,7 @@\n     TORSDOF 9\n     ENDMDL \n \n-The last is a log file with the binding affinity scores, this file looks like the following example::\n+The second output is a log file containing the binding affinity scores, like the following::\n \n     -----------------------------------------------------------------\n      If you used AutoDock Vina in your work, please cite:          \n'