get_sequence#

biotite.structure.io.pdb.get_sequence(pdb_file: PDBFile) → dict[str, Sequence][source]#

Get the protein and nucleotide sequences from a PDBFile.

This function is a thin wrapper around the PDBFile method get_sequence() for the sake of consistency with other structure.io subpackages.

Parameters:
pdb_filePDBFile

The file object.

Returns:
sequence_dictDictionary of Sequences

Dictionary keys are the chain IDs parsed from the SEQRES records. Dictionary values are the corresponding sequences.