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))
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 

Is there any easy way to avoid such error?

Many thanks for your help.


Changge Ji
Check out the vibrant tech community on one of the world's most
engaging tech sites,!
Rdkit-discuss mailing list

Reply via email to