Skip to content

How to check if a SMILES has a fused ring #6762

Answered by bp-kelley
syedzayyan asked this question in FAQ
Discussion options

You must be logged in to vote

Smarts patterns can handle this, you want atoms in rings and not in just one ring:

m = Chem.MolFromSmiles("C1CC2CCC21")
pat = Chem.MolFromSmarts("[R&!R1]")
m.GetSubstructMatches(pat)

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@syedzayyan
Comment options

Answer selected by syedzayyan
Comment options

You must be logged in to vote
4 replies
@syedzayyan
Comment options

@DavidACosgrove
Comment options

@bp-kelley
Comment options

@DavidACosgrove
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
3 participants