code: def contains_adaptor(read, adaptor):
    
    origSeq = read.sequenceData
    clip_adaptor(read, adaptor)
    res = False
    if read.sequenceData != origSeq:
      res = True
    read.sequenceData = origSeq
    return res
docs: Check whether this sequence contains adaptor contamination. If it exists,
    we assume it's in the 3' end. This function requires 8 out of 10 of the
    first bases in the adaptor sequence to match for an occurrence to be
    reported.
  
    :param adaptor: sequence to look for. We only use first 10 bases; must be
                    a full Sequence object, not just string.
    :return: True if there is an occurence of <adaptor>, False otherwise