File size: 2,014 Bytes
cde5d27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
50
51
52
53
54
55
# Step 1 obabel -i pdb ../4_ligands_corrected_1.pdb -o sdf -O ligand.sdf

# Step 2 Run tleap on 1_protein_no_hydrogens.pdb to protonate and add hydrogen to the pdb file 
# leap file content:
# source leaprc.protein.ff14SB
# protein = loadpdb 1_protein_no_hydrogens.pdb
# savepdb protein protein.pdb
# quit

# Step 3 pdb4amber -i receptor.pdb -o receptor_fixed.pdb  run this command on protein to add element names 

# Step 4 mk_prepare_ligand.py -i ligand.sdf -o ligand.pdbqt run this command on ligand to get pdbqt file for selected ligand

# Step 4 mk_prepare_receptor.py -i receptor.pdb -o receptor -p   run this command on protein to get pdbqt file for selected protein chain

# Now we are ready to run the docking 

# find the center of the ligand
# run this script 
#from MDAnalysis import Universe
#import numpy as np
#
#u = Universe("../output/4_ligands_corrected_1.pdb")
#
## replace 'LIG' with your ligand residue name
#ligand = u.select_atoms("all")
#coords = ligand.positions
#
## compute center of ligand
#center = coords.mean(axis=0)
#print("Center of ligand:", center)

#then run this vina script 
#vina \
#  --receptor receptor_ready.pdbqt \
#  --ligand ligand_1.pdbqt \
#  --center_x 34.3124 \
#  --center_y 4.95463 \
#  --center_z 1.774217 \
#  --size_x 18 \
#  --size_y 18 \
#  --size_z 18 \
#  --out ligand_1_docked.pdbqt \
#  --log ligand_1_docked.log

#vina_split --input ligand_1_docked.pdbqt --ligand ligand_1_mode

#Now we need to turn back pdbqt file to pdb file for ligand 
#run this command to do that obabel ligand_1_mode1.pdbqt -O ligand_1_mode1.pdb -p 7.4 
#now we need to add remaining hydrogens in it using pymol. pymol command is h_add ligand_1_mode1.pdb

#Now we need to make sure the residue name is correct like the name in the original ligand and then 
#we need to rename the atoms names to give this ligand to antechamber like C1, N1, .. like the way '4_ligands_corrected_1.pdb' formated 
#Now this ligand is ready to be used by antechambe to generate force field parameters