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.
- arrayAtomArray or AtomArrayStack
The array to be checked.
- discontinuityndarray, dtype=int
Contains the indices of atoms after a discontinuity