OESameResidue

OESameResidue(atom1: OEAtomBase, atom2: OEAtomBase) -> bool
OESameResidue(res1: OEResidue, res2: OEResidue) -> bool

Determines whether atoms or their respective OEResidue s represent the same residue. This returns true when both residues are in the same chain (see OESameChain, have the same residue number, OEResidue.GetResidueNumber, the same sequence insertion code, OEResidue.GetInsertCode, and the same name, OEResidue.GetName.