<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.docking.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rstein</id>
	<title>DISI - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.docking.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rstein"/>
	<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Special:Contributions/Rstein"/>
	<updated>2026-05-24T00:44:17Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12641</id>
		<title>How to do parameter scanning</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12641"/>
		<updated>2020-05-29T18:02:29Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Manually Generating ES/LD Combinations ==&lt;br /&gt;
&lt;br /&gt;
written by Reed Stein, updated 12/2019 so users can specify different low dielectric and ligand desolvation sphere radii&lt;br /&gt;
&lt;br /&gt;
To generate different sized low dielectric and ligand desolvation thin sphere combinations, you must first run blastermaster on your protein/ligand of interest. Once this is finished, make a new directory. Change into the new directory&lt;br /&gt;
and run the following command:&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_generate_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
The full path to your original blastermaster path is the only required argument. However, you can modify other default values including:&lt;br /&gt;
    1) Radius of low dielectric spheres you want to run: use the -es flag. &lt;br /&gt;
       Default radius for electrostatic spheres is [1.0, 1.3, 1.5, 1.7, 1.9]&lt;br /&gt;
    2) Radius of ligand desolvation spheres you want to run: use the -ld flag. &lt;br /&gt;
       Default radius for ligand desolvation spheres is [0.1, 0.2, 0.3, 0.4, 0.5]&lt;br /&gt;
    3) DMS density: use the -d flag. Default is 10.0 to ensure that the surface is sufficiently coated with spheres when using &lt;br /&gt;
       a smaller sphere radii (typically &amp;lt;0.5 Å). This can be reduced to 1.0 if only larger sphere radii are used.&lt;br /&gt;
    4) Distance from crystallographic ligand: use the -xd flag. Default is 2 Å.&lt;br /&gt;
&lt;br /&gt;
If you wanted to change all, you could use:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_generate_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH} &lt;br /&gt;
           -es 1.1 1.2 1.3 -ld 0.1 0.3 -d 10 -xd 4&lt;br /&gt;
&lt;br /&gt;
This script will submit ligand desolvation jobs to the queue. This should take 15-30 minutes. Once finished, check your spheres and grids by following the steps here:&lt;br /&gt;
   &lt;br /&gt;
    http://wiki.docking.org/index.php/Protein_Target_Preparation_Updated&lt;br /&gt;
&lt;br /&gt;
Then run the following script to combine the ES/LD grids in all combinations:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0002_combine_es_ld_grids_into_combos.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
This will create a new directory called &amp;quot;combo_directories&amp;quot; with docking-ready directories inside. The directories will have the name format &amp;quot;es_{ES_sphere_radius}_ld_{LD_sphere_radius}&amp;quot;. &amp;quot;def&amp;quot; refers to grids taken from your {FULL_ORIGINAL_BLASTERMASTER_PATH} directory.&lt;br /&gt;
&lt;br /&gt;
These directories are now ready for docking.&lt;br /&gt;
&lt;br /&gt;
== Blastermaster Parameter Scanning == &lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2017/01/18&lt;br /&gt;
&lt;br /&gt;
4/16/2019 - this needs to be updated and will result in discontinuous thin spheres at low radii! &lt;br /&gt;
Use the tutorial above instead. Or use this link to run blastermaster manually:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Using_thin_spheres_in_DOCK3.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The hierarchy of the directories:&lt;br /&gt;
&lt;br /&gt;
 thin_spheres_parameter_scanning----- std_dockprep &lt;br /&gt;
                                                                 |&lt;br /&gt;
                                                                 |------ dockfiles&lt;br /&gt;
               |                                                 | &lt;br /&gt;
               |                                                 |----- working&lt;br /&gt;
               |                                                 |&lt;br /&gt;
               |                                                 ------ rec.pdb, xtal-lig.pdb, INDOCK and other files generated balstermaster.py&lt;br /&gt;
               |&lt;br /&gt;
               ------- script ------ dockprep_thin_spheres_in_batches.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ submit_dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ lig-decoy_enrichment.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ combineScoresAndPoses.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ AUCplot_of-lig-decoys.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ mk_matrix_logAUC.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ sph_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ pdb_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               ------- close_sph.py&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir thin_spheres_parameter_scanning&lt;br /&gt;
 cd thin_spheres_parameter_scanning&lt;br /&gt;
 mkdir std_dockprep&lt;br /&gt;
 mkdir script&lt;br /&gt;
&lt;br /&gt;
2) Run blastermaster.py in std_dockprep.  This will generate two directories: working and dockfiles&lt;br /&gt;
&lt;br /&gt;
3) Download sph_lib.py, pdb_lib.py and close_sph.py files into the script directory&lt;br /&gt;
 cd script&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/sph_lib.py &amp;gt; sph_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/pdb_lib.py &amp;gt; pdb_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/close_sph.py &amp;gt; close_sph.py&lt;br /&gt;
