On 12/13/2017 11:03 AM, Chicago Ji wrote:
> Dear RDkit Users,
>
> Rdkit would delete all hydrogen atoms when read in a sdf file.
> Since I want to use charge information of all atoms in sdf file, I want
> to keep all hydrogen atoms when readin.
> Is there something like Chem.SmilesParserParams() for sdfsupplier ?
Maybe you want to do this:
---
import rdkit
from rdkit import Chem
[...]
for mol in Chem.SDMolSupplier(sdf_filename, removeHs = False):
[...]
---
Regards,
F.
> Many thanks for your help.
>
> Best,
> Changge
>
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss