def __init__(self,smartspattern):
        self.rdksmarts = Chem.MolFromSmarts(smartspattern)
        if not self.rdksmarts:
            raise IOError, "Invalid SMARTS pattern."
Initialise with a SMARTS pattern.
dataset/ETHPy150Open oddt/oddt/oddt/toolkits/rdk.py/Smarts.__init__