parmed.rdkit package¶
Submodules¶
Module contents¶
A package dealing with RDKit integration.
-
parmed.rdkit.
from_sdf
(filename, structure=False)¶ Load SDF file to
Structure
- Parameters
- filename: str
- structurebool, default False
if True, return a
Structure
if False, return a list ofStructure
-
parmed.rdkit.
from_smiles
(smiles, coordinates=True)¶ Load smiles string to
Structure
- Parameters
- smilesstr, smiles
- coordinatesbool, default True
if True, use `rdkit.Chem.AllChem.EmbedMultipleConfs to assign coordinates
- Returns
- parm
Structure
- parm
-
parmed.rdkit.
load_rdkit
(rmol)¶ Load a
Mol
object and return a populatedStructure
instance- Parameters
- rmol: :class:`Mol`
RDKit
Mol
object to convert
Examples
>>> from rdkit import Chem >>> import parmed as pmd >>> mol = Chem.MolFromSmiles('Cc1ccccc1') >>> struct = pmd.load_rdkit(mol)