&lt;br /&gt;
4) Copy scripts from my path, and modify as necessary.&lt;br /&gt;
 &lt;br /&gt;
 cd script&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/ex5/work/jklyu/large_scale_docking/DRD2/struct_20180322/A122I_add_polarH_mini_HID/thin_spheres_parameter_scanning/scripts/*dockprep* .&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/lig-decoy_enrichment_submit.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/combineScoresAndPoses.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/mk_matrix_logAUC.py .&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5) Run parameter scanning.&lt;br /&gt;
 cd ../ # go back to thin_spheres_parameter_scanning folder&lt;br /&gt;
 csh /path/to/script/dockprep_thin_spheres_in_batches.csh /path/to/script/ /path/to/std_dockprep&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:- you can edit dockprep_thin_spheres_in_batches.csh to include more CPUs in Job Bound&lt;br /&gt;
&lt;br /&gt;
6) make the following subfolders&lt;br /&gt;
&lt;br /&gt;
   mkdir ligands-decoys&lt;br /&gt;
   cd ligands-decoys&lt;br /&gt;
   mkdir ligands&lt;br /&gt;
   mkdir decoys&lt;br /&gt;
&lt;br /&gt;
now copy your decoys.db2.gz to decoys&lt;br /&gt;
now copy your ligands.db2.gz to ligands&lt;br /&gt;
now copy decoys.smi to the folder&lt;br /&gt;
now copy ligands.smi to the folder&lt;br /&gt;
&lt;br /&gt;
7) Submit DOCK and enrichment calculation.&lt;br /&gt;
 csh /path/to/script/lig-decoy_enrichment.csh&lt;br /&gt;
&lt;br /&gt;
8) Combine and analyze the docking results.&lt;br /&gt;
 csh /path/to/script/combineScoresAndPoses.csh #1st change the path inside the script to your own dir&lt;br /&gt;
 csh /path/to/script/AUCplot_of-lig-decoys.csh #1st change the path inside the script to your own dir&lt;br /&gt;
&lt;br /&gt;
9) Visualize the logAUC by heatmap.&lt;br /&gt;
 python /path/to/script/mk_matrix_logAUC.py&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12640</id>
		<title>How to do parameter scanning</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12640"/>
		<updated>2020-05-29T18:02:15Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Manually Generating ES/LD Combinations ==&lt;br /&gt;
&lt;br /&gt;
written by Reed Stein, updated 12/2019 so users can specify different low dielectric and ligand desolvation sphere radii&lt;br /&gt;
&lt;br /&gt;
To generate different sized low dielectric and ligand desolvation thin sphere combinations, you must first run blastermaster on your protein/ligand of interest. Once this is finished, make a new directory. Change into the new directory&lt;br /&gt;
and run the following command:&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_generate_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
The full path to your original blastermaster path is the only required argument. However, you can modify other default values including:&lt;br /&gt;
    1) Radius of low dielectric spheres you want to run: use the -es flag. &lt;br /&gt;
       Default radius for electrostatic spheres is [1.0, 1.3, 1.5, 1.7, 1.9]&lt;br /&gt;
    2) Radius of ligand desolvation spheres you want to run: use the -ld flag. &lt;br /&gt;
       Default radius for ligand desolvation spheres is [0.1, 0.2, 0.3, 0.4, 0.5]&lt;br /&gt;
    3) DMS density: use the -d flag. Default is 10.0 to ensure that the surface is sufficiently coated with spheres when using &lt;br /&gt;
     a smaller sphere radii (typically &amp;lt;0.5 Å). This can be reduced to 1.0 if only larger sphere radii are used.&lt;br /&gt;
    4) Distance from crystallographic ligand: use the -xd flag. Default is 2 Å.&lt;br /&gt;
&lt;br /&gt;
If you wanted to change all, you could use:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_generate_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH} &lt;br /&gt;
           -es 1.1 1.2 1.3 -ld 0.1 0.3 -d 10 -xd 4&lt;br /&gt;
&lt;br /&gt;
This script will submit ligand desolvation jobs to the queue. This should take 15-30 minutes. Once finished, check your spheres and grids by following the steps here:&lt;br /&gt;
   &lt;br /&gt;
    http://wiki.docking.org/index.php/Protein_Target_Preparation_Updated&lt;br /&gt;
&lt;br /&gt;
Then run the following script to combine the ES/LD grids in all combinations:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0002_combine_es_ld_grids_into_combos.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
This will create a new directory called &amp;quot;combo_directories&amp;quot; with docking-ready directories inside. The directories will have the name format &amp;quot;es_{ES_sphere_radius}_ld_{LD_sphere_radius}&amp;quot;. &amp;quot;def&amp;quot; refers to grids taken from your {FULL_ORIGINAL_BLASTERMASTER_PATH} directory.&lt;br /&gt;
&lt;br /&gt;
These directories are now ready for docking.&lt;br /&gt;
&lt;br /&gt;
== Blastermaster Parameter Scanning == &lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2017/01/18&lt;br /&gt;
&lt;br /&gt;
4/16/2019 - this needs to be updated and will result in discontinuous thin spheres at low radii! &lt;br /&gt;
Use the tutorial above instead. Or use this link to run blastermaster manually:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Using_thin_spheres_in_DOCK3.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The hierarchy of the directories:&lt;br /&gt;
&lt;br /&gt;
 thin_spheres_parameter_scanning----- std_dockprep &lt;br /&gt;
                                                                 |&lt;br /&gt;
                                                                 |------ dockfiles&lt;br /&gt;
               |                                                 | &lt;br /&gt;
               |                                                 |----- working&lt;br /&gt;
               |                                                 |&lt;br /&gt;
               |                                                 ------ rec.pdb, xtal-lig.pdb, INDOCK and other files generated balstermaster.py&lt;br /&gt;
               |&lt;br /&gt;
               ------- script ------ dockprep_thin_spheres_in_batches.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ submit_dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ lig-decoy_enrichment.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ combineScoresAndPoses.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ AUCplot_of-lig-decoys.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ mk_matrix_logAUC.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ sph_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ pdb_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               ------- close_sph.py&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir thin_spheres_parameter_scanning&lt;br /&gt;
 cd thin_spheres_parameter_scanning&lt;br /&gt;
 mkdir std_dockprep&lt;br /&gt;
 mkdir script&lt;br /&gt;
&lt;br /&gt;
2) Run blastermaster.py in std_dockprep.  This will generate two directories: working and dockfiles&lt;br /&gt;
&lt;br /&gt;
3) Download sph_lib.py, pdb_lib.py and close_sph.py files into the script directory&lt;br /&gt;
 cd script&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/sph_lib.py &amp;gt; sph_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/pdb_lib.py &amp;gt; pdb_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/close_sph.py &amp;gt; close_sph.py&lt;br /&gt;
&lt;br /&gt;
4) Copy scripts from my path, and modify as necessary.&lt;br /&gt;
 &lt;br /&gt;
 cd script&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/ex5/work/jklyu/large_scale_docking/DRD2/struct_20180322/A122I_add_polarH_mini_HID/thin_spheres_parameter_scanning/scripts/*dockprep* .&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/lig-decoy_enrichment_submit.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/combineScoresAndPoses.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/mk_matrix_logAUC.py .&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5) Run parameter scanning.&lt;br /&gt;
 cd ../ # go back to thin_spheres_parameter_scanning folder&lt;br /&gt;
 csh /path/to/script/dockprep_thin_spheres_in_batches.csh /path/to/script/ /path/to/std_dockprep&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:- you can edit dockprep_thin_spheres_in_batches.csh to include more CPUs in Job Bound&lt;br /&gt;
&lt;br /&gt;
6) make the following subfolders&lt;br /&gt;
&lt;br /&gt;
   mkdir ligands-decoys&lt;br /&gt;
   cd ligands-decoys&lt;br /&gt;
   mkdir ligands&lt;br /&gt;
   mkdir decoys&lt;br /&gt;
&lt;br /&gt;
now copy your decoys.db2.gz to decoys&lt;br /&gt;
now copy your ligands.db2.gz to ligands&lt;br /&gt;
now copy decoys.smi to the folder&lt;br /&gt;
now copy ligands.smi to the folder&lt;br /&gt;
&lt;br /&gt;
7) Submit DOCK and enrichment calculation.&lt;br /&gt;
 csh /path/to/script/lig-decoy_enrichment.csh&lt;br /&gt;
&lt;br /&gt;
8) Combine and analyze the docking results.&lt;br /&gt;
 csh /path/to/script/combineScoresAndPoses.csh #1st change the path inside the script to your own dir&lt;br /&gt;
 csh /path/to/script/AUCplot_of-lig-decoys.csh #1st change the path inside the script to your own dir&lt;br /&gt;
&lt;br /&gt;
9) Visualize the logAUC by heatmap.&lt;br /&gt;
 python /path/to/script/mk_matrix_logAUC.py&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12639</id>
		<title>How to do parameter scanning</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12639"/>
		<updated>2020-05-29T17:51:36Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Manually Generating ES/LD Combinations ==&lt;br /&gt;
&lt;br /&gt;
written by Reed Stein, updated 12/2019 so users can specify different low dielectric and ligand desolvation sphere radii&lt;br /&gt;
&lt;br /&gt;
To generate different sized low dielectric and ligand desolvation thin sphere combinations, you must first run blastermaster on your protein/ligand of interest. Once this is finished, make a new directory. Change into the new directory&lt;br /&gt;
and run the following command:&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_generate_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
The full path to your original blastermaster path is the only required argument. However, you can modify other default values including:&lt;br /&gt;
    1) Radius of low dielectric spheres you want to run: use the -es flag. &lt;br /&gt;
       Default radius for electrostatic spheres is [1.0, 1.3, 1.5, 1.7, 1.9]&lt;br /&gt;
    2) Radius of ligand desolvation spheres you want to run: use the -ld flag. &lt;br /&gt;
       Default radius for ligand desolvation spheres is [0.1, 0.2, 0.3, 0.4, 0.5]&lt;br /&gt;
    3) DMS density: use the -d flag. Default is 1.0&lt;br /&gt;
    4) Distance from crystallographic ligand: use the -xd flag. Default is 2 Å.&lt;br /&gt;
&lt;br /&gt;
If you wanted to change all, you could use:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_generate_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH} &lt;br /&gt;
           -es 1.1 1.2 1.3 -ld 0.1 0.3 -d 10 -xd 4&lt;br /&gt;
&lt;br /&gt;
This script will submit ligand desolvation jobs to the queue. This should take 15-30 minutes. Once finished, check your spheres and grids by following the steps here:&lt;br /&gt;
   &lt;br /&gt;
    http://wiki.docking.org/index.php/Protein_Target_Preparation_Updated&lt;br /&gt;
&lt;br /&gt;
Then run the following script to combine the ES/LD grids in all combinations:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0002_combine_es_ld_grids_into_combos.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
This will create a new directory called &amp;quot;combo_directories&amp;quot; with docking-ready directories inside. The directories will have the name format &amp;quot;es_{ES_sphere_radius}_ld_{LD_sphere_radius}&amp;quot;. &amp;quot;def&amp;quot; refers to grids taken from your {FULL_ORIGINAL_BLASTERMASTER_PATH} directory.&lt;br /&gt;
&lt;br /&gt;
These directories are now ready for docking.&lt;br /&gt;
&lt;br /&gt;
== Blastermaster Parameter Scanning == &lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2017/01/18&lt;br /&gt;
&lt;br /&gt;
4/16/2019 - this needs to be updated and will result in discontinuous thin spheres at low radii! &lt;br /&gt;
Use the tutorial above instead. Or use this link to run blastermaster manually:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Using_thin_spheres_in_DOCK3.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The hierarchy of the directories:&lt;br /&gt;
&lt;br /&gt;
 thin_spheres_parameter_scanning----- std_dockprep &lt;br /&gt;
                                                                 |&lt;br /&gt;
                                                                 |------ dockfiles&lt;br /&gt;
               |                                                 | &lt;br /&gt;
               |                                                 |----- working&lt;br /&gt;
               |                                                 |&lt;br /&gt;
               |                                                 ------ rec.pdb, xtal-lig.pdb, INDOCK and other files generated balstermaster.py&lt;br /&gt;
               |&lt;br /&gt;
               ------- script ------ dockprep_thin_spheres_in_batches.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ submit_dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ lig-decoy_enrichment.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ combineScoresAndPoses.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ AUCplot_of-lig-decoys.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ mk_matrix_logAUC.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ sph_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ pdb_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               ------- close_sph.py&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir thin_spheres_parameter_scanning&lt;br /&gt;
 cd thin_spheres_parameter_scanning&lt;br /&gt;
 mkdir std_dockprep&lt;br /&gt;
 mkdir script&lt;br /&gt;
&lt;br /&gt;
2) Run blastermaster.py in std_dockprep.  This will generate two directories: working and dockfiles&lt;br /&gt;
&lt;br /&gt;
3) Download sph_lib.py, pdb_lib.py and close_sph.py files into the script directory&lt;br /&gt;
 cd script&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/sph_lib.py &amp;gt; sph_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/pdb_lib.py &amp;gt; pdb_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/close_sph.py &amp;gt; close_sph.py&lt;br /&gt;
&lt;br /&gt;
4) Copy scripts from my path, and modify as necessary.&lt;br /&gt;
 &lt;br /&gt;
 cd script&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/ex5/work/jklyu/large_scale_docking/DRD2/struct_20180322/A122I_add_polarH_mini_HID/thin_spheres_parameter_scanning/scripts/*dockprep* .&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/lig-decoy_enrichment_submit.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/combineScoresAndPoses.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/mk_matrix_logAUC.py .&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5) Run parameter scanning.&lt;br /&gt;
 cd ../ # go back to thin_spheres_parameter_scanning folder&lt;br /&gt;
 csh /path/to/script/dockprep_thin_spheres_in_batches.csh /path/to/script/ /path/to/std_dockprep&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:- you can edit dockprep_thin_spheres_in_batches.csh to include more CPUs in Job Bound&lt;br /&gt;
&lt;br /&gt;
6) make the following subfolders&lt;br /&gt;
&lt;br /&gt;
   mkdir ligands-decoys&lt;br /&gt;
   cd ligands-decoys&lt;br /&gt;
   mkdir ligands&lt;br /&gt;
   mkdir decoys&lt;br /&gt;
&lt;br /&gt;
now copy your decoys.db2.gz to decoys&lt;br /&gt;
now copy your ligands.db2.gz to ligands&lt;br /&gt;
now copy decoys.smi to the folder&lt;br /&gt;
now copy ligands.smi to the folder&lt;br /&gt;
&lt;br /&gt;
7) Submit DOCK and enrichment calculation.&lt;br /&gt;
 csh /path/to/script/lig-decoy_enrichment.csh&lt;br /&gt;
&lt;br /&gt;
8) Combine and analyze the docking results.&lt;br /&gt;
 csh /path/to/script/combineScoresAndPoses.csh #1st change the path inside the script to your own dir&lt;br /&gt;
 csh /path/to/script/AUCplot_of-lig-decoys.csh #1st change the path inside the script to your own dir&lt;br /&gt;
&lt;br /&gt;
9) Visualize the logAUC by heatmap.&lt;br /&gt;
 python /path/to/script/mk_matrix_logAUC.py&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12638</id>
		<title>How to do parameter scanning</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12638"/>
		<updated>2020-05-29T17:50:09Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Manually Generating ES/LD Combinations ==&lt;br /&gt;
&lt;br /&gt;
written by Reed Stein, updated 12/2019 so users can specify different low dielectric and ligand desolvation sphere radii&lt;br /&gt;
&lt;br /&gt;
To generate different sized low dielectric and ligand desolvation thin sphere combinations, you must first run blastermaster on your protein/ligand of interest. Once this is finished, make a new directory. Change into the new directory&lt;br /&gt;
and run the following command:&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_generate_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
The full path to your original blastermaster path is the only required argument. However, you can modify other default values including:&lt;br /&gt;
    1) Radius of low dielectric spheres you want to run: use the -es flag. Default radius for electrostatic spheres is [1.0, 1.3, 1.5, 1.7, 1.9]&lt;br /&gt;
    2) Radius of ligand desolvation spheres you want to run: use the -ld flag. Default radius for ligand desolvation spheres is [0.1, 0.2, 0.3, 0.4, 0.5]&lt;br /&gt;
    3) DMS density: use the -d flag. Default is 1.0&lt;br /&gt;
    4) Distance from crystallographic ligand: use the -xd flag. Default is 2 Å.&lt;br /&gt;
&lt;br /&gt;
If you wanted to change all, you could use:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_generate_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH} -es 1.1 1.2 1.3 -ld 0.1 0.3 -d 10 -xd 4&lt;br /&gt;
&lt;br /&gt;
This script will submit ligand desolvation jobs to the queue. This should take 15-30 minutes. Once finished, check your spheres and grids by following the steps here:&lt;br /&gt;
   &lt;br /&gt;
    http://wiki.docking.org/index.php/Protein_Target_Preparation_Updated&lt;br /&gt;
&lt;br /&gt;
Then run the following script to combine the ES/LD grids in all combinations:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0002_combine_es_ld_grids_into_combos.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
This will create a new directory called &amp;quot;combo_directories&amp;quot; with docking-ready directories inside. The directories will have the name format &amp;quot;es_{ES_sphere_radius}_ld_{LD_sphere_radius}&amp;quot;. &amp;quot;def&amp;quot; refers to grids taken from your {FULL_ORIGINAL_BLASTERMASTER_PATH} directory.&lt;br /&gt;
&lt;br /&gt;
These directories are now ready for docking.&lt;br /&gt;
&lt;br /&gt;
== Blastermaster Parameter Scanning == &lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2017/01/18&lt;br /&gt;
&lt;br /&gt;
4/16/2019 - this needs to be updated and will result in discontinuous thin spheres at low radii! &lt;br /&gt;
Use the tutorial above instead. Or use this link to run blastermaster manually:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Using_thin_spheres_in_DOCK3.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The hierarchy of the directories:&lt;br /&gt;
&lt;br /&gt;
 thin_spheres_parameter_scanning----- std_dockprep &lt;br /&gt;
                                                                 |&lt;br /&gt;
                                                                 |------ dockfiles&lt;br /&gt;
               |                                                 | &lt;br /&gt;
               |                                                 |----- working&lt;br /&gt;
               |                                                 |&lt;br /&gt;
               |                                                 ------ rec.pdb, xtal-lig.pdb, INDOCK and other files generated balstermaster.py&lt;br /&gt;
               |&lt;br /&gt;
               ------- script ------ dockprep_thin_spheres_in_batches.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ submit_dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ lig-decoy_enrichment.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ combineScoresAndPoses.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ AUCplot_of-lig-decoys.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ mk_matrix_logAUC.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ sph_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ pdb_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               ------- close_sph.py&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir thin_spheres_parameter_scanning&lt;br /&gt;
 cd thin_spheres_parameter_scanning&lt;br /&gt;
 mkdir std_dockprep&lt;br /&gt;
 mkdir script&lt;br /&gt;
&lt;br /&gt;
2) Run blastermaster.py in std_dockprep.  This will generate two directories: working and dockfiles&lt;br /&gt;
&lt;br /&gt;
3) Download sph_lib.py, pdb_lib.py and close_sph.py files into the script directory&lt;br /&gt;
 cd script&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/sph_lib.py &amp;gt; sph_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/pdb_lib.py &amp;gt; pdb_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/close_sph.py &amp;gt; close_sph.py&lt;br /&gt;
&lt;br /&gt;
4) Copy scripts from my path, and modify as necessary.&lt;br /&gt;
 &lt;br /&gt;
 cd script&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/ex5/work/jklyu/large_scale_docking/DRD2/struct_20180322/A122I_add_polarH_mini_HID/thin_spheres_parameter_scanning/scripts/*dockprep* .&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/lig-decoy_enrichment_submit.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/combineScoresAndPoses.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/mk_matrix_logAUC.py .&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5) Run parameter scanning.&lt;br /&gt;
 cd ../ # go back to thin_spheres_parameter_scanning folder&lt;br /&gt;
 csh /path/to/script/dockprep_thin_spheres_in_batches.csh /path/to/script/ /path/to/std_dockprep&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:- you can edit dockprep_thin_spheres_in_batches.csh to include more CPUs in Job Bound&lt;br /&gt;
&lt;br /&gt;
6) make the following subfolders&lt;br /&gt;
&lt;br /&gt;
   mkdir ligands-decoys&lt;br /&gt;
   cd ligands-decoys&lt;br /&gt;
   mkdir ligands&lt;br /&gt;
   mkdir decoys&lt;br /&gt;
&lt;br /&gt;
now copy your decoys.db2.gz to decoys&lt;br /&gt;
now copy your ligands.db2.gz to ligands&lt;br /&gt;
now copy decoys.smi to the folder&lt;br /&gt;
now copy ligands.smi to the folder&lt;br /&gt;
&lt;br /&gt;
7) Submit DOCK and enrichment calculation.&lt;br /&gt;
 csh /path/to/script/lig-decoy_enrichment.csh&lt;br /&gt;
&lt;br /&gt;
8) Combine and analyze the docking results.&lt;br /&gt;
 csh /path/to/script/combineScoresAndPoses.csh #1st change the path inside the script to your own dir&lt;br /&gt;
 csh /path/to/script/AUCplot_of-lig-decoys.csh #1st change the path inside the script to your own dir&lt;br /&gt;
&lt;br /&gt;
9) Visualize the logAUC by heatmap.&lt;br /&gt;
 python /path/to/script/mk_matrix_logAUC.py&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12607</id>
		<title>Removing Spheres (The Chase Method)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12607"/>
		<updated>2020-05-27T20:17:45Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These scripts are used for removing ligand desolvation spheres around atom(s) of interest. This is to decrease the desolvation cost in a targeted way.&lt;br /&gt;
&lt;br /&gt;
5/21/2020&lt;br /&gt;
Pioneered by Chase Webb.&lt;br /&gt;
Scripts written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
The first script requires that you have already run blastermaster and have a directory containing the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;receptor.crg.lowdielectric.pdb&amp;quot; file. It requires the coordinates of the atoms that you want to remove ligand desolvation spheres from. The default distance of removing of these spheres is 3 Å.&lt;br /&gt;
&lt;br /&gt;
NOTE: You need to run this script in the directory outside of {YOUR_DOCK_DIR}&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404&lt;br /&gt;
&lt;br /&gt;
If you want to include more atom coordinates, just continue adding more x,y,z coordinates after the -c flag&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 58.038 47.323 12.300&lt;br /&gt;
&lt;br /&gt;
To increase the radius around the atoms that you want to remove ligand desolvation spheres from, include the -d flag:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 -d 5&lt;br /&gt;
&lt;br /&gt;
Once you have run this script, you can visualize your spheres by following this tutorial:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Protein_Target_Preparation_Updated#Checking_Your_Protein_Preparation&lt;br /&gt;
&lt;br /&gt;
If satisfied with your spheres, run the second script to recalculate the &amp;quot;hydrogen&amp;quot; and &amp;quot;heavy&amp;quot; ligand desolvation grids. This script submits the SOLVMAP calculation to the queue. It requires the radius of your ligand desolvation spheres for the SOLVMAP calculation. As before you need the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;box&amp;quot; file and the newly created &amp;quot;rec.crg.lds.pdb&amp;quot; file from the previous script. If you already have &amp;quot;hydrogen/&amp;quot; and &amp;quot;heavy/&amp;quot; subdirectories within your &amp;quot;working/&amp;quot; directory, it will ask you to either move or delete these.&lt;br /&gt;
&lt;br /&gt;
If you had a ligand desolvation sphere radius of 0.1 Å, use the following command:&lt;br /&gt;
&lt;br /&gt;
   python ~rstein/zzz.scripts/DOCK_prep_scripts/0002_make_ld_dirs.py -p {YOUR_DOCK_DIR} -r 0.1&lt;br /&gt;
&lt;br /&gt;
FINAL STEP!&lt;br /&gt;
Once you have generated the &amp;quot;ligand.desolv.hydrogen&amp;quot; and &amp;quot;ligand.desolv.heavy&amp;quot; grids in {YOUR_DOCK_DIR}/working/hydrogen/ and {YOUR_DOCK_DIR/working/heavy/ directories, make sure to copy them to your &amp;quot;/dockfiles/&amp;quot; directory:&lt;br /&gt;
&lt;br /&gt;
    cp {YOUR_DOCK_DIR}/working/hydrogen/ligand.desolv.hydrogen dockfiles/.&lt;br /&gt;
    cp {YOUR_DOCK_DIR}/working/heavy/ligand.desolv.heavy dockfiles/.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12606</id>
		<title>Removing Spheres (The Chase Method)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12606"/>
		<updated>2020-05-27T20:17:16Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These scripts are used for removing ligand desolvation spheres around atom(s) of interest. This is to decrease the desolvation cost in a targeted way.&lt;br /&gt;
&lt;br /&gt;
5/21/2020&lt;br /&gt;
Pioneered by Chase Webb.&lt;br /&gt;
Scripts written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
The first script requires that you have already run blastermaster and have a directory containing the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;receptor.crg.lowdielectric.pdb&amp;quot; file. It requires the coordinates of the atoms that you want to remove ligand desolvation spheres from. The default distance of removing of these spheres is 3 Å.&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404&lt;br /&gt;
&lt;br /&gt;
If you want to include more atom coordinates, just continue adding more x,y,z coordinates after the -c flag&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 58.038 47.323 12.300&lt;br /&gt;
&lt;br /&gt;
To increase the radius around the atoms that you want to remove ligand desolvation spheres from, include the -d flag:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 -d 5&lt;br /&gt;
&lt;br /&gt;
Once you have run this script, you can visualize your spheres by following this tutorial:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Protein_Target_Preparation_Updated#Checking_Your_Protein_Preparation&lt;br /&gt;
&lt;br /&gt;
If satisfied with your spheres, run the second script to recalculate the &amp;quot;hydrogen&amp;quot; and &amp;quot;heavy&amp;quot; ligand desolvation grids. This script submits the SOLVMAP calculation to the queue. It requires the radius of your ligand desolvation spheres for the SOLVMAP calculation. As before you need the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;box&amp;quot; file and the newly created &amp;quot;rec.crg.lds.pdb&amp;quot; file from the previous script. If you already have &amp;quot;hydrogen/&amp;quot; and &amp;quot;heavy/&amp;quot; subdirectories within your &amp;quot;working/&amp;quot; directory, it will ask you to either move or delete these.&lt;br /&gt;
&lt;br /&gt;
If you had a ligand desolvation sphere radius of 0.1 Å, use the following command:&lt;br /&gt;
&lt;br /&gt;
   python ~rstein/zzz.scripts/DOCK_prep_scripts/0002_make_ld_dirs.py -p {YOUR_DOCK_DIR} -r 0.1&lt;br /&gt;
&lt;br /&gt;
FINAL STEP!&lt;br /&gt;
Once you have generated the &amp;quot;ligand.desolv.hydrogen&amp;quot; and &amp;quot;ligand.desolv.heavy&amp;quot; grids in {YOUR_DOCK_DIR}/working/hydrogen/ and {YOUR_DOCK_DIR/working/heavy/ directories, make sure to copy them to your &amp;quot;/dockfiles/&amp;quot; directory:&lt;br /&gt;
&lt;br /&gt;
    cp {YOUR_DOCK_DIR}/working/hydrogen/ligand.desolv.hydrogen dockfiles/.&lt;br /&gt;
    cp {YOUR_DOCK_DIR}/working/heavy/ligand.desolv.heavy dockfiles/.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12605</id>
		<title>Removing Spheres (The Chase Method)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12605"/>
		<updated>2020-05-27T19:27:47Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These scripts are used for removing ligand desolvation spheres around atom(s) of interest. This is to decrease the desolvation cost in a targeted way.&lt;br /&gt;
&lt;br /&gt;
5/21/2020&lt;br /&gt;
Pioneered by Chase Webb.&lt;br /&gt;
Scripts written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
The first script requires that you have already run blastermaster and have a directory containing the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;receptor.crg.lowdielectric.pdb&amp;quot; file. It requires the coordinates of the atoms that you want to remove ligand desolvation spheres from. The default distance of removing of these spheres is 3 Å.&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {FULL_PATH_TO_DOCK_DIR} -c 42.301 43.502 48.404&lt;br /&gt;
&lt;br /&gt;
If you want to include more atom coordinates, just continue adding more x,y,z coordinates after the -c flag&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {FULL_PATH_TO_DOCK_DIR} -c 42.301 43.502 48.404 58.038 47.323 12.300&lt;br /&gt;
&lt;br /&gt;
To increase the radius around the atoms that you want to remove ligand desolvation spheres from, include the -d flag:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {FULL_PATH_TO_DOCK_DIR} -c 42.301 43.502 48.404 -d 5&lt;br /&gt;
&lt;br /&gt;
Once you have run this script, you can visualize your spheres by following this tutorial:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Protein_Target_Preparation_Updated#Checking_Your_Protein_Preparation&lt;br /&gt;
&lt;br /&gt;
If satisfied with your spheres, run the second script to recalculate the &amp;quot;hydrogen&amp;quot; and &amp;quot;heavy&amp;quot; ligand desolvation grids. This script submits the SOLVMAP calculation to the queue. It requires the radius of your ligand desolvation spheres for the SOLVMAP calculation. As before you need the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;box&amp;quot; file and the newly created &amp;quot;rec.crg.lds.pdb&amp;quot; file from the previous script. If you already have &amp;quot;hydrogen/&amp;quot; and &amp;quot;heavy/&amp;quot; subdirectories within your &amp;quot;working/&amp;quot; directory, it will ask you to either move or delete these.&lt;br /&gt;
&lt;br /&gt;
If you had a ligand desolvation sphere radius of 0.1 Å, use the following command:&lt;br /&gt;
&lt;br /&gt;
   python ~rstein/zzz.scripts/DOCK_prep_scripts/0002_make_ld_dirs.py -p {FULL_PATH_TO_DOCK_DIR} -r 0.1&lt;br /&gt;
&lt;br /&gt;
FINAL STEP!&lt;br /&gt;
Once you have generated the &amp;quot;ligand.desolv.hydrogen&amp;quot; and &amp;quot;ligand.desolv.heavy&amp;quot; grids in {FULL_PATH_TO_DOCK_DIR/working/hydrogen/ and {YOUR_DOCK_DIR/working/heavy/ directories, make sure to copy them to your &amp;quot;/dockfiles/&amp;quot; directory:&lt;br /&gt;
&lt;br /&gt;
    cp {FULL_PATH_TO_DOCK_DIR/working/hydrogen/ligand.desolv.hydrogen dockfiles/.&lt;br /&gt;
    cp {FULL_PATH_TO_DOCK_DIR/working/heavy/ligand.desolv.heavy dockfiles/.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Generating_extrema_set&amp;diff=12603</id>
		<title>Generating extrema set</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Generating_extrema_set&amp;diff=12603"/>
		<updated>2020-05-27T17:13:23Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Updated 5/27/2020&lt;br /&gt;
&lt;br /&gt;
Written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
This is a wrapper script that performs everything below including JK&#039;s &amp;quot;gen_extrema.py&amp;quot; script.&lt;br /&gt;
It requires a SMILES file and the number of molecules you would like from each molecular weight/cLogP tranche. Make sure to source python3&lt;br /&gt;
 &lt;br /&gt;
    source /nfs/soft/python/current/env.csh&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/TLDR_DUDE/0001_db2_map_tranche_collect_db2_gz.py -s {SMILES_FILES}&lt;br /&gt;
&lt;br /&gt;
You can also specify number of molecules to return. The default is 500.&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/TLDR_DUDE/0001_db2_map_tranche_collect_db2_gz.py -s {SMILES_FILES} -n 1000&lt;br /&gt;
&lt;br /&gt;
This script will find the interquartile range of molecular weight/cLogP properties of your input SMILES ligands. Then it will retrieve db2.gz files for all -2, -1, 0, +1, +2 charges for each MWT/cLogP tranche.&lt;br /&gt;
&lt;br /&gt;
Once this finishes running, as below:&lt;br /&gt;
&lt;br /&gt;
   cat *_charge_tranches.list &amp;gt; extrema_set.list&lt;br /&gt;
&lt;br /&gt;
which is the split_database_index you would then use for docking.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2019/10/12&lt;br /&gt;
&lt;br /&gt;
The main purpose of the extrema set is to test the charge preference of your docking setup and to make sure that you don&#039;t over-optimize your docking setup with property-matched(charged-matched) decoys generated by DUDE. This is also a sanity check of your docking setup, put it on your checklist!&lt;br /&gt;
&lt;br /&gt;
 extrema_set_gen------- working &lt;br /&gt;
                               |&lt;br /&gt;
                               |------ ZINC-downloader-3D-minu2.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-minu1.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-neutral.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-plus1.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-plus2.database_index&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir extrema_set_gen&lt;br /&gt;
 cd extrema_set_gen&lt;br /&gt;
 mkdir working&lt;br /&gt;
&lt;br /&gt;
2) Download databases index from ZINC with different charge types&lt;br /&gt;
&lt;br /&gt;
2.1) Go to ZINC http://zinc15.docking.org/tranches/home/#&lt;br /&gt;
&lt;br /&gt;
2.2) Choose the tranches you want to generate extrema set for testing the charge preference. The goldilocks set has been chosen here as an example.&lt;br /&gt;
[[File:Minus2.png|thumb|center|500px|Choose the -2 charged tranches for your extrema set]]&lt;br /&gt;
[[File:Minus1.png|thumb|center|500px|Choose the -1 charged tranches for your extrema set]]&lt;br /&gt;
[[File:0.png|thumb|center|500px|Choose the neutral tranches for your extrema set]]&lt;br /&gt;
[[File:Plus1.png|thumb|center|500px|Choose the +1 charged tranches for your extrema set]]&lt;br /&gt;
[[File:Plus2.png|thumb|center|500px|Choose the +2 charged tranches for your extrema set]]&lt;br /&gt;
&lt;br /&gt;
2.3) download the databases index file for each charge type&lt;br /&gt;
[[File:Download.png|thumb|center|500px|download the databases index file for each charge type]]&lt;br /&gt;
&lt;br /&gt;
2.4) download the files above and save it as ZINC-downloader-3D-(charge-type).database_index, then upload the file to the working directory. In the working directory, you are supposed to have 5 files with names: ZINC-downloader-3D-minu2.database_index, ZINC-downloader-3D-minu1.database_index, ZINC-downloader-3D-neutral.database_index, ZINC-downloader-3D-plus1.database_index and ZINC-downloader-3D-plus2.database_index.&lt;br /&gt;
&lt;br /&gt;
3) Run extrema set generation on 5 different charge types&lt;br /&gt;
&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py&lt;br /&gt;
 First input: the DB index from ZINC15&lt;br /&gt;
 Second input: the prefix of the ligand charge&lt;br /&gt;
 Third input: the lower bound of number of molecules for each tranche&lt;br /&gt;
&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-plus2.database_index &#039;plus2&#039; 100 &amp;gt; log_plus2 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-plus1.database_index &#039;plus1&#039; 100 &amp;gt; log_plus1 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-neutral.database_index &#039;0&#039; 100 &amp;gt; log_0 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-minus1.database_index &#039;minus1&#039; 100 &amp;gt; log_minus1 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-minus2.database_index &#039;minus2&#039; 100 &amp;gt; log_minus2 &amp;amp;&lt;br /&gt;
&lt;br /&gt;
4) Output files&lt;br /&gt;
&lt;br /&gt;
4.1) (charge-type)_tranche_summary.txt. The file contains how many molecules has been selected from each tranche. The section below is an example:&lt;br /&gt;
 EF 430&lt;br /&gt;
 DF 337&lt;br /&gt;
 ED 293&lt;br /&gt;
 DD 181&lt;br /&gt;
 DE 120&lt;br /&gt;
 CF 112&lt;br /&gt;
 CE 131&lt;br /&gt;
 CD 272&lt;br /&gt;
 EE 118&lt;br /&gt;
 1994&lt;br /&gt;
&lt;br /&gt;
4.2) (charge-type)_charge_tranches.list. The file contains all the db2 indexes that have been selected from the extrema generation.&lt;br /&gt;
&lt;br /&gt;
5) Combine all the db2 indexes generated by the script.&lt;br /&gt;
 cat *_charge_tranches.list &amp;gt; extrema_set.list&lt;br /&gt;
&lt;br /&gt;
6) Use the extrema_set.list as .sdi to set up your docking screen then run it.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Generating_extrema_set&amp;diff=12600</id>
		<title>Generating extrema set</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Generating_extrema_set&amp;diff=12600"/>
		<updated>2020-05-27T17:12:16Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Updated 5/21/2020&lt;br /&gt;
&lt;br /&gt;
Written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
This is a wrapper script that performs everything below including JK&#039;s &amp;quot;gen_extrema.py&amp;quot; script.&lt;br /&gt;
It requires a SMILES file and the number of molecules you would like from each molecular weight/cLogP tranche. Make sure to source python3&lt;br /&gt;
 &lt;br /&gt;
    source /nfs/soft/python/current/env.csh&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/TLDR_DUDE/0001_db2_map_tranche_collect_db2_gz.py -s {SMILES_FILES}&lt;br /&gt;
&lt;br /&gt;
You can also specify number of molecules to return. The default is 500.&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/TLDR_DUDE/0001_db2_map_tranche_collect_db2_gz.py -s {SMILES_FILES} -n 1000&lt;br /&gt;
&lt;br /&gt;
This script will find the interquartile range of molecular weight/cLogP properties of your input SMILES ligands. Then it will retrieve db2.gz files for all -2, -1, 0, +1, +2 charges for each MWT/cLogP tranche.&lt;br /&gt;
&lt;br /&gt;
Once this finishes running, as below:&lt;br /&gt;
&lt;br /&gt;
   cat *_charge_tranches.list &amp;gt; extrema_set.list&lt;br /&gt;
&lt;br /&gt;
which is the split_database_index you would then use for docking.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2019/10/12&lt;br /&gt;
&lt;br /&gt;
The main purpose of the extrema set is to test the charge preference of your docking setup and to make sure that you don&#039;t over-optimize your docking setup with property-matched(charged-matched) decoys generated by DUDE. This is also a sanity check of your docking setup, put it on your checklist!&lt;br /&gt;
&lt;br /&gt;
 extrema_set_gen------- working &lt;br /&gt;
                               |&lt;br /&gt;
                               |------ ZINC-downloader-3D-minu2.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-minu1.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-neutral.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-plus1.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-plus2.database_index&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir extrema_set_gen&lt;br /&gt;
 cd extrema_set_gen&lt;br /&gt;
 mkdir working&lt;br /&gt;
&lt;br /&gt;
2) Download databases index from ZINC with different charge types&lt;br /&gt;
&lt;br /&gt;
2.1) Go to ZINC http://zinc15.docking.org/tranches/home/#&lt;br /&gt;
&lt;br /&gt;
2.2) Choose the tranches you want to generate extrema set for testing the charge preference. The goldilocks set has been chosen here as an example.&lt;br /&gt;
[[File:Minus2.png|thumb|center|500px|Choose the -2 charged tranches for your extrema set]]&lt;br /&gt;
[[File:Minus1.png|thumb|center|500px|Choose the -1 charged tranches for your extrema set]]&lt;br /&gt;
[[File:0.png|thumb|center|500px|Choose the neutral tranches for your extrema set]]&lt;br /&gt;
[[File:Plus1.png|thumb|center|500px|Choose the +1 charged tranches for your extrema set]]&lt;br /&gt;
[[File:Plus2.png|thumb|center|500px|Choose the +2 charged tranches for your extrema set]]&lt;br /&gt;
&lt;br /&gt;
2.3) download the databases index file for each charge type&lt;br /&gt;
[[File:Download.png|thumb|center|500px|download the databases index file for each charge type]]&lt;br /&gt;
&lt;br /&gt;
2.4) download the files above and save it as ZINC-downloader-3D-(charge-type).database_index, then upload the file to the working directory. In the working directory, you are supposed to have 5 files with names: ZINC-downloader-3D-minu2.database_index, ZINC-downloader-3D-minu1.database_index, ZINC-downloader-3D-neutral.database_index, ZINC-downloader-3D-plus1.database_index and ZINC-downloader-3D-plus2.database_index.&lt;br /&gt;
&lt;br /&gt;
3) Run extrema set generation on 5 different charge types&lt;br /&gt;
&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py&lt;br /&gt;
 First input: the DB index from ZINC15&lt;br /&gt;
 Second input: the prefix of the ligand charge&lt;br /&gt;
 Third input: the lower bound of number of molecules for each tranche&lt;br /&gt;
&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-plus2.database_index &#039;plus2&#039; 100 &amp;gt; log_plus2 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-plus1.database_index &#039;plus1&#039; 100 &amp;gt; log_plus1 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-neutral.database_index &#039;0&#039; 100 &amp;gt; log_0 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-minus1.database_index &#039;minus1&#039; 100 &amp;gt; log_minus1 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-minus2.database_index &#039;minus2&#039; 100 &amp;gt; log_minus2 &amp;amp;&lt;br /&gt;
&lt;br /&gt;
4) Output files&lt;br /&gt;
&lt;br /&gt;
4.1) (charge-type)_tranche_summary.txt. The file contains how many molecules has been selected from each tranche. The section below is an example:&lt;br /&gt;
 EF 430&lt;br /&gt;
 DF 337&lt;br /&gt;
 ED 293&lt;br /&gt;
 DD 181&lt;br /&gt;
 DE 120&lt;br /&gt;
 CF 112&lt;br /&gt;
 CE 131&lt;br /&gt;
 CD 272&lt;br /&gt;
 EE 118&lt;br /&gt;
 1994&lt;br /&gt;
&lt;br /&gt;
4.2) (charge-type)_charge_tranches.list. The file contains all the db2 indexes that have been selected from the extrema generation.&lt;br /&gt;
&lt;br /&gt;
5) Combine all the db2 indexes generated by the script.&lt;br /&gt;
 cat *_charge_tranches.list &amp;gt; extrema_set.list&lt;br /&gt;
&lt;br /&gt;
6) Use the extrema_set.list as .sdi to set up your docking screen then run it.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Generating_extrema_set&amp;diff=12567</id>
		<title>Generating extrema set</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Generating_extrema_set&amp;diff=12567"/>
		<updated>2020-05-21T20:47:07Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Updated 5/21/2020&lt;br /&gt;
&lt;br /&gt;
Written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
This is a wrapper script that performs everything below including JK&#039;s &amp;quot;gen_extrema.py&amp;quot; script.&lt;br /&gt;
It requires a SMILES file and the number of molecules you would like from each molecular weight/cLogP tranche. Make sure to source python3&lt;br /&gt;
 &lt;br /&gt;
    source /nfs/soft/python/current/env.csh&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/TLDR_DUDE/0001_map_tranche_collect_db2_gz.py {SMILES_FILE} {NUM_MOLS}&lt;br /&gt;
&lt;br /&gt;
A good number of molecules is 1-2K&lt;br /&gt;
&lt;br /&gt;
This script will find the interquartile range of molecular weight/cLogP properties of your input SMILES ligands. Then it will retrieve db2.gz files for all -2, -1, 0, +1, +2 charges for each MWT/cLogP tranche.&lt;br /&gt;
&lt;br /&gt;
Once this finishes running, as below:&lt;br /&gt;
&lt;br /&gt;
   cat *_charge_tranches.list &amp;gt; extrema_set.list&lt;br /&gt;
&lt;br /&gt;
which is the split_database_index you would then use for docking.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2019/10/12&lt;br /&gt;
&lt;br /&gt;
The main purpose of the extrema set is to test the charge preference of your docking setup and to make sure that you don&#039;t over-optimize your docking setup with property-matched(charged-matched) decoys generated by DUDE. This is also a sanity check of your docking setup, put it on your checklist!&lt;br /&gt;
&lt;br /&gt;
 extrema_set_gen------- working &lt;br /&gt;
                               |&lt;br /&gt;
                               |------ ZINC-downloader-3D-minu2.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-minu1.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-neutral.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-plus1.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-plus2.database_index&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir extrema_set_gen&lt;br /&gt;
 cd extrema_set_gen&lt;br /&gt;
 mkdir working&lt;br /&gt;
&lt;br /&gt;
2) Download databases index from ZINC with different charge types&lt;br /&gt;
&lt;br /&gt;
2.1) Go to ZINC http://zinc15.docking.org/tranches/home/#&lt;br /&gt;
&lt;br /&gt;
2.2) Choose the tranches you want to generate extrema set for testing the charge preference. The goldilocks set has been chosen here as an example.&lt;br /&gt;
[[File:Minus2.png|thumb|center|500px|Choose the -2 charged tranches for your extrema set]]&lt;br /&gt;
[[File:Minus1.png|thumb|center|500px|Choose the -1 charged tranches for your extrema set]]&lt;br /&gt;
[[File:0.png|thumb|center|500px|Choose the neutral tranches for your extrema set]]&lt;br /&gt;
[[File:Plus1.png|thumb|center|500px|Choose the +1 charged tranches for your extrema set]]&lt;br /&gt;
[[File:Plus2.png|thumb|center|500px|Choose the +2 charged tranches for your extrema set]]&lt;br /&gt;
&lt;br /&gt;
2.3) download the databases index file for each charge type&lt;br /&gt;
[[File:Download.png|thumb|center|500px|download the databases index file for each charge type]]&lt;br /&gt;
&lt;br /&gt;
2.4) download the files above and save it as ZINC-downloader-3D-(charge-type).database_index, then upload the file to the working directory. In the working directory, you are supposed to have 5 files with names: ZINC-downloader-3D-minu2.database_index, ZINC-downloader-3D-minu1.database_index, ZINC-downloader-3D-neutral.database_index, ZINC-downloader-3D-plus1.database_index and ZINC-downloader-3D-plus2.database_index.&lt;br /&gt;
&lt;br /&gt;
3) Run extrema set generation on 5 different charge types&lt;br /&gt;
&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py&lt;br /&gt;
 First input: the DB index from ZINC15&lt;br /&gt;
 Second input: the prefix of the ligand charge&lt;br /&gt;
 Third input: the lower bound of number of molecules for each tranche&lt;br /&gt;
&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-plus2.database_index &#039;plus2&#039; 100 &amp;gt; log_plus2 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-plus1.database_index &#039;plus1&#039; 100 &amp;gt; log_plus1 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-neutral.database_index &#039;0&#039; 100 &amp;gt; log_0 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-minus1.database_index &#039;minus1&#039; 100 &amp;gt; log_minus1 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-minus2.database_index &#039;minus2&#039; 100 &amp;gt; log_minus2 &amp;amp;&lt;br /&gt;
&lt;br /&gt;
4) Output files&lt;br /&gt;
&lt;br /&gt;
4.1) (charge-type)_tranche_summary.txt. The file contains how many molecules has been selected from each tranche. The section below is an example:&lt;br /&gt;
 EF 430&lt;br /&gt;
 DF 337&lt;br /&gt;
 ED 293&lt;br /&gt;
 DD 181&lt;br /&gt;
 DE 120&lt;br /&gt;
 CF 112&lt;br /&gt;
 CE 131&lt;br /&gt;
 CD 272&lt;br /&gt;
 EE 118&lt;br /&gt;
 1994&lt;br /&gt;
&lt;br /&gt;
4.2) (charge-type)_charge_tranches.list. The file contains all the db2 indexes that have been selected from the extrema generation.&lt;br /&gt;
&lt;br /&gt;
5) Combine all the db2 indexes generated by the script.&lt;br /&gt;
 cat *_charge_tranches.list &amp;gt; extrema_set.list&lt;br /&gt;
&lt;br /&gt;
6) Use the extrema_set.list as .sdi to set up your docking screen then run it.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Generating_extrema_set&amp;diff=12566</id>
		<title>Generating extrema set</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Generating_extrema_set&amp;diff=12566"/>
		<updated>2020-05-21T19:41:04Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Updated 5/21/2020&lt;br /&gt;
&lt;br /&gt;
Written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
A wrapper script that performs everything below requires a SMILES file and the number of molecules you would like from each molecular weight/cLogP tranche. Make sure to source python3&lt;br /&gt;
 &lt;br /&gt;
    source /nfs/soft/python/current/env.csh&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/TLDR_DUDE/0001_map_tranche_collect_db2_gz.py {SMILES_FILE} {NUM_MOLS}&lt;br /&gt;
&lt;br /&gt;
This script will find the interquartile range of molecular weight/cLogP properties of your input SMILES ligands. Then it will retrieve db2.gz files for all -2, -1, 0, +1, +2 charges for each MWT/cLogP tranche.&lt;br /&gt;
&lt;br /&gt;
Once this finishes running, as below:&lt;br /&gt;
&lt;br /&gt;
   cat *_charge_tranches.list &amp;gt; extrema_set.list&lt;br /&gt;
&lt;br /&gt;
which is the split_database_index you would then use for docking.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2019/10/12&lt;br /&gt;
&lt;br /&gt;
The main purpose of the extrema set is to test the charge preference of your docking setup and to make sure that you don&#039;t over-optimize your docking setup with property-matched(charged-matched) decoys generated by DUDE. This is also a sanity check of your docking setup, put it on your checklist!&lt;br /&gt;
&lt;br /&gt;
 extrema_set_gen------- working &lt;br /&gt;
                               |&lt;br /&gt;
                               |------ ZINC-downloader-3D-minu2.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-minu1.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-neutral.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-plus1.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-plus2.database_index&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir extrema_set_gen&lt;br /&gt;
 cd extrema_set_gen&lt;br /&gt;
 mkdir working&lt;br /&gt;
&lt;br /&gt;
2) Download databases index from ZINC with different charge types&lt;br /&gt;
&lt;br /&gt;
2.1) Go to ZINC http://zinc15.docking.org/tranches/home/#&lt;br /&gt;
&lt;br /&gt;
2.2) Choose the tranches you want to generate extrema set for testing the charge preference. The goldilocks set has been chosen here as an example.&lt;br /&gt;
[[File:Minus2.png|thumb|center|500px|Choose the -2 charged tranches for your extrema set]]&lt;br /&gt;
[[File:Minus1.png|thumb|center|500px|Choose the -1 charged tranches for your extrema set]]&lt;br /&gt;
[[File:0.png|thumb|center|500px|Choose the neutral tranches for your extrema set]]&lt;br /&gt;
[[File:Plus1.png|thumb|center|500px|Choose the +1 charged tranches for your extrema set]]&lt;br /&gt;
[[File:Plus2.png|thumb|center|500px|Choose the +2 charged tranches for your extrema set]]&lt;br /&gt;
&lt;br /&gt;
2.3) download the databases index file for each charge type&lt;br /&gt;
[[File:Download.png|thumb|center|500px|download the databases index file for each charge type]]&lt;br /&gt;
&lt;br /&gt;
2.4) download the files above and save it as ZINC-downloader-3D-(charge-type).database_index, then upload the file to the working directory. In the working directory, you are supposed to have 5 files with names: ZINC-downloader-3D-minu2.database_index, ZINC-downloader-3D-minu1.database_index, ZINC-downloader-3D-neutral.database_index, ZINC-downloader-3D-plus1.database_index and ZINC-downloader-3D-plus2.database_index.&lt;br /&gt;
&lt;br /&gt;
3) Run extrema set generation on 5 different charge types&lt;br /&gt;
&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py&lt;br /&gt;
 First input: the DB index from ZINC15&lt;br /&gt;
 Second input: the prefix of the ligand charge&lt;br /&gt;
 Third input: the lower bound of number of molecules for each tranche&lt;br /&gt;
&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-plus2.database_index &#039;plus2&#039; 100 &amp;gt; log_plus2 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-plus1.database_index &#039;plus1&#039; 100 &amp;gt; log_plus1 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-neutral.database_index &#039;0&#039; 100 &amp;gt; log_0 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-minus1.database_index &#039;minus1&#039; 100 &amp;gt; log_minus1 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-minus2.database_index &#039;minus2&#039; 100 &amp;gt; log_minus2 &amp;amp;&lt;br /&gt;
&lt;br /&gt;
4) Output files&lt;br /&gt;
&lt;br /&gt;
4.1) (charge-type)_tranche_summary.txt. The file contains how many molecules has been selected from each tranche. The section below is an example:&lt;br /&gt;
 EF 430&lt;br /&gt;
 DF 337&lt;br /&gt;
 ED 293&lt;br /&gt;
 DD 181&lt;br /&gt;
 DE 120&lt;br /&gt;
 CF 112&lt;br /&gt;
 CE 131&lt;br /&gt;
 CD 272&lt;br /&gt;
 EE 118&lt;br /&gt;
 1994&lt;br /&gt;
&lt;br /&gt;
4.2) (charge-type)_charge_tranches.list. The file contains all the db2 indexes that have been selected from the extrema generation.&lt;br /&gt;
&lt;br /&gt;
5) Combine all the db2 indexes generated by the script.&lt;br /&gt;
 cat *_charge_tranches.list &amp;gt; extrema_set.list&lt;br /&gt;
&lt;br /&gt;
6) Use the extrema_set.list as .sdi to set up your docking screen then run it.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Generating_extrema_set&amp;diff=12565</id>
		<title>Generating extrema set</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Generating_extrema_set&amp;diff=12565"/>
		<updated>2020-05-21T19:40:25Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Updated 5/21/2020&lt;br /&gt;
&lt;br /&gt;
Written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
A wrapper script that performs everything below requires a SMILES file and the number of molecules you would like from each molecular weight/cLogP tranche. Make sure to source python3&lt;br /&gt;
 &lt;br /&gt;
    source /nfs/soft/python/current/env.csh&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/TLDR_DUDE/0001_map_tranche_collect_db2_gz.py {SMILES_FILE} {NUM_MOLS}&lt;br /&gt;
&lt;br /&gt;
This script will find the interquartile range of molecular weight/cLogP properties of your input SMILES ligands. Then it will retrieve db2.gz files for all -2, -1, 0, +1, +2 charges for each MWT/cLogP tranche.&lt;br /&gt;
&lt;br /&gt;
Once this finishes running, as below:&lt;br /&gt;
&lt;br /&gt;
   cat *_charge_tranches.list &amp;gt; extrema_set.list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2019/10/12&lt;br /&gt;
&lt;br /&gt;
The main purpose of the extrema set is to test the charge preference of your docking setup and to make sure that you don&#039;t over-optimize your docking setup with property-matched(charged-matched) decoys generated by DUDE. This is also a sanity check of your docking setup, put it on your checklist!&lt;br /&gt;
&lt;br /&gt;
 extrema_set_gen------- working &lt;br /&gt;
                               |&lt;br /&gt;
                               |------ ZINC-downloader-3D-minu2.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-minu1.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-neutral.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-plus1.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-plus2.database_index&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir extrema_set_gen&lt;br /&gt;
 cd extrema_set_gen&lt;br /&gt;
 mkdir working&lt;br /&gt;
&lt;br /&gt;
2) Download databases index from ZINC with different charge types&lt;br /&gt;
&lt;br /&gt;
2.1) Go to ZINC http://zinc15.docking.org/tranches/home/#&lt;br /&gt;
&lt;br /&gt;
2.2) Choose the tranches you want to generate extrema set for testing the charge preference. The goldilocks set has been chosen here as an example.&lt;br /&gt;
[[File:Minus2.png|thumb|center|500px|Choose the -2 charged tranches for your extrema set]]&lt;br /&gt;
[[File:Minus1.png|thumb|center|500px|Choose the -1 charged tranches for your extrema set]]&lt;br /&gt;
[[File:0.png|thumb|center|500px|Choose the neutral tranches for your extrema set]]&lt;br /&gt;
[[File:Plus1.png|thumb|center|500px|Choose the +1 charged tranches for your extrema set]]&lt;br /&gt;
[[File:Plus2.png|thumb|center|500px|Choose the +2 charged tranches for your extrema set]]&lt;br /&gt;
&lt;br /&gt;
2.3) download the databases index file for each charge type&lt;br /&gt;
[[File:Download.png|thumb|center|500px|download the databases index file for each charge type]]&lt;br /&gt;
&lt;br /&gt;
2.4) download the files above and save it as ZINC-downloader-3D-(charge-type).database_index, then upload the file to the working directory. In the working directory, you are supposed to have 5 files with names: ZINC-downloader-3D-minu2.database_index, ZINC-downloader-3D-minu1.database_index, ZINC-downloader-3D-neutral.database_index, ZINC-downloader-3D-plus1.database_index and ZINC-downloader-3D-plus2.database_index.&lt;br /&gt;
&lt;br /&gt;
3) Run extrema set generation on 5 different charge types&lt;br /&gt;
&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py&lt;br /&gt;
 First input: the DB index from ZINC15&lt;br /&gt;
 Second input: the prefix of the ligand charge&lt;br /&gt;
 Third input: the lower bound of number of molecules for each tranche&lt;br /&gt;
&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-plus2.database_index &#039;plus2&#039; 100 &amp;gt; log_plus2 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-plus1.database_index &#039;plus1&#039; 100 &amp;gt; log_plus1 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-neutral.database_index &#039;0&#039; 100 &amp;gt; log_0 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-minus1.database_index &#039;minus1&#039; 100 &amp;gt; log_minus1 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-minus2.database_index &#039;minus2&#039; 100 &amp;gt; log_minus2 &amp;amp;&lt;br /&gt;
&lt;br /&gt;
4) Output files&lt;br /&gt;
&lt;br /&gt;
4.1) (charge-type)_tranche_summary.txt. The file contains how many molecules has been selected from each tranche. The section below is an example:&lt;br /&gt;
 EF 430&lt;br /&gt;
 DF 337&lt;br /&gt;
 ED 293&lt;br /&gt;
 DD 181&lt;br /&gt;
 DE 120&lt;br /&gt;
 CF 112&lt;br /&gt;
 CE 131&lt;br /&gt;
 CD 272&lt;br /&gt;
 EE 118&lt;br /&gt;
 1994&lt;br /&gt;
&lt;br /&gt;
4.2) (charge-type)_charge_tranches.list. The file contains all the db2 indexes that have been selected from the extrema generation.&lt;br /&gt;
&lt;br /&gt;
5) Combine all the db2 indexes generated by the script.&lt;br /&gt;
 cat *_charge_tranches.list &amp;gt; extrema_set.list&lt;br /&gt;
&lt;br /&gt;
6) Use the extrema_set.list as .sdi to set up your docking screen then run it.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Generating_extrema_set&amp;diff=12564</id>
		<title>Generating extrema set</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Generating_extrema_set&amp;diff=12564"/>
		<updated>2020-05-21T19:38:51Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Updated 5/21/2020&lt;br /&gt;
&lt;br /&gt;
Written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
A wrapper script that performs everything below requires a SMILES file and the number of molecules you would like from each molecular weight/cLogP tranche. Make sure to source python3&lt;br /&gt;
 &lt;br /&gt;
    source /nfs/soft/python/current/env.csh&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/TLDR_DUDE/0001_map_tranche_collect_db2_gz.py {SMILES_FILE} {NUM_MOLS}&lt;br /&gt;
&lt;br /&gt;
This script will find the interquartile range of molecular weight/cLogP properties of your input SMILES ligands. Then it will retrieve db2.gz files for all -2, -1, 0, +1, +2 charges for each MWT/cLogP tranche.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2019/10/12&lt;br /&gt;
&lt;br /&gt;
The main purpose of the extrema set is to test the charge preference of your docking setup and to make sure that you don&#039;t over-optimize your docking setup with property-matched(charged-matched) decoys generated by DUDE. This is also a sanity check of your docking setup, put it on your checklist!&lt;br /&gt;
&lt;br /&gt;
 extrema_set_gen------- working &lt;br /&gt;
                               |&lt;br /&gt;
                               |------ ZINC-downloader-3D-minu2.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-minu1.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-neutral.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-plus1.database_index&lt;br /&gt;
                               | &lt;br /&gt;
                               |------ ZINC-downloader-3D-plus2.database_index&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir extrema_set_gen&lt;br /&gt;
 cd extrema_set_gen&lt;br /&gt;
 mkdir working&lt;br /&gt;
&lt;br /&gt;
2) Download databases index from ZINC with different charge types&lt;br /&gt;
&lt;br /&gt;
2.1) Go to ZINC http://zinc15.docking.org/tranches/home/#&lt;br /&gt;
&lt;br /&gt;
2.2) Choose the tranches you want to generate extrema set for testing the charge preference. The goldilocks set has been chosen here as an example.&lt;br /&gt;
[[File:Minus2.png|thumb|center|500px|Choose the -2 charged tranches for your extrema set]]&lt;br /&gt;
[[File:Minus1.png|thumb|center|500px|Choose the -1 charged tranches for your extrema set]]&lt;br /&gt;
[[File:0.png|thumb|center|500px|Choose the neutral tranches for your extrema set]]&lt;br /&gt;
[[File:Plus1.png|thumb|center|500px|Choose the +1 charged tranches for your extrema set]]&lt;br /&gt;
[[File:Plus2.png|thumb|center|500px|Choose the +2 charged tranches for your extrema set]]&lt;br /&gt;
&lt;br /&gt;
2.3) download the databases index file for each charge type&lt;br /&gt;
[[File:Download.png|thumb|center|500px|download the databases index file for each charge type]]&lt;br /&gt;
&lt;br /&gt;
2.4) download the files above and save it as ZINC-downloader-3D-(charge-type).database_index, then upload the file to the working directory. In the working directory, you are supposed to have 5 files with names: ZINC-downloader-3D-minu2.database_index, ZINC-downloader-3D-minu1.database_index, ZINC-downloader-3D-neutral.database_index, ZINC-downloader-3D-plus1.database_index and ZINC-downloader-3D-plus2.database_index.&lt;br /&gt;
&lt;br /&gt;
3) Run extrema set generation on 5 different charge types&lt;br /&gt;
&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py&lt;br /&gt;
 First input: the DB index from ZINC15&lt;br /&gt;
 Second input: the prefix of the ligand charge&lt;br /&gt;
 Third input: the lower bound of number of molecules for each tranche&lt;br /&gt;
&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-plus2.database_index &#039;plus2&#039; 100 &amp;gt; log_plus2 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-plus1.database_index &#039;plus1&#039; 100 &amp;gt; log_plus1 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-neutral.database_index &#039;0&#039; 100 &amp;gt; log_0 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-minus1.database_index &#039;minus1&#039; 100 &amp;gt; log_minus1 &amp;amp;&lt;br /&gt;
 python /mnt/nfs/ex5/work/jklyu/sigma2/gen_extrema/script/gen_extrema.py ZINC-downloader-3D-minus2.database_index &#039;minus2&#039; 100 &amp;gt; log_minus2 &amp;amp;&lt;br /&gt;
&lt;br /&gt;
4) Output files&lt;br /&gt;
&lt;br /&gt;
4.1) (charge-type)_tranche_summary.txt. The file contains how many molecules has been selected from each tranche. The section below is an example:&lt;br /&gt;
 EF 430&lt;br /&gt;
 DF 337&lt;br /&gt;
 ED 293&lt;br /&gt;
 DD 181&lt;br /&gt;
 DE 120&lt;br /&gt;
 CF 112&lt;br /&gt;
 CE 131&lt;br /&gt;
 CD 272&lt;br /&gt;
 EE 118&lt;br /&gt;
 1994&lt;br /&gt;
&lt;br /&gt;
4.2) (charge-type)_charge_tranches.list. The file contains all the db2 indexes that have been selected from the extrema generation.&lt;br /&gt;
&lt;br /&gt;
5) Combine all the db2 indexes generated by the script.&lt;br /&gt;
 cat *_charge_tranches.list &amp;gt; extrema_set.list&lt;br /&gt;
&lt;br /&gt;
6) Use the extrema_set.list as .sdi to set up your docking screen then run it.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12563</id>
		<title>How to do parameter scanning</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12563"/>
		<updated>2020-05-21T19:32:56Z</updated>

		<summary type="html">&lt;p&gt;Rstein: /* Manually Generating ES/LD Combinations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Manually Generating ES/LD Combinations ==&lt;br /&gt;
&lt;br /&gt;
written by Reed Stein, updated 12/2019 so users can specify different low dielectric and ligand desolvation sphere radii&lt;br /&gt;
&lt;br /&gt;
To generate different sized low dielectric and ligand desolvation thin sphere combinations, you must first run blastermaster on your protein/ligand of interest. Once this is finished, make a new directory. Change into the new directory&lt;br /&gt;
and run the following command:&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_combined_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
The full path to your original blastermaster path is the only required argument. However, you can modify other default values including:&lt;br /&gt;
    1) Radius of low dielectric spheres you want to run: use the -es flag. Default radius for electrostatic spheres is [1.0, 1.3, 1.5, 1.7, 1.9]&lt;br /&gt;
    2) Radius of ligand desolvation spheres you want to run: use the -ld flag. Default radius for ligand desolvation spheres is [0.1, 0.2, 0.3, 0.4, 0.5]&lt;br /&gt;
    3) DMS density: use the -d flag. Default is 1.0&lt;br /&gt;
    4) Distance from crystallographic ligand: use the -xd flag. Default is 2 Å.&lt;br /&gt;
&lt;br /&gt;
If you wanted to change all, you could use:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_combined_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH} -es 1.1 1.2 1.3 -ld 0.1 0.3 -d 10 -xd 4&lt;br /&gt;
&lt;br /&gt;
This script will submit ligand desolvation jobs to the queue. This should take 15-30 minutes. Once finished, check your spheres and grids by following the steps here:&lt;br /&gt;
   &lt;br /&gt;
    http://wiki.docking.org/index.php/Protein_Target_Preparation_Updated&lt;br /&gt;
&lt;br /&gt;
Then run the following script to combine the ES/LD grids in all combinations:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0002_combine_es_ld_grids_into_combos.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
This will create a new directory called &amp;quot;combo_directories&amp;quot; with docking-ready directories inside. The directories will have the name format &amp;quot;es_{ES_sphere_radius}_ld_{LD_sphere_radius}&amp;quot;. &amp;quot;def&amp;quot; refers to grids taken from your {FULL_ORIGINAL_BLASTERMASTER_PATH} directory.&lt;br /&gt;
&lt;br /&gt;
These directories are now ready for docking.&lt;br /&gt;
&lt;br /&gt;
== Blastermaster Parameter Scanning == &lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2017/01/18&lt;br /&gt;
&lt;br /&gt;
4/16/2019 - this needs to be updated and will result in discontinuous thin spheres at low radii! &lt;br /&gt;
Use the tutorial above instead. Or use this link to run blastermaster manually:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Using_thin_spheres_in_DOCK3.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The hierarchy of the directories:&lt;br /&gt;
&lt;br /&gt;
 thin_spheres_parameter_scanning----- std_dockprep &lt;br /&gt;
                                                                 |&lt;br /&gt;
                                                                 |------ dockfiles&lt;br /&gt;
               |                                                 | &lt;br /&gt;
               |                                                 |----- working&lt;br /&gt;
               |                                                 |&lt;br /&gt;
               |                                                 ------ rec.pdb, xtal-lig.pdb, INDOCK and other files generated balstermaster.py&lt;br /&gt;
               |&lt;br /&gt;
               ------- script ------ dockprep_thin_spheres_in_batches.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ submit_dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ lig-decoy_enrichment.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ combineScoresAndPoses.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ AUCplot_of-lig-decoys.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ mk_matrix_logAUC.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ sph_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ pdb_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               ------- close_sph.py&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir thin_spheres_parameter_scanning&lt;br /&gt;
 cd thin_spheres_parameter_scanning&lt;br /&gt;
 mkdir std_dockprep&lt;br /&gt;
 mkdir script&lt;br /&gt;
&lt;br /&gt;
2) Run blastermaster.py in std_dockprep.  This will generate two directories: working and dockfiles&lt;br /&gt;
&lt;br /&gt;
3) Download sph_lib.py, pdb_lib.py and close_sph.py files into the script directory&lt;br /&gt;
 cd script&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/sph_lib.py &amp;gt; sph_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/pdb_lib.py &amp;gt; pdb_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/close_sph.py &amp;gt; close_sph.py&lt;br /&gt;
&lt;br /&gt;
4) Copy scripts from my path, and modify as necessary.&lt;br /&gt;
 &lt;br /&gt;
 cd script&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/ex5/work/jklyu/large_scale_docking/DRD2/struct_20180322/A122I_add_polarH_mini_HID/thin_spheres_parameter_scanning/scripts/*dockprep* .&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/lig-decoy_enrichment_submit.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/combineScoresAndPoses.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/mk_matrix_logAUC.py .&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5) Run parameter scanning.&lt;br /&gt;
 cd ../ # go back to thin_spheres_parameter_scanning folder&lt;br /&gt;
 csh /path/to/script/dockprep_thin_spheres_in_batches.csh /path/to/script/ /path/to/std_dockprep&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:- you can edit dockprep_thin_spheres_in_batches.csh to include more CPUs in Job Bound&lt;br /&gt;
&lt;br /&gt;
6) make the following subfolders&lt;br /&gt;
&lt;br /&gt;
   mkdir ligands-decoys&lt;br /&gt;
   cd ligands-decoys&lt;br /&gt;
   mkdir ligands&lt;br /&gt;
   mkdir decoys&lt;br /&gt;
&lt;br /&gt;
now copy your decoys.db2.gz to decoys&lt;br /&gt;
now copy your ligands.db2.gz to ligands&lt;br /&gt;
now copy decoys.smi to the folder&lt;br /&gt;
now copy ligands.smi to the folder&lt;br /&gt;
&lt;br /&gt;
7) Submit DOCK and enrichment calculation.&lt;br /&gt;
 csh /path/to/script/lig-decoy_enrichment.csh&lt;br /&gt;
&lt;br /&gt;
8) Combine and analyze the docking results.&lt;br /&gt;
 csh /path/to/script/combineScoresAndPoses.csh #1st change the path inside the script to your own dir&lt;br /&gt;
 csh /path/to/script/AUCplot_of-lig-decoys.csh #1st change the path inside the script to your own dir&lt;br /&gt;
&lt;br /&gt;
9) Visualize the logAUC by heatmap.&lt;br /&gt;
 python /path/to/script/mk_matrix_logAUC.py&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12562</id>
		<title>How to do parameter scanning</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12562"/>
		<updated>2020-05-21T19:32:27Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Manually Generating ES/LD Combinations ==&lt;br /&gt;
&lt;br /&gt;
written by Reed Stein, updated 5/21/2020 so users can specify different low dielectric and ligand desolvation sphere radii&lt;br /&gt;
&lt;br /&gt;
To generate different sized low dielectric and ligand desolvation thin sphere combinations, you must first run blastermaster on your protein/ligand of interest. Once this is finished, make a new directory. Change into the new directory&lt;br /&gt;
and run the following command:&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_combined_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
The full path to your original blastermaster path is the only required argument. However, you can modify other default values including:&lt;br /&gt;
    1) Radius of low dielectric spheres you want to run: use the -es flag. Default radius for electrostatic spheres is [1.0, 1.3, 1.5, 1.7, 1.9]&lt;br /&gt;
    2) Radius of ligand desolvation spheres you want to run: use the -ld flag. Default radius for ligand desolvation spheres is [0.1, 0.2, 0.3, 0.4, 0.5]&lt;br /&gt;
    3) DMS density: use the -d flag. Default is 1.0&lt;br /&gt;
    4) Distance from crystallographic ligand: use the -xd flag. Default is 2 Å.&lt;br /&gt;
&lt;br /&gt;
If you wanted to change all, you could use:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_combined_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH} -es 1.1 1.2 1.3 -ld 0.1 0.3 -d 10 -xd 4&lt;br /&gt;
&lt;br /&gt;
This script will submit ligand desolvation jobs to the queue. This should take 15-30 minutes. Once finished, check your spheres and grids by following the steps here:&lt;br /&gt;
   &lt;br /&gt;
    http://wiki.docking.org/index.php/Protein_Target_Preparation_Updated&lt;br /&gt;
&lt;br /&gt;
Then run the following script to combine the ES/LD grids in all combinations:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0002_combine_es_ld_grids_into_combos.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
This will create a new directory called &amp;quot;combo_directories&amp;quot; with docking-ready directories inside. The directories will have the name format &amp;quot;es_{ES_sphere_radius}_ld_{LD_sphere_radius}&amp;quot;. &amp;quot;def&amp;quot; refers to grids taken from your {FULL_ORIGINAL_BLASTERMASTER_PATH} directory.&lt;br /&gt;
&lt;br /&gt;
These directories are now ready for docking.&lt;br /&gt;
&lt;br /&gt;
== Blastermaster Parameter Scanning == &lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2017/01/18&lt;br /&gt;
&lt;br /&gt;
4/16/2019 - this needs to be updated and will result in discontinuous thin spheres at low radii! &lt;br /&gt;
Use the tutorial above instead. Or use this link to run blastermaster manually:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Using_thin_spheres_in_DOCK3.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The hierarchy of the directories:&lt;br /&gt;
&lt;br /&gt;
 thin_spheres_parameter_scanning----- std_dockprep &lt;br /&gt;
                                                                 |&lt;br /&gt;
                                                                 |------ dockfiles&lt;br /&gt;
               |                                                 | &lt;br /&gt;
               |                                                 |----- working&lt;br /&gt;
               |                                                 |&lt;br /&gt;
               |                                                 ------ rec.pdb, xtal-lig.pdb, INDOCK and other files generated balstermaster.py&lt;br /&gt;
               |&lt;br /&gt;
               ------- script ------ dockprep_thin_spheres_in_batches.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ submit_dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ lig-decoy_enrichment.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ combineScoresAndPoses.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ AUCplot_of-lig-decoys.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ mk_matrix_logAUC.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ sph_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ pdb_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               ------- close_sph.py&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir thin_spheres_parameter_scanning&lt;br /&gt;
 cd thin_spheres_parameter_scanning&lt;br /&gt;
 mkdir std_dockprep&lt;br /&gt;
 mkdir script&lt;br /&gt;
&lt;br /&gt;
2) Run blastermaster.py in std_dockprep.  This will generate two directories: working and dockfiles&lt;br /&gt;
&lt;br /&gt;
3) Download sph_lib.py, pdb_lib.py and close_sph.py files into the script directory&lt;br /&gt;
 cd script&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/sph_lib.py &amp;gt; sph_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/pdb_lib.py &amp;gt; pdb_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/close_sph.py &amp;gt; close_sph.py&lt;br /&gt;
&lt;br /&gt;
4) Copy scripts from my path, and modify as necessary.&lt;br /&gt;
 &lt;br /&gt;
 cd script&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/ex5/work/jklyu/large_scale_docking/DRD2/struct_20180322/A122I_add_polarH_mini_HID/thin_spheres_parameter_scanning/scripts/*dockprep* .&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/lig-decoy_enrichment_submit.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/combineScoresAndPoses.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/mk_matrix_logAUC.py .&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5) Run parameter scanning.&lt;br /&gt;
 cd ../ # go back to thin_spheres_parameter_scanning folder&lt;br /&gt;
 csh /path/to/script/dockprep_thin_spheres_in_batches.csh /path/to/script/ /path/to/std_dockprep&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:- you can edit dockprep_thin_spheres_in_batches.csh to include more CPUs in Job Bound&lt;br /&gt;
&lt;br /&gt;
6) make the following subfolders&lt;br /&gt;
&lt;br /&gt;
   mkdir ligands-decoys&lt;br /&gt;
   cd ligands-decoys&lt;br /&gt;
   mkdir ligands&lt;br /&gt;
   mkdir decoys&lt;br /&gt;
&lt;br /&gt;
now copy your decoys.db2.gz to decoys&lt;br /&gt;
now copy your ligands.db2.gz to ligands&lt;br /&gt;
now copy decoys.smi to the folder&lt;br /&gt;
now copy ligands.smi to the folder&lt;br /&gt;
&lt;br /&gt;
7) Submit DOCK and enrichment calculation.&lt;br /&gt;
 csh /path/to/script/lig-decoy_enrichment.csh&lt;br /&gt;
&lt;br /&gt;
8) Combine and analyze the docking results.&lt;br /&gt;
 csh /path/to/script/combineScoresAndPoses.csh #1st change the path inside the script to your own dir&lt;br /&gt;
 csh /path/to/script/AUCplot_of-lig-decoys.csh #1st change the path inside the script to your own dir&lt;br /&gt;
&lt;br /&gt;
9) Visualize the logAUC by heatmap.&lt;br /&gt;
 python /path/to/script/mk_matrix_logAUC.py&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=DOCK_3.7&amp;diff=12561</id>
		<title>DOCK 3.7</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=DOCK_3.7&amp;diff=12561"/>
		<updated>2020-05-21T19:31:46Z</updated>

		<summary type="html">&lt;p&gt;Rstein: /* Prepare Receptor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= About = &lt;br /&gt;
&lt;br /&gt;
DOCK 3.7 the current version in the [[DOCK 3]] series of docking programs developed and used by the [[Shoichet Lab]]. Please read and cite the DOCK 3.7 paper&lt;br /&gt;
[http://www.plosone.org/article/info:doi/10.1371/journal.pone.0075992 Coleman, Carchia, Sterling, Irwin &amp;amp; Shoichet, PLOS ONE 2013.]&lt;br /&gt;
&lt;br /&gt;
DOCK 3.7 is written in Fortran and some C. It is an update of [[DOCK 3.6]] with many improved features. DOCK 3.7 comes with all the tools necessary to prepare a &lt;br /&gt;
protein for docking and some tools necessary to build ligands, though some tools must be obtained externally. It uses new Flexibase/DB2 files found in [[ZINC15]]. It includes tools to prepare receptors, and several auxiliary scripts.&lt;br /&gt;
&lt;br /&gt;
DOCK 3.7 is available at  [http://dock.compbio.ucsf.edu/DOCK3.7/ http://dock.compbio.ucsf.edu/DOCK3.7/].&lt;br /&gt;
&lt;br /&gt;
{{TOCright}}&lt;br /&gt;
&lt;br /&gt;
= Start here =&lt;br /&gt;
* [[So you want to set up a lab]] - only if you don&#039;t already have hardware ready.&lt;br /&gt;
* [[Install DOCK 3.7]]&lt;br /&gt;
* [[DOCK 3.7 2014/09/25 FXa Tutorial]]&lt;br /&gt;
* [[DOCK 3.7 2015/04/15 abl1 Tutorial]] superseded&lt;br /&gt;
* [[DOCK 3.7 2018/06/05 abl1 Tutorial]]&lt;br /&gt;
* [[DOCK 3.7 2016/09/16 Tutorial for Enrichment Calculations (Trent &amp;amp;  Jiankun)]]&lt;br /&gt;
* [[DOCK 3.7 tutorial (Anat)]]&lt;br /&gt;
* [[DOCK 3.7 with GIST tutorials]]&lt;br /&gt;
* [[DOCK 3.7 tutorial based on Webinar 2017/06/28]]&lt;br /&gt;
* [[Getting started with DOCK 3.7]]&lt;br /&gt;
* [[Blastermaster]] - Prepare input for and then run [[DOCK 3.7]].&lt;br /&gt;
* [[Ligand preparation 3.7]] - Create dockable databases for [[DOCK 3.7]].&lt;br /&gt;
* [[Ligand preparation]] - different version. &lt;br /&gt;
* [[Ligand prep Irwin Nov 2016]] - John&#039;s current version&lt;br /&gt;
* [[Mol2db2 Format 2]] - details on the database formate.&lt;br /&gt;
* [[Running docking 3.7]] - how to actually run docking.&lt;br /&gt;
* [[DOCK 3.7 Development]] - for software developers&lt;br /&gt;
* [[prepare a receptor with a cofactor for docking]]&lt;br /&gt;
=== For DOCKovalent, start here ===&lt;br /&gt;
* [[DOCKovalent_3.7]]&lt;br /&gt;
* [[DOCKovalent lysine inhibitor design tutorial]]&lt;br /&gt;
* [[DOCKovalent cysteine inhibitor design tutorial]]&lt;br /&gt;
&lt;br /&gt;
= Prepare Receptor = &lt;br /&gt;
* [[Protein Target Preparation]]&lt;br /&gt;
* [[Protein Target Preparation Updated]]&lt;br /&gt;
* [[Using_thin_spheres_in_DOCK3.7]]&lt;br /&gt;
* [[How to do parameter scanning]]&lt;br /&gt;
*[[Matching Sphere Scan]]&lt;br /&gt;
*[[Removing Spheres (The Chase Method)]]&lt;br /&gt;
* [[Adding Static Waters to the Protein Structure]]&lt;br /&gt;
* [[Flexible Docking]]&lt;br /&gt;
* [[Visualize docking grids]]&lt;br /&gt;
* [[Minimize protein-ligand complex with AMBER]]&lt;br /&gt;
* [[Minimize protein-covalent ligand complex with AMBER]]&lt;br /&gt;
&lt;br /&gt;
= Prepare Screening Library =&lt;br /&gt;
* [[mol2db2]] is the program that creates [[mol2db2 format]] database files which are read by [[DOCK 3.7]]&lt;br /&gt;
* [[ligand preparation 3.7]]&lt;br /&gt;
* [[generating decoys (Reed&#039;s way)]]&lt;br /&gt;
* [[generating extrema set]]&lt;br /&gt;
&lt;br /&gt;
= Running Docking =&lt;br /&gt;
* [[Running docking 3.7]] - JJI currently working on this.&lt;br /&gt;
* [[Running DOCK 3.7]] - this seems to be slightly dated.&lt;br /&gt;
* [[INDOCK 3.7]] - file format used by [[DOCK 3.7]]&lt;br /&gt;
* [[DOCK3.7_INDOCK_Minimization_Parameter]] - How to run DOCK 3.7.1rc1 (and latter versions) with the minimization.&lt;br /&gt;
* Interpreting the [[OUTDOCK 3.7]] file.&lt;br /&gt;
&lt;br /&gt;
= Analysis =&lt;br /&gt;
* [[Analyzing DOCK Results]]&lt;br /&gt;
* [http://autodude.docking.org/ Auto-DUD-E Test Set] (external site) &lt;br /&gt;
* [[Other Useful Stuff]]&lt;br /&gt;
* [[Bootstrap AUC]]&lt;br /&gt;
* [[another getposes.py]]&lt;br /&gt;
* [[Converting SMILES to Kekule Format]]&lt;br /&gt;
* Viewing results using [[ViewDock]]&lt;br /&gt;
&lt;br /&gt;
= Post Docking Clustering=&lt;br /&gt;
* [[How to process results from a large-scale docking]] &lt;br /&gt;
* [[Large-scale SMILES Requesting and Fingerprints Converting]]&lt;br /&gt;
* [[ECFP4 Best First Clustering]]&lt;br /&gt;
* [[Bemis-Murcko Scaffold Analysis]]&lt;br /&gt;
&lt;br /&gt;
= Post Docking Filters=&lt;br /&gt;
* [[Large-scale TC Calculations]]&lt;br /&gt;
* [[Whole Library TC to Knowns Calculations]]&lt;br /&gt;
* [[Filtering ligands for novelty]]&lt;br /&gt;
* [[Strain Filtering]]&lt;br /&gt;
* [[Interaction Filtering]]&lt;br /&gt;
* [[Torsion against CSD visualize with Maestro]]&lt;br /&gt;
&lt;br /&gt;
= Redocking with Enhanced Sampling =&lt;br /&gt;
*[[Sample Additional Ring Puckers ]]&lt;br /&gt;
= Rescoring =&lt;br /&gt;
*[[Rescoring_with_DOCK_3.7]]&lt;br /&gt;
&lt;br /&gt;
= Available Libraries = &lt;br /&gt;
* [[ZINC Subset DB2 file locations]]&lt;br /&gt;
* how to get db2 files from zinc15.docking.org&lt;br /&gt;
&lt;br /&gt;
= Analog by Catalog= &lt;br /&gt;
* [[Substructure searching]]&lt;br /&gt;
* [[TC analog searching in ZINC]]&lt;br /&gt;
&lt;br /&gt;
= Previous verisons and compatibility = &lt;br /&gt;
DOCK 3.7 is part of the [[DOCK 3]] series. It differs substantially from its immediate predecessor [[DOCK 3.6]],&lt;br /&gt;
which uses a different format of database files that cannot be read by [[DOCK 3.7]], and vice versa. &lt;br /&gt;
&lt;br /&gt;
= How to Cite = &lt;br /&gt;
To cite the DOCK 3.7 paper, please use&lt;br /&gt;
[http://www.plosone.org/article/info:doi/10.1371/journal.pone.0075992 Coleman, Carchia, Sterling, Irwin &amp;amp; Shoichet, PLOS ONE 2013.]&lt;br /&gt;
&lt;br /&gt;
= How to Download = &lt;br /&gt;
DOCK 3.7 is available at  [http://dock.compbio.ucsf.edu/DOCK3.7/ http://dock.compbio.ucsf.edu/DOCK3.7/].&lt;br /&gt;
&lt;br /&gt;
= Implementation = &lt;br /&gt;
DOCK 3.7 is written in Fortran and some C. Scripts are mostly in [[python]] and [[perl]].&lt;br /&gt;
&lt;br /&gt;
{{Template:CC-BY-SA-30}}&lt;br /&gt;
{{Template:Coleman}}&lt;br /&gt;
&lt;br /&gt;
[[Category:DOCK 3.7]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Freecom]]&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12560</id>
		<title>How to do parameter scanning</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12560"/>
		<updated>2020-05-21T19:31:24Z</updated>

		<summary type="html">&lt;p&gt;Rstein: /* Blastermaster Parameter Scanning */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Manually Generating ES/LD Combinations ==&lt;br /&gt;
