-
Notifications
You must be signed in to change notification settings - Fork 2
/
job_script.py
49 lines (40 loc) · 1.21 KB
/
job_script.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# general troubleshooting
from AlphaDock.DockJob import DJ
from AlphaDock import get_full_path, clear_cache_folder
import random
import os
# reproducible
seed = 10550962
protein_paths = ['MSM7_MCE.pdb']
ligand_paths = ['cholesterol.sdf']
j = 1
for protein in protein_paths:
protein = 'structures/' + protein
for ligand in ligand_paths:
ligand = 'structures/' + ligand
clear_cache_folder()
Job = DJ(protein, ligand, str(j), vina='vina')
Job.to_pdbqt()
Job.strip_protein()
Job.box(padding=1.0)
Job.dock(num_modes=9, exhaustiveness=8, seed=seed, energy_range=3)
Job.surroundings()
Job.plot()
Job.extract_cache('./outputs')
j += 1
#clear_cache_folder()
#
# JobTest = DJ('structures/MTB4_MCE.pdb', 'structures/cholesterol.sdf', 'Final',
# vina='AlphaDock/vina')
#
# JobTest.to_pdbqt()
# JobTest.strip_protein()
# JobTest.box(padding=1.0)
# JobTest.dock(num_modes=9, exhaustiveness=8, seed=seed, energy_range=3)
# JobTest.surroundings()
# JobTest.plot(show=True)
# JobTest.extract_cache('./outputs')
## TODO:
# parametrize docking & everything else including outputs
# create plotting functions
# incorperate motif search