[Biojava-dev] [BioJava - Bug #3307] (New) Wrong first atom in alternate location when parsing PDB file

redmine at redmine.open-bio.org redmine at redmine.open-bio.org
Tue Oct 25 16:48:26 UTC 2011


Issue #3307 has been reported by Martin Riese.

----------------------------------------
Bug #3307: Wrong first atom in alternate location when parsing PDB file
https://redmine.open-bio.org/issues/3307

Author: Martin Riese
Status: New
Priority: Normal
Assignee: biojava-dev list
Category: structure
Target version: 
URL: 


For a pdb file with alternate locations

@ATOM   1573  N  AILE B 314      -4.258  84.780  67.290  0.50 61.63           N  
ATOM   1574  N  BILE B 314     -11.611  76.616  54.938  0.50 59.27           N  
@
the first atom is the same and the following two statements give the same Atom

@group.getAtoms().get(0)
group.getAltLocs().getAtoms().get(0)@

I think this is because in PDBFileParser.getCorrectAltLocGroup(), to create a new alternate group the first one gets cloned together with its atoms.

@Group altLocG = (Group) current_group.clone();
current_group.addAltLoc(altLocG);@


-- 
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




More information about the biojava-dev mailing list