Skip to content

Commit

Permalink
Note that the atoms are in the same order
Browse files Browse the repository at this point in the history
  • Loading branch information
padix-key committed Feb 22, 2025
1 parent dd4c1e3 commit e51cebf
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/biotite/interface/rdkit/mol.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,19 @@ def to_mol(
If the input `atoms` is an :class:`AtomArrayStack`, all models are included
as conformers with conformer IDs starting from ``0``.
Raised
Raises
------
BadStructureError
If the input `atoms` does not have an associated :class:`BondList`.
Also raises a :class:`BadStructureError`, if `explicit_hydrogen` is set to
``False`` despite hydrogen atoms being present in `atoms`.
Notes
-----
The atoms in the return value are in the same order as the input `atoms`,
i.e. indices pointing to the :class:`rdkit.Chem.rdchem.Mol` can be used to point to
the same atoms in the :class:`.AtomArray`.
Examples
--------
Expand Down Expand Up @@ -272,6 +278,10 @@ def from_mol(mol, conformer_id=None, add_hydrogen=None):
Notes
-----
The atoms in the return value are in the same order as the input `mol`,
i.e. indices pointing to the :class:`rdkit.Chem.rdchem.Mol` can be used to point to
the same atoms in the :class:`.AtomArray`.
All atom-level properties of `mol`
(obtainable with :meth:`rdkit.Chem.rdchem.Mol.GetProp()`) are added as annotation
array with the same name.
Expand Down

0 comments on commit e51cebf

Please sign in to comment.