Hi Greg,

I was trying the following reaction in rdkit and it returns a product's
smiles that is invalid and can't be converted back into a valid molecule.
Any thoughts what's missing in my code?

>>rxn =
AllChem.ReactionFromSmarts('[#6:5][CH1:6]([#6:4])[NH1:2][C:7]([#6:8])=[O:9]>>[#6:8][C:7]#[N:2].[#6:4][C:6]=[C:5].[#8:9]')

>> reactants =  [Chem.MolFromSmiles('CC(NC(=O)C(N)F)C(C)=O')]

>> ps = rxn.RunReactants(tuple(reactants))

>> or p in ps:
    ...:     for m in p:
    ...:         print Chem.MolToSmiles(m, isomericSmiles = True)
    ...:

N#CC(N)F
C=CC(C)=O
O
N#CC(N)F
CC=[C](C)=O
O

As you can see CC=[C](C)=O is an invalid smiles ( carbon has explicit
valence greater than permitted) which you can't convert back into a valid
molecule.

Any comments how this can be solved?


Thanks
*Syeda Sabrina*
*Graduate Assistant*
*Department of Chemical Engineering, Penn State University*
*University Park, PA*
*
*
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to