def find(self, seq, threshold=None, offset=0): """ Search the given sequence for matches with scores less than or equal to the given threshold. If no threshold given, assume exact match to IUPAC motif. """ if threshold is None: threshold = len(self) return _motility.find_pwm(seq, self._m, threshold, offset=offset)
def find(self, seq, threshold, offset=0): """ Search the given sequence for matches with scores less than or equal to the given threshold. """ return _motility.find_pwm(seq, self._m, threshold, offset=offset)