&lt;br /&gt;
written by Reed Stein, updated 5/21/2020 so users can specify different low dielectric and ligand desolvation sphere radii&lt;br /&gt;
&lt;br /&gt;
To generate different sized low dielectric and ligand desolvation thin sphere combinations, you must first run blastermaster on your protein/ligand of interest. Once this is finished, make a new directory. Change into the new directory&lt;br /&gt;
and run the following command:&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_combined_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
The full path to your original blastermaster path is the only required argument. However, you can modify other default values including:&lt;br /&gt;
    1) Radius of low dielectric spheres you want to run: use the -es flag. Default radius for electrostatic spheres is [1.0, 1.3, 1.5, 1.7, 1.9]&lt;br /&gt;
    2) Radius of ligand desolvation spheres you want to run: use the -ld flag. Default radius for ligand desolvation spheres is [0.1, 0.2, 0.3, 0.4, 0.5]&lt;br /&gt;
    3) DMS density: use the -d flag. Default is 1.0&lt;br /&gt;
    4) Distance from crystallographic ligand: use the -xd flag. Default is 2 Å.&lt;br /&gt;
&lt;br /&gt;
If you wanted to change all, you could use:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_combined_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH} -es 1.1 1.2 1.3 -ld 0.1 0.3 -d 10 -xd 4&lt;br /&gt;
&lt;br /&gt;
This script will submit ligand desolvation jobs to the queue. This should take 15-30 minutes. Once finished, check your spheres and grids by following the steps here:&lt;br /&gt;
   &lt;br /&gt;
    http://wiki.docking.org/index.php?title=Protein_Target_Preparation&lt;br /&gt;
&lt;br /&gt;
Then run the following script to combine the ES/LD grids in all combinations:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0002_combine_es_ld_grids_into_combos.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
This will create a new directory called &amp;quot;combo_directories&amp;quot; with docking-ready directories inside. The directories will have the name format &amp;quot;es_{ES_sphere_radius}_ld_{LD_sphere_radius}&amp;quot;. &amp;quot;def&amp;quot; refers to grids taken from your {FULL_ORIGINAL_BLASTERMASTER_PATH} directory.&lt;br /&gt;
&lt;br /&gt;
These directories are now ready for docking.&lt;br /&gt;
&lt;br /&gt;
== Blastermaster Parameter Scanning == &lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2017/01/18&lt;br /&gt;
&lt;br /&gt;
4/16/2019 - this needs to be updated and will result in discontinuous thin spheres at low radii! &lt;br /&gt;
Use the tutorial above instead. Or use this link to run blastermaster manually:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Using_thin_spheres_in_DOCK3.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The hierarchy of the directories:&lt;br /&gt;
&lt;br /&gt;
 thin_spheres_parameter_scanning----- std_dockprep &lt;br /&gt;
                                                                 |&lt;br /&gt;
                                                                 |------ dockfiles&lt;br /&gt;
               |                                                 | &lt;br /&gt;
               |                                                 |----- working&lt;br /&gt;
               |                                                 |&lt;br /&gt;
               |                                                 ------ rec.pdb, xtal-lig.pdb, INDOCK and other files generated balstermaster.py&lt;br /&gt;
               |&lt;br /&gt;
               ------- script ------ dockprep_thin_spheres_in_batches.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ submit_dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ lig-decoy_enrichment.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ combineScoresAndPoses.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ AUCplot_of-lig-decoys.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ mk_matrix_logAUC.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ sph_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ pdb_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               ------- close_sph.py&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir thin_spheres_parameter_scanning&lt;br /&gt;
 cd thin_spheres_parameter_scanning&lt;br /&gt;
 mkdir std_dockprep&lt;br /&gt;
 mkdir script&lt;br /&gt;
&lt;br /&gt;
2) Run blastermaster.py in std_dockprep.  This will generate two directories: working and dockfiles&lt;br /&gt;
&lt;br /&gt;
3) Download sph_lib.py, pdb_lib.py and close_sph.py files into the script directory&lt;br /&gt;
 cd script&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/sph_lib.py &amp;gt; sph_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/pdb_lib.py &amp;gt; pdb_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/close_sph.py &amp;gt; close_sph.py&lt;br /&gt;
&lt;br /&gt;
4) Copy scripts from my path, and modify as necessary.&lt;br /&gt;
 &lt;br /&gt;
 cd script&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/ex5/work/jklyu/large_scale_docking/DRD2/struct_20180322/A122I_add_polarH_mini_HID/thin_spheres_parameter_scanning/scripts/*dockprep* .&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/lig-decoy_enrichment_submit.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/combineScoresAndPoses.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/mk_matrix_logAUC.py .&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5) Run parameter scanning.&lt;br /&gt;
 cd ../ # go back to thin_spheres_parameter_scanning folder&lt;br /&gt;
 csh /path/to/script/dockprep_thin_spheres_in_batches.csh /path/to/script/ /path/to/std_dockprep&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:- you can edit dockprep_thin_spheres_in_batches.csh to include more CPUs in Job Bound&lt;br /&gt;
&lt;br /&gt;
6) make the following subfolders&lt;br /&gt;
&lt;br /&gt;
   mkdir ligands-decoys&lt;br /&gt;
   cd ligands-decoys&lt;br /&gt;
   mkdir ligands&lt;br /&gt;
   mkdir decoys&lt;br /&gt;
&lt;br /&gt;
now copy your decoys.db2.gz to decoys&lt;br /&gt;
now copy your ligands.db2.gz to ligands&lt;br /&gt;
now copy decoys.smi to the folder&lt;br /&gt;
now copy ligands.smi to the folder&lt;br /&gt;
&lt;br /&gt;
7) Submit DOCK and enrichment calculation.&lt;br /&gt;
 csh /path/to/script/lig-decoy_enrichment.csh&lt;br /&gt;
&lt;br /&gt;
8) Combine and analyze the docking results.&lt;br /&gt;
 csh /path/to/script/combineScoresAndPoses.csh #1st change the path inside the script to your own dir&lt;br /&gt;
 csh /path/to/script/AUCplot_of-lig-decoys.csh #1st change the path inside the script to your own dir&lt;br /&gt;
&lt;br /&gt;
9) Visualize the logAUC by heatmap.&lt;br /&gt;
 python /path/to/script/mk_matrix_logAUC.py&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12559</id>
		<title>How to do parameter scanning</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12559"/>
		<updated>2020-05-21T19:31:11Z</updated>

		<summary type="html">&lt;p&gt;Rstein: /* Blastermaster Parameter Scanning */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Manually Generating ES/LD Combinations ==&lt;br /&gt;
