Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on rcdk is.aromatic function being unable to recognize some heterocycles as aromatic #111

Open
jun-li-2020 opened this issue Oct 15, 2020 · 0 comments

Comments

@jun-li-2020
Copy link

Hi,

I have noticed that when the SMILES string is not explicitly shown as aromatic with lower case, the rcdk is.aromatic function sometimes will fail to recognize the aromatic portion of the molecule. For example, when stavudine SMILES string "O=C1C(C)=CN(C(N1)=O)[C@@h]2OC@@HCO" was used, the thymidine ring atoms are shown as False after checking with the is.aromatic() function. Traditional aromatic ring such as phenanthroline (C1(C(N=CC=C2)=C2C=C3)=C3C=CC=N1) can be correctly done without a problem. I was comparing to the RDKit GetIsAromatic bool function on the same stavudine SMILES string. To my surprise, it recognized the aromatic portion without an issue. To further test the difference, I used a tetrazole (O=C(N)C@HC1=NN=NN1C). Here the rcdk is.aromatic function could not recognize the aromatic tetrazole ring until I used lower case such as O=C(N)C@HC1=nn=nn1C. On the contrary, the RDKit GetIsAromatic worked well to recognize the aromatic atoms without needing the lowercase. Looking at the is.aromatic function .jfield("org/openscience/cdk/CDKConstants", "I", "ISAROMATIC") in rcdk, I am wondering if there is any possibility to make this thing work in rcdk without explicitly using lower cases on SMILES to show aromaticity.

Thanks,

-Jun

Related sessionInfo: rcdk 3.5.0 and rcdklibs 2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant