How to check if a SMILES has a fused ring #6762
-
Hello All, I am not sure this could be done with SMART query. I just want to check if a compound has a fused ring and the number of rings in that fused ring. Is that possible with RDKit? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Smarts patterns can handle this, you want atoms in rings and not in just one ring:
|
Beta Was this translation helpful? Give feedback.
-
I think it might be safer to use the SMARTS ‘x’, number of ring bonds incident on an atom. That way you don’t have to worry about SSSR issues at all. In this case I think it would be [x3,x4] for an atom at the fusion point. My own prejudice is to avoid R if at all possible. |
Beta Was this translation helpful? Give feedback.
Smarts patterns can handle this, you want atoms in rings and not in just one ring: