Unfortunately there is no easy way to do this ATM other then regeneration
3D coordinates and that support is pretty limited in CDK. Of course the
question is then do you want minimised hydrogens or any old reasonably
valid positions. As a first approximation you can set the hydrogen
coordinates to the same as the atom they are attached.

However I think it's a reasonable thing to do if a 3D (or 2D) molecule
comes in and will add something like OESet3DHydrogenGeom
<https://docs.eyesopen.com/toolkits/cpp/oechemtk/OEChemFunctions/OESet3DHydrogenGeom.html#OEChem::OESet3DHydrogenGeom>.
Please can you add a GitHub issue for this.

Thanks,
John

On Sat, 16 Feb 2019 at 12:38, love_software0 via Cdk-user <
cdk-user@lists.sourceforge.net> wrote:

> Dear all,
>
> The Chemistry Development Kit(CDK) is very useful for my current work.
> However, I meet a problem: when I read and add hydrogens on the sybyl mol2
> format 3D molecule by using CDK, it seems the added hydrogens have no
> coordinates. I use the code as below:
>
> "AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(mol);
> CDKHydrogenAdder.getInstance(mol.getBuilder()).addImplicitHydrogens(mol);
> AtomContainerManipulator.convertImplicitToExplicitHydrogens(mol);
> "
> The added hydrogens with coordinates is very important for my current
> project. I had checked the API of CDK, but I can not find the suitable way
> to solve this problem.
>
> So could anyone gives me some codes or suggestions on adding hydrogens
> with 3D coordinates on molecules?
>
> Thanks for your help.
>
> Sincerely,
>
> Qifeng
>
> _______________________________________________
> Cdk-user mailing list
> Cdk-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cdk-user
>
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to