Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/s/e/seq_crumbs-HEAD/test/test_trim.py   seq_crumbs(Download)
from Bio.SeqRecord import SeqRecord
 
from crumbs.trim import (TrimLowercasedLetters, TrimEdges, TrimOrMask,
                         TrimByQuality, TrimWithBlastShort,
    seq_to_trim_packets)
        adaptors = [oligo1, oligo2]
 
        blast_trim = TrimWithBlastShort(oligos=adaptors)
        fhand = StringIO(FASTQ4)
        seq_packets = read_seq_packets([fhand],
                                            prefered_seq_classes=[SEQRECORD])
        trim_packets = list(seq_to_trim_packets(seq_packets))
        trim_packets2 = blast_trim(trim_packets[0])
        adaptors = [oligo1, oligo2]
 
        blast_trim = TrimWithBlastShort(oligos=adaptors)
        fhand = StringIO(FASTQ4)
        seq_packets = list(read_seq_packets([fhand],
                                            prefered_seq_classes=[SEQITEM]))
        trim_packets = list(seq_to_trim_packets(seq_packets))
        trim_packets2 = blast_trim(trim_packets[0])