parmed.rdkit package

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 of Structure

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
parmStructure
parmed.rdkit.load_rdkit(rmol)

Load a Mol object and return a populated Structure 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)