def find_site(self, site, left_trim=0, right_trim=0):
        left, right = site.split('^')
        site = left+right

        assert len(site) <= len(self.seq)

        d = [dist(self.seq[start:start+len(site)], site) for start in range(left_trim,len(self.seq)-len(site)-right_trim+1)]
        min_i, min_d = min(enumerate(d), key=operator.itemgetter(1))

        return min_i + len(left)
Is this button down?
dataset/ETHPy150Open adamewing/bamsurgeon/bamsurgeon/mutableseq.py/MutableSeq.find_site--crossover with--dataset/ETHPy150Open anandology/pyjamas/library/pyjamas/ui/CustomButton.py/CustomButton.isDown