-
Notifications
You must be signed in to change notification settings - Fork 950
Description
Hi,
I am relatively new to Rdkit and I apologize if this isn't the right place to ask this. I am dealing with molecule fragments in SMILES notation, such as 'cC(=O)N(C)C', and when I try to draw the molecule, I get the following error: ERROR: non-ring atom 0 marked aromatic. Now, of course I could set sanitize=False in my Chem.MolFromSmiles() function, but then I lose information in my drawing.
Is there a way to intelligently interpret the SMILES fragment, and create the simplest molecule that is valid, and highlight the parts that were in the original fragment? So in the 'cC(=O)N(C)C' example, I would want the first carbon to be part of an aromatic ring, and for the actual 'cC(=O)N(C)C' fragment to be highlighted. Is this at all possible?
Other examples are more complicated and involve multiple aromatic rings, such as 'cnnc' (or perhaps both nitrogens here are part of the same aromatic ring?).
Best,
Aaron