openeye
#
Convert between OpenEye and mdtop
objects.
Functions:
-
from_openeye
–Create a topology from an OpenEye molecule.
-
to_openeye
–Convert the Topology to an OpenEye molecule object.
_EXCLUDED_ATOM_PROPS
module-attribute
#
Exclude 'magic' atom properties when setting metadata from OpenEye mols.
_set_meta
#
Set metadata on an OpenEye object.
Source code in mdtop/_io/openeye.py
_extract_meta
#
Extract metadata from an OpenEye object.
Source code in mdtop/_io/openeye.py
_find_atoms
#
Find atoms in the OpenEye molecule, and partition them by chain and residue.
Source code in mdtop/_io/openeye.py
from_openeye
#
from_openeye(mol: OEMol) -> Topology
Create a topology from an OpenEye molecule.
Parameters:
-
mol
(OEMol
) –The RDKit molecule to convert.
Returns:
-
Topology
–The converted topology.
Source code in mdtop/_io/openeye.py
to_openeye
#
to_openeye(topology: Topology) -> OEMol
Convert the Topology to an OpenEye molecule object.
Notes
- Currently this requires formal charges to be set on the atoms, and formal bond orders to be set on the bonds.
Returns:
-
OEMol
–The OpenEye molecule.