| 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__ = 72
|
|||
__safe_for_unpickling__ = True
|
|||
|
|||
|
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>)
|
AddRecursiveQueriesToReaction( (ChemicalReaction)reaction [, (dict)queries={} [, (str)propName='molFileValue' [, (bool)getLabels=False]]]) -> object :
adds recursive queries and returns reactant labels
C++ signature :
boost::python::api::object AddRecursiveQueriesToReaction(RDKit::ChemicalReaction {lvalue} [,boost::python::dict={} [,std::string='molFileValue' [,bool=False]]])
|
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})
|
GetProductTemplate( (ChemicalReaction)self, (int)which) -> Mol :
returns one of our product templates
C++ signature :
RDKit::ROMol* GetProductTemplate(RDKit::ChemicalReaction const*,unsigned int)
|
GetReactantTemplate( (ChemicalReaction)self, (int)which) -> Mol :
returns one of our reactant templates
C++ signature :
RDKit::ROMol* GetReactantTemplate(RDKit::ChemicalReaction const*,unsigned int)
|
GetReactingAtoms( (ChemicalReaction)self [, (bool)mappedAtomsOnly=False]) -> object :
returns a sequence of sequences with the atoms that change in the reaction
C++ signature :
boost::python::api::object GetReactingAtoms(RDKit::ChemicalReaction [,bool=False])
|
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})
|
IsMoleculeProduct( (ChemicalReaction)arg1, (Mol)arg2) -> bool :
returns whether or not the molecule has a substructure match to one of the products.
C++ signature :
bool IsMoleculeProduct(RDKit::ChemicalReaction,RDKit::ROMol)
|
IsMoleculeReactant( (ChemicalReaction)arg1, (Mol)arg2) -> bool :
returns whether or not the molecule has a substructure match to one of the reactants.
C++ signature :
bool IsMoleculeReactant(RDKit::ChemicalReaction,RDKit::ROMol)
|
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)
|
ToBinary( (ChemicalReaction)arg1) -> str :
Returns a binary string representation of the reaction.
C++ signature :
std::string ToBinary(RDKit::ChemicalReaction)
|
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])
|
__getinitargs__( (ChemicalReaction)arg1) -> tuple :
C++ signature :
boost::python::tuple __getinitargs__(RDKit::ChemicalReaction)
|
__init__( (object)arg1) -> None :
Constructor, takes no arguments
C++ signature :
void __init__(_object*)
__init__( (object)arg1, (str)arg2) -> None :
C++ signature :
void __init__(_object*,std::string)
|
helper for pickle
|
_getImplicitPropertiesFlag( (ChemicalReaction)self) -> bool :
EXPERT USER: returns whether or not the reaction can have implicit properties
C++ signature :
bool _getImplicitPropertiesFlag(RDKit::ChemicalReaction {lvalue})
|
_setImplicitPropertiesFlag( (ChemicalReaction)self, (bool)val) -> None :
EXPERT USER: indicates that the reaction can have implicit properties
C++ signature :
void _setImplicitPropertiesFlag(RDKit::ChemicalReaction {lvalue},bool)
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Apr 26 06:19:00 2013 | http://epydoc.sourceforge.net |