assert_same_ring#

assert_same_ring(mol, ind1, ind2, max_ring_size=6)[source]#

Determine whether two atoms are in the same chemical ring

Parameters:
  • mol (rdkit.Chem.rdchem.Mol) – RDKit molecule to assess

  • ind1 (int) – Index of first atom of interest

  • ind2 (int) – Index of second atom of interest

  • max_ring_size (int, optional, default=6) – Maximum ring size to consider

Returns:

True if the two indices are in the same ring

Return type:

bool