Ola RDKitters,

I have a molecule in postgresql, and I would like to calculate the overall
formal charge of the molecule as separate + and - counts.

I currently came up with (warning: hack ahead!)

substruct_count(rdkitmol, mol_from_smarts('[-]'), true) +
(substruct_count(rdkitmol, mol_from_smarts('[--]'), true) * 2) +
(substruct_count(rdkitmol, mol_from_smarts('[---]'), true) * 3) as neg

But this being RDKit, there probably is a better way (and what about my
[U+4] ?).

Thanks and, hopefully, see you soon,

-
Jean-Paul Ebejer
Early Stage Researcher
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to