| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Smarts
A Smarts Pattern Matcher
Required parameters:
smartspattern
Methods:
match(molecule)
Example:
>>> mol = readstring("smi","CCN(CC)CC") # triethylamine
>>> smarts = Smarts("[#6][#6]") # Matches an ethyl group
>>> smarts.match(mol)
True
| Instance Methods | |||
|
|||
|
|||
|
Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
Initialise with a SMARTS pattern.
|
Does a SMARTS pattern match a particular molecule? Required parameters: molecule |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Dec 06 19:38:39 2012 | http://epydoc.sourceforge.net |