Awesome! Thank you all so much!!!
Here is my implementation of the function for reference:
def passed_NA2SR(mol): #no atom shared by two small rings
rings = mol.GetRingInfo().AtomRings()
small_rings = []
for ring in rings:
if len(ring) < 5:
small_rings.append(ring)
small_ring_atoms = []
for small_ring in small_rings:
for ring_atom in small_ring:
if ring_atom in small_ring_atoms:
return False
else:
small_ring_atoms.append(ring_atom)
return True
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss