| Trees | Indices | Help |
|
|---|
|
|
object --+
|
??.instance --+
|
ChemicalReaction
A class for storing and applying chemical reactions.
Sample Usage:
>>> rxn = rdChemReactions.ReactionFromSmarts('[C:1](=[O:2])O.[N:3]>>[C:1](=[O:2])[N:3]')
>>> reacts = (Chem.MolFromSmiles('C(=O)O'),Chem.MolFromSmiles('CNC'))
>>> products = rxn.RunReactants(reacts)
>>> len(products)
1
>>> len(products[0])
1
>>> Chem.MolToSmiles(products[0])
'CN(C)C=O'
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
__instance_size__ = 36
|
|||
|
|||
|
Inherited from |
|||
|
|||
adds a product (a Molecule)
C++ signature:
AddProductTemplate(RDKit::ChemicalReaction {lvalue}, boost::shared_ptr<RDKit::ROMol>) -> unsigned int
|
adds a reactant (a Molecule) to the reaction
C++ signature:
AddReactantTemplate(RDKit::ChemicalReaction {lvalue}, boost::shared_ptr<RDKit::ROMol>) -> unsigned int
|
returns the number of products this reaction generates
C++ signature:
GetNumProductTemplates(RDKit::ChemicalReaction {lvalue}) -> unsigned int
|
returns the number of reactants this reaction expects
C++ signature:
GetNumReactantTemplates(RDKit::ChemicalReaction {lvalue}) -> unsigned int
|
apply the reaction to a sequence of reactant molecules and return the products as a tuple of tuples
C++ signature:
RunReactants(RDKit::ChemicalReaction const*, boost::python::tuple) -> _object*
apply the reaction to a sequence of reactant molecules and return the products as a tuple of tuples
C++ signature:
RunReactants(RDKit::ChemicalReaction const*, boost::python::list) -> _object*
|
checks the reaction for potential problems, returns (numWarnings,numErrors)
C++ signature:
Validate(RDKit::ChemicalReaction const* self, bool silent=False) -> boost::python::tuple
|
C++ signature: __init__(_object*) -> void*
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Sat May 24 08:37:05 2008 | http://epydoc.sourceforge.net |