&lt;br /&gt;
written by Reed Stein, updated 5/21/2020 so users can specify different low dielectric and ligand desolvation sphere radii&lt;br /&gt;
&lt;br /&gt;
To generate different sized low dielectric and ligand desolvation thin sphere combinations, you must first run blastermaster on your protein/ligand of interest. Once this is finished, make a new directory. Change into the new directory&lt;br /&gt;
and run the following command:&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_combined_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
The full path to your original blastermaster path is the only required argument. However, you can modify other default values including:&lt;br /&gt;
    1) Radius of low dielectric spheres you want to run: use the -es flag. Default radius for electrostatic spheres is [1.0, 1.3, 1.5, 1.7, 1.9]&lt;br /&gt;
    2) Radius of ligand desolvation spheres you want to run: use the -ld flag. Default radius for ligand desolvation spheres is [0.1, 0.2, 0.3, 0.4, 0.5]&lt;br /&gt;
    3) DMS density: use the -d flag. Default is 1.0&lt;br /&gt;
    4) Distance from crystallographic ligand: use the -xd flag. Default is 2 Å.&lt;br /&gt;
&lt;br /&gt;
If you wanted to change all, you could use:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_combined_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH} -es 1.1 1.2 1.3 -ld 0.1 0.3 -d 10 -xd 4&lt;br /&gt;
&lt;br /&gt;
This script will submit ligand desolvation jobs to the queue. This should take 15-30 minutes. Once finished, check your spheres and grids by following the steps here:&lt;br /&gt;
   &lt;br /&gt;
    http://wiki.docking.org/index.php?title=Protein_Target_Preparation&lt;br /&gt;
&lt;br /&gt;
Then run the following script to combine the ES/LD grids in all combinations:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0002_combine_es_ld_grids_into_combos.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
This will create a new directory called &amp;quot;combo_directories&amp;quot; with docking-ready directories inside. The directories will have the name format &amp;quot;es_{ES_sphere_radius}_ld_{LD_sphere_radius}&amp;quot;. &amp;quot;def&amp;quot; refers to grids taken from your {FULL_ORIGINAL_BLASTERMASTER_PATH} directory.&lt;br /&gt;
&lt;br /&gt;
These directories are now ready for docking.&lt;br /&gt;
&lt;br /&gt;
== Blastermaster Parameter Scanning == &lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2017/01/18&lt;br /&gt;
&lt;br /&gt;
4/16/2019 - this needs to be updated and will result in discontinuous thin spheres at low radii! &lt;br /&gt;
Use the tutorial above instead. Or use this link to run blastermaster manually instead:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Using_thin_spheres_in_DOCK3.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The hierarchy of the directories:&lt;br /&gt;
&lt;br /&gt;
 thin_spheres_parameter_scanning----- std_dockprep &lt;br /&gt;
                                                                 |&lt;br /&gt;
                                                                 |------ dockfiles&lt;br /&gt;
               |                                                 | &lt;br /&gt;
               |                                                 |----- working&lt;br /&gt;
               |                                                 |&lt;br /&gt;
               |                                                 ------ rec.pdb, xtal-lig.pdb, INDOCK and other files generated balstermaster.py&lt;br /&gt;
               |&lt;br /&gt;
               ------- script ------ dockprep_thin_spheres_in_batches.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ submit_dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ lig-decoy_enrichment.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ combineScoresAndPoses.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ AUCplot_of-lig-decoys.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ mk_matrix_logAUC.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ sph_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ pdb_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               ------- close_sph.py&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir thin_spheres_parameter_scanning&lt;br /&gt;
 cd thin_spheres_parameter_scanning&lt;br /&gt;
 mkdir std_dockprep&lt;br /&gt;
 mkdir script&lt;br /&gt;
&lt;br /&gt;
2) Run blastermaster.py in std_dockprep.  This will generate two directories: working and dockfiles&lt;br /&gt;
&lt;br /&gt;
3) Download sph_lib.py, pdb_lib.py and close_sph.py files into the script directory&lt;br /&gt;
 cd script&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/sph_lib.py &amp;gt; sph_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/pdb_lib.py &amp;gt; pdb_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/close_sph.py &amp;gt; close_sph.py&lt;br /&gt;
