def scanadapt(self, adaptmotives=[], sequence="", qscore=""):
        match_position = sequence.rfind(adaptmotives[0])
        if match_position != -1:
            return sequence[:match_position], qscore[:match_position]
        for motif in adaptmotives[1:]:
            match_position = sequence.rfind(motif)
            if match_position != -1:
                return sequence[:match_position], qscore[:match_position]
        return sequence, qscore
scans sequence for adapter motives
dataset/ETHPy150Open ARTbio/tools-artbio/tools/yac_clipper/yac.py/Clip.scanadapt