|
From: dalvarez <alg...@gm...> - 2012-11-30 14:58:55
|
Hi there,
I'm trying to obtain a rotation matrix between two pdb files containing the
same protein. For many of them the following script works perfectly:
# Load files in OBMol
S = next(pybel.readfile('pdb',struc))
S.removeh()
T = next(pybel.readfile('pdb',target))
T.removeh()
# Align
align = openbabel.OBAlign(False,False)
align.SetRefMol(S.OBMol)
align.SetTargetMol(T.OBMol)
if align.Align():
OBrotMat = align.GetRotMatrix()
The problem comes when the atom order is not the same in the two files.
As suggested in other posts, i tried:
> babel input.pdb -O output.pdb --canonical
But it results in a Segmentation Fault, or memory failure due to the large
number of atoms in the file.
Anyone can help me working this out? What methods, classes should i use to
do this job within the script before the alignment?
Thanks in advance!
Daniel
--
View this message in context: http://forums.openbabel.org/match-atom-order-in-two-pdb-files-of-same-molecule-tp4655723.html
Sent from the General discussion mailing list archive at Nabble.com.
|