&lt;br /&gt;
4) Copy scripts from my path, and modify as necessary.&lt;br /&gt;
 &lt;br /&gt;
 cd script&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/ex5/work/jklyu/large_scale_docking/DRD2/struct_20180322/A122I_add_polarH_mini_HID/thin_spheres_parameter_scanning/scripts/*dockprep* .&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/lig-decoy_enrichment_submit.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/combineScoresAndPoses.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/mk_matrix_logAUC.py .&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5) Run parameter scanning.&lt;br /&gt;
 cd ../ # go back to thin_spheres_parameter_scanning folder&lt;br /&gt;
 csh /path/to/script/dockprep_thin_spheres_in_batches.csh /path/to/script/ /path/to/std_dockprep&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:- you can edit dockprep_thin_spheres_in_batches.csh to include more CPUs in Job Bound&lt;br /&gt;
&lt;br /&gt;
6) make the following subfolders&lt;br /&gt;
&lt;br /&gt;
   mkdir ligands-decoys&lt;br /&gt;
   cd ligands-decoys&lt;br /&gt;
   mkdir ligands&lt;br /&gt;
   mkdir decoys&lt;br /&gt;
&lt;br /&gt;
now copy your decoys.db2.gz to decoys&lt;br /&gt;
now copy your ligands.db2.gz to ligands&lt;br /&gt;
now copy decoys.smi to the folder&lt;br /&gt;
now copy ligands.smi to the folder&lt;br /&gt;
&lt;br /&gt;
7) Submit DOCK and enrichment calculation.&lt;br /&gt;
 csh /path/to/script/lig-decoy_enrichment.csh&lt;br /&gt;
&lt;br /&gt;
8) Combine and analyze the docking results.&lt;br /&gt;
 csh /path/to/script/combineScoresAndPoses.csh #1st change the path inside the script to your own dir&lt;br /&gt;
 csh /path/to/script/AUCplot_of-lig-decoys.csh #1st change the path inside the script to your own dir&lt;br /&gt;
&lt;br /&gt;
9) Visualize the logAUC by heatmap.&lt;br /&gt;
 python /path/to/script/mk_matrix_logAUC.py&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12558</id>
		<title>How to do parameter scanning</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12558"/>
		<updated>2020-05-21T19:29:13Z</updated>

		<summary type="html">&lt;p&gt;Rstein: /* Manually Generating ES/LD Combinations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Manually Generating ES/LD Combinations ==&lt;br /&gt;
&lt;br /&gt;
written by Reed Stein, updated 5/21/2020 so users can specify different low dielectric and ligand desolvation sphere radii&lt;br /&gt;
&lt;br /&gt;
To generate different sized low dielectric and ligand desolvation thin sphere combinations, you must first run blastermaster on your protein/ligand of interest. Once this is finished, make a new directory. Change into the new directory&lt;br /&gt;
and run the following command:&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_combined_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
The full path to your original blastermaster path is the only required argument. However, you can modify other default values including:&lt;br /&gt;
    1) Radius of low dielectric spheres you want to run: use the -es flag. Default radius for electrostatic spheres is [1.0, 1.3, 1.5, 1.7, 1.9]&lt;br /&gt;
    2) Radius of ligand desolvation spheres you want to run: use the -ld flag. Default radius for ligand desolvation spheres is [0.1, 0.2, 0.3, 0.4, 0.5]&lt;br /&gt;
    3) DMS density: use the -d flag. Default is 1.0&lt;br /&gt;
    4) Distance from crystallographic ligand: use the -xd flag. Default is 2 Å.&lt;br /&gt;
&lt;br /&gt;
If you wanted to change all, you could use:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_combined_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH} -es 1.1 1.2 1.3 -ld 0.1 0.3 -d 10 -xd 4&lt;br /&gt;
&lt;br /&gt;
This script will submit ligand desolvation jobs to the queue. This should take 15-30 minutes. Once finished, check your spheres and grids by following the steps here:&lt;br /&gt;
   &lt;br /&gt;
    http://wiki.docking.org/index.php?title=Protein_Target_Preparation&lt;br /&gt;
&lt;br /&gt;
Then run the following script to combine the ES/LD grids in all combinations:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0002_combine_es_ld_grids_into_combos.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
This will create a new directory called &amp;quot;combo_directories&amp;quot; with docking-ready directories inside. The directories will have the name format &amp;quot;es_{ES_sphere_radius}_ld_{LD_sphere_radius}&amp;quot;. &amp;quot;def&amp;quot; refers to grids taken from your {FULL_ORIGINAL_BLASTERMASTER_PATH} directory.&lt;br /&gt;
&lt;br /&gt;
These directories are now ready for docking.&lt;br /&gt;
&lt;br /&gt;
== Blastermaster Parameter Scanning == &lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2017/01/18&lt;br /&gt;
&lt;br /&gt;
4/16/2019 - this needs to be updated and will result in discontinuous thin spheres at low radii! Use this link to run blastermaster manually instead:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Using_thin_spheres_in_DOCK3.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The hierarchy of the directories:&lt;br /&gt;
&lt;br /&gt;
 thin_spheres_parameter_scanning----- std_dockprep &lt;br /&gt;
                                                                 |&lt;br /&gt;
                                                                 |------ dockfiles&lt;br /&gt;
               |                                                 | &lt;br /&gt;
               |                                                 |----- working&lt;br /&gt;
               |                                                 |&lt;br /&gt;
               |                                                 ------ rec.pdb, xtal-lig.pdb, INDOCK and other files generated balstermaster.py&lt;br /&gt;
               |&lt;br /&gt;
               ------- script ------ dockprep_thin_spheres_in_batches.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ submit_dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ lig-decoy_enrichment.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ combineScoresAndPoses.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ AUCplot_of-lig-decoys.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ mk_matrix_logAUC.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ sph_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ pdb_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               ------- close_sph.py&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir thin_spheres_parameter_scanning&lt;br /&gt;
 cd thin_spheres_parameter_scanning&lt;br /&gt;
 mkdir std_dockprep&lt;br /&gt;
 mkdir script&lt;br /&gt;
&lt;br /&gt;
2) Run blastermaster.py in std_dockprep.  This will generate two directories: working and dockfiles&lt;br /&gt;
&lt;br /&gt;
3) Download sph_lib.py, pdb_lib.py and close_sph.py files into the script directory&lt;br /&gt;
 cd script&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/sph_lib.py &amp;gt; sph_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/pdb_lib.py &amp;gt; pdb_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/close_sph.py &amp;gt; close_sph.py&lt;br /&gt;
&lt;br /&gt;
4) Copy scripts from my path, and modify as necessary.&lt;br /&gt;
 &lt;br /&gt;
 cd script&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/ex5/work/jklyu/large_scale_docking/DRD2/struct_20180322/A122I_add_polarH_mini_HID/thin_spheres_parameter_scanning/scripts/*dockprep* .&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/lig-decoy_enrichment_submit.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/combineScoresAndPoses.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/mk_matrix_logAUC.py .&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5) Run parameter scanning.&lt;br /&gt;
 cd ../ # go back to thin_spheres_parameter_scanning folder&lt;br /&gt;
 csh /path/to/script/dockprep_thin_spheres_in_batches.csh /path/to/script/ /path/to/std_dockprep&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:- you can edit dockprep_thin_spheres_in_batches.csh to include more CPUs in Job Bound&lt;br /&gt;
&lt;br /&gt;
6) make the following subfolders&lt;br /&gt;
&lt;br /&gt;
   mkdir ligands-decoys&lt;br /&gt;
   cd ligands-decoys&lt;br /&gt;
   mkdir ligands&lt;br /&gt;
   mkdir decoys&lt;br /&gt;
&lt;br /&gt;
now copy your decoys.db2.gz to decoys&lt;br /&gt;
now copy your ligands.db2.gz to ligands&lt;br /&gt;
now copy decoys.smi to the folder&lt;br /&gt;
now copy ligands.smi to the folder&lt;br /&gt;
&lt;br /&gt;
7) Submit DOCK and enrichment calculation.&lt;br /&gt;
 csh /path/to/script/lig-decoy_enrichment.csh&lt;br /&gt;
&lt;br /&gt;
8) Combine and analyze the docking results.&lt;br /&gt;
 csh /path/to/script/combineScoresAndPoses.csh #1st change the path inside the script to your own dir&lt;br /&gt;
 csh /path/to/script/AUCplot_of-lig-decoys.csh #1st change the path inside the script to your own dir&lt;br /&gt;
&lt;br /&gt;
9) Visualize the logAUC by heatmap.&lt;br /&gt;
 python /path/to/script/mk_matrix_logAUC.py&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12557</id>
		<title>How to do parameter scanning</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=How_to_do_parameter_scanning&amp;diff=12557"/>
		<updated>2020-05-21T19:27:41Z</updated>

		<summary type="html">&lt;p&gt;Rstein: /* Manually Generating ES/LD Combinations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Manually Generating ES/LD Combinations ==&lt;br /&gt;
&lt;br /&gt;
written by Reed Stein, updated 5/21/2020&lt;br /&gt;
&lt;br /&gt;
To generate different sized low dielectric and ligand desolvation thin sphere combinations, you must first run blastermaster on your protein/ligand of interest. Once this is finished, make a new directory. Change into the new directory&lt;br /&gt;
and run the following command:&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_combined_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
The full path to your original blastermaster path is the only required argument. However, you can modify other default values including:&lt;br /&gt;
    1) Radius of low dielectric spheres you want to run: use the -es flag. Default radius for electrostatic spheres is [1.0, 1.3, 1.5, 1.7, 1.9]&lt;br /&gt;
    2) Radius of ligand desolvation spheres you want to run: use the -ld flag. Default radius for ligand desolvation spheres is [0.1, 0.2, 0.3, 0.4, 0.5]&lt;br /&gt;
    3) DMS density: use the -d flag. Default is 1.0&lt;br /&gt;
    4) Distance from crystallographic ligand: use the -xd flag. Default is 2 Å.&lt;br /&gt;
&lt;br /&gt;
If you wanted to change all, you could use:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0001_combined_ES_LD_generation.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH} -es 1.1 1.2 1.3 -ld 0.1 0.3 -d 10 -xd 4&lt;br /&gt;
&lt;br /&gt;
This script will submit ligand desolvation jobs to the queue. This should take 15-30 minutes. Once finished, check your spheres and grids by following the steps here:&lt;br /&gt;
   &lt;br /&gt;
    http://wiki.docking.org/index.php?title=Protein_Target_Preparation&lt;br /&gt;
&lt;br /&gt;
Then run the following script to combine the ES/LD grids in all combinations:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/new_0002_combine_es_ld_grids_into_combos.py -p {FULL_ORIGINAL_BLASTERMASTER_PATH}&lt;br /&gt;
&lt;br /&gt;
This will create a new directory called &amp;quot;combo_directories&amp;quot; with docking-ready directories inside. The directories will have the name format &amp;quot;es_{ES_sphere_radius}_ld_{LD_sphere_radius}&amp;quot;. &amp;quot;def&amp;quot; refers to grids taken from your {FULL_ORIGINAL_BLASTERMASTER_PATH} directory.&lt;br /&gt;
&lt;br /&gt;
These directories are now ready for docking.&lt;br /&gt;
&lt;br /&gt;
== Blastermaster Parameter Scanning == &lt;br /&gt;
&lt;br /&gt;
Written by Jiankun Lyu, 2017/01/18&lt;br /&gt;
&lt;br /&gt;
4/16/2019 - this needs to be updated and will result in discontinuous thin spheres at low radii! Use this link to run blastermaster manually instead:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Using_thin_spheres_in_DOCK3.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The hierarchy of the directories:&lt;br /&gt;
&lt;br /&gt;
 thin_spheres_parameter_scanning----- std_dockprep &lt;br /&gt;
                                                                 |&lt;br /&gt;
                                                                 |------ dockfiles&lt;br /&gt;
               |                                                 | &lt;br /&gt;
               |                                                 |----- working&lt;br /&gt;
               |                                                 |&lt;br /&gt;
               |                                                 ------ rec.pdb, xtal-lig.pdb, INDOCK and other files generated balstermaster.py&lt;br /&gt;
               |&lt;br /&gt;
               ------- script ------ dockprep_thin_spheres_in_batches.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ submit_dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ dockprep_thin_spheres.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ lig-decoy_enrichment.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ combineScoresAndPoses.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ AUCplot_of-lig-decoys.csh&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ mk_matrix_logAUC.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ sph_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               |------ pdb_lib.py&lt;br /&gt;
                               |&lt;br /&gt;
                               ------- close_sph.py&lt;br /&gt;
&lt;br /&gt;
1) Make those directories above.&lt;br /&gt;
 mkdir thin_spheres_parameter_scanning&lt;br /&gt;
 cd thin_spheres_parameter_scanning&lt;br /&gt;
 mkdir std_dockprep&lt;br /&gt;
 mkdir script&lt;br /&gt;
&lt;br /&gt;
2) Run blastermaster.py in std_dockprep.  This will generate two directories: working and dockfiles&lt;br /&gt;
&lt;br /&gt;
3) Download sph_lib.py, pdb_lib.py and close_sph.py files into the script directory&lt;br /&gt;
 cd script&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/sph_lib.py &amp;gt; sph_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/pdb_lib.py &amp;gt; pdb_lib.py&lt;br /&gt;
 curl http://docking.org/~tbalius/code/for_dock_3.7/close_sph.py &amp;gt; close_sph.py&lt;br /&gt;
&lt;br /&gt;
4) Copy scripts from my path, and modify as necessary.&lt;br /&gt;
 &lt;br /&gt;
 cd script&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/ex5/work/jklyu/large_scale_docking/DRD2/struct_20180322/A122I_add_polarH_mini_HID/thin_spheres_parameter_scanning/scripts/*dockprep* .&lt;br /&gt;
 &lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/lig-decoy_enrichment_submit.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/combineScoresAndPoses.csh .&lt;br /&gt;
 cp /mnt/nfs/reshwork/jklyu/D2R/scripts/mk_matrix_logAUC.py .&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5) Run parameter scanning.&lt;br /&gt;
 cd ../ # go back to thin_spheres_parameter_scanning folder&lt;br /&gt;
 csh /path/to/script/dockprep_thin_spheres_in_batches.csh /path/to/script/ /path/to/std_dockprep&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:- you can edit dockprep_thin_spheres_in_batches.csh to include more CPUs in Job Bound&lt;br /&gt;
&lt;br /&gt;
6) make the following subfolders&lt;br /&gt;
&lt;br /&gt;
   mkdir ligands-decoys&lt;br /&gt;
   cd ligands-decoys&lt;br /&gt;
   mkdir ligands&lt;br /&gt;
   mkdir decoys&lt;br /&gt;
&lt;br /&gt;
now copy your decoys.db2.gz to decoys&lt;br /&gt;
now copy your ligands.db2.gz to ligands&lt;br /&gt;
now copy decoys.smi to the folder&lt;br /&gt;
now copy ligands.smi to the folder&lt;br /&gt;
&lt;br /&gt;
7) Submit DOCK and enrichment calculation.&lt;br /&gt;
 csh /path/to/script/lig-decoy_enrichment.csh&lt;br /&gt;
&lt;br /&gt;
8) Combine and analyze the docking results.&lt;br /&gt;
 csh /path/to/script/combineScoresAndPoses.csh #1st change the path inside the script to your own dir&lt;br /&gt;
 csh /path/to/script/AUCplot_of-lig-decoys.csh #1st change the path inside the script to your own dir&lt;br /&gt;
&lt;br /&gt;
9) Visualize the logAUC by heatmap.&lt;br /&gt;
 python /path/to/script/mk_matrix_logAUC.py&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12556</id>
		<title>Matching Sphere Scan</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12556"/>
		<updated>2020-05-21T19:19:07Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script generates some number of directories with perturbed matching spheres. This will randomly perturb non-crystallographic spheres generated by SPHGEN during blastermaster.&lt;br /&gt;
&lt;br /&gt;
The original script was written by Trent Balius. Wrapper script is written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py -p {YOUR_DOCK_DIR}&lt;br /&gt;
&lt;br /&gt;
By default, it will create 10 directories with perturbed matching spheres (randomly differing from the original matching spheres by at maximum 0.5 Å)&lt;br /&gt;
&lt;br /&gt;
If you want to change the number of directories or distance from the original matching spheres, use the -n and -d flags:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py -p {YOUR_DOCK_DIR} -n 100 -d 0.3&lt;br /&gt;
&lt;br /&gt;
Trent&#039;s original script, which makes use of his &amp;quot;sph_lib.py&amp;quot; is located here, and can be run on a single set of matching spheres:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph_non_ligand.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;br /&gt;
&lt;br /&gt;
Note that the non-crystallographic spheres in the original matching_spheres.sph file have a &amp;quot;0.000&amp;quot; in the fifth column. This is changed to &amp;quot;0.500&amp;quot; after perturbing the matching spheres. If you would like to perturb the matching spheres again after you have already run it, the fifth column with &amp;quot;0.500&amp;quot; needs to be changed back to &amp;quot;0.000&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you would like to perturb all matching spheres, and not just the non-crystallographic spheres generated from SPHGEN, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12555</id>
		<title>Matching Sphere Scan</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12555"/>
		<updated>2020-05-21T19:18:30Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script generates some number of directories with perturbed matching spheres. This will randomly perturb non-crystallographic spheres generated by SPHGEN during blastermaster.&lt;br /&gt;
&lt;br /&gt;
The original script was written by Trent Balius. Wrapper script is written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py -p {YOUR_DOCK_DIR}&lt;br /&gt;
&lt;br /&gt;
By default, it will create 10 directories with perturbed matching spheres (randomly differing from the original matching spheres by at maximum 0.5 Å)&lt;br /&gt;
&lt;br /&gt;
If you want to change the number of directories or distance from the original matching spheres, use the -n and -d flags:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py -p {YOUR_DOCK_DIR} -n 100 -d 0.5&lt;br /&gt;
&lt;br /&gt;
Trent&#039;s original script, which makes use of his &amp;quot;sph_lib.py&amp;quot; is located here, and can be run on a single set of matching spheres:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph_non_ligand.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;br /&gt;
&lt;br /&gt;
Note that the non-crystallographic spheres in the original matching_spheres.sph file have a &amp;quot;0.000&amp;quot; in the fifth column. This is changed to &amp;quot;0.500&amp;quot; after perturbing the matching spheres. If you would like to perturb the matching spheres again after you have already run it, the fifth column with &amp;quot;0.500&amp;quot; needs to be changed back to &amp;quot;0.000&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you would like to perturb all matching spheres, and not just the non-crystallographic spheres generated from SPHGEN, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12554</id>
		<title>Removing Spheres (The Chase Method)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12554"/>
		<updated>2020-05-21T18:51:46Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These scripts are used for removing ligand desolvation spheres around atom(s) of interest. This is to decrease the desolvation cost in a targeted way.&lt;br /&gt;
&lt;br /&gt;
5/21/2020&lt;br /&gt;
Pioneered by Chase Webb.&lt;br /&gt;
Scripts written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
The first script requires that you have already run blastermaster and have a directory containing the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;receptor.crg.lowdielectric.pdb&amp;quot; file. It requires the coordinates of the atoms that you want to remove ligand desolvation spheres from. The default distance of removing of these spheres is 3 Å.&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404&lt;br /&gt;
&lt;br /&gt;
If you want to include more atom coordinates, just continue adding more x,y,z coordinates after the -c flag&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 58.038 47.323 12.300&lt;br /&gt;
&lt;br /&gt;
To increase the radius around the atoms that you want to remove ligand desolvation spheres from, include the -d flag:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 -d 5&lt;br /&gt;
&lt;br /&gt;
Once you have run this script, you can visualize your spheres by following this tutorial:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Protein_Target_Preparation_Updated#Checking_Your_Protein_Preparation&lt;br /&gt;
&lt;br /&gt;
If satisfied with your spheres, run the second script to recalculate the &amp;quot;hydrogen&amp;quot; and &amp;quot;heavy&amp;quot; ligand desolvation grids. This script submits the SOLVMAP calculation to the queue. It requires the radius of your ligand desolvation spheres for the SOLVMAP calculation. As before you need the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;box&amp;quot; file and the newly created &amp;quot;rec.crg.lds.pdb&amp;quot; file from the previous script. If you already have &amp;quot;hydrogen/&amp;quot; and &amp;quot;heavy/&amp;quot; subdirectories within your &amp;quot;working/&amp;quot; directory, it will ask you to either move or delete these.&lt;br /&gt;
&lt;br /&gt;
If you had a ligand desolvation sphere radius of 0.1 Å, use the following command:&lt;br /&gt;
&lt;br /&gt;
   python ~rstein/zzz.scripts/DOCK_prep_scripts/0002_make_ld_dirs.py -p {YOUR_DOCK_DIR} -r 0.1&lt;br /&gt;
&lt;br /&gt;
FINAL STEP!&lt;br /&gt;
Once you have generated the &amp;quot;ligand.desolv.hydrogen&amp;quot; and &amp;quot;ligand.desolv.heavy&amp;quot; grids in {YOUR_DOCK_DIR/working/hydrogen/ and {YOUR_DOCK_DIR/working/heavy/ directories, make sure to copy them to your &amp;quot;/dockfiles/&amp;quot; directory:&lt;br /&gt;
&lt;br /&gt;
    cp {YOUR_DOCK_DIR/working/hydrogen/ligand.desolv.hydrogen dockfiles/.&lt;br /&gt;
    cp {YOUR_DOCK_DIR/working/heavy/ligand.desolv.heavy dockfiles/.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12553</id>
		<title>Removing Spheres (The Chase Method)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12553"/>
		<updated>2020-05-21T18:51:21Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These scripts are used for removing ligand desolvation spheres around atom(s) of interest. This is to decrease the desolvation cost in a targeted way.&lt;br /&gt;
&lt;br /&gt;
5/21/2020&lt;br /&gt;
Pioneered by Chase Webb.&lt;br /&gt;
Scripts written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
The first script requires that you have already run blastermaster and have a directory containing the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;receptor.crg.lowdielectric.pdb&amp;quot; file. It requires the coordinates of the atoms that you want to remove ligand desolvation spheres from. The default distance of removing of these spheres is 3 Å.&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404&lt;br /&gt;
&lt;br /&gt;
If you want to include more atom coordinates, include more x,y,z coordinates.&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 58.038 47.323 12.300&lt;br /&gt;
&lt;br /&gt;
To increase the radius around the atoms that you want to remove ligand desolvation spheres from, include the -d flag:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 -d 5&lt;br /&gt;
&lt;br /&gt;
Once you have run this script, you can visualize your spheres by following this tutorial:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Protein_Target_Preparation_Updated#Checking_Your_Protein_Preparation&lt;br /&gt;
&lt;br /&gt;
If satisfied with your spheres, run the second script to recalculate the &amp;quot;hydrogen&amp;quot; and &amp;quot;heavy&amp;quot; ligand desolvation grids. This script submits the SOLVMAP calculation to the queue. It requires the radius of your ligand desolvation spheres for the SOLVMAP calculation. As before you need the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;box&amp;quot; file and the newly created &amp;quot;rec.crg.lds.pdb&amp;quot; file from the previous script. If you already have &amp;quot;hydrogen/&amp;quot; and &amp;quot;heavy/&amp;quot; subdirectories within your &amp;quot;working/&amp;quot; directory, it will ask you to either move or delete these.&lt;br /&gt;
&lt;br /&gt;
If you had a ligand desolvation sphere radius of 0.1 Å, use the following command:&lt;br /&gt;
&lt;br /&gt;
   python ~rstein/zzz.scripts/DOCK_prep_scripts/0002_make_ld_dirs.py -p {YOUR_DOCK_DIR} -r 0.1&lt;br /&gt;
&lt;br /&gt;
FINAL STEP!&lt;br /&gt;
Once you have generated the &amp;quot;ligand.desolv.hydrogen&amp;quot; and &amp;quot;ligand.desolv.heavy&amp;quot; grids in {YOUR_DOCK_DIR/working/hydrogen/ and {YOUR_DOCK_DIR/working/heavy/ directories, make sure to copy them to your &amp;quot;/dockfiles/&amp;quot; directory:&lt;br /&gt;
&lt;br /&gt;
    cp {YOUR_DOCK_DIR/working/hydrogen/ligand.desolv.hydrogen dockfiles/.&lt;br /&gt;
    cp {YOUR_DOCK_DIR/working/heavy/ligand.desolv.heavy dockfiles/.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12552</id>
		<title>Removing Spheres (The Chase Method)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12552"/>
		<updated>2020-05-21T18:50:56Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These scripts are used for removing ligand desolvation spheres around atom(s) of interest. This is to decrease the desolvation cost in a targeted way.&lt;br /&gt;
&lt;br /&gt;
5/21/2020&lt;br /&gt;
Pioneered by Chase Webb.&lt;br /&gt;
Scripts written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
The first script requires that you have already run blastermaster and have a directory containing the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;receptor.crg.lowdielectric.pdb&amp;quot; file. It requires the coordinates of the atoms that you want to remove ligand desolvation spheres from. The default distance of removing of these spheres is 3 Å.&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404&lt;br /&gt;
&lt;br /&gt;
If you want to include more atom coordinates, include more x,y,z coordinates.&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 58.038 47.323 12.300&lt;br /&gt;
&lt;br /&gt;
To increase the radius around the atoms that you want to remove ligand desolvation spheres from, include the -d flag:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 -d 5&lt;br /&gt;
&lt;br /&gt;
Once you have run this script, you can visualize your spheres by following this tutorial:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Protein_Target_Preparation_Updated#Checking_Your_Protein_Preparation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If satisfied with your spheres, run the second script to recalculate the &amp;quot;hydrogen&amp;quot; and &amp;quot;heavy&amp;quot; ligand desolvation grids. This script submits the SOLVMAP calculation to the queue. It requires the radius of your ligand desolvation spheres for the SOLVMAP calculation. As before you need the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;box&amp;quot; file and the newly created &amp;quot;rec.crg.lds.pdb&amp;quot; file from the previous script. If you already have &amp;quot;hydrogen/&amp;quot; and &amp;quot;heavy/&amp;quot; subdirectories within your &amp;quot;working/&amp;quot; directory, it will ask you to either move or delete these.&lt;br /&gt;
&lt;br /&gt;
If you had a ligand desolvation sphere radius of 0.1 Å, use the following command:&lt;br /&gt;
&lt;br /&gt;
   python ~rstein/zzz.scripts/DOCK_prep_scripts/0002_make_ld_dirs.py -p {YOUR_DOCK_DIR} -r 0.1&lt;br /&gt;
&lt;br /&gt;
FINAL STEP!&lt;br /&gt;
Once you have generated the &amp;quot;ligand.desolv.hydrogen&amp;quot; and &amp;quot;ligand.desolv.heavy&amp;quot; grids in {YOUR_DOCK_DIR/working/hydrogen/ and {YOUR_DOCK_DIR/working/heavy/ directories, make sure to copy them to your &amp;quot;/dockfiles/&amp;quot; directory:&lt;br /&gt;
&lt;br /&gt;
    cp {YOUR_DOCK_DIR/working/hydrogen/ligand.desolv.hydrogen dockfiles/.&lt;br /&gt;
    cp {YOUR_DOCK_DIR/working/heavy/ligand.desolv.heavy dockfiles/.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12551</id>
		<title>Removing Spheres (The Chase Method)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12551"/>
		<updated>2020-05-21T18:49:58Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These scripts are used for removing ligand desolvation spheres around atom(s) of interest. This is to decrease the desolvation cost in a targeted way.&lt;br /&gt;
&lt;br /&gt;
5/21/2020&lt;br /&gt;
Pioneered by Chase Webb.&lt;br /&gt;
Scripts written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
The first script requires that you have already run blastermaster and have a directory containing the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;receptor.crg.lowdielectric.pdb&amp;quot; file. It requires the coordinates of the atoms that you want to remove ligand desolvation spheres from. The default distance of removing of these spheres is 3 Å.&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to include more atom coordinates, include more x,y,z coordinates.&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 58.038 47.323 12.300&lt;br /&gt;
&lt;br /&gt;
To increase the radius around the atoms that you want to remove ligand desolvation spheres from, include the -d flag:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 -d 5&lt;br /&gt;
&lt;br /&gt;
Once you have run this script, you can visualize your spheres by following this tutorial:&lt;br /&gt;
&lt;br /&gt;
    http://wiki.docking.org/index.php/Protein_Target_Preparation_Updated#Checking_Your_Protein_Preparation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If satisfied with your spheres, run the second script to recalculate the &amp;quot;hydrogen&amp;quot; and &amp;quot;heavy&amp;quot; ligand desolvation grids. This script submits the SOLVMAP calculation to the queue. It requires the radius of your ligand desolvation spheres for the SOLVMAP calculation. As before you need the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;box&amp;quot; file and the newly created &amp;quot;rec.crg.lds.pdb&amp;quot; file from the previous script. If you already have &amp;quot;hydrogen/&amp;quot; and &amp;quot;heavy/&amp;quot; subdirectories within your &amp;quot;working/&amp;quot; directory, it will ask you to either move or delete these.&lt;br /&gt;
&lt;br /&gt;
If you had a ligand desolvation sphere radius of 0.1 Å, use the following command:&lt;br /&gt;
&lt;br /&gt;
   python ~rstein/zzz.scripts/DOCK_prep_scripts/0002_make_ld_dirs.py -p {YOUR_DOCK_DIR} -r 0.1&lt;br /&gt;
&lt;br /&gt;
FINAL STEP!&lt;br /&gt;
Once you have generated the &amp;quot;ligand.desolv.hydrogen&amp;quot; and &amp;quot;ligand.desolv.heavy&amp;quot; grids in {YOUR_DOCK_DIR/working/hydrogen/ and {YOUR_DOCK_DIR/working/heavy/ directories, make sure to copy them to your &amp;quot;/dockfiles/&amp;quot; directory:&lt;br /&gt;
&lt;br /&gt;
    cp {YOUR_DOCK_DIR/working/hydrogen/ligand.desolv.hydrogen dockfiles/.&lt;br /&gt;
    cp {YOUR_DOCK_DIR/working/heavy/ligand.desolv.heavy dockfiles/.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12550</id>
		<title>Removing Spheres (The Chase Method)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12550"/>
		<updated>2020-05-21T18:41:18Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These scripts are used for removing ligand desolvation spheres around atom(s) of interest. This is to decrease the desolvation cost in a targeted way.&lt;br /&gt;
&lt;br /&gt;
5/21/2020&lt;br /&gt;
Pioneered by Chase Webb.&lt;br /&gt;
Scripts written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
The first script requires that you have already run blastermaster and have a directory containing the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;receptor.crg.lowdielectric.pdb&amp;quot; file. It requires the coordinates of the atoms that you want to remove ligand desolvation spheres from. The default distance of removing of these spheres is 3 Å.&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to include more atom coordinates, include more x,y,z coordinates.&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 58.038 47.323 12.300&lt;br /&gt;
&lt;br /&gt;
To increase the radius around the atoms that you want to remove ligand desolvation spheres from, include the -d flag:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 -d 5&lt;br /&gt;
&lt;br /&gt;
Once you have run this script, you can visualize your spheres by following this tutorial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If satisfied with your spheres, run the second script to recalculate the &amp;quot;hydrogen&amp;quot; and &amp;quot;heavy&amp;quot; ligand desolvation grids. This script submits the SOLVMAP calculation to the queue. It requires the radius of your ligand desolvation spheres for the SOLVMAP calculation. As before you need the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;box&amp;quot; file and the newly created &amp;quot;rec.crg.lds.pdb&amp;quot; file from the previous script. If you already have &amp;quot;hydrogen/&amp;quot; and &amp;quot;heavy/&amp;quot; subdirectories within your &amp;quot;working/&amp;quot; directory, it will ask you to either move or delete these.&lt;br /&gt;
&lt;br /&gt;
If you had a ligand desolvation sphere radius of 0.1 Å, use the following command:&lt;br /&gt;
&lt;br /&gt;
   python ~rstein/zzz.scripts/DOCK_prep_scripts/0002_make_ld_dirs.py -p {YOUR_DOCK_DIR} -r 0.1&lt;br /&gt;
&lt;br /&gt;
FINAL STEP!&lt;br /&gt;
Once you have generated the &amp;quot;ligand.desolv.hydrogen&amp;quot; and &amp;quot;ligand.desolv.heavy&amp;quot; grids in {YOUR_DOCK_DIR/working/hydrogen/ and {YOUR_DOCK_DIR/working/heavy/ directories, make sure to copy them to your &amp;quot;/dockfiles/&amp;quot; directory:&lt;br /&gt;
&lt;br /&gt;
    cp {YOUR_DOCK_DIR/working/hydrogen/ligand.desolv.hydrogen dockfiles/.&lt;br /&gt;
    cp {YOUR_DOCK_DIR/working/heavy/ligand.desolv.heavy dockfiles/.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12549</id>
		<title>Removing Spheres (The Chase Method)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Removing_Spheres_(The_Chase_Method)&amp;diff=12549"/>
		<updated>2020-05-21T18:40:50Z</updated>

		<summary type="html">&lt;p&gt;Rstein: Created page with &amp;quot;These scripts are used for removing ligand desolvation spheres around atom(s) of interest. This is to decrease the desolvation cost in a targeted way.  5/21/2020 Pioneered by ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;These scripts are used for removing ligand desolvation spheres around atom(s) of interest. This is to decrease the desolvation cost in a targeted way.&lt;br /&gt;
&lt;br /&gt;
5/21/2020&lt;br /&gt;
Pioneered by Chase Webb.&lt;br /&gt;
Scripts written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
The first script requires that you have already run blastermaster and have a directory containing the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;receptor.crg.lowdielectric.pdb&amp;quot; file. It requires the coordinates of the atoms that you want to remove ligand desolvation spheres from. The default distance of removing of these spheres is 3 Å.&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to include more atom coordinates, include more x,y,z coordinates.&lt;br /&gt;
&lt;br /&gt;
     python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 58.038 47.323 12.300&lt;br /&gt;
&lt;br /&gt;
To increase the radius around the atoms that you want to remove ligand desolvation spheres from, include the -d flag:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/DOCK_prep_scripts/0001_remove_spheres.py -p {YOUR_DOCK_DIR} -c 42.301 43.502 48.404 -d 5&lt;br /&gt;
&lt;br /&gt;
Once you have run this script, you can visualize your spheres by following this tutorial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If satisfied with your spheres, run the second script to recalculate the &amp;quot;hydrogen&amp;quot; and &amp;quot;heavy&amp;quot; ligand desolvation grids. This script submits the SOLVMAP calculation to the queue. It requires the radius of your ligand desolvation spheres for the SOLVMAP calculation. As before you need the &amp;quot;working/&amp;quot; subdirectory containing the &amp;quot;box&amp;quot; file and the newly created &amp;quot;rec.crg.lds.pdb&amp;quot; file from the previous script. If you already have &amp;quot;hydrogen/&amp;quot; and &amp;quot;heavy/&amp;quot; subdirectories within your &amp;quot;working/&amp;quot; directory, it will ask you to either move or delete these.&lt;br /&gt;
&lt;br /&gt;
If you had a ligand desolvation sphere radius of 0.1 Å, use the following command:&lt;br /&gt;
&lt;br /&gt;
   python ~rstein/zzz.scripts/DOCK_prep_scripts/0002_make_ld_dirs.py -p {YOUR_DOCK_DIR} -r 0.1&lt;br /&gt;
&lt;br /&gt;
FINAL STEP!&lt;br /&gt;
Once you have generated the &amp;quot;ligand.desolv.hydrogen&amp;quot; and &amp;quot;ligand.desolv.heavy&amp;quot; grids in {YOUR_DOCK_DIR/working/hydrogen/ and {YOUR_DOCK_DIR/working/heavy/ directories, make sure to copy them to your &amp;quot;/dockfiles/&amp;quot; directory:&lt;br /&gt;
&lt;br /&gt;
       cp {YOUR_DOCK_DIR/working/hydrogen/ligand.desolv.hydrogen dockfiles/.&lt;br /&gt;
       cp {YOUR_DOCK_DIR/working/heavy/ligand.desolv.heavy dockfiles/.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=DOCK_3.7&amp;diff=12548</id>
		<title>DOCK 3.7</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=DOCK_3.7&amp;diff=12548"/>
		<updated>2020-05-21T18:24:11Z</updated>

		<summary type="html">&lt;p&gt;Rstein: /* Prepare Receptor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= About = &lt;br /&gt;
&lt;br /&gt;
DOCK 3.7 the current version in the [[DOCK 3]] series of docking programs developed and used by the [[Shoichet Lab]]. Please read and cite the DOCK 3.7 paper&lt;br /&gt;
[http://www.plosone.org/article/info:doi/10.1371/journal.pone.0075992 Coleman, Carchia, Sterling, Irwin &amp;amp; Shoichet, PLOS ONE 2013.]&lt;br /&gt;
&lt;br /&gt;
DOCK 3.7 is written in Fortran and some C. It is an update of [[DOCK 3.6]] with many improved features. DOCK 3.7 comes with all the tools necessary to prepare a &lt;br /&gt;
protein for docking and some tools necessary to build ligands, though some tools must be obtained externally. It uses new Flexibase/DB2 files found in [[ZINC15]]. It includes tools to prepare receptors, and several auxiliary scripts.&lt;br /&gt;
&lt;br /&gt;
DOCK 3.7 is available at  [http://dock.compbio.ucsf.edu/DOCK3.7/ http://dock.compbio.ucsf.edu/DOCK3.7/].&lt;br /&gt;
&lt;br /&gt;
{{TOCright}}&lt;br /&gt;
&lt;br /&gt;
= Start here =&lt;br /&gt;
* [[So you want to set up a lab]] - only if you don&#039;t already have hardware ready.&lt;br /&gt;
* [[Install DOCK 3.7]]&lt;br /&gt;
* [[DOCK 3.7 2014/09/25 FXa Tutorial]]&lt;br /&gt;
* [[DOCK 3.7 2015/04/15 abl1 Tutorial]] superseded&lt;br /&gt;
* [[DOCK 3.7 2018/06/05 abl1 Tutorial]]&lt;br /&gt;
* [[DOCK 3.7 2016/09/16 Tutorial for Enrichment Calculations (Trent &amp;amp;  Jiankun)]]&lt;br /&gt;
* [[DOCK 3.7 tutorial (Anat)]]&lt;br /&gt;
* [[DOCK 3.7 with GIST tutorials]]&lt;br /&gt;
* [[DOCK 3.7 tutorial based on Webinar 2017/06/28]]&lt;br /&gt;
* [[Getting started with DOCK 3.7]]&lt;br /&gt;
* [[Blastermaster]] - Prepare input for and then run [[DOCK 3.7]].&lt;br /&gt;
* [[Ligand preparation 3.7]] - Create dockable databases for [[DOCK 3.7]].&lt;br /&gt;
* [[Ligand preparation]] - different version. &lt;br /&gt;
* [[Ligand prep Irwin Nov 2016]] - John&#039;s current version&lt;br /&gt;
* [[Mol2db2 Format 2]] - details on the database formate.&lt;br /&gt;
* [[Running docking 3.7]] - how to actually run docking.&lt;br /&gt;
* [[DOCK 3.7 Development]] - for software developers&lt;br /&gt;
* [[prepare a receptor with a cofactor for docking]]&lt;br /&gt;
=== For DOCKovalent, start here ===&lt;br /&gt;
* [[DOCKovalent_3.7]]&lt;br /&gt;
* [[DOCKovalent lysine inhibitor design tutorial]]&lt;br /&gt;
* [[DOCKovalent cysteine inhibitor design tutorial]]&lt;br /&gt;
&lt;br /&gt;
= Prepare Receptor = &lt;br /&gt;
* [[Protein Target Preparation]]&lt;br /&gt;
* [[Protein Target Preparation Updated]]&lt;br /&gt;
* [[Using_thin_spheres_in_DOCK3.7]]&lt;br /&gt;
*[[Matching Sphere Scan]]&lt;br /&gt;
*[[Removing Spheres (The Chase Method)]]&lt;br /&gt;
* [[Adding Static Waters to the Protein Structure]]&lt;br /&gt;
* [[Flexible Docking]]&lt;br /&gt;
* [[Visualize docking grids]]&lt;br /&gt;
* [[Minimize protein-ligand complex with AMBER]]&lt;br /&gt;
* [[Minimize protein-covalent ligand complex with AMBER]]&lt;br /&gt;
&lt;br /&gt;
= Prepare Screening Library =&lt;br /&gt;
* [[mol2db2]] is the program that creates [[mol2db2 format]] database files which are read by [[DOCK 3.7]]&lt;br /&gt;
* [[ligand preparation 3.7]]&lt;br /&gt;
* [[generating decoys (Reed&#039;s way)]]&lt;br /&gt;
* [[generating extrema set]]&lt;br /&gt;
&lt;br /&gt;
= Running Docking =&lt;br /&gt;
* [[Running docking 3.7]] - JJI currently working on this.&lt;br /&gt;
* [[Running DOCK 3.7]] - this seems to be slightly dated.&lt;br /&gt;
* [[INDOCK 3.7]] - file format used by [[DOCK 3.7]]&lt;br /&gt;
* [[DOCK3.7_INDOCK_Minimization_Parameter]] - How to run DOCK 3.7.1rc1 (and latter versions) with the minimization.&lt;br /&gt;
* Interpreting the [[OUTDOCK 3.7]] file.&lt;br /&gt;
&lt;br /&gt;
= Analysis =&lt;br /&gt;
* [[Analyzing DOCK Results]]&lt;br /&gt;
* [http://autodude.docking.org/ Auto-DUD-E Test Set] (external site) &lt;br /&gt;
* [[Other Useful Stuff]]&lt;br /&gt;
* [[Bootstrap AUC]]&lt;br /&gt;
* [[another getposes.py]]&lt;br /&gt;
* [[Converting SMILES to Kekule Format]]&lt;br /&gt;
* Viewing results using [[ViewDock]]&lt;br /&gt;
&lt;br /&gt;
= Post Docking Clustering=&lt;br /&gt;
* [[How to process results from a large-scale docking]] &lt;br /&gt;
* [[Large-scale SMILES Requesting and Fingerprints Converting]]&lt;br /&gt;
* [[ECFP4 Best First Clustering]]&lt;br /&gt;
* [[Bemis-Murcko Scaffold Analysis]]&lt;br /&gt;
&lt;br /&gt;
= Post Docking Filters=&lt;br /&gt;
* [[Large-scale TC Calculations]]&lt;br /&gt;
* [[Whole Library TC to Knowns Calculations]]&lt;br /&gt;
* [[Filtering ligands for novelty]]&lt;br /&gt;
* [[Strain Filtering]]&lt;br /&gt;
* [[Interaction Filtering]]&lt;br /&gt;
* [[Torsion against CSD visualize with Maestro]]&lt;br /&gt;
&lt;br /&gt;
= Redocking with Enhanced Sampling =&lt;br /&gt;
*[[Sample Additional Ring Puckers ]]&lt;br /&gt;
= Rescoring =&lt;br /&gt;
*[[Rescoring_with_DOCK_3.7]]&lt;br /&gt;
&lt;br /&gt;
= Available Libraries = &lt;br /&gt;
* [[ZINC Subset DB2 file locations]]&lt;br /&gt;
* how to get db2 files from zinc15.docking.org&lt;br /&gt;
&lt;br /&gt;
= Analog by Catalog= &lt;br /&gt;
* [[Substructure searching]]&lt;br /&gt;
* [[TC analog searching in ZINC]]&lt;br /&gt;
&lt;br /&gt;
= Previous verisons and compatibility = &lt;br /&gt;
DOCK 3.7 is part of the [[DOCK 3]] series. It differs substantially from its immediate predecessor [[DOCK 3.6]],&lt;br /&gt;
which uses a different format of database files that cannot be read by [[DOCK 3.7]], and vice versa. &lt;br /&gt;
&lt;br /&gt;
= How to Cite = &lt;br /&gt;
To cite the DOCK 3.7 paper, please use&lt;br /&gt;
[http://www.plosone.org/article/info:doi/10.1371/journal.pone.0075992 Coleman, Carchia, Sterling, Irwin &amp;amp; Shoichet, PLOS ONE 2013.]&lt;br /&gt;
&lt;br /&gt;
= How to Download = &lt;br /&gt;
DOCK 3.7 is available at  [http://dock.compbio.ucsf.edu/DOCK3.7/ http://dock.compbio.ucsf.edu/DOCK3.7/].&lt;br /&gt;
&lt;br /&gt;
= Implementation = &lt;br /&gt;
DOCK 3.7 is written in Fortran and some C. Scripts are mostly in [[python]] and [[perl]].&lt;br /&gt;
&lt;br /&gt;
{{Template:CC-BY-SA-30}}&lt;br /&gt;
{{Template:Coleman}}&lt;br /&gt;
&lt;br /&gt;
[[Category:DOCK 3.7]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Freecom]]&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Generating_decoys_(Reed%27s_way)&amp;diff=12547</id>
		<title>Generating decoys (Reed&#039;s way)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Generating_decoys_(Reed%27s_way)&amp;diff=12547"/>
		<updated>2020-05-19T01:23:34Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Written by Reed Stein on April 3, 2018.&lt;br /&gt;
&lt;br /&gt;
updated 5/3/2019&lt;br /&gt;
&lt;br /&gt;
updated 8/15/2019&lt;br /&gt;
&lt;br /&gt;
updated 3/6/2020&lt;br /&gt;
&lt;br /&gt;
updated 5/18/2020&lt;br /&gt;
&lt;br /&gt;
This pipeline will generate property-matched decoys for a set of ligand SMILES. To build ligands yourself, see &amp;quot;ligand prep&amp;quot; in:&lt;br /&gt;
    http://wiki.docking.org/index.php/DOCK_3.7_tutorial_%28Anat%29&lt;br /&gt;
&lt;br /&gt;
All scripts for this tutorial can be found in:&lt;br /&gt;
    /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/&lt;br /&gt;
&lt;br /&gt;
Before running any scripts, make sure to source the current version of Python&lt;br /&gt;
   source /nfs/soft/python/envs/complete/current/env.csh&lt;br /&gt;
&lt;br /&gt;
Additionally, JChem needs to be sourced in your ~/.cshrc file with the command:&lt;br /&gt;
   source /nfs/soft/jchem/current/env.csh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Querying ZINC for Protomers ==&lt;br /&gt;
&lt;br /&gt;
This procedure generates decoys for your input ligands by searching through 3D conformers that are already built in ZINC. This procedure is advised if you want decoys to be charge-matched to ligands.&lt;br /&gt;
&lt;br /&gt;
=== Step 1) Setting up directories for Protomers ===&lt;br /&gt;
&lt;br /&gt;
Before starting, you need a SMILES file with the format (SMILES first, &amp;lt;B&amp;gt;unique&amp;lt;/B&amp;gt; ID second):&lt;br /&gt;
   S(Nc1c(O)cc(C(=O)O)cc1)(c2c(scc2)C(=O)O)(=O)=O 116&lt;br /&gt;
&lt;br /&gt;
You also need an input file named &amp;quot;decoy_generation.in&amp;quot; with the following lines:&lt;br /&gt;
    &lt;br /&gt;
    PROTONATE YES&lt;br /&gt;
    MWT 0 125&lt;br /&gt;
    LOGP 0 3.6&lt;br /&gt;
    RB 0 5&lt;br /&gt;
    HBA 0 4&lt;br /&gt;
    HBD 0 3&lt;br /&gt;
    CHARGE 0 2&lt;br /&gt;
    LIGAND TC RANGE 0.0 0.35&lt;br /&gt;
    MINIMUM DECOYS PER LIGAND 20&lt;br /&gt;
    DECOYS PER LIGAND 50&lt;br /&gt;
    MAXIMUM TC BETWEEN DECOYS 0.8&lt;br /&gt;
    TANIMOTO YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your input ligand SMILES file is already protonated as you want it, set &amp;quot;PROTONATE NO&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
If you want your input ligand SMILES protonated, only protomer SMILES with unique properties will be kept for generating decoys. Therefore, if you have one ligand that exists in 4 tautomers, all of which have identical molecular weight, cLogP, # rotatable bonds, # H-bond acceptors and donors, and net charge, only &amp;lt;B&amp;gt;one&amp;lt;/B&amp;gt; will be maintained for decoy matching. This doesn&#039;t apply if you set &amp;quot;PROTONATE NO&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This file specifies that for each ligand protomer, at least 20 decoys will be retrieved with the following properties:&lt;br /&gt;
     - within +/- 125 Daltons&lt;br /&gt;
     - within +/- 3.6 logP&lt;br /&gt;
     - within +/- 5 rotatable bonds&lt;br /&gt;
     - within +/- 4 hydrogen bond acceptors&lt;br /&gt;
     - within +/- 3 hydrogen bond donors&lt;br /&gt;
     - within +/- 2 charge&lt;br /&gt;
     - 0.35 or less Tanimoto&lt;br /&gt;
     - minimum 20 decoys per ligand protomer, if available&lt;br /&gt;
     - preferred 50 decoys per ligand protomer, if available&lt;br /&gt;
     - the maximum TC between decoy molecules should be 0.8&lt;br /&gt;
     - &amp;quot;TANIMOTO&amp;quot; refers to whether a Tanimoto calculation should be performed - see step 3 for when this is necessary&lt;br /&gt;
&lt;br /&gt;
These are &amp;lt;B&amp;gt;arbitrary&amp;lt;/B&amp;gt;, and you can input your desired minimum and maximum values that decoys can differ by, relative to the ligands. &lt;br /&gt;
&lt;br /&gt;
Once you have created this file, run the following command to create the decoy generation directory:&lt;br /&gt;
&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0000_protonate_setup_dirs.py {SMILES_FILE} {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
Provide a directory name that you want in place of {NEW_DIR_NAME}. This will create the directory with subdirectories named&lt;br /&gt;
&amp;quot;ligand_${number}&amp;quot; for each of the ligands in the SMILES file you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 2) Retrieving protomer decoys from ZINC15 ===&lt;br /&gt;
&lt;br /&gt;
If you have edited the &amp;quot;decoy_generation.in&amp;quot; file which is now located in {NEW_DIR_NAME} as you want, you can run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0001_qsub_generate_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
This should take 15 minutes to an hour, depending on how many ligands you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 3) Assigning accepted protomer decoys to each ligand protomer ===&lt;br /&gt;
&lt;br /&gt;
We can assign the property-matched decoys to the ligand protomers. Make sure you have the &amp;quot;decoy_generation_input.in&amp;quot; file from before in {NEW_DIR_NAME}. &lt;br /&gt;
&lt;br /&gt;
To filter the decoys, run the following command:&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0002_qsub_filter_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
This will run on the queue. A log file called &amp;quot;FILTER_DECOYS.log&amp;quot; will be generated in {NEW_DIR_NAME} with information and any errors.&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t get enough decoys, the &amp;quot;decoy_generation.in&amp;quot; file can be modified by changing &amp;quot;MAXIMUM TC BETWEEN DECOYS&amp;quot;, &amp;quot;MINIMUM DECOYS PER LIGAND&amp;quot;, etc.&lt;br /&gt;
To not run the time-consuming Tanimoto calculation between all decoys again, simply add/change this in the &amp;quot;decoy_generation.in&amp;quot; file:&lt;br /&gt;
&lt;br /&gt;
    TANIMOTO NO&lt;br /&gt;
&lt;br /&gt;
If you set Tanimoto to &amp;quot;NO&amp;quot;, make sure that your {NEW_DIR_NAME} still has the original files:&lt;br /&gt;
&lt;br /&gt;
    &amp;quot;test_ligdecoy_smiles.smi&amp;quot;&lt;br /&gt;
    &amp;quot;cluster_head.list&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Otherwise, this step will not run.&lt;br /&gt;
&lt;br /&gt;
If these original files still remain, this will skip the Tanimoto calculation step, and filter property matched decoys based on the new parameters in the &amp;quot;decoy_generation.in&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
If this has completed successfully, you should see files in your {NEW_DIR_NAME} with the format &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot;. These files contain the ligands and their properties, as well as property-matched decoys that have been assigned to them. These files have the format &amp;quot;SMILES&amp;quot;, &amp;quot;ZINC ID&amp;quot;, &amp;quot;logP&amp;quot;, &amp;quot;#Rotatable Bonds&amp;quot;, &amp;quot;# Hydrogen Bond Donors&amp;quot;, &amp;quot;# Hydrogen Bond Acceptors&amp;quot;, &amp;quot;Charge&amp;quot;, &amp;quot;Protomer SMILES&amp;quot;, and &amp;quot;Tanimoto Coefficient to Ligand&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There should also be files with the format &amp;quot;{LIGAND_ID}_replacements.txt&amp;quot;, which include extra property-matched decoys that were assigned to that ligand. &lt;br /&gt;
&lt;br /&gt;
If you still cannot get enough decoys for your ligands, consider reducing the number of ligands you have by clustering, for example, or using the SMILES decoy generation below, which is not limited to only molecules that are already built in ZINC15.&lt;br /&gt;
&lt;br /&gt;
=== Step 4) Copying decoy .db2.gz files into your directories ===&lt;br /&gt;
&lt;br /&gt;
To copy property-matched decoys into your own directory of choice, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0003_copy_decoys_to_new_dir.py {NEW_DIR_NAME} {COPY_TO_DIR}&lt;br /&gt;
&lt;br /&gt;
where {COPY_TO_DIR} is a new directory that will be created where your decoys will be copied into. In this directory, two subdirectories will be created:&lt;br /&gt;
     &amp;quot;ligands&amp;quot; - this includes the input ligands for which there are X number property matched decoys (these are all ligands with &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot; files in {NEW_DIR_NAME})&lt;br /&gt;
     &amp;quot;decoys&amp;quot; - this will include the decoy .db2.gz files for docking and &amp;quot;decoys.smi&amp;quot; which contains all the SMILES strings for property matched decoys&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: It is possible that all of your ligand protomers were not matched to property-matched decoys. The &amp;quot;ligands.smi&amp;quot; file in {COPY_TO_DIR} will not include these. Make &lt;br /&gt;
sure you do not dock these if you calculate enrichment values.&lt;br /&gt;
&lt;br /&gt;
== Querying ZINC for SMILES ==&lt;br /&gt;
&lt;br /&gt;
This procedure generates decoys for your input ligand SMILES by finding decoy SMILES in ZINC that are property-matched. This procedure will provide decoy SMILES that you can build yourself into 3D models for docking. If you would like to query ZINC for decoy SMILES so that you can build decoys yourself or if your ligands are &amp;gt;400 Da, start here. If not, go to &amp;quot;Querying ZINC for Protomers&amp;quot; to generate decoys that already have 3D models.&lt;br /&gt;
&lt;br /&gt;
=== Step 1) Setting up SMILES directory ===&lt;br /&gt;
&lt;br /&gt;
Before starting, you need a SMILES file with the format (SMILES first, ID second):&lt;br /&gt;
   S(Nc1c(O)cc(C(=O)O)cc1)(c2c(scc2)C(=O)O)(=O)=O 116&lt;br /&gt;
&lt;br /&gt;
You also need an input file named &amp;quot;decoy_generation.in&amp;quot; with the following lines:&lt;br /&gt;
&lt;br /&gt;
    SMILES YES&lt;br /&gt;
    PROTONATE YES&lt;br /&gt;
    MWT 0 125&lt;br /&gt;
    LOGP 0 3.6&lt;br /&gt;
    RB 0 5&lt;br /&gt;
    HBA 0 4&lt;br /&gt;
    HBD 0 3&lt;br /&gt;
    CHARGE 0 2&lt;br /&gt;
    LIGAND TC RANGE 0.0 0.35&lt;br /&gt;
    MINIMUM DECOYS PER LIGAND 20&lt;br /&gt;
    DECOYS PER LIGAND 50&lt;br /&gt;
    MAXIMUM TC BETWEEN DECOYS 0.8&lt;br /&gt;
    TANIMOTO YES&lt;br /&gt;
    GENERATE DECOYS 750&lt;br /&gt;
    &lt;br /&gt;
If your input ligand SMILES file is already protonated as you want it, set &amp;quot;PROTONATE NO&amp;quot;. &amp;quot;SMILES&amp;quot; tells the function you want to query ZINC for SMILES, not built protomers.&lt;br /&gt;
&lt;br /&gt;
This file specifies that for each ligand protomer, {MINIMUM DECOYS PER LIGAND} to {DECOYS PER LIGAND} decoys will be retrieved with the following properties:&lt;br /&gt;
     - within +/- 125 Daltons&lt;br /&gt;
     - within +/- 3.6 logP&lt;br /&gt;
     - within +/- 5 rotatable bonds&lt;br /&gt;
     - within +/- 4 hydrogen bond acceptors&lt;br /&gt;
     - within +/- 3 hydrogen bond donors&lt;br /&gt;
     - within +/- 2 charge&lt;br /&gt;
     - 0.35 or less Tanimoto&lt;br /&gt;
&lt;br /&gt;
&amp;quot;GENERATE DECOYS&amp;quot; specifies how many potential decoys you want to check for property matching with your ligands. A smaller number results in faster decoy generation, but a smaller pool of potential decoys to compare your ligand against. A larger number results in slower decoy generation, and greater likelihood of property-matched decoys for all your ligands. &lt;br /&gt;
&lt;br /&gt;
As with protomers, &amp;quot;MINIMUM DECOYS PER LIGAND&amp;quot; refers to the minimum number of decoys you want for each ligand protomer; &lt;br /&gt;
&lt;br /&gt;
&amp;quot;DECOYS PER LIGAND&amp;quot; refers to your preferred number of decoys for each ligand protomer;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;MAXIMUM TC BETWEEN DECOYS&amp;quot; refers to the maximum Tc allowed between decoys (the lower, the more dissimilar your decoys will be);&lt;br /&gt;
&lt;br /&gt;
and &amp;quot;TANIMOTO&amp;quot; refers to whether the ligand-decoy full Tc matrix should be calculated - this must be done at least once and should not be set to &amp;quot;NO&amp;quot; unless you are re-running step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These are &amp;lt;B&amp;gt;arbitrary&amp;lt;/B&amp;gt;, and you can input your desired minimum and maximum values that decoys can differ by, relative to the ligands.  &lt;br /&gt;
&lt;br /&gt;
Once you have created this file, run the following command to create the decoy generation directory:&lt;br /&gt;
&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0000_protonate_setup_dirs.py {SMILES_FILE} {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
Provide a directory name that you want in place of {NEW_DIR_NAME}. This will create the directory with subdirectories named&lt;br /&gt;
&amp;quot;ligand_${number}&amp;quot; for each of the ligands in the SMILES file you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 2) Retrieving SMILES decoys from ZINC15 ===&lt;br /&gt;
&lt;br /&gt;
If you have edited the &amp;quot;decoy_generation.in&amp;quot; file which is now located in {NEW_DIR_NAME} as you want, you can run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0001_qsub_generate_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
Jobs will run for 15 minutes to 1-2 hours depending on how many ligands you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 3) Assigning decoys to ligands ===&lt;br /&gt;
&lt;br /&gt;
To assign property matched decoys to your ligand protomers, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0002_qsub_filter_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
This will run on the queue. As with &amp;quot;Querying ZINC for Protomers&amp;quot;: &lt;br /&gt;
&lt;br /&gt;
If you don&#039;t get enough decoys, the &amp;quot;decoy_generation.in&amp;quot; file can be modified by changing &amp;quot;MAXIMUM TC BETWEEN DECOYS&amp;quot;, &amp;quot;MINIMUM DECOYS PER LIGAND&amp;quot;, etc.&lt;br /&gt;
To not run the time-consuming Tanimoto calculation between all ligands and decoys again, simply add/change this in the &amp;quot;decoy_generation.in&amp;quot; file:&lt;br /&gt;
&lt;br /&gt;
    TANIMOTO NO&lt;br /&gt;
&lt;br /&gt;
If you set Tanimoto to &amp;quot;NO&amp;quot;, make sure that your {NEW_DIR_NAME} still has the original files:&lt;br /&gt;
&lt;br /&gt;
    &amp;quot;test_ligdecoy_smiles.smi&amp;quot;&lt;br /&gt;
    &amp;quot;cluster_head.list&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Otherwise, this step will not run.&lt;br /&gt;
&lt;br /&gt;
If these original files still remain, this will skip the Tanimoto calculation step, and filter property matched decoys based on the new parameters in the &amp;quot;decoy_generation.in&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
If this has completed successfully, you should see files in your {NEW_DIR_NAME} with the format &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot;. These files have the format &amp;quot;SMILES&amp;quot;, &amp;quot;ZINC ID&amp;quot;, &amp;quot;logP&amp;quot;, &amp;quot;#Rotatable Bonds&amp;quot;, &amp;quot;# Hydrogen Bond Donors&amp;quot;, &amp;quot;# Hydrogen Bond Acceptors&amp;quot;, &amp;quot;Charge&amp;quot;, &amp;quot;Protomer ID&amp;quot;, and &amp;quot;Tanimoto Coefficient to Ligand&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
These files contain the ligands and their properties, as well as property-matched decoys that have been assigned to them. There should also be files with the format &amp;quot;{LIGAND_ID}_replacements.txt&amp;quot;, which include extra property-matched decoys that were assigned to that ligand.&lt;br /&gt;
&lt;br /&gt;
=== Step 4) Setting up ligand/decoy directories for building SMILES ===&lt;br /&gt;
&lt;br /&gt;
If you have queried ZINC for SMILES, you need to build the decoys yourself. To write the SMILES file, run the following command:&lt;br /&gt;
&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0003b_write_out_ligands_decoys.py {NEW_DIR_NAME} {COPY_TO_DIR}&lt;br /&gt;
&lt;br /&gt;
This will create {COPY_TO_DIR} with two subdirectories, &amp;quot;ligands&amp;quot; and &amp;quot;decoys&amp;quot; as well as SMILES files for:&lt;br /&gt;
&lt;br /&gt;
    ligands.smi - this includes the input ligands for which there are X number property matched decoys (these are all ligands with &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot; files in {NEW_DIR_NAME})&lt;br /&gt;
    decoys.smi  - this includes the canonicalized property-matched decoy SMILES&lt;br /&gt;
    decoy_protomers.smi - this includes the actual property-matched decoy protomer SMILES&lt;br /&gt;
&lt;br /&gt;
SMILES for decoys can now be built.&lt;br /&gt;
&lt;br /&gt;
For decoy building, use the following command:&lt;br /&gt;
&lt;br /&gt;
    setenv DOCKBASE /nfs/soft/dock/versions/dock37/DOCK-3.7-trunk&lt;br /&gt;
    source /nfs/soft/dock/versions/dock37/DOCK-3.7-trunk/env.csh&lt;br /&gt;
    ${DOCKBASE}/ligand/generate/build_database_ligand.sh -H $ph decoy_protomers.smi &amp;lt;B&amp;gt;--pre-tautomerized&amp;lt;/B&amp;gt; --no-db&lt;br /&gt;
&lt;br /&gt;
If not all decoys successfully build, more property matched decoys can be taken from the &amp;quot;{LIGAND_ID}_replacements.txt&amp;quot; files. Additionally, you can build decoys without the &amp;lt;B&amp;gt;--pre-tautomerized&amp;lt;/B&amp;gt; flag:&lt;br /&gt;
&lt;br /&gt;
    ${DOCKBASE}/ligand/generate/build_database_ligand.sh -H $ph &amp;lt;B&amp;gt;decoys.smi&amp;lt;/B&amp;gt; --no-db&lt;br /&gt;
&lt;br /&gt;
This will produce all protomers of each decoy, including the property-matched decoy protomer.&lt;br /&gt;
&lt;br /&gt;
== Visualizing Decoy Properties ==&lt;br /&gt;
=== Visualizing property distributions ===&lt;br /&gt;
&lt;br /&gt;
To visualize the distributions of molecular properties of matched decoys relative to the ligands, run the following command:&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0004_plot_properties.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
There will be 6 images in {NEW_DIR_NAME} for molecular weight, logP, number of rotatable bonds, number of hydrogen bond donors, number of hydrogen bond acceptors, and net charge of ligands and decoys.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing decoy Tanimotos to ligands ===&lt;br /&gt;
&lt;br /&gt;
To visualize how different the matched decoys are to the input ligands, run the following command:&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0005_plot_tanimoto_to_lig.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
There will be a box and whisker plot image in {NEW_DIR_NAME} showing the Tanimotos calculated between each ligand and all decoys.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Generating_decoys_(DUDE-Z)&amp;diff=12527</id>
		<title>Generating decoys (DUDE-Z)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Generating_decoys_(DUDE-Z)&amp;diff=12527"/>
		<updated>2020-05-15T19:18:55Z</updated>

		<summary type="html">&lt;p&gt;Rstein: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Blah&amp;diff=12526</id>
		<title>Blah</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Blah&amp;diff=12526"/>
		<updated>2020-05-15T19:18:28Z</updated>

		<summary type="html">&lt;p&gt;Rstein: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Generating_Decoys_(DUDE-Z)&amp;diff=12525</id>
		<title>Generating Decoys (DUDE-Z)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Generating_Decoys_(DUDE-Z)&amp;diff=12525"/>
		<updated>2020-05-15T19:18:11Z</updated>

		<summary type="html">&lt;p&gt;Rstein: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=DOCK_3.7&amp;diff=12524</id>
		<title>DOCK 3.7</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=DOCK_3.7&amp;diff=12524"/>
		<updated>2020-05-15T19:17:16Z</updated>

		<summary type="html">&lt;p&gt;Rstein: /* Prepare Screening Library */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= About = &lt;br /&gt;
