If you copy a molecule it triggers partial charge perception on the
original one. This doesn't seem right.

It's triggered by OBAtom::Duplicate:

    _ele = src->GetAtomicNum();
    _isotope = src->GetIsotope();
   ...
    _pcharge = src->GetPartialCharge();

There seem to be different partial charges. Those from Gasteiger, and
those set explicitly in an input file. I presume that the code should
really work as follows:
1. If no partial charges have been perceived or are present on the
original molecule, don't do anything.
2. If partial charges have been perceived on the original one, then
copy them over and set PartialChargesPerceived on the new molecule.
(Unless perceived data is not supposed to be copied over)
3. If partial charges have been set explicitly in the original
molecule then copy them over.

Have I got this right?

- Noel

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to