private Pattern createPattern ( String smarts , IChemObjectBuilder builder ) throws IOException { SmartsPattern ptrn = SmartsPattern . create ( smarts , builder ) ; ptrn . setPrepare ( false ) ; // avoid redoing aromaticity etc return ptrn ; }
Create a pattern for the provided SMARTS - if the SMARTS is ? a pattern is not created .