| 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 |
|||
|
|||
AddProductTemplate( (ChemicalReaction)arg1, (Mol)arg2) -> int :
adds a product (a Molecule)
C++ signature :
unsigned int AddProductTemplate(RDKit::ChemicalReaction {lvalue},boost::shared_ptr<RDKit::ROMol>)
|
AddReactantTemplate( (ChemicalReaction)arg1, (Mol)arg2) -> int :
adds a reactant (a Molecule) to the reaction
C++ signature :
unsigned int AddReactantTemplate(RDKit::ChemicalReaction {lvalue},boost::shared_ptr<RDKit::ROMol>)
|
GetNumProductTemplates( (ChemicalReaction)arg1) -> int :
returns the number of products this reaction generates
C++ signature :
unsigned int GetNumProductTemplates(RDKit::ChemicalReaction {lvalue})
|
GetNumReactantTemplates( (ChemicalReaction)arg1) -> int :
returns the number of reactants this reaction expects
C++ signature :
unsigned int GetNumReactantTemplates(RDKit::ChemicalReaction {lvalue})
|
Initialize( (ChemicalReaction)arg1) -> None :
initializes the reaction so that it can be used
C++ signature :
void Initialize(RDKit::ChemicalReaction {lvalue})
|
IsInitialized( (ChemicalReaction)arg1) -> bool :
checks if the reaction is ready for use
C++ signature :
bool IsInitialized(RDKit::ChemicalReaction {lvalue})
|
RunReactants( (ChemicalReaction)arg1, (tuple)arg2) -> object :
apply the reaction to a sequence of reactant molecules and return the products as a tuple of tuples
C++ signature :
_object* RunReactants(RDKit::ChemicalReaction*,boost::python::tuple)
RunReactants( (ChemicalReaction)arg1, (list)arg2) -> object :
apply the reaction to a sequence of reactant molecules and return the products as a tuple of tuples
C++ signature :
_object* RunReactants(RDKit::ChemicalReaction*,boost::python::list)
|
Validate( (ChemicalReaction)self [, (bool)silent=False]) -> tuple :
checks the reaction for potential problems, returns (numWarnings,numErrors)
C++ signature :
boost::python::tuple Validate(RDKit::ChemicalReaction const* [,bool=False])
|
__init__( (object)arg1) -> None :
C++ signature :
void __init__(_object*)
|
helper for pickle
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Apr 3 06:05:36 2009 | http://epydoc.sourceforge.net |