-
Notifications
You must be signed in to change notification settings - Fork 133
Description
Hi,
I'm trying to run hydrogen optimization on these PDB files '8hg7' and '8hez'. However, after calling reduce2 on a PDB file that has my selected chain, the chain is now significantly shifted away from its initial coordinates such that even the ligand it was crystallized with is no longer in the same coordinates.
This is the example code that reproduces the error. I have also included the output image visualization file before and after optimization.
pdb_token = '8hez'
pdb_file = '.../Vina/sglt2/8hez.pdb'
atoms_from_pdb = parsePDB(pdb_file)
receptor_selection = "chain A and not water and not hetero"
receptor_atoms = atoms_from_pdb.select(receptor_selection)
prody_receptorPDB = f"{pdb_token}_receptor_atoms.pdb"
writePDB(prody_receptorPDB, receptor_atoms)
reduce_inputPDB = f"{pdb_token}_receptor.pdb"
subprocess.run(
f'cat <(grep "CRYST1" {pdb_file}) {prody_receptorPDB} > {reduce_inputPDB}',
shell=True,
executable="/bin/bash"
)
reduce_opts = "approach=add add_flip_movers=True"
overwrite = "overwrite=True"
command = f'export MMTBX_CCP4_MONOMER_LIB="{geostd_path}"; python {reduce2} {reduce_inputPDB} {reduce_opts} {overwrite}'
subprocess.run(command, shell=True, executable="/bin/bash")
prepare_inPDB = f"{pdb_token}_receptorFH.pdb"
atoms_from_pdb = parsePDB(pdb_file)
ligand_selection = "chain A and resname LE6"
ligand_atoms = atoms_from_pdb.select(ligand_selection)
center_x, center_y, center_z = calcCenter(ligand_atoms)
size_x = 20.0
size_y = 20.0
size_z = 20.0
prody_ligandPDB = "LIG.pdb"
writePDB(prody_ligandPDB, ligand_atoms)
