In this article
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 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; The RDKit Book: molecular representations and fingerprints.
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; SPICE: atomic numbers alone do not identify a charged molecular state.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.