Dear All, 

I want to do some substructure match using MCS.
It seems that Sanitize is needed for MCS.
I met with the over valance error when using sanitize for some molecules.

Like the following one :
--------------------------------
sa = Chem.MolFromSmiles('c1cocn1')
sa =Chem.MolFromSmarts(Chem.MolToSmarts(sa))
Chem.SanitizeMol(sa)
----------------------------------
The error info says that Explicit valence for O is greater than permitted.



Since I need to use smarts derived from MCS analysis, I can't use 
Chem.MolFromSmiles(mol,kekuleSmiles=True).

Is there any easy way to avoid such error?

Many thanks for your help.


Best,
Changge




Changge Ji
------------------------------------------------------------------------------
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
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to