check_res_id_continuity#

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

Check if the residue IDs are incremented by more than 1 or decremented, from one atom to the next one.

An increment by more than 1 is as strong clue for missing residues, a decrement means probably a start of a new chain.

Parameters:
arrayAtomArray or AtomArrayStack

The array to be checked.

Returns:
discontinuityndarray, dtype=int

Contains the indices of atoms after a discontinuity