&lt;br /&gt;
DOCK 3.7 the current version in the [[DOCK 3]] series of docking programs developed and used by the [[Shoichet Lab]]. Please read and cite the DOCK 3.7 paper&lt;br /&gt;
[http://www.plosone.org/article/info:doi/10.1371/journal.pone.0075992 Coleman, Carchia, Sterling, Irwin &amp;amp; Shoichet, PLOS ONE 2013.]&lt;br /&gt;
&lt;br /&gt;
DOCK 3.7 is written in Fortran and some C. It is an update of [[DOCK 3.6]] with many improved features. DOCK 3.7 comes with all the tools necessary to prepare a &lt;br /&gt;
protein for docking and some tools necessary to build ligands, though some tools must be obtained externally. It uses new Flexibase/DB2 files found in [[ZINC15]]. It includes tools to prepare receptors, and several auxiliary scripts.&lt;br /&gt;
&lt;br /&gt;
DOCK 3.7 is available at  [http://dock.compbio.ucsf.edu/DOCK3.7/ http://dock.compbio.ucsf.edu/DOCK3.7/].&lt;br /&gt;
&lt;br /&gt;
{{TOCright}}&lt;br /&gt;
&lt;br /&gt;
= Start here =&lt;br /&gt;
* [[So you want to set up a lab]] - only if you don&#039;t already have hardware ready.&lt;br /&gt;
* [[Install DOCK 3.7]]&lt;br /&gt;
* [[DOCK 3.7 2014/09/25 FXa Tutorial]]&lt;br /&gt;
* [[DOCK 3.7 2015/04/15 abl1 Tutorial]] superseded&lt;br /&gt;
* [[DOCK 3.7 2018/06/05 abl1 Tutorial]]&lt;br /&gt;
* [[DOCK 3.7 2016/09/16 Tutorial for Enrichment Calculations (Trent &amp;amp;  Jiankun)]]&lt;br /&gt;
* [[DOCK 3.7 tutorial (Anat)]]&lt;br /&gt;
* [[DOCK 3.7 with GIST tutorials]]&lt;br /&gt;
* [[DOCK 3.7 tutorial based on Webinar 2017/06/28]]&lt;br /&gt;
* [[Getting started with DOCK 3.7]]&lt;br /&gt;
* [[Blastermaster]] - Prepare input for and then run [[DOCK 3.7]].&lt;br /&gt;
* [[Ligand preparation 3.7]] - Create dockable databases for [[DOCK 3.7]].&lt;br /&gt;
* [[Ligand preparation]] - different version. &lt;br /&gt;
* [[Ligand prep Irwin Nov 2016]] - John&#039;s current version&lt;br /&gt;
* [[Mol2db2 Format 2]] - details on the database formate.&lt;br /&gt;
* [[Running docking 3.7]] - how to actually run docking.&lt;br /&gt;
* [[DOCK 3.7 Development]] - for software developers&lt;br /&gt;
* [[prepare a receptor with a cofactor for docking]]&lt;br /&gt;
=== For DOCKovalent, start here ===&lt;br /&gt;
* [[DOCKovalent_3.7]]&lt;br /&gt;
* [[DOCKovalent lysine inhibitor design tutorial]]&lt;br /&gt;
* [[DOCKovalent cysteine inhibitor design tutorial]]&lt;br /&gt;
&lt;br /&gt;
= Prepare Receptor = &lt;br /&gt;
* [[Protein Target Preparation]]&lt;br /&gt;
* [[Protein Target Preparation Updated]]&lt;br /&gt;
* [[Using_thin_spheres_in_DOCK3.7]]&lt;br /&gt;
*[[Matching Sphere Scan]]&lt;br /&gt;
* [[Adding Static Waters to the Protein Structure]]&lt;br /&gt;
* [[Flexible Docking]]&lt;br /&gt;
* [[Visualize docking grids]]&lt;br /&gt;
* [[Minimize protein-ligand complex with AMBER]]&lt;br /&gt;
* [[Minimize protein-covalent ligand complex with AMBER]]&lt;br /&gt;
&lt;br /&gt;
= Prepare Screening Library =&lt;br /&gt;
* [[mol2db2]] is the program that creates [[mol2db2 format]] database files which are read by [[DOCK 3.7]]&lt;br /&gt;
* [[ligand preparation 3.7]]&lt;br /&gt;
* [[generating decoys (Reed&#039;s way)]]&lt;br /&gt;
* [[generating extrema set]]&lt;br /&gt;
&lt;br /&gt;
= Running Docking =&lt;br /&gt;
* [[Running docking 3.7]] - JJI currently working on this.&lt;br /&gt;
* [[Running DOCK 3.7]] - this seems to be slightly dated.&lt;br /&gt;
* [[INDOCK 3.7]] - file format used by [[DOCK 3.7]]&lt;br /&gt;
* [[DOCK3.7_INDOCK_Minimization_Parameter]] - How to run DOCK 3.7.1rc1 (and latter versions) with the minimization.&lt;br /&gt;
* Interpreting the [[OUTDOCK 3.7]] file.&lt;br /&gt;
&lt;br /&gt;
= Analysis =&lt;br /&gt;
* [[Analyzing DOCK Results]]&lt;br /&gt;
* [http://autodude.docking.org/ Auto-DUD-E Test Set] (external site) &lt;br /&gt;
* [[Other Useful Stuff]]&lt;br /&gt;
* [[Bootstrap AUC]]&lt;br /&gt;
* [[another getposes.py]]&lt;br /&gt;
* [[Converting SMILES to Kekule Format]]&lt;br /&gt;
* Viewing results using [[ViewDock]]&lt;br /&gt;
&lt;br /&gt;
= Post Docking Clustering=&lt;br /&gt;
* [[How to process results from a large-scale docking]] &lt;br /&gt;
* [[Large-scale SMILES Requesting and Fingerprints Converting]]&lt;br /&gt;
* [[ECFP4 Best First Clustering]]&lt;br /&gt;
* [[Bemis-Murcko Scaffold Analysis]]&lt;br /&gt;
&lt;br /&gt;
= Post Docking Filters=&lt;br /&gt;
* [[Large-scale TC Calculations]]&lt;br /&gt;
* [[Whole Library TC to Knowns Calculations]]&lt;br /&gt;
* [[Filtering ligands for novelty]]&lt;br /&gt;
* [[Strain Filtering]]&lt;br /&gt;
* [[Interaction Filtering]]&lt;br /&gt;
* [[Torsion against CSD visualize with Maestro]]&lt;br /&gt;
&lt;br /&gt;
= Redocking with Enhanced Sampling =&lt;br /&gt;
*[[Sample Additional Ring Puckers ]]&lt;br /&gt;
= Rescoring =&lt;br /&gt;
*[[Rescoring_with_DOCK_3.7]]&lt;br /&gt;
&lt;br /&gt;
= Available Libraries = &lt;br /&gt;
* [[ZINC Subset DB2 file locations]]&lt;br /&gt;
* how to get db2 files from zinc15.docking.org&lt;br /&gt;
&lt;br /&gt;
= Analog by Catalog= &lt;br /&gt;
* [[Substructure searching]]&lt;br /&gt;
* [[TC analog searching in ZINC]]&lt;br /&gt;
&lt;br /&gt;
= Previous verisons and compatibility = &lt;br /&gt;
DOCK 3.7 is part of the [[DOCK 3]] series. It differs substantially from its immediate predecessor [[DOCK 3.6]],&lt;br /&gt;
which uses a different format of database files that cannot be read by [[DOCK 3.7]], and vice versa. &lt;br /&gt;
&lt;br /&gt;
= How to Cite = &lt;br /&gt;
To cite the DOCK 3.7 paper, please use&lt;br /&gt;
[http://www.plosone.org/article/info:doi/10.1371/journal.pone.0075992 Coleman, Carchia, Sterling, Irwin &amp;amp; Shoichet, PLOS ONE 2013.]&lt;br /&gt;
&lt;br /&gt;
= How to Download = &lt;br /&gt;
DOCK 3.7 is available at  [http://dock.compbio.ucsf.edu/DOCK3.7/ http://dock.compbio.ucsf.edu/DOCK3.7/].&lt;br /&gt;
&lt;br /&gt;
= Implementation = &lt;br /&gt;
DOCK 3.7 is written in Fortran and some C. Scripts are mostly in [[python]] and [[perl]].&lt;br /&gt;
&lt;br /&gt;
{{Template:CC-BY-SA-30}}&lt;br /&gt;
{{Template:Coleman}}&lt;br /&gt;
&lt;br /&gt;
[[Category:DOCK 3.7]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Freecom]]&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Blah&amp;diff=12523</id>
		<title>Blah</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Blah&amp;diff=12523"/>
		<updated>2020-05-15T19:15:26Z</updated>

		<summary type="html">&lt;p&gt;Rstein: Rstein moved page Blah to Generating Decoys (DUDE-Z)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Generating Decoys (DUDE-Z)]]&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Generating_Decoys_(DUDE-Z)&amp;diff=12522</id>
		<title>Generating Decoys (DUDE-Z)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Generating_Decoys_(DUDE-Z)&amp;diff=12522"/>
		<updated>2020-05-15T19:15:26Z</updated>

		<summary type="html">&lt;p&gt;Rstein: Rstein moved page Blah to Generating Decoys (DUDE-Z)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Written by Reed Stein on April 3, 2018.&lt;br /&gt;
&lt;br /&gt;
updated 5/3/2019&lt;br /&gt;
&lt;br /&gt;
updated 8/15/2019&lt;br /&gt;
&lt;br /&gt;
updated 3/6/2020&lt;br /&gt;
&lt;br /&gt;
This pipeline will generate property-matched decoys for a set of ligand SMILES. To build ligands yourself, see &amp;quot;ligand prep&amp;quot; in:&lt;br /&gt;
    http://wiki.docking.org/index.php/DOCK_3.7_tutorial_%28Anat%29&lt;br /&gt;
&lt;br /&gt;
All scripts for this tutorial can be found in:&lt;br /&gt;
    /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/&lt;br /&gt;
&lt;br /&gt;
Before running any scripts, make sure to source the current version of Python&lt;br /&gt;
   source /nfs/soft/python/envs/complete/current/env.csh&lt;br /&gt;
&lt;br /&gt;
Additionally, JChem needs to be sourced in your ~/.cshrc file with the command:&lt;br /&gt;
   source /nfs/soft/jchem/current/env.csh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Querying ZINC for Protomers ==&lt;br /&gt;
&lt;br /&gt;
This procedure generates decoys for your input ligands by searching through 3D conformers that are already built in ZINC. This procedure is advised if you want decoys to be charge-matched to ligands.&lt;br /&gt;
&lt;br /&gt;
=== Step 1) Setting up directories for Protomers ===&lt;br /&gt;
&lt;br /&gt;
Before starting, you need a SMILES file with the format (SMILES first, ID second):&lt;br /&gt;
   S(Nc1c(O)cc(C(=O)O)cc1)(c2c(scc2)C(=O)O)(=O)=O 116&lt;br /&gt;
&lt;br /&gt;
You also need an input file named &amp;quot;decoy_generation.in&amp;quot; with the following lines:&lt;br /&gt;
    &lt;br /&gt;
    PROTONATE YES&lt;br /&gt;
    MWT 0 125&lt;br /&gt;
    LOGP 0 3.6&lt;br /&gt;
    RB 0 5&lt;br /&gt;
    HBA 0 4&lt;br /&gt;
    HBD 0 3&lt;br /&gt;
    CHARGE 0 2&lt;br /&gt;
    LIGAND TC RANGE 0.0 0.35&lt;br /&gt;
    MINIMUM DECOYS PER LIGAND 20&lt;br /&gt;
    DECOYS PER LIGAND 50&lt;br /&gt;
    MAXIMUM TC BETWEEN DECOYS 0.8&lt;br /&gt;
    TANIMOTO YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your input ligand SMILES file is already protonated as you want it, set &amp;quot;PROTONATE NO&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
This file specifies that for each ligand protomer, at least 20 decoys will be retrieved with the following properties:&lt;br /&gt;
     - within +/- 125 Daltons&lt;br /&gt;
     - within +/- 3.6 logP&lt;br /&gt;
     - within +/- 5 rotatable bonds&lt;br /&gt;
     - within +/- 4 hydrogen bond acceptors&lt;br /&gt;
     - within +/- 3 hydrogen bond donors&lt;br /&gt;
     - within +/- 2 charge&lt;br /&gt;
     - 0.35 or less Tanimoto&lt;br /&gt;
     - minimum 20 decoys per ligand protomer, if available&lt;br /&gt;
     - preferred 50 decoys per ligand protomer, if available&lt;br /&gt;
     - the maximum TC between decoy molecules should be 0.8&lt;br /&gt;
     - &amp;quot;TANIMOTO&amp;quot; refers to whether a Tanimoto calculation should be performed - see step 3 for when this is necessary&lt;br /&gt;
&lt;br /&gt;
These are &amp;lt;B&amp;gt;arbitrary&amp;lt;/B&amp;gt;, and you can input your desired minimum and maximum values that decoys can differ by, relative to the ligands. &lt;br /&gt;
&lt;br /&gt;
Once you have created this file, run the following command to create the decoy generation directory:&lt;br /&gt;
&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0000_protonate_setup_dirs.py {SMILES_FILE} {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
Provide a directory name that you want in place of {NEW_DIR_NAME}. This will create the directory with subdirectories named&lt;br /&gt;
&amp;quot;ligand_${number}&amp;quot; for each of the ligands in the SMILES file you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 2) Retrieving protomer decoys from ZINC15 ===&lt;br /&gt;
&lt;br /&gt;
If you have edited the &amp;quot;decoy_generation.in&amp;quot; file which is now located in {NEW_DIR_NAME} as you want, you can run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0001_qsub_generate_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
This should take 15 minutes to an hour, depending on how many ligands you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 3) Assigning accepted protomer decoys to each ligand protomer ===&lt;br /&gt;
&lt;br /&gt;
We can assign the property-matched decoys to the ligand protomers. Make sure you have the &amp;quot;decoy_generation_input.in&amp;quot; file from before in {NEW_DIR_NAME}. &lt;br /&gt;
&lt;br /&gt;
To filter the decoys, run the following command:&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0002_qsub_filter_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
This will run on the queue. A log file called &amp;quot;FILTER_DECOYS.log&amp;quot; will be generated in {NEW_DIR_NAME} with information and any errors.&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t get enough decoys, the &amp;quot;decoy_generation.in&amp;quot; file can be modified by changing &amp;quot;MAXIMUM TC BETWEEN DECOYS&amp;quot;, &amp;quot;MINIMUM DECOYS PER LIGAND&amp;quot;, etc.&lt;br /&gt;
To not run the time-consuming Tanimoto calculation between all decoys again, simply add/change this in the &amp;quot;decoy_generation.in&amp;quot; file:&lt;br /&gt;
&lt;br /&gt;
    TANIMOTO NO&lt;br /&gt;
&lt;br /&gt;
If you set Tanimoto to &amp;quot;NO&amp;quot;, make sure that your {NEW_DIR_NAME} still has the original files:&lt;br /&gt;
&lt;br /&gt;
    &amp;quot;test_ligdecoy_smiles.smi&amp;quot;&lt;br /&gt;
    &amp;quot;cluster_head.list&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Otherwise, this step will not run.&lt;br /&gt;
&lt;br /&gt;
If these original files still remain, this will skip the Tanimoto calculation step, and filter property matched decoys based on the new parameters in the &amp;quot;decoy_generation.in&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
If this has completed successfully, you should see files in your {NEW_DIR_NAME} with the format &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot;. These files contain the ligands and their properties, as well as property-matched decoys that have been assigned to them. These files have the format &amp;quot;SMILES&amp;quot;, &amp;quot;ZINC ID&amp;quot;, &amp;quot;logP&amp;quot;, &amp;quot;#Rotatable Bonds&amp;quot;, &amp;quot;# Hydrogen Bond Donors&amp;quot;, &amp;quot;# Hydrogen Bond Acceptors&amp;quot;, &amp;quot;Charge&amp;quot;, &amp;quot;Protomer SMILES&amp;quot;, and &amp;quot;Tanimoto Coefficient to Ligand&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There should also be files with the format &amp;quot;{LIGAND_ID}_replacements.txt&amp;quot;, which include extra property-matched decoys that were assigned to that ligand. &lt;br /&gt;
&lt;br /&gt;
If you still cannot get enough decoys for your ligands, consider reducing the number of ligands you have by clustering, for example, or using the SMILES decoy generation below, which is not limited to only molecules that are already built in ZINC15.&lt;br /&gt;
&lt;br /&gt;
=== Step 4) Copying decoy .db2.gz files into your directories ===&lt;br /&gt;
&lt;br /&gt;
To copy property-matched decoys into your own directory of choice, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0003_copy_decoys_to_new_dir.py {NEW_DIR_NAME} {COPY_TO_DIR}&lt;br /&gt;
&lt;br /&gt;
where {COPY_TO_DIR} is a new directory that will be created where your decoys will be copied into. In this directory, two subdirectories will be created:&lt;br /&gt;
     &amp;quot;ligands&amp;quot; - this includes the input ligands for which there are X number property matched decoys (these are all ligands with &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot; files in {NEW_DIR_NAME})&lt;br /&gt;
     &amp;quot;decoys&amp;quot; - this will include the decoy .db2.gz files for docking and &amp;quot;decoys.smi&amp;quot; which contains all the SMILES strings for property matched decoys&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: It is possible that all of your ligand protomers were not matched to property-matched decoys. The &amp;quot;ligands.smi&amp;quot; file in {COPY_TO_DIR} will not include these. Make &lt;br /&gt;
sure you do not dock these if you calculate enrichment values.&lt;br /&gt;
&lt;br /&gt;
== Querying ZINC for SMILES ==&lt;br /&gt;
&lt;br /&gt;
This procedure generates decoys for your input ligand SMILES by finding decoy SMILES in ZINC that are property-matched. This procedure will provide decoy SMILES that you can build yourself into 3D models for docking. If you would like to query ZINC for decoy SMILES so that you can build decoys yourself or if your ligands are &amp;gt;400 Da, start here. If not, go to &amp;quot;Querying ZINC for Protomers&amp;quot; to generate decoys that already have 3D models.&lt;br /&gt;
&lt;br /&gt;
=== Step 1) Setting up SMILES directory ===&lt;br /&gt;
&lt;br /&gt;
Before starting, you need a SMILES file with the format (SMILES first, ID second):&lt;br /&gt;
   S(Nc1c(O)cc(C(=O)O)cc1)(c2c(scc2)C(=O)O)(=O)=O 116&lt;br /&gt;
&lt;br /&gt;
You also need an input file named &amp;quot;decoy_generation.in&amp;quot; with the following lines:&lt;br /&gt;
&lt;br /&gt;
    SMILES YES&lt;br /&gt;
    PROTONATE YES&lt;br /&gt;
    MWT 0 125&lt;br /&gt;
    LOGP 0 3.6&lt;br /&gt;
    RB 0 5&lt;br /&gt;
    HBA 0 4&lt;br /&gt;
    HBD 0 3&lt;br /&gt;
    CHARGE 0 2&lt;br /&gt;
    LIGAND TC RANGE 0.0 0.35&lt;br /&gt;
    MINIMUM DECOYS PER LIGAND 20&lt;br /&gt;
    DECOYS PER LIGAND 50&lt;br /&gt;
    MAXIMUM TC BETWEEN DECOYS 0.8&lt;br /&gt;
    TANIMOTO YES&lt;br /&gt;
    GENERATE DECOYS 750&lt;br /&gt;
    &lt;br /&gt;
If your input ligand SMILES file is already protonated as you want it, set &amp;quot;PROTONATE NO&amp;quot;. &amp;quot;SMILES&amp;quot; tells the function you want to query ZINC for SMILES, not built protomers.&lt;br /&gt;
&lt;br /&gt;
This file specifies that for each ligand protomer, {MINIMUM DECOYS PER LIGAND} to {DECOYS PER LIGAND} decoys will be retrieved with the following properties:&lt;br /&gt;
     - within +/- 125 Daltons&lt;br /&gt;
     - within +/- 3.6 logP&lt;br /&gt;
     - within +/- 5 rotatable bonds&lt;br /&gt;
     - within +/- 4 hydrogen bond acceptors&lt;br /&gt;
     - within +/- 3 hydrogen bond donors&lt;br /&gt;
     - within +/- 2 charge&lt;br /&gt;
     - 0.35 or less Tanimoto&lt;br /&gt;
&lt;br /&gt;
&amp;quot;GENERATE DECOYS&amp;quot; specifies how many potential decoys you want to check for property matching with your ligands. A smaller number results in faster decoy generation, but a smaller pool of potential decoys to compare your ligand against. A larger number results in slower decoy generation, and greater likelihood of property-matched decoys for all your ligands. &lt;br /&gt;
&lt;br /&gt;
As with protomers, &amp;quot;MINIMUM DECOYS PER LIGAND&amp;quot; refers to the minimum number of decoys you want for each ligand protomer; &lt;br /&gt;
&lt;br /&gt;
&amp;quot;DECOYS PER LIGAND&amp;quot; refers to your preferred number of decoys for each ligand protomer;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;MAXIMUM TC BETWEEN DECOYS&amp;quot; refers to the maximum Tc allowed between decoys (the lower, the more dissimilar your decoys will be);&lt;br /&gt;
&lt;br /&gt;
and &amp;quot;TANIMOTO&amp;quot; refers to whether the ligand-decoy full Tc matrix should be calculated - this must be done at least once and should not be set to &amp;quot;NO&amp;quot; unless you are re-running step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These are &amp;lt;B&amp;gt;arbitrary&amp;lt;/B&amp;gt;, and you can input your desired minimum and maximum values that decoys can differ by, relative to the ligands.  &lt;br /&gt;
&lt;br /&gt;
Once you have created this file, run the following command to create the decoy generation directory:&lt;br /&gt;
&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0000_protonate_setup_dirs.py {SMILES_FILE} {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
Provide a directory name that you want in place of {NEW_DIR_NAME}. This will create the directory with subdirectories named&lt;br /&gt;
&amp;quot;ligand_${number}&amp;quot; for each of the ligands in the SMILES file you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 2) Retrieving SMILES decoys from ZINC15 ===&lt;br /&gt;
&lt;br /&gt;
If you have edited the &amp;quot;decoy_generation.in&amp;quot; file which is now located in {NEW_DIR_NAME} as you want, you can run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0001_qsub_generate_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
Jobs will run for 15 minutes to 1-2 hours depending on how many ligands you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 3) Assigning decoys to ligands ===&lt;br /&gt;
&lt;br /&gt;
To assign property matched decoys to your ligand protomers, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0002_qsub_filter_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
This will run on the queue. As with &amp;quot;Querying ZINC for Protomers&amp;quot;: &lt;br /&gt;
&lt;br /&gt;
If you don&#039;t get enough decoys, the &amp;quot;decoy_generation.in&amp;quot; file can be modified by changing &amp;quot;MAXIMUM TC BETWEEN DECOYS&amp;quot;, &amp;quot;MINIMUM DECOYS PER LIGAND&amp;quot;, etc.&lt;br /&gt;
To not run the time-consuming Tanimoto calculation between all ligands and decoys again, simply add/change this in the &amp;quot;decoy_generation.in&amp;quot; file:&lt;br /&gt;
&lt;br /&gt;
    TANIMOTO NO&lt;br /&gt;
&lt;br /&gt;
If you set Tanimoto to &amp;quot;NO&amp;quot;, make sure that your {NEW_DIR_NAME} still has the original files:&lt;br /&gt;
&lt;br /&gt;
    &amp;quot;test_ligdecoy_smiles.smi&amp;quot;&lt;br /&gt;
    &amp;quot;cluster_head.list&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Otherwise, this step will not run.&lt;br /&gt;
&lt;br /&gt;
If these original files still remain, this will skip the Tanimoto calculation step, and filter property matched decoys based on the new parameters in the &amp;quot;decoy_generation.in&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
If this has completed successfully, you should see files in your {NEW_DIR_NAME} with the format &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot;. These files have the format &amp;quot;SMILES&amp;quot;, &amp;quot;ZINC ID&amp;quot;, &amp;quot;logP&amp;quot;, &amp;quot;#Rotatable Bonds&amp;quot;, &amp;quot;# Hydrogen Bond Donors&amp;quot;, &amp;quot;# Hydrogen Bond Acceptors&amp;quot;, &amp;quot;Charge&amp;quot;, &amp;quot;Protomer ID&amp;quot;, and &amp;quot;Tanimoto Coefficient to Ligand&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
These files contain the ligands and their properties, as well as property-matched decoys that have been assigned to them. There should also be files with the format &amp;quot;{LIGAND_ID}_replacements.txt&amp;quot;, which include extra property-matched decoys that were assigned to that ligand.&lt;br /&gt;
&lt;br /&gt;
=== Step 4) Setting up ligand/decoy directories for building SMILES ===&lt;br /&gt;
&lt;br /&gt;
If you have queried ZINC for SMILES, you need to build the decoys yourself. To write the SMILES file, run the following command:&lt;br /&gt;
&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0003b_write_out_ligands_decoys.py {NEW_DIR_NAME} {COPY_TO_DIR}&lt;br /&gt;
&lt;br /&gt;
This will create {COPY_TO_DIR} with two subdirectories, &amp;quot;ligands&amp;quot; and &amp;quot;decoys&amp;quot; as well as SMILES files for:&lt;br /&gt;
&lt;br /&gt;
    ligands.smi - this includes the input ligands for which there are X number property matched decoys (these are all ligands with &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot; files in {NEW_DIR_NAME})&lt;br /&gt;
    decoys.smi  - this includes the canonicalized property-matched decoy SMILES&lt;br /&gt;
    decoy_protomers.smi - this includes the actual property-matched decoy protomer SMILES&lt;br /&gt;
