qp.cluster.spheres_bad.check_NC

qp.cluster.spheres_bad.check_NC(atom, metal)[source]

Check if a nitrogen / carbon atom in the first sphere is coordinated.

If the nitrogen / carbon atom is in the backbone, or it’s the nearest atom to the metal among all atoms in its residue, it’s considered coordinated.

Parameters:
  • atom (Bio.PDB.Atom) – The nitrogen / carbon atom to be checked

  • metal – The metal atom (coordination center)

Returns:

flag – Whether the atom is coordinated or not

Return type:

bool