You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not familiar enough with SMARTS to know if your example is truly expected to be negative. You should probaby confirm on the CDK users mailing list with your specific pattern.
rcdk should either fix or deprecate this function (@rajarshi would need to weigh in there)
If you try it out at https://www.simolecule.com/cdkdepict/depict.html, the
supplied SMARTS pattern does match the the molecule.
However, I agree that we should fix the function to use SMARTSPattern
I found that the rdkit substructer matching fucntion did the same mistake. Please kindly find the picture below:
As a matter of fact, the substructure that I am looking for is an benzene structure with an ammonia side chain, which is totally different from the naphthalene structure. I believed the reason is that the algorithm took the naphthalene structure as an alkyl structure.
Activity
zachcp commentedon Feb 12, 2023
Hi, thanks for your report. So I am less familiar with the SMARTS but here's what I've found:
rcdk::matchesuses SMARTSQueryTool under the hood.rcdkshould either fix or deprecate this function (@rajarshi would need to weigh in there)rajarshi commentedon Feb 12, 2023
YANGJJ93MS commentedon Feb 14, 2023
Dear Rajarshi,
Thank you for your reply!
I found that the rdkit substructer matching fucntion did the same mistake. Please kindly find the picture below:

As a matter of fact, the substructure that I am looking for is an benzene structure with an ammonia side chain, which is totally different from the naphthalene structure. I believed the reason is that the algorithm took the naphthalene structure as an alkyl structure.
Best regards,
Junjie