singa-bio / singa

:leaves: SiNGA (Simulation of Natural Systems using Graph Automata) is an open-source library containing tools especially for structural bioinformatics and systems biology.
MIT License
8 stars 2 forks source link

LeafIdentifier in multi-model structures is always set to the last model #39

Closed fkaiserbio closed 7 years ago

fkaiserbio commented 7 years ago

When parsing a multi-model structure, e.g. 1NMV|A all leafs obtained by getAllLeafs() have the same model number stored in their LeafIdentifier.

LeafIdentifier{pdbIdentifer='1NMV', modelIdentifer=10 (should be 1), chainIdentifer='A', leafIdentifer=1} LeafIdentifier{pdbIdentifer='1NMV', modelIdentifer=10 (should be 1), chainIdentifer='A', leafIdentifer=2} ... LeafIdentifier{pdbIdentifer='1NMV', modelIdentifer=10 (should be 1), chainIdentifer='A', leafIdentifer=163} now the leafs of the next model start: LeafIdentifier{pdbIdentifer='1NMV', modelIdentifer=10 (should be 2), chainIdentifer='A', leafIdentifer=1} LeafIdentifier{pdbIdentifer='1NMV', modelIdentifer=10 (should be 2), chainIdentifer='A', leafIdentifer=2} ....

fkaiserbio commented 7 years ago