Is it possible to write a single SMARTS for two separate patterns involving
a Boolean OR?

For example,  I want to write a single SMARTS that can match the
patterns of 




I realize that I could write something like


but that would also match "cross" patterns such as

CN and NC which I don't want.

I have tried to write

([C]-[C]), ([N\-[N])   but I have not been able to get that syntax or related
expressions (variations of parentheses, brackets, etc) to work.

Hence, if someone knows how to combine separate SMARTS expressions into
a single expression with a Boolean OR, I would be grateful.  Thank you.

Jim Metz

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

Reply via email to