Skip to content

Commit 2f265b6

Browse files
authored
Add files via upload
1 parent 80fc5d0 commit 2f265b6

1 file changed

Lines changed: 9 additions & 23 deletions

File tree

simple_docking/MTH_Docking_Part2_Dock-Vina_2.0.ipynb

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"#This defines our receptor structures (all of these files happen to have the same prefix, the starting structure (xal structure) is xxx_00.pdb)\n",
9797
"receptor_filenames = glob('../receptor/*.pdb')\n",
9898
"#This defines where the ligand files are found\n",
99-
"ligand_filenames = glob('../compounds/Minifrag/*.pdbqt')\n",
99+
"ligand_filenames = glob('/home/geoff/compounds/FtsZ/pharmit/pocket3/*.pdbqt')\n",
100100
"\n",
101101
"#The sort command is *really* important for organising the output in the right order (the protein files are mixed up otherwise)\n",
102102
"receptor_filenames.sort()\n",
@@ -112,8 +112,8 @@
112112
"cell_type": "markdown",
113113
"metadata": {},
114114
"source": [
115-
"### Number of processors\n",
116-
"This tells us about how many processors we have available..."
115+
"### Number of processors and number of docking steps per processor\n",
116+
"This tells us about how many processors we have available (or lets us set that number) and helps us to get an estimate of how long the this step of the Molecular Treasure Hunt will take to run. Larger molecules are slower to dock (e.g the FDA library compared to fragment libraries) because they have more rotatable bonds. But the number of docking steps per cpu will give a rough guide to how long the docking will take."
117117
]
118118
},
119119
{
@@ -128,7 +128,12 @@
128128
"#by commenting out the top line (by adding a # at the start of the line)\n",
129129
"#and uncommenting the line below (by removing the # from the line) using a number you chose.\n",
130130
"#only one of the two lines (EITHER the top or the bottom one) should be uncommented.\n",
131-
"#num_cpu = 4"
131+
"#num_cpu = 4\n",
132+
"\n",
133+
"docking_steps = len(ligand_filenames) * len(receptor_filenames)\n",
134+
"print(\"Number of individual docking_steps is\", docking_steps)\n",
135+
"docking_steps_per_cpu = round((docking_steps / num_cpu), 2)\n",
136+
"print(\"Number of docking steps per cpu is \", docking_steps_per_cpu)"
132137
]
133138
},
134139
{
@@ -184,25 +189,6 @@
184189
"print(colored('Finished making pdbqt files', 'blue', attrs=['bold']))"
185190
]
186191
},
187-
{
188-
"cell_type": "markdown",
189-
"metadata": {},
190-
"source": [
191-
"And here we get an estimate of how long the this step of the Molecular Treasure Hunt will take to run. Larger molecules are slower to dock (e.g the FDA library compared to fragment libraries) because they have more rotatable bonds. But the number of docking steps per cpu will give a rough guide to how long the docking will take."
192-
]
193-
},
194-
{
195-
"cell_type": "code",
196-
"execution_count": null,
197-
"metadata": {},
198-
"outputs": [],
199-
"source": [
200-
"docking_steps = len(ligand_filenames) * len(receptor_filenames)\n",
201-
"print(\"Number of individual docking_steps is\", docking_steps)\n",
202-
"docking_steps_per_cpu = round((docking_steps / num_cpu), 2)\n",
203-
"print(\"Number of docking steps per cpu is \", docking_steps_per_cpu)"
204-
]
205-
},
206192
{
207193
"cell_type": "markdown",
208194
"metadata": {},

0 commit comments

Comments
 (0)