&lt;br /&gt;
SMILES for decoys can now be built.&lt;br /&gt;
&lt;br /&gt;
For decoy building, use the following command:&lt;br /&gt;
&lt;br /&gt;
    setenv DOCKBASE /nfs/soft/dock/versions/dock37/DOCK-3.7-trunk&lt;br /&gt;
    source /nfs/soft/dock/versions/dock37/DOCK-3.7-trunk/env.csh&lt;br /&gt;
    ${DOCKBASE}/ligand/generate/build_database_ligand.sh -H $ph decoy_protomers.smi &amp;lt;B&amp;gt;--pre-tautomerized&amp;lt;/B&amp;gt; --no-db&lt;br /&gt;
&lt;br /&gt;
If not all decoys successfully build, more property matched decoys can be taken from the &amp;quot;{LIGAND_ID}_replacements.txt&amp;quot; files. Additionally, you can build decoys without the &amp;lt;B&amp;gt;--pre-tautomerized&amp;lt;/B&amp;gt; flag:&lt;br /&gt;
&lt;br /&gt;
    ${DOCKBASE}/ligand/generate/build_database_ligand.sh -H $ph &amp;lt;B&amp;gt;decoys.smi&amp;lt;/B&amp;gt; --no-db&lt;br /&gt;
&lt;br /&gt;
This will produce all protomers of each decoy, including the property-matched decoy protomer.&lt;br /&gt;
&lt;br /&gt;
== Visualizing Decoy Properties ==&lt;br /&gt;
=== Visualizing property distributions ===&lt;br /&gt;
&lt;br /&gt;
To visualize the distributions of molecular properties of matched decoys relative to the ligands, run the following command:&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0004_plot_properties.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
There will be 6 images in {NEW_DIR_NAME} for molecular weight, logP, number of rotatable bonds, number of hydrogen bond donors, number of hydrogen bond acceptors, and net charge of ligands and decoys.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing decoy Tanimotos to ligands ===&lt;br /&gt;
&lt;br /&gt;
To visualize how different the matched decoys are to the input ligands, run the following command:&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0005_plot_tanimoto_to_lig.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
There will be a box and whisker plot image in {NEW_DIR_NAME} showing the Tanimotos calculated between each ligand and all decoys.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Generating_decoys_(DUDE-Z)&amp;diff=12521</id>
		<title>Generating decoys (DUDE-Z)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Generating_decoys_(DUDE-Z)&amp;diff=12521"/>
		<updated>2020-05-15T19:14:42Z</updated>

		<summary type="html">&lt;p&gt;Rstein: Rstein moved page Generating decoys (DUDE-Z) to Blah&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Blah]]&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Generating_Decoys_(DUDE-Z)&amp;diff=12520</id>
		<title>Generating Decoys (DUDE-Z)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Generating_Decoys_(DUDE-Z)&amp;diff=12520"/>
		<updated>2020-05-15T19:14:42Z</updated>

		<summary type="html">&lt;p&gt;Rstein: Rstein moved page Generating decoys (DUDE-Z) to Blah&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Written by Reed Stein on April 3, 2018.&lt;br /&gt;
&lt;br /&gt;
updated 5/3/2019&lt;br /&gt;
&lt;br /&gt;
updated 8/15/2019&lt;br /&gt;
&lt;br /&gt;
updated 3/6/2020&lt;br /&gt;
&lt;br /&gt;
This pipeline will generate property-matched decoys for a set of ligand SMILES. To build ligands yourself, see &amp;quot;ligand prep&amp;quot; in:&lt;br /&gt;
    http://wiki.docking.org/index.php/DOCK_3.7_tutorial_%28Anat%29&lt;br /&gt;
&lt;br /&gt;
All scripts for this tutorial can be found in:&lt;br /&gt;
    /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/&lt;br /&gt;
&lt;br /&gt;
Before running any scripts, make sure to source the current version of Python&lt;br /&gt;
   source /nfs/soft/python/envs/complete/current/env.csh&lt;br /&gt;
&lt;br /&gt;
Additionally, JChem needs to be sourced in your ~/.cshrc file with the command:&lt;br /&gt;
   source /nfs/soft/jchem/current/env.csh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Querying ZINC for Protomers ==&lt;br /&gt;
&lt;br /&gt;
This procedure generates decoys for your input ligands by searching through 3D conformers that are already built in ZINC. This procedure is advised if you want decoys to be charge-matched to ligands.&lt;br /&gt;
&lt;br /&gt;
=== Step 1) Setting up directories for Protomers ===&lt;br /&gt;
&lt;br /&gt;
Before starting, you need a SMILES file with the format (SMILES first, ID second):&lt;br /&gt;
   S(Nc1c(O)cc(C(=O)O)cc1)(c2c(scc2)C(=O)O)(=O)=O 116&lt;br /&gt;
&lt;br /&gt;
You also need an input file named &amp;quot;decoy_generation.in&amp;quot; with the following lines:&lt;br /&gt;
    &lt;br /&gt;
    PROTONATE YES&lt;br /&gt;
    MWT 0 125&lt;br /&gt;
    LOGP 0 3.6&lt;br /&gt;
    RB 0 5&lt;br /&gt;
    HBA 0 4&lt;br /&gt;
    HBD 0 3&lt;br /&gt;
    CHARGE 0 2&lt;br /&gt;
    LIGAND TC RANGE 0.0 0.35&lt;br /&gt;
    MINIMUM DECOYS PER LIGAND 20&lt;br /&gt;
    DECOYS PER LIGAND 50&lt;br /&gt;
    MAXIMUM TC BETWEEN DECOYS 0.8&lt;br /&gt;
    TANIMOTO YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your input ligand SMILES file is already protonated as you want it, set &amp;quot;PROTONATE NO&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
This file specifies that for each ligand protomer, at least 20 decoys will be retrieved with the following properties:&lt;br /&gt;
     - within +/- 125 Daltons&lt;br /&gt;
     - within +/- 3.6 logP&lt;br /&gt;
     - within +/- 5 rotatable bonds&lt;br /&gt;
     - within +/- 4 hydrogen bond acceptors&lt;br /&gt;
     - within +/- 3 hydrogen bond donors&lt;br /&gt;
     - within +/- 2 charge&lt;br /&gt;
     - 0.35 or less Tanimoto&lt;br /&gt;
     - minimum 20 decoys per ligand protomer, if available&lt;br /&gt;
     - preferred 50 decoys per ligand protomer, if available&lt;br /&gt;
     - the maximum TC between decoy molecules should be 0.8&lt;br /&gt;
     - &amp;quot;TANIMOTO&amp;quot; refers to whether a Tanimoto calculation should be performed - see step 3 for when this is necessary&lt;br /&gt;
&lt;br /&gt;
These are &amp;lt;B&amp;gt;arbitrary&amp;lt;/B&amp;gt;, and you can input your desired minimum and maximum values that decoys can differ by, relative to the ligands. &lt;br /&gt;
&lt;br /&gt;
Once you have created this file, run the following command to create the decoy generation directory:&lt;br /&gt;
&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0000_protonate_setup_dirs.py {SMILES_FILE} {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
Provide a directory name that you want in place of {NEW_DIR_NAME}. This will create the directory with subdirectories named&lt;br /&gt;
&amp;quot;ligand_${number}&amp;quot; for each of the ligands in the SMILES file you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 2) Retrieving protomer decoys from ZINC15 ===&lt;br /&gt;
&lt;br /&gt;
If you have edited the &amp;quot;decoy_generation.in&amp;quot; file which is now located in {NEW_DIR_NAME} as you want, you can run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0001_qsub_generate_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
This should take 15 minutes to an hour, depending on how many ligands you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 3) Assigning accepted protomer decoys to each ligand protomer ===&lt;br /&gt;
&lt;br /&gt;
We can assign the property-matched decoys to the ligand protomers. Make sure you have the &amp;quot;decoy_generation_input.in&amp;quot; file from before in {NEW_DIR_NAME}. &lt;br /&gt;
&lt;br /&gt;
To filter the decoys, run the following command:&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0002_qsub_filter_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
This will run on the queue. A log file called &amp;quot;FILTER_DECOYS.log&amp;quot; will be generated in {NEW_DIR_NAME} with information and any errors.&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t get enough decoys, the &amp;quot;decoy_generation.in&amp;quot; file can be modified by changing &amp;quot;MAXIMUM TC BETWEEN DECOYS&amp;quot;, &amp;quot;MINIMUM DECOYS PER LIGAND&amp;quot;, etc.&lt;br /&gt;
To not run the time-consuming Tanimoto calculation between all decoys again, simply add/change this in the &amp;quot;decoy_generation.in&amp;quot; file:&lt;br /&gt;
&lt;br /&gt;
    TANIMOTO NO&lt;br /&gt;
&lt;br /&gt;
If you set Tanimoto to &amp;quot;NO&amp;quot;, make sure that your {NEW_DIR_NAME} still has the original files:&lt;br /&gt;
&lt;br /&gt;
    &amp;quot;test_ligdecoy_smiles.smi&amp;quot;&lt;br /&gt;
    &amp;quot;cluster_head.list&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Otherwise, this step will not run.&lt;br /&gt;
&lt;br /&gt;
If these original files still remain, this will skip the Tanimoto calculation step, and filter property matched decoys based on the new parameters in the &amp;quot;decoy_generation.in&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
If this has completed successfully, you should see files in your {NEW_DIR_NAME} with the format &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot;. These files contain the ligands and their properties, as well as property-matched decoys that have been assigned to them. These files have the format &amp;quot;SMILES&amp;quot;, &amp;quot;ZINC ID&amp;quot;, &amp;quot;logP&amp;quot;, &amp;quot;#Rotatable Bonds&amp;quot;, &amp;quot;# Hydrogen Bond Donors&amp;quot;, &amp;quot;# Hydrogen Bond Acceptors&amp;quot;, &amp;quot;Charge&amp;quot;, &amp;quot;Protomer SMILES&amp;quot;, and &amp;quot;Tanimoto Coefficient to Ligand&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There should also be files with the format &amp;quot;{LIGAND_ID}_replacements.txt&amp;quot;, which include extra property-matched decoys that were assigned to that ligand. &lt;br /&gt;
&lt;br /&gt;
If you still cannot get enough decoys for your ligands, consider reducing the number of ligands you have by clustering, for example, or using the SMILES decoy generation below, which is not limited to only molecules that are already built in ZINC15.&lt;br /&gt;
&lt;br /&gt;
=== Step 4) Copying decoy .db2.gz files into your directories ===&lt;br /&gt;
&lt;br /&gt;
To copy property-matched decoys into your own directory of choice, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0003_copy_decoys_to_new_dir.py {NEW_DIR_NAME} {COPY_TO_DIR}&lt;br /&gt;
&lt;br /&gt;
where {COPY_TO_DIR} is a new directory that will be created where your decoys will be copied into. In this directory, two subdirectories will be created:&lt;br /&gt;
     &amp;quot;ligands&amp;quot; - this includes the input ligands for which there are X number property matched decoys (these are all ligands with &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot; files in {NEW_DIR_NAME})&lt;br /&gt;
     &amp;quot;decoys&amp;quot; - this will include the decoy .db2.gz files for docking and &amp;quot;decoys.smi&amp;quot; which contains all the SMILES strings for property matched decoys&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: It is possible that all of your ligand protomers were not matched to property-matched decoys. The &amp;quot;ligands.smi&amp;quot; file in {COPY_TO_DIR} will not include these. Make &lt;br /&gt;
sure you do not dock these if you calculate enrichment values.&lt;br /&gt;
&lt;br /&gt;
== Querying ZINC for SMILES ==&lt;br /&gt;
&lt;br /&gt;
This procedure generates decoys for your input ligand SMILES by finding decoy SMILES in ZINC that are property-matched. This procedure will provide decoy SMILES that you can build yourself into 3D models for docking. If you would like to query ZINC for decoy SMILES so that you can build decoys yourself or if your ligands are &amp;gt;400 Da, start here. If not, go to &amp;quot;Querying ZINC for Protomers&amp;quot; to generate decoys that already have 3D models.&lt;br /&gt;
&lt;br /&gt;
=== Step 1) Setting up SMILES directory ===&lt;br /&gt;
&lt;br /&gt;
Before starting, you need a SMILES file with the format (SMILES first, ID second):&lt;br /&gt;
   S(Nc1c(O)cc(C(=O)O)cc1)(c2c(scc2)C(=O)O)(=O)=O 116&lt;br /&gt;
&lt;br /&gt;
You also need an input file named &amp;quot;decoy_generation.in&amp;quot; with the following lines:&lt;br /&gt;
&lt;br /&gt;
    SMILES YES&lt;br /&gt;
    PROTONATE YES&lt;br /&gt;
    MWT 0 125&lt;br /&gt;
    LOGP 0 3.6&lt;br /&gt;
    RB 0 5&lt;br /&gt;
    HBA 0 4&lt;br /&gt;
    HBD 0 3&lt;br /&gt;
    CHARGE 0 2&lt;br /&gt;
    LIGAND TC RANGE 0.0 0.35&lt;br /&gt;
    MINIMUM DECOYS PER LIGAND 20&lt;br /&gt;
    DECOYS PER LIGAND 50&lt;br /&gt;
    MAXIMUM TC BETWEEN DECOYS 0.8&lt;br /&gt;
    TANIMOTO YES&lt;br /&gt;
    GENERATE DECOYS 750&lt;br /&gt;
    &lt;br /&gt;
If your input ligand SMILES file is already protonated as you want it, set &amp;quot;PROTONATE NO&amp;quot;. &amp;quot;SMILES&amp;quot; tells the function you want to query ZINC for SMILES, not built protomers.&lt;br /&gt;
&lt;br /&gt;
This file specifies that for each ligand protomer, {MINIMUM DECOYS PER LIGAND} to {DECOYS PER LIGAND} decoys will be retrieved with the following properties:&lt;br /&gt;
     - within +/- 125 Daltons&lt;br /&gt;
     - within +/- 3.6 logP&lt;br /&gt;
     - within +/- 5 rotatable bonds&lt;br /&gt;
     - within +/- 4 hydrogen bond acceptors&lt;br /&gt;
     - within +/- 3 hydrogen bond donors&lt;br /&gt;
     - within +/- 2 charge&lt;br /&gt;
     - 0.35 or less Tanimoto&lt;br /&gt;
&lt;br /&gt;
&amp;quot;GENERATE DECOYS&amp;quot; specifies how many potential decoys you want to check for property matching with your ligands. A smaller number results in faster decoy generation, but a smaller pool of potential decoys to compare your ligand against. A larger number results in slower decoy generation, and greater likelihood of property-matched decoys for all your ligands. &lt;br /&gt;
&lt;br /&gt;
As with protomers, &amp;quot;MINIMUM DECOYS PER LIGAND&amp;quot; refers to the minimum number of decoys you want for each ligand protomer; &lt;br /&gt;
&lt;br /&gt;
&amp;quot;DECOYS PER LIGAND&amp;quot; refers to your preferred number of decoys for each ligand protomer;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;MAXIMUM TC BETWEEN DECOYS&amp;quot; refers to the maximum Tc allowed between decoys (the lower, the more dissimilar your decoys will be);&lt;br /&gt;
&lt;br /&gt;
and &amp;quot;TANIMOTO&amp;quot; refers to whether the ligand-decoy full Tc matrix should be calculated - this must be done at least once and should not be set to &amp;quot;NO&amp;quot; unless you are re-running step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These are &amp;lt;B&amp;gt;arbitrary&amp;lt;/B&amp;gt;, and you can input your desired minimum and maximum values that decoys can differ by, relative to the ligands.  &lt;br /&gt;
&lt;br /&gt;
Once you have created this file, run the following command to create the decoy generation directory:&lt;br /&gt;
&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0000_protonate_setup_dirs.py {SMILES_FILE} {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
Provide a directory name that you want in place of {NEW_DIR_NAME}. This will create the directory with subdirectories named&lt;br /&gt;
&amp;quot;ligand_${number}&amp;quot; for each of the ligands in the SMILES file you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 2) Retrieving SMILES decoys from ZINC15 ===&lt;br /&gt;
&lt;br /&gt;
If you have edited the &amp;quot;decoy_generation.in&amp;quot; file which is now located in {NEW_DIR_NAME} as you want, you can run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0001_qsub_generate_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
Jobs will run for 15 minutes to 1-2 hours depending on how many ligands you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 3) Assigning decoys to ligands ===&lt;br /&gt;
&lt;br /&gt;
To assign property matched decoys to your ligand protomers, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0002_qsub_filter_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
This will run on the queue. As with &amp;quot;Querying ZINC for Protomers&amp;quot;: &lt;br /&gt;
&lt;br /&gt;
If you don&#039;t get enough decoys, the &amp;quot;decoy_generation.in&amp;quot; file can be modified by changing &amp;quot;MAXIMUM TC BETWEEN DECOYS&amp;quot;, &amp;quot;MINIMUM DECOYS PER LIGAND&amp;quot;, etc.&lt;br /&gt;
To not run the time-consuming Tanimoto calculation between all ligands and decoys again, simply add/change this in the &amp;quot;decoy_generation.in&amp;quot; file:&lt;br /&gt;
&lt;br /&gt;
    TANIMOTO NO&lt;br /&gt;
&lt;br /&gt;
If you set Tanimoto to &amp;quot;NO&amp;quot;, make sure that your {NEW_DIR_NAME} still has the original files:&lt;br /&gt;
&lt;br /&gt;
    &amp;quot;test_ligdecoy_smiles.smi&amp;quot;&lt;br /&gt;
    &amp;quot;cluster_head.list&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Otherwise, this step will not run.&lt;br /&gt;
&lt;br /&gt;
If these original files still remain, this will skip the Tanimoto calculation step, and filter property matched decoys based on the new parameters in the &amp;quot;decoy_generation.in&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
If this has completed successfully, you should see files in your {NEW_DIR_NAME} with the format &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot;. These files have the format &amp;quot;SMILES&amp;quot;, &amp;quot;ZINC ID&amp;quot;, &amp;quot;logP&amp;quot;, &amp;quot;#Rotatable Bonds&amp;quot;, &amp;quot;# Hydrogen Bond Donors&amp;quot;, &amp;quot;# Hydrogen Bond Acceptors&amp;quot;, &amp;quot;Charge&amp;quot;, &amp;quot;Protomer ID&amp;quot;, and &amp;quot;Tanimoto Coefficient to Ligand&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
These files contain the ligands and their properties, as well as property-matched decoys that have been assigned to them. There should also be files with the format &amp;quot;{LIGAND_ID}_replacements.txt&amp;quot;, which include extra property-matched decoys that were assigned to that ligand.&lt;br /&gt;
&lt;br /&gt;
=== Step 4) Setting up ligand/decoy directories for building SMILES ===&lt;br /&gt;
&lt;br /&gt;
If you have queried ZINC for SMILES, you need to build the decoys yourself. To write the SMILES file, run the following command:&lt;br /&gt;
&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0003b_write_out_ligands_decoys.py {NEW_DIR_NAME} {COPY_TO_DIR}&lt;br /&gt;
&lt;br /&gt;
This will create {COPY_TO_DIR} with two subdirectories, &amp;quot;ligands&amp;quot; and &amp;quot;decoys&amp;quot; as well as SMILES files for:&lt;br /&gt;
&lt;br /&gt;
    ligands.smi - this includes the input ligands for which there are X number property matched decoys (these are all ligands with &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot; files in {NEW_DIR_NAME})&lt;br /&gt;
    decoys.smi  - this includes the canonicalized property-matched decoy SMILES&lt;br /&gt;
    decoy_protomers.smi - this includes the actual property-matched decoy protomer SMILES&lt;br /&gt;
&lt;br /&gt;
SMILES for decoys can now be built.&lt;br /&gt;
&lt;br /&gt;
For decoy building, use the following command:&lt;br /&gt;
&lt;br /&gt;
    setenv DOCKBASE /nfs/soft/dock/versions/dock37/DOCK-3.7-trunk&lt;br /&gt;
    source /nfs/soft/dock/versions/dock37/DOCK-3.7-trunk/env.csh&lt;br /&gt;
    ${DOCKBASE}/ligand/generate/build_database_ligand.sh -H $ph decoy_protomers.smi &amp;lt;B&amp;gt;--pre-tautomerized&amp;lt;/B&amp;gt; --no-db&lt;br /&gt;
&lt;br /&gt;
If not all decoys successfully build, more property matched decoys can be taken from the &amp;quot;{LIGAND_ID}_replacements.txt&amp;quot; files. Additionally, you can build decoys without the &amp;lt;B&amp;gt;--pre-tautomerized&amp;lt;/B&amp;gt; flag:&lt;br /&gt;
&lt;br /&gt;
    ${DOCKBASE}/ligand/generate/build_database_ligand.sh -H $ph &amp;lt;B&amp;gt;decoys.smi&amp;lt;/B&amp;gt; --no-db&lt;br /&gt;
&lt;br /&gt;
This will produce all protomers of each decoy, including the property-matched decoy protomer.&lt;br /&gt;
&lt;br /&gt;
== Visualizing Decoy Properties ==&lt;br /&gt;
=== Visualizing property distributions ===&lt;br /&gt;
&lt;br /&gt;
To visualize the distributions of molecular properties of matched decoys relative to the ligands, run the following command:&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0004_plot_properties.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
There will be 6 images in {NEW_DIR_NAME} for molecular weight, logP, number of rotatable bonds, number of hydrogen bond donors, number of hydrogen bond acceptors, and net charge of ligands and decoys.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing decoy Tanimotos to ligands ===&lt;br /&gt;
&lt;br /&gt;
To visualize how different the matched decoys are to the input ligands, run the following command:&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0005_plot_tanimoto_to_lig.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
There will be a box and whisker plot image in {NEW_DIR_NAME} showing the Tanimotos calculated between each ligand and all decoys.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Generating_Decoys_(DUDE-Z)&amp;diff=12519</id>
		<title>Generating Decoys (DUDE-Z)</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Generating_Decoys_(DUDE-Z)&amp;diff=12519"/>
		<updated>2020-05-15T18:59:19Z</updated>

		<summary type="html">&lt;p&gt;Rstein: Created page with &amp;quot;Written by Reed Stein on April 3, 2018.  updated 5/3/2019  updated 8/15/2019  updated 3/6/2020  This pipeline will generate property-matched decoys for a set of ligand SMILES....&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Written by Reed Stein on April 3, 2018.&lt;br /&gt;
&lt;br /&gt;
updated 5/3/2019&lt;br /&gt;
&lt;br /&gt;
updated 8/15/2019&lt;br /&gt;
&lt;br /&gt;
updated 3/6/2020&lt;br /&gt;
&lt;br /&gt;
This pipeline will generate property-matched decoys for a set of ligand SMILES. To build ligands yourself, see &amp;quot;ligand prep&amp;quot; in:&lt;br /&gt;
    http://wiki.docking.org/index.php/DOCK_3.7_tutorial_%28Anat%29&lt;br /&gt;
&lt;br /&gt;
All scripts for this tutorial can be found in:&lt;br /&gt;
    /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/&lt;br /&gt;
&lt;br /&gt;
Before running any scripts, make sure to source the current version of Python&lt;br /&gt;
   source /nfs/soft/python/envs/complete/current/env.csh&lt;br /&gt;
&lt;br /&gt;
Additionally, JChem needs to be sourced in your ~/.cshrc file with the command:&lt;br /&gt;
   source /nfs/soft/jchem/current/env.csh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Querying ZINC for Protomers ==&lt;br /&gt;
&lt;br /&gt;
This procedure generates decoys for your input ligands by searching through 3D conformers that are already built in ZINC. This procedure is advised if you want decoys to be charge-matched to ligands.&lt;br /&gt;
&lt;br /&gt;
=== Step 1) Setting up directories for Protomers ===&lt;br /&gt;
&lt;br /&gt;
Before starting, you need a SMILES file with the format (SMILES first, ID second):&lt;br /&gt;
   S(Nc1c(O)cc(C(=O)O)cc1)(c2c(scc2)C(=O)O)(=O)=O 116&lt;br /&gt;
&lt;br /&gt;
You also need an input file named &amp;quot;decoy_generation.in&amp;quot; with the following lines:&lt;br /&gt;
    &lt;br /&gt;
    PROTONATE YES&lt;br /&gt;
    MWT 0 125&lt;br /&gt;
    LOGP 0 3.6&lt;br /&gt;
    RB 0 5&lt;br /&gt;
    HBA 0 4&lt;br /&gt;
    HBD 0 3&lt;br /&gt;
    CHARGE 0 2&lt;br /&gt;
    LIGAND TC RANGE 0.0 0.35&lt;br /&gt;
    MINIMUM DECOYS PER LIGAND 20&lt;br /&gt;
    DECOYS PER LIGAND 50&lt;br /&gt;
    MAXIMUM TC BETWEEN DECOYS 0.8&lt;br /&gt;
    TANIMOTO YES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your input ligand SMILES file is already protonated as you want it, set &amp;quot;PROTONATE NO&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
This file specifies that for each ligand protomer, at least 20 decoys will be retrieved with the following properties:&lt;br /&gt;
     - within +/- 125 Daltons&lt;br /&gt;
     - within +/- 3.6 logP&lt;br /&gt;
     - within +/- 5 rotatable bonds&lt;br /&gt;
     - within +/- 4 hydrogen bond acceptors&lt;br /&gt;
     - within +/- 3 hydrogen bond donors&lt;br /&gt;
     - within +/- 2 charge&lt;br /&gt;
     - 0.35 or less Tanimoto&lt;br /&gt;
     - minimum 20 decoys per ligand protomer, if available&lt;br /&gt;
     - preferred 50 decoys per ligand protomer, if available&lt;br /&gt;
     - the maximum TC between decoy molecules should be 0.8&lt;br /&gt;
     - &amp;quot;TANIMOTO&amp;quot; refers to whether a Tanimoto calculation should be performed - see step 3 for when this is necessary&lt;br /&gt;
&lt;br /&gt;
These are &amp;lt;B&amp;gt;arbitrary&amp;lt;/B&amp;gt;, and you can input your desired minimum and maximum values that decoys can differ by, relative to the ligands. &lt;br /&gt;
&lt;br /&gt;
Once you have created this file, run the following command to create the decoy generation directory:&lt;br /&gt;
&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0000_protonate_setup_dirs.py {SMILES_FILE} {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
Provide a directory name that you want in place of {NEW_DIR_NAME}. This will create the directory with subdirectories named&lt;br /&gt;
&amp;quot;ligand_${number}&amp;quot; for each of the ligands in the SMILES file you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 2) Retrieving protomer decoys from ZINC15 ===&lt;br /&gt;
&lt;br /&gt;
If you have edited the &amp;quot;decoy_generation.in&amp;quot; file which is now located in {NEW_DIR_NAME} as you want, you can run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0001_qsub_generate_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
This should take 15 minutes to an hour, depending on how many ligands you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 3) Assigning accepted protomer decoys to each ligand protomer ===&lt;br /&gt;
&lt;br /&gt;
We can assign the property-matched decoys to the ligand protomers. Make sure you have the &amp;quot;decoy_generation_input.in&amp;quot; file from before in {NEW_DIR_NAME}. &lt;br /&gt;
&lt;br /&gt;
To filter the decoys, run the following command:&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0002_qsub_filter_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
This will run on the queue. A log file called &amp;quot;FILTER_DECOYS.log&amp;quot; will be generated in {NEW_DIR_NAME} with information and any errors.&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t get enough decoys, the &amp;quot;decoy_generation.in&amp;quot; file can be modified by changing &amp;quot;MAXIMUM TC BETWEEN DECOYS&amp;quot;, &amp;quot;MINIMUM DECOYS PER LIGAND&amp;quot;, etc.&lt;br /&gt;
To not run the time-consuming Tanimoto calculation between all decoys again, simply add/change this in the &amp;quot;decoy_generation.in&amp;quot; file:&lt;br /&gt;
&lt;br /&gt;
    TANIMOTO NO&lt;br /&gt;
&lt;br /&gt;
If you set Tanimoto to &amp;quot;NO&amp;quot;, make sure that your {NEW_DIR_NAME} still has the original files:&lt;br /&gt;
&lt;br /&gt;
    &amp;quot;test_ligdecoy_smiles.smi&amp;quot;&lt;br /&gt;
    &amp;quot;cluster_head.list&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Otherwise, this step will not run.&lt;br /&gt;
&lt;br /&gt;
If these original files still remain, this will skip the Tanimoto calculation step, and filter property matched decoys based on the new parameters in the &amp;quot;decoy_generation.in&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
If this has completed successfully, you should see files in your {NEW_DIR_NAME} with the format &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot;. These files contain the ligands and their properties, as well as property-matched decoys that have been assigned to them. These files have the format &amp;quot;SMILES&amp;quot;, &amp;quot;ZINC ID&amp;quot;, &amp;quot;logP&amp;quot;, &amp;quot;#Rotatable Bonds&amp;quot;, &amp;quot;# Hydrogen Bond Donors&amp;quot;, &amp;quot;# Hydrogen Bond Acceptors&amp;quot;, &amp;quot;Charge&amp;quot;, &amp;quot;Protomer SMILES&amp;quot;, and &amp;quot;Tanimoto Coefficient to Ligand&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There should also be files with the format &amp;quot;{LIGAND_ID}_replacements.txt&amp;quot;, which include extra property-matched decoys that were assigned to that ligand. &lt;br /&gt;
&lt;br /&gt;
If you still cannot get enough decoys for your ligands, consider reducing the number of ligands you have by clustering, for example, or using the SMILES decoy generation below, which is not limited to only molecules that are already built in ZINC15.&lt;br /&gt;
&lt;br /&gt;
=== Step 4) Copying decoy .db2.gz files into your directories ===&lt;br /&gt;
&lt;br /&gt;
To copy property-matched decoys into your own directory of choice, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0003_copy_decoys_to_new_dir.py {NEW_DIR_NAME} {COPY_TO_DIR}&lt;br /&gt;
&lt;br /&gt;
where {COPY_TO_DIR} is a new directory that will be created where your decoys will be copied into. In this directory, two subdirectories will be created:&lt;br /&gt;
     &amp;quot;ligands&amp;quot; - this includes the input ligands for which there are X number property matched decoys (these are all ligands with &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot; files in {NEW_DIR_NAME})&lt;br /&gt;
     &amp;quot;decoys&amp;quot; - this will include the decoy .db2.gz files for docking and &amp;quot;decoys.smi&amp;quot; which contains all the SMILES strings for property matched decoys&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: It is possible that all of your ligand protomers were not matched to property-matched decoys. The &amp;quot;ligands.smi&amp;quot; file in {COPY_TO_DIR} will not include these. Make &lt;br /&gt;
sure you do not dock these if you calculate enrichment values.&lt;br /&gt;
&lt;br /&gt;
== Querying ZINC for SMILES ==&lt;br /&gt;
&lt;br /&gt;
This procedure generates decoys for your input ligand SMILES by finding decoy SMILES in ZINC that are property-matched. This procedure will provide decoy SMILES that you can build yourself into 3D models for docking. If you would like to query ZINC for decoy SMILES so that you can build decoys yourself or if your ligands are &amp;gt;400 Da, start here. If not, go to &amp;quot;Querying ZINC for Protomers&amp;quot; to generate decoys that already have 3D models.&lt;br /&gt;
&lt;br /&gt;
=== Step 1) Setting up SMILES directory ===&lt;br /&gt;
&lt;br /&gt;
Before starting, you need a SMILES file with the format (SMILES first, ID second):&lt;br /&gt;
   S(Nc1c(O)cc(C(=O)O)cc1)(c2c(scc2)C(=O)O)(=O)=O 116&lt;br /&gt;
