| Trees | Indices | Help |
|
|---|
|
|
Criterion --+
|
SmartsCriterion
A structure matching criterion that looks for a match to a Definition
instance, which is comprised of a collection of SMARTS patterns.
For example, for the Definition 'TwoCarbons' that matches against the
SMARTS patterns [#6][#6], the comparison string
TwoCarbons < 40
will match if there are less than 40 carbon-carbon bonds in the
structure.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
Parameters
definition - a Definition instance, specifying the SMARTS
pattern(s) to be included and excluded
compstr - the comparison string to be used.
Currently equal to "<operator> <value>"
Used by the expand() method
If compstr are not specified, parseLine() method should be used
|
Return True if structure 'st' matches this criterion, False if not. Current matching behavior is to count the number of matches in the definition.includes() list, that do not have any overlapping atoms with matches in the definition.excludes() list. st (Structure) - Structure object addprops (bool) - whether to add properties for each description
|
Return the number of times that definition.includes() patterns match the structure but do not overlap with any definition.excludes() patterns.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 3 08:00:04 2016 | http://epydoc.sourceforge.net |