[Biopython-dev] [Biopython (old issues only) - Bug #2780] (Resolved) PDB file HETATMs cannot be alternative location of a residue that is an ATOM

redmine at redmine.open-bio.org redmine at redmine.open-bio.org
Sat Nov 12 20:18:24 UTC 2016

Issue #2780 has been updated by Lenna Peterson.

Description updated
Status changed from New to Resolved
% Done changed from 0 to 100

Migrated to github:


Bug #2780: PDB file HETATMs cannot be alternative location of a residue that is an ATOM

* Author: Klaus Kopec
* Status: Resolved
* Priority: Normal
* Assignee: Biopython Dev Mailing List
* Category: Main Distribution
* Target version: 1.50
* URL: 
In PDB files where HETATMs and ATOMs are altlocs of each other (e.g. 1RR2, residue 184), they are treated as two separate residues.

A obvious solution is to add an "else" case to the "if" in StructureBuilder.py line 115 (method init_residue(...)) that introduces some kind of mixed (HETATM as well as ATOM) DisorderedResidue.

The Main problem with that: the hetero field of the residue ids will differ between the residues, therefore the whole access-over-ids mechanism will most likely not work with these MixedDisorderedResidues as straight forward as it does so far.

Sadly, I could not come up with a good solution for this. Maybe some __getattr__ magic that alters the way Chains access their residues might work by allowing access to residues by only using the second and third component of the id 3-tuple?!

1rr2_residues184AB.pdb (1.66 KB)

You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here and login: http://redmine.open-bio.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython-dev/attachments/20161112/d28305d4/attachment.html>

More information about the Biopython-dev mailing list