| Trees | Indices | Help |
|
|---|
|
|
object --+
|
??.instance --+
|
FilterMatcherBase --+
|
FilterHierarchyMatcher
Hierarchical Filter
basic constructors:
FilterHierarchyMatcher( matcher )
where can be any FilterMatcherBase (SmartsMatcher, etc)
FilterHierarchyMatcher's have children and can form matching
trees. then GetFilterMatches is called, the most specific (
i.e. lowest node in a branch) is returned.
n.b. A FilterHierarchicalMatcher of functional groups is returned
by calling GetFunctionalGroupHierarchy()
>>> from rdkit.Chem import MolFromSmiles
>>> from rdkit.Chem.FilterCatalog import *
>>> functionalGroups = GetFunctionalGroupHierarchy()
>>> [match.filterMatch.GetName()
... for match in functionalGroups.GetFilterMatches(
... MolFromSmiles('c1ccccc1Cl'))]
['Halogen.Aromatic', 'Halogen.NotFluorine.Aromatic']
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
__instance_size__ = 24
|
|||
|
|||
|
Inherited from |
|||
|
|||
AddChild( (FilterHierarchyMatcher)arg1, (FilterHierarchyMatcher)arg2) -> FilterHierarchyMatcher :
Add a child node to this hierarchy.
C++ signature :
boost::shared_ptr<RDKit::FilterHierarchyMatcher> AddChild(RDKit::FilterHierarchyMatcher {lvalue},RDKit::FilterHierarchyMatcher)
|
SetPattern( (FilterHierarchyMatcher)arg1, (FilterMatcherBase)arg2) -> None :
Set the filtermatcher pattern for this node. An empty node is considered a root node and passes along the matches to the children.
C++ signature :
void SetPattern(RDKit::FilterHierarchyMatcher {lvalue},RDKit::FilterMatcherBase)
|
__init__( (object)arg1) -> None :
C++ signature :
void __init__(_object*)
__init__( (object)arg1, (FilterMatcherBase)arg2) -> None :
Construct from a filtermatcher
C++ signature :
void __init__(_object*,RDKit::FilterMatcherBase)
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Oct 8 11:32:01 2017 | http://epydoc.sourceforge.net |