﻿# RDKit AddHs does not automatically generate a complete spatial conformation

RDKit AddHs does not automatically generate a complete spatial conformation. A focused scientific-computing guide with the documented mechanism, a reproducible validation scenario, evidence and operational limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/science-rdkit-addhs-coordinate-generation/
Language: en

Adding hydrogens to a molecular graph is not the same operation as generating and validating a spatial conformation. RDKit AddHs exposes coordinate-related options separately from graph expansion. A molecular AI dataset that checks only the increased atom count can therefore release inputs whose geometry is absent, inherited under another policy or not prepared for the model's spatial features.

## The scientific interface

The documented AddHs operation returns a new molecule and does not modify the original. Its ordinary overload defaults addCoords to false; enabling that option requests coordinates for added hydrogens under the supported behavior. This does not replace a separately chosen conformation-generation or geometry-optimization protocol. The graph, conformer collection and scientific geometry quality are different artifacts. A wrapper retaining the original molecule can also miss the graph change entirely if it ignores the returned object while assuming an in-place modification.

## Implementation details

Specify whether the model expects explicit hydrogens and what geometry-generation path supplies coordinates. Preserve the returned graph, selected options and conformer identity together. Validate atom-to-coordinate correspondence and any retained per-atom annotations after graph changes. Treat coordinate presence, physical plausibility and optimization convergence as separate checks. Do not describe addCoords as proof that an entire molecule has been independently embedded or scientifically validated. If the original graph remains useful for another representation, keep its identity distinct instead of overwriting external labels whose atom indices belonged to the earlier object.

## A constructed validation case

Construct controlled molecules with and without an existing conformer. Exercise declared hydrogen and coordinate options, inspecting the returned object rather than only the original. Verify graph size, coordinate availability and mapping to per-atom labels under the intended preparation protocol. Add an ignored-return-value wrapper as a negative control. Acceptance requires the explicit graph and geometry contract the model needs, not merely a successful AddHs call or an assertion that more atoms imply a complete optimized spatial structure.

## Numerical and data limits

This check does not establish chemical validity or predictive usefulness for every molecule. Those require domain-specific validation. It separates graph expansion from geometry preparation so a convenient molecular API operation does not become unsupported evidence about the spatial input used by an AI model.

## Primary references

[RDKit Chem rdmolops API](https://www.rdkit.org/docs/source/rdkit.Chem.rdmolops.html); [The RDKit Book: molecular representations and fingerprints](https://www.rdkit.org/docs/RDKit_Book.html).

This is a proposed scientific-interface validation, not an executed Retrivium benchmark. Preserve the implementation version and unresolved outcomes; interface documentation does not establish the accuracy or performance of a scientific model.

## Related reading

[GEOM: conformer count is not molecular population weight](/journal/fg2-geom-conformer-ensemble-molecule-weighting/); [SPICE: atomic numbers alone do not identify a charged molecular state](/journal/fg2-spice-charge-state-molecular-target-schema/).