&lt;br /&gt;
You also need an input file named &amp;quot;decoy_generation.in&amp;quot; with the following lines:&lt;br /&gt;
&lt;br /&gt;
    SMILES YES&lt;br /&gt;
    PROTONATE YES&lt;br /&gt;
    MWT 0 125&lt;br /&gt;
    LOGP 0 3.6&lt;br /&gt;
    RB 0 5&lt;br /&gt;
    HBA 0 4&lt;br /&gt;
    HBD 0 3&lt;br /&gt;
    CHARGE 0 2&lt;br /&gt;
    LIGAND TC RANGE 0.0 0.35&lt;br /&gt;
    MINIMUM DECOYS PER LIGAND 20&lt;br /&gt;
    DECOYS PER LIGAND 50&lt;br /&gt;
    MAXIMUM TC BETWEEN DECOYS 0.8&lt;br /&gt;
    TANIMOTO YES&lt;br /&gt;
    GENERATE DECOYS 750&lt;br /&gt;
    &lt;br /&gt;
If your input ligand SMILES file is already protonated as you want it, set &amp;quot;PROTONATE NO&amp;quot;. &amp;quot;SMILES&amp;quot; tells the function you want to query ZINC for SMILES, not built protomers.&lt;br /&gt;
&lt;br /&gt;
This file specifies that for each ligand protomer, {MINIMUM DECOYS PER LIGAND} to {DECOYS PER LIGAND} decoys will be retrieved with the following properties:&lt;br /&gt;
     - within +/- 125 Daltons&lt;br /&gt;
     - within +/- 3.6 logP&lt;br /&gt;
     - within +/- 5 rotatable bonds&lt;br /&gt;
     - within +/- 4 hydrogen bond acceptors&lt;br /&gt;
     - within +/- 3 hydrogen bond donors&lt;br /&gt;
     - within +/- 2 charge&lt;br /&gt;
     - 0.35 or less Tanimoto&lt;br /&gt;
&lt;br /&gt;
&amp;quot;GENERATE DECOYS&amp;quot; specifies how many potential decoys you want to check for property matching with your ligands. A smaller number results in faster decoy generation, but a smaller pool of potential decoys to compare your ligand against. A larger number results in slower decoy generation, and greater likelihood of property-matched decoys for all your ligands. &lt;br /&gt;
&lt;br /&gt;
As with protomers, &amp;quot;MINIMUM DECOYS PER LIGAND&amp;quot; refers to the minimum number of decoys you want for each ligand protomer; &lt;br /&gt;
&lt;br /&gt;
&amp;quot;DECOYS PER LIGAND&amp;quot; refers to your preferred number of decoys for each ligand protomer;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;MAXIMUM TC BETWEEN DECOYS&amp;quot; refers to the maximum Tc allowed between decoys (the lower, the more dissimilar your decoys will be);&lt;br /&gt;
&lt;br /&gt;
and &amp;quot;TANIMOTO&amp;quot; refers to whether the ligand-decoy full Tc matrix should be calculated - this must be done at least once and should not be set to &amp;quot;NO&amp;quot; unless you are re-running step 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These are &amp;lt;B&amp;gt;arbitrary&amp;lt;/B&amp;gt;, and you can input your desired minimum and maximum values that decoys can differ by, relative to the ligands.  &lt;br /&gt;
&lt;br /&gt;
Once you have created this file, run the following command to create the decoy generation directory:&lt;br /&gt;
&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0000_protonate_setup_dirs.py {SMILES_FILE} {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
Provide a directory name that you want in place of {NEW_DIR_NAME}. This will create the directory with subdirectories named&lt;br /&gt;
&amp;quot;ligand_${number}&amp;quot; for each of the ligands in the SMILES file you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 2) Retrieving SMILES decoys from ZINC15 ===&lt;br /&gt;
&lt;br /&gt;
If you have edited the &amp;quot;decoy_generation.in&amp;quot; file which is now located in {NEW_DIR_NAME} as you want, you can run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0001_qsub_generate_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
Jobs will run for 15 minutes to 1-2 hours depending on how many ligands you input.&lt;br /&gt;
&lt;br /&gt;
=== Step 3) Assigning decoys to ligands ===&lt;br /&gt;
&lt;br /&gt;
To assign property matched decoys to your ligand protomers, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0002_qsub_filter_decoys.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
This will run on the queue. As with &amp;quot;Querying ZINC for Protomers&amp;quot;: &lt;br /&gt;
&lt;br /&gt;
If you don&#039;t get enough decoys, the &amp;quot;decoy_generation.in&amp;quot; file can be modified by changing &amp;quot;MAXIMUM TC BETWEEN DECOYS&amp;quot;, &amp;quot;MINIMUM DECOYS PER LIGAND&amp;quot;, etc.&lt;br /&gt;
To not run the time-consuming Tanimoto calculation between all ligands and decoys again, simply add/change this in the &amp;quot;decoy_generation.in&amp;quot; file:&lt;br /&gt;
&lt;br /&gt;
    TANIMOTO NO&lt;br /&gt;
&lt;br /&gt;
If you set Tanimoto to &amp;quot;NO&amp;quot;, make sure that your {NEW_DIR_NAME} still has the original files:&lt;br /&gt;
&lt;br /&gt;
    &amp;quot;test_ligdecoy_smiles.smi&amp;quot;&lt;br /&gt;
    &amp;quot;cluster_head.list&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Otherwise, this step will not run.&lt;br /&gt;
&lt;br /&gt;
If these original files still remain, this will skip the Tanimoto calculation step, and filter property matched decoys based on the new parameters in the &amp;quot;decoy_generation.in&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
If this has completed successfully, you should see files in your {NEW_DIR_NAME} with the format &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot;. These files have the format &amp;quot;SMILES&amp;quot;, &amp;quot;ZINC ID&amp;quot;, &amp;quot;logP&amp;quot;, &amp;quot;#Rotatable Bonds&amp;quot;, &amp;quot;# Hydrogen Bond Donors&amp;quot;, &amp;quot;# Hydrogen Bond Acceptors&amp;quot;, &amp;quot;Charge&amp;quot;, &amp;quot;Protomer ID&amp;quot;, and &amp;quot;Tanimoto Coefficient to Ligand&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
These files contain the ligands and their properties, as well as property-matched decoys that have been assigned to them. There should also be files with the format &amp;quot;{LIGAND_ID}_replacements.txt&amp;quot;, which include extra property-matched decoys that were assigned to that ligand.&lt;br /&gt;
&lt;br /&gt;
=== Step 4) Setting up ligand/decoy directories for building SMILES ===&lt;br /&gt;
&lt;br /&gt;
If you have queried ZINC for SMILES, you need to build the decoys yourself. To write the SMILES file, run the following command:&lt;br /&gt;
&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0003b_write_out_ligands_decoys.py {NEW_DIR_NAME} {COPY_TO_DIR}&lt;br /&gt;
&lt;br /&gt;
This will create {COPY_TO_DIR} with two subdirectories, &amp;quot;ligands&amp;quot; and &amp;quot;decoys&amp;quot; as well as SMILES files for:&lt;br /&gt;
&lt;br /&gt;
    ligands.smi - this includes the input ligands for which there are X number property matched decoys (these are all ligands with &amp;quot;{LIGAND_ID}_final_property_matched_decoys.txt&amp;quot; files in {NEW_DIR_NAME})&lt;br /&gt;
    decoys.smi  - this includes the canonicalized property-matched decoy SMILES&lt;br /&gt;
    decoy_protomers.smi - this includes the actual property-matched decoy protomer SMILES&lt;br /&gt;
&lt;br /&gt;
SMILES for decoys can now be built.&lt;br /&gt;
&lt;br /&gt;
For decoy building, use the following command:&lt;br /&gt;
&lt;br /&gt;
    setenv DOCKBASE /nfs/soft/dock/versions/dock37/DOCK-3.7-trunk&lt;br /&gt;
    source /nfs/soft/dock/versions/dock37/DOCK-3.7-trunk/env.csh&lt;br /&gt;
    ${DOCKBASE}/ligand/generate/build_database_ligand.sh -H $ph decoy_protomers.smi &amp;lt;B&amp;gt;--pre-tautomerized&amp;lt;/B&amp;gt; --no-db&lt;br /&gt;
&lt;br /&gt;
If not all decoys successfully build, more property matched decoys can be taken from the &amp;quot;{LIGAND_ID}_replacements.txt&amp;quot; files. Additionally, you can build decoys without the &amp;lt;B&amp;gt;--pre-tautomerized&amp;lt;/B&amp;gt; flag:&lt;br /&gt;
&lt;br /&gt;
    ${DOCKBASE}/ligand/generate/build_database_ligand.sh -H $ph &amp;lt;B&amp;gt;decoys.smi&amp;lt;/B&amp;gt; --no-db&lt;br /&gt;
&lt;br /&gt;
This will produce all protomers of each decoy, including the property-matched decoy protomer.&lt;br /&gt;
&lt;br /&gt;
== Visualizing Decoy Properties ==&lt;br /&gt;
=== Visualizing property distributions ===&lt;br /&gt;
&lt;br /&gt;
To visualize the distributions of molecular properties of matched decoys relative to the ligands, run the following command:&lt;br /&gt;
    python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0004_plot_properties.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
There will be 6 images in {NEW_DIR_NAME} for molecular weight, logP, number of rotatable bonds, number of hydrogen bond donors, number of hydrogen bond acceptors, and net charge of ligands and decoys.&lt;br /&gt;
&lt;br /&gt;
=== Visualizing decoy Tanimotos to ligands ===&lt;br /&gt;
&lt;br /&gt;
To visualize how different the matched decoys are to the input ligands, run the following command:&lt;br /&gt;
   python /mnt/nfs/home/rstein/zzz.scripts/new_DUDE_SCRIPTS/0005_plot_tanimoto_to_lig.py {NEW_DIR_NAME}&lt;br /&gt;
&lt;br /&gt;
There will be a box and whisker plot image in {NEW_DIR_NAME} showing the Tanimotos calculated between each ligand and all decoys.&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=DOCK_3.7&amp;diff=12518</id>
		<title>DOCK 3.7</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=DOCK_3.7&amp;diff=12518"/>
		<updated>2020-05-15T18:58:45Z</updated>

		<summary type="html">&lt;p&gt;Rstein: /* Prepare Screening Library */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= About = &lt;br /&gt;
&lt;br /&gt;
DOCK 3.7 the current version in the [[DOCK 3]] series of docking programs developed and used by the [[Shoichet Lab]]. Please read and cite the DOCK 3.7 paper&lt;br /&gt;
[http://www.plosone.org/article/info:doi/10.1371/journal.pone.0075992 Coleman, Carchia, Sterling, Irwin &amp;amp; Shoichet, PLOS ONE 2013.]&lt;br /&gt;
&lt;br /&gt;
DOCK 3.7 is written in Fortran and some C. It is an update of [[DOCK 3.6]] with many improved features. DOCK 3.7 comes with all the tools necessary to prepare a &lt;br /&gt;
protein for docking and some tools necessary to build ligands, though some tools must be obtained externally. It uses new Flexibase/DB2 files found in [[ZINC15]]. It includes tools to prepare receptors, and several auxiliary scripts.&lt;br /&gt;
&lt;br /&gt;
DOCK 3.7 is available at  [http://dock.compbio.ucsf.edu/DOCK3.7/ http://dock.compbio.ucsf.edu/DOCK3.7/].&lt;br /&gt;
&lt;br /&gt;
{{TOCright}}&lt;br /&gt;
&lt;br /&gt;
= Start here =&lt;br /&gt;
* [[So you want to set up a lab]] - only if you don&#039;t already have hardware ready.&lt;br /&gt;
* [[Install DOCK 3.7]]&lt;br /&gt;
* [[DOCK 3.7 2014/09/25 FXa Tutorial]]&lt;br /&gt;
* [[DOCK 3.7 2015/04/15 abl1 Tutorial]] superseded&lt;br /&gt;
* [[DOCK 3.7 2018/06/05 abl1 Tutorial]]&lt;br /&gt;
* [[DOCK 3.7 2016/09/16 Tutorial for Enrichment Calculations (Trent &amp;amp;  Jiankun)]]&lt;br /&gt;
* [[DOCK 3.7 tutorial (Anat)]]&lt;br /&gt;
* [[DOCK 3.7 with GIST tutorials]]&lt;br /&gt;
* [[DOCK 3.7 tutorial based on Webinar 2017/06/28]]&lt;br /&gt;
* [[Getting started with DOCK 3.7]]&lt;br /&gt;
* [[Blastermaster]] - Prepare input for and then run [[DOCK 3.7]].&lt;br /&gt;
* [[Ligand preparation 3.7]] - Create dockable databases for [[DOCK 3.7]].&lt;br /&gt;
* [[Ligand preparation]] - different version. &lt;br /&gt;
* [[Ligand prep Irwin Nov 2016]] - John&#039;s current version&lt;br /&gt;
* [[Mol2db2 Format 2]] - details on the database formate.&lt;br /&gt;
* [[Running docking 3.7]] - how to actually run docking.&lt;br /&gt;
* [[DOCK 3.7 Development]] - for software developers&lt;br /&gt;
* [[prepare a receptor with a cofactor for docking]]&lt;br /&gt;
=== For DOCKovalent, start here ===&lt;br /&gt;
* [[DOCKovalent_3.7]]&lt;br /&gt;
* [[DOCKovalent lysine inhibitor design tutorial]]&lt;br /&gt;
* [[DOCKovalent cysteine inhibitor design tutorial]]&lt;br /&gt;
&lt;br /&gt;
= Prepare Receptor = &lt;br /&gt;
* [[Protein Target Preparation]]&lt;br /&gt;
* [[Protein Target Preparation Updated]]&lt;br /&gt;
* [[Using_thin_spheres_in_DOCK3.7]]&lt;br /&gt;
*[[Matching Sphere Scan]]&lt;br /&gt;
* [[Adding Static Waters to the Protein Structure]]&lt;br /&gt;
* [[Flexible Docking]]&lt;br /&gt;
* [[Visualize docking grids]]&lt;br /&gt;
* [[Minimize protein-ligand complex with AMBER]]&lt;br /&gt;
* [[Minimize protein-covalent ligand complex with AMBER]]&lt;br /&gt;
&lt;br /&gt;
= Prepare Screening Library =&lt;br /&gt;
* [[mol2db2]] is the program that creates [[mol2db2 format]] database files which are read by [[DOCK 3.7]]&lt;br /&gt;
* [[ligand preparation 3.7]]&lt;br /&gt;
* [[generating decoys (DUDE-Z)]]&lt;br /&gt;
* [[generating extrema set]]&lt;br /&gt;
&lt;br /&gt;
= Running Docking =&lt;br /&gt;
* [[Running docking 3.7]] - JJI currently working on this.&lt;br /&gt;
* [[Running DOCK 3.7]] - this seems to be slightly dated.&lt;br /&gt;
* [[INDOCK 3.7]] - file format used by [[DOCK 3.7]]&lt;br /&gt;
* [[DOCK3.7_INDOCK_Minimization_Parameter]] - How to run DOCK 3.7.1rc1 (and latter versions) with the minimization.&lt;br /&gt;
* Interpreting the [[OUTDOCK 3.7]] file.&lt;br /&gt;
&lt;br /&gt;
= Analysis =&lt;br /&gt;
* [[Analyzing DOCK Results]]&lt;br /&gt;
* [http://autodude.docking.org/ Auto-DUD-E Test Set] (external site) &lt;br /&gt;
* [[Other Useful Stuff]]&lt;br /&gt;
* [[Bootstrap AUC]]&lt;br /&gt;
* [[another getposes.py]]&lt;br /&gt;
* [[Converting SMILES to Kekule Format]]&lt;br /&gt;
* Viewing results using [[ViewDock]]&lt;br /&gt;
&lt;br /&gt;
= Post Docking Clustering=&lt;br /&gt;
* [[How to process results from a large-scale docking]] &lt;br /&gt;
* [[Large-scale SMILES Requesting and Fingerprints Converting]]&lt;br /&gt;
* [[ECFP4 Best First Clustering]]&lt;br /&gt;
* [[Bemis-Murcko Scaffold Analysis]]&lt;br /&gt;
&lt;br /&gt;
= Post Docking Filters=&lt;br /&gt;
* [[Large-scale TC Calculations]]&lt;br /&gt;
* [[Whole Library TC to Knowns Calculations]]&lt;br /&gt;
* [[Filtering ligands for novelty]]&lt;br /&gt;
* [[Strain Filtering]]&lt;br /&gt;
* [[Interaction Filtering]]&lt;br /&gt;
* [[Torsion against CSD visualize with Maestro]]&lt;br /&gt;
&lt;br /&gt;
= Redocking with Enhanced Sampling =&lt;br /&gt;
*[[Sample Additional Ring Puckers ]]&lt;br /&gt;
= Rescoring =&lt;br /&gt;
*[[Rescoring_with_DOCK_3.7]]&lt;br /&gt;
&lt;br /&gt;
= Available Libraries = &lt;br /&gt;
* [[ZINC Subset DB2 file locations]]&lt;br /&gt;
* how to get db2 files from zinc15.docking.org&lt;br /&gt;
&lt;br /&gt;
= Analog by Catalog= &lt;br /&gt;
* [[Substructure searching]]&lt;br /&gt;
* [[TC analog searching in ZINC]]&lt;br /&gt;
&lt;br /&gt;
= Previous verisons and compatibility = &lt;br /&gt;
DOCK 3.7 is part of the [[DOCK 3]] series. It differs substantially from its immediate predecessor [[DOCK 3.6]],&lt;br /&gt;
which uses a different format of database files that cannot be read by [[DOCK 3.7]], and vice versa. &lt;br /&gt;
&lt;br /&gt;
= How to Cite = &lt;br /&gt;
To cite the DOCK 3.7 paper, please use&lt;br /&gt;
[http://www.plosone.org/article/info:doi/10.1371/journal.pone.0075992 Coleman, Carchia, Sterling, Irwin &amp;amp; Shoichet, PLOS ONE 2013.]&lt;br /&gt;
&lt;br /&gt;
= How to Download = &lt;br /&gt;
DOCK 3.7 is available at  [http://dock.compbio.ucsf.edu/DOCK3.7/ http://dock.compbio.ucsf.edu/DOCK3.7/].&lt;br /&gt;
&lt;br /&gt;
= Implementation = &lt;br /&gt;
DOCK 3.7 is written in Fortran and some C. Scripts are mostly in [[python]] and [[perl]].&lt;br /&gt;
&lt;br /&gt;
{{Template:CC-BY-SA-30}}&lt;br /&gt;
{{Template:Coleman}}&lt;br /&gt;
&lt;br /&gt;
[[Category:DOCK 3.7]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Freecom]]&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12517</id>
		<title>Matching Sphere Scan</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12517"/>
		<updated>2020-05-15T18:07:58Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script generates some number of directories with perturbed matching spheres. This will randomly perturb non-crystallographic spheres generated by SPHGEN during blastermaster.&lt;br /&gt;
&lt;br /&gt;
The original script was written by Trent Balius. Wrapper script is written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py {YOUR_DOCK_DIR} {#DIRECTORIES} {MAX_DIST_TO_PERTURB}&lt;br /&gt;
&lt;br /&gt;
So if you wanted to generate 100 new docking directories with 100 different perturbed matching sphere setups (randomly differing from the original matching spheres by at maximum 0.5 Å), use the command:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py DOCK_DIR/ 100 0.5&lt;br /&gt;
&lt;br /&gt;
Trent&#039;s original script, which makes use of his &amp;quot;sph_lib.py&amp;quot; is located here, and can be run on a single set of matching spheres:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph_non_ligand.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;br /&gt;
&lt;br /&gt;
Note that the non-crystallographic spheres in the original matching_spheres.sph file have a &amp;quot;0.000&amp;quot; in the fifth column. This is changed to &amp;quot;0.500&amp;quot; after perturbing the matching spheres. If you would like to perturb the matching spheres again after you have already run it, the fifth column with &amp;quot;0.500&amp;quot; needs to be changed back to &amp;quot;0.000&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you would like to perturb all matching spheres, and not just the non-crystallographic spheres generated from SPHGEN, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12516</id>
		<title>Matching Sphere Scan</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12516"/>
		<updated>2020-05-15T18:05:09Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script generates some number of directories with perturbed matching spheres. This will randomly perturb non-crystallographic spheres generated by SPHGEN during blastermaster.&lt;br /&gt;
&lt;br /&gt;
The original script was written by Trent Balius. Wrapper script is written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py {YOUR_DOCK_DIR} {# directories to generate} {maximum distance to perturb spheres}&lt;br /&gt;
&lt;br /&gt;
So if you wanted to generate 100 new docking directories with 100 different perturbed matching sphere setups (randomly differing from the original matching spheres by at maximum 0.5 Å), use the command:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py DOCK_DIR/ 100 0.5&lt;br /&gt;
&lt;br /&gt;
Trent&#039;s original script, which makes use of his &amp;quot;sph_lib.py&amp;quot; is located here, and can be run on a single set of matching spheres:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph_non_ligand.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;br /&gt;
&lt;br /&gt;
Note that the non-crystallographic spheres in the original matching_spheres.sph file have a &amp;quot;0.000&amp;quot; in the fifth column. This is changed to &amp;quot;0.500&amp;quot; after perturbing the matching spheres. If you would like to perturb the matching spheres again after you have already run it, the fifth column with &amp;quot;0.500&amp;quot; needs to be changed back to &amp;quot;0.000&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you would like to perturb all matching spheres, and not just the non-crystallographic spheres generated from SPHGEN, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12515</id>
		<title>Matching Sphere Scan</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12515"/>
		<updated>2020-05-15T18:04:17Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script generates some number of directories with perturbed matching spheres. This will randomly perturb non-crystallographic spheres generated by SPHGEN during blastermaster.&lt;br /&gt;
&lt;br /&gt;
The original script was written by Trent Balius. Wrapper script is written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py {YOUR_DOCK_DIR} {# directories to generate} {maximum distance to perturb spheres}&lt;br /&gt;
&lt;br /&gt;
So if you wanted to generate 100 new docking directories with 100 different perturbed matching sphere setups (randomly differing from the original matching spheres by at maximum 0.5 Å), use the command:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py DOCK_DIR/ 100 0.5&lt;br /&gt;
&lt;br /&gt;
Trent&#039;s original script, which makes use of his &amp;quot;sph_lib.py&amp;quot; is located here, and can be run on a single set of matching spheres:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph_non_ligand.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;br /&gt;
&lt;br /&gt;
Note that the non-crystallographic spheres in the original matching_spheres.sph file have a &amp;quot;0.000&amp;quot; in the fifth column. This is changed to &amp;quot;0.500&amp;quot; after perturbing the matching spheres. If you would like to perturb the matching spheres again after you have already run it, the fifth column with &amp;quot;0.500&amp;quot; needs to be changed back to &amp;quot;0.000&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you would like to perturb all matching spheres, and not just the random spheres generated from SPHGEN, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12514</id>
		<title>Matching Sphere Scan</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12514"/>
		<updated>2020-05-15T18:03:38Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script generates some number of directories with perturbed matching spheres. This will randomly perturb non-crystallographic spheres generated by SPHGEN during blastermaster.&lt;br /&gt;
&lt;br /&gt;
The original script was written by Trent Balius. Wrapper script is written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py {YOUR_DOCK_DIR} {# directories to generate} {maximum distance to perturb spheres}&lt;br /&gt;
&lt;br /&gt;
So if you wanted to generate 100 new docking directories with 100 different perturbed matching sphere setups (randomly differing from the original matching spheres by at maximum 0.5 Å), use the command:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py DOCK_DIR/ 100 0.5&lt;br /&gt;
&lt;br /&gt;
Trent&#039;s original script, which makes use of his &amp;quot;sph_lib.py&amp;quot; is located here, and can be run on a single set of matching spheres:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph_non_ligand.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;br /&gt;
&lt;br /&gt;
Note that the &amp;quot;random spheres&amp;quot; in the original matching_spheres.sph file have a &amp;quot;0.000&amp;quot; in the fifth column. This is changed to &amp;quot;0.500&amp;quot; after perturbing the matching spheres. If you would like to perturb the matching spheres again after you have already run it, the fifth column with &amp;quot;0.500&amp;quot; needs to be changed back to &amp;quot;0.000&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you would like to perturb all matching spheres, and not just the random spheres generated from SPHGEN, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12513</id>
		<title>Matching Sphere Scan</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12513"/>
		<updated>2020-05-15T18:03:10Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script generates some number of directories with perturbed matching spheres. This will randomly perturb non-crystallographic spheres generated by SPHGEN during blastermaster.&lt;br /&gt;
&lt;br /&gt;
The original script was written by Trent Balius. Wrapper script is written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py {YOUR_DOCK_DIR} {# directories to generate} {maximum distance to perturb spheres}&lt;br /&gt;
&lt;br /&gt;
So if you wanted to generate 100 new docking directories with 100 different perturbed matching sphere setups (randomly differing from the original matching spheres by at maximum 0.5 Å), use the command:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py DOCK_DIR/ 100 0.5&lt;br /&gt;
&lt;br /&gt;
Trent&#039;s original script, which makes use of his &amp;quot;sph_lib.py&amp;quot; is located here, and can be run on a single set of matching spheres:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph_non_ligand.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the &amp;quot;random spheres&amp;quot; in the original matching_spheres.sph file have a &amp;quot;0.000&amp;quot; in the fifth column. This is changed to &amp;quot;0.500&amp;quot; after perturbing the matching spheres. If you would like to perturb the matching spheres again after you have already run it, the fifth column with &amp;quot;0.500&amp;quot; needs to be changed back to &amp;quot;0.000&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you would like to perturb all matching spheres, and not just the random spheres generated from SPHGEN, run the following command:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12512</id>
		<title>Matching Sphere Scan</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12512"/>
		<updated>2020-05-15T18:00:01Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script generates some number of directories with perturbed matching spheres. This will randomly perturb non-crystallographic spheres generated by SPHGEN during blastermaster.&lt;br /&gt;
&lt;br /&gt;
The original script was written by Trent Balius. Wrapper script is written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py {YOUR_DOCK_DIR} {# directories to generate} {maximum distance to perturb spheres}&lt;br /&gt;
&lt;br /&gt;
So if you wanted to generate 100 new docking directories with 100 different perturbed matching sphere setups (randomly differing from the original matching spheres by at maximum 0.5 Å), use the command:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py DOCK_DIR/ 100 0.5&lt;br /&gt;
&lt;br /&gt;
Trent&#039;s original script, which makes use of his &amp;quot;sph_lib.py&amp;quot; is located here, and can be run on a single set of matching spheres:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph_non_ligand.py {INPUT_SPHERE_FILE} {maximum distance to perturb spheres} {OUTPUT_SPHERE_NAME}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the &amp;quot;random spheres&amp;quot; in the original matching_spheres.sph file have a &amp;quot;0.000&amp;quot; in the fifth column. This is changed to &amp;quot;0.500&amp;quot; after perturbing the matching spheres. If you would like to perturb the matching spheres again after you have already run it, the fifth column with &amp;quot;0.500&amp;quot; needs to be changed back to &amp;quot;0.000&amp;quot;&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12511</id>
		<title>Matching Sphere Scan</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12511"/>
		<updated>2020-05-15T17:58:18Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script generates some number of directories with perturbed matching spheres. This will randomly perturb non-crystallographic spheres generated by SPHGEN during blastermaster.&lt;br /&gt;
&lt;br /&gt;
The original script was written by Trent Balius. Wrapper script is written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py {YOUR_DOCK_DIR} {# directories to generate} {maximum distance to perturb spheres}&lt;br /&gt;
&lt;br /&gt;
So if you wanted to generate 100 new docking directories with 100 different perturbed matching sphere setups (randomly differing from the original matching spheres by at maximum 0.5 Å), use the command:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py DOCK_DIR/ 100 0.5&lt;br /&gt;
&lt;br /&gt;
Trent&#039;s original script is located here, and can be run on a single set of matching spheres:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph_non_ligand.py {INPUT_SPHERE_FILE} {maximum distance to perturb spheres} {OUTPUT_SPHERE_NAME}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the &amp;quot;random spheres&amp;quot; in the original matching_spheres.sph file have a &amp;quot;0.000&amp;quot; in the fifth column. This is changed to 0.5 after perturbing the matching spheres. If you would like to perturb the matching spheres again after you have already run it, the fifth column with &amp;quot;0.500&amp;quot; needs to be changed back to &amp;quot;0.000&amp;quot;&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12510</id>
		<title>Matching Sphere Scan</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12510"/>
		<updated>2020-05-15T17:57:52Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script generates some number of directories with perturbed matching spheres. This will randomly perturb non-crystallographic spheres generated by SPHGEN during blastermaster.&lt;br /&gt;
&lt;br /&gt;
The original script was written by Trent Balius. Wrapper script is written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py {YOUR_DOCK_DIR} {# directories to generate} {maximum distance to perturb spheres}&lt;br /&gt;
&lt;br /&gt;
So if you wanted to generate 100 new docking directories with 100 different perturbed matching sphere setups (randomly differing from the original matching spheres by at maximum 0.5 Å), use the command:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py DOCK_DIR/ 100 0.5&lt;br /&gt;
&lt;br /&gt;
Trent&#039;s original script is located here:&lt;br /&gt;
&lt;br /&gt;
    python ~tbalius/zzz.scripts/make_random_sph_non_ligand.py {INPUT_SPHERE_FILE} {maximum distance to perturb spheres} {OUTPUT_SPHERE_NAME}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the &amp;quot;random spheres&amp;quot; in the original matching_spheres.sph file have a &amp;quot;0.000&amp;quot; in the fifth column. This is changed to 0.5 after perturbing the matching spheres. If you would like to perturb the matching spheres again after you have already run it, the fifth column with &amp;quot;0.500&amp;quot; needs to be changed back to &amp;quot;0.000&amp;quot;&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12509</id>
		<title>Matching Sphere Scan</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12509"/>
		<updated>2020-05-15T17:57:13Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script generates some number of directories with perturbed matching spheres. This will randomly perturb non-crystallographic spheres generated by SPHGEN during blastermaster.&lt;br /&gt;
&lt;br /&gt;
The original script was written by Trent Balius. Wrapper script is written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py {YOUR_DOCK_DIR} {# directories to generate} {maximum distance to perturb spheres}&lt;br /&gt;
&lt;br /&gt;
So if you wanted to generate 100 new docking directories with 100 different perturbed matching sphere setups (randomly differing from the original matching spheres by at maximum 0.5 Å), use the command:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py DOCK_DIR/ 100 0.5&lt;br /&gt;
&lt;br /&gt;
Trent&#039;s original script is located here:&lt;br /&gt;
&lt;br /&gt;
     python ~tbalius/zzz.scripts/make_random_sph_non_ligand.py {INPUT_SPHERE_FILE} {maximum distance to perturb spheres} {OUTPUT_SPHERE_NAME}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the &amp;quot;random spheres&amp;quot; in the original matching_spheres.sph file have a &amp;quot;0.000&amp;quot; in the fifth column. This is changed to 0.5 after perturbing the matching spheres. If you would like to perturb the matching spheres again after you have already run it, the fifth column with &amp;quot;0.500&amp;quot; needs to be changed back to &amp;quot;0.000&amp;quot;&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12508</id>
		<title>Matching Sphere Scan</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Matching_Sphere_Scan&amp;diff=12508"/>
		<updated>2020-05-15T17:48:22Z</updated>

		<summary type="html">&lt;p&gt;Rstein: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This script generates some number of directories with perturbed matching spheres. This will randomly perturb non-crystallographic spheres generated by SPHGEN during blastermaster.&lt;br /&gt;
&lt;br /&gt;
The original script was written by Trent Balius. Wrapper script is written by Reed Stein.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py {YOUR_DOCK_DIR} {# directories to generate} {maximum distance to perturb spheres}&lt;br /&gt;
&lt;br /&gt;
So if you wanted to generate 100 new docking directories with 100 different perturbed matching sphere setups (randomly differing from the original matching spheres by at maximum 0.5 Å), use the command:&lt;br /&gt;
&lt;br /&gt;
    python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py DOCK_DIR/ 100 0.5&lt;/div&gt;</summary>
		<author><name>Rstein</name></author>
	</entry>
</feed>