|
Package rdkit ::
Package Chem
|
|
Package Chem
source code
A module for molecules and stuff
see Chem/index.html in the doc tree for documentation
|
|
| QuickSmartsMatch(smi,
sma,
unique=True,
display=False) |
source code
|
|
|
|
|
|
|
SupplierFromFilename(fileN,
delim='',
**kwargs) |
source code
|
|
|
|
FindMolChiralCenters(mol,
force=True,
includeUnassigned=False)
>>> from rdkit import Chem
>>> mol = Chem.MolFromSmiles('[C@H](Cl)(F)Br')
>>> FindMolChiralCenters(mol)
[(0, 'R')]
>>> mol = Chem.MolFromSmiles('[C@@H](Cl)(F)Br')
>>> FindMolChiralCenters(mol)
[(0, 'S')] |
source code
|
|
|
|
|
|
|
LayeredFingerprint_substructLayers = 7
|
|
|
__package__ = 'rdkit.Chem'
|
Imports:
rdBase,
RDConfig,
DataStructs,
rdGeometry,
pyPeriodicTable,
rdchem,
_HasSubstructMatchStr,
MolToInchi,
InchiToInchiKey,
MolFromInchi,
MolToInchiAndAuxInfo,
InchiReadWriteError,
INCHI_AVAILABLE,
AddHs,
AddRecursiveQuery,
AssignAtomChiralTagsFromStructure,
AssignRadicals,
AssignStereochemistry,
Atom,
Bond,
BondDir,
BondStereo,
BondType,
ChiralType,
Cleanup,
Conformer,
DeleteSubstructs,
EditableMol,
FastFindRings,
FindAllPathsOfLengthN,
FindAllSubgraphsOfLengthMToN,
FindAllSubgraphsOfLengthN,
FindAtomEnvironmentOfRadiusN,
FindUniqueSubgraphsOfLengthN,
ForwardSDMolSupplier,
GetAdjacencyMatrix,
GetDistanceMatrix,
GetFormalCharge,
GetMolFrags,
GetPeriodicTable,
GetSSSR,
GetSymmSSSR,
HybridizationType,
Kekulize,
LayeredFingerprint,
LayeredFingerprint2,
MergeQueryHs,
Mol,
MolFromMol2Block,
MolFromMol2File,
MolFromMolBlock,
MolFromMolFile,
MolFromSmarts,
MolFromSmiles,
MolFromTPLBlock,
MolFromTPLFile,
MolToMolBlock,
MolToSmarts,
MolToSmiles,
MolToTPLBlock,
MolToTPLFile,
MurckoDecompose,
PathToSubmol,
PeriodicTable,
RDKFingerprint,
RemoveHs,
RemoveStereochemistry,
ReplaceCore,
ReplaceSidechains,
ReplaceSubstructs,
RingInfo,
SDMolSupplier,
SDWriter,
SanitizeMol,
SetAromaticity,
SetConjugation,
SetHybridization,
SmilesMolSupplier,
SmilesMolSupplierFromText,
SmilesWriter,
TDTMolSupplier,
TDTWriter,
WedgeMolBonds,
inchi,
rdinchi,
rdmolfiles,
rdmolops,
tossit
FindMolChiralCenters(mol,
force=True,
includeUnassigned=False)
| source code
|
>>> from rdkit import Chem
>>> mol = Chem.MolFromSmiles('[C@H](Cl)(F)Br')
>>> FindMolChiralCenters(mol)
[(0, 'R')]
>>> mol = Chem.MolFromSmiles('[C@@H](Cl)(F)Br')
>>> FindMolChiralCenters(mol)
[(0, 'S')]
>>> FindMolChiralCenters(Chem.MolFromSmiles('CCC'))
[]
By default unassigned stereo centers are not reported:
>>> mol = Chem.MolFromSmiles('C[C@H](F)C(F)(Cl)Br')
>>> FindMolChiralCenters(mol)
[(1, 'S')]
but this can be changed:
>>> FindMolChiralCenters(mol,includeUnassigned=True)
[(1, 'S'), (3, '?')]
The handling of dependent stereochemistry is not correct:
>>> Chem.FindMolChiralCenters(Chem.MolFromSmiles('C1CC(C)C(C)C(C)C1'),includeUnassigned=True)
[(2, '?'), (6, '?')]
>>> Chem.FindMolChiralCenters(Chem.MolFromSmiles('C1C[C@H](C)C(C)[C@H](C)C1'),includeUnassigned=True)
[(2, 'S'), (6, 'R')]
|