get_residue_count#

biotite.structure.get_residue_count(array)[source]#

Get the amount of residues in an atom array (stack).

The count is determined from the res_id and chain_id annotation. Each time the residue ID or chain ID changes, the count is incremented. Special rules apply to hetero residues.

Parameters:
arrayAtomArray or AtomArrayStack

The atom array (stack) to determine the residues from.

Returns:
countint

Amount of residues.