dpdata.rdkit package
Submodules
dpdata.rdkit.sanitize module
- exception dpdata.rdkit.sanitize.SanitizeError(content='Sanitization Failed.')[source]
Bases:
Exception
- class dpdata.rdkit.sanitize.Sanitizer(level='medium', raise_errors=True, verbose=False)[source]
Bases:
object
Methods
sanitize
(mol)Sanitize mol according to self.level.
- dpdata.rdkit.sanitize.assign_formal_charge_for_atom(atom, verbose=False)[source]
Assigen formal charge according to 8-electron rule for element B,C,N,O,S,P,As.
- dpdata.rdkit.sanitize.convert_by_obabel(mol, cache_dir='/home/docs/checkouts/readthedocs.org/user_builds/dpdata/checkouts/master/docs/.cache', obabel_path='obabel')[source]
- dpdata.rdkit.sanitize.kekulize_aromatic_heterocycles(mol_in, assign_formal_charge=True, sanitize=True)[source]