Skip to content

Commit 2776062

Browse files
committed
Protocol for pre-orienting without receptor restraints revisited
1 parent 9cfe1cd commit 2776062

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lightdock/prep/poses.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,14 @@ def populate_poses(to_generate, center, radius, number_generator, rec_translatio
142142
# The strategy is similar to previous but for the receptor side we will use a simulated point
143143
# over the receptor surface to point out the quaternion
144144
coef = norm(center) / ligand_diameter
145-
rec_residue = Residue.dummy(center[0]*coef, center[1]*coef, center[2]*coef)
145+
# It is important to keep the coordinates as in the original complex without
146+
# moving to the center of coordinates (applying translation)
147+
rec_residue = Residue.dummy(center[0]*coef-rec_translation[0],
148+
center[1]*coef-rec_translation[1],
149+
center[2]*coef-rec_translation[2])
146150
lig_residue = ligand_restraints[number_generator.randint(0, len(ligand_restraints)-1)]
147-
q = get_quaternion_for_restraint(rec_residue, lig_residue, 0, 0, 0,
148-
[0,0,0], lig_translation)
151+
q = get_quaternion_for_restraint(rec_residue, lig_residue, tx, ty, tz,
152+
rec_translation, lig_translation)
149153
# No restraints at all
150154
else:
151155
q = Quaternion.random(number_generator)

0 commit comments

Comments
 (0)