[BioPython] Sequence Numbering in PDB-Files
thamelry at binf.ku.dk
thamelry at binf.ku.dk
Fri Nov 4 11:57:43 EST 2005
> Hi Everyone!
>
> I'm pretty new in terms of biopython, so it might be, that I just didn't
> get into the right parts of the manual yet.
It shows :-)
The Bio.PDB FAQ is at
http://www.biopython.org/docs/cookbook/biopdb_faq.pdf
You probably need something like:
for model in structure:
for chain in model:
for residue in chain:
hetatm_flag, resseq, icode=residue.get_id()
print resseq, icode
The hetatm_flag is blank (' ') for ordinary residues, 'W'
for waters and 'H' for other hetero-residues. The resseq
and icode have the usual PDB meaning.
Cheers,
-Thomas
More information about the BioPython
mailing list