Share

Open Babel

Tracker: Bugs

5 Building bonds from resdata-templates - ID: 2889763
Last Update: Attachment added ( fab5 )


Minor bug in data.cpp : OBResidueData::AssignBonds(...)

the function connects atoms of a residue according to atom names defined in
"resdata.txt" by stepping
through the atom list _vatoms and breaks when the residue information of
the atoms under investigation
are different. Residues are only compared according to the residue name and
the residue number, which
is a problem when subsequent residues in a molecule have the same number
and name, but have a different
chain identifier (see HETATM records of 1xxb.pdb : ARG residues, attached
). Thus the code
in data.cpp AssignBonds() should include a check if the chain identifiers
match, otherwise artificial bonds
might be introduced since AssingBonds() does not check atom-atom
distances:

line 680:
if (r1->GetNumString() != r2->GetNumString())
break;
if (r1->GetName() != r2->GetName())
break;
if (r1->GetChain() != r2->GetChain())
break;



cheers
F


Fabian ( fab5 ) - 2009-10-30 23:00

5

Open

None

Nobody/Anonymous

Command-line Tools

2.2.x

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
1xxb.pdb.gz example protein PDB file Download

Change ( 1 )

Field Old Value Date By
File Added 348927: 1xxb.pdb.gz 2009-10-30 23:00 fab5