Hi Gaetano,

There is property called "_TriposPartialCharge" for each atom. To get
partial charges read from mol2 just execute:

[float(a.GetProp("_TriposPartialCharge")) if "_TriposPartialCharge" in
a.GetPropNames() else 0.0) for a in mol.GetAtoms()]


----
Pozdrawiam,  |  Best regards,
Maciek Wójcikowski
[email protected]

2015-11-20 0:28 GMT+01:00 Gaetano Calabro <[email protected]>:

> Hi there,
>
> I would like to load a mol2 file with partial charge information in
> RDkit. How can I retrieve the atomic partial charge in RDkit? I haven't
> seen any function related to it.
>
> Cheers,
>
> Gaetano
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Rdkit-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
>
------------------------------------------------------------------------------
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to