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

All Samples(23)  |  Call(22)  |  Derive(0)  |  Import(1)

src/s/e/seq_crumbs-HEAD/test/test_filters.py   seq_crumbs(Download)
from Bio.SeqFeature import SeqFeature, FeatureLocation
 
from crumbs.filters import (FilterByLength, FilterById, FilterByQuality,
                            FilterBlastMatch, FilterBlastShort,
                            FilterDustComplexity, seq_to_filterpackets,
        seqs = {SEQS_PASSED: [[seq1], [seq2]], SEQS_FILTERED_OUT: []}
 
        filter_by_length = FilterByLength(minimum=4)
        passed = _seqs_to_str_seqs(filter_by_length(seqs)[SEQS_PASSED])
        assert passed == ['aCTg']
        filtr = _seqs_to_str_seqs(filter_by_length(seqs)[SEQS_FILTERED_OUT])
        assert filtr == ['AC']
 
        filter_by_length = FilterByLength(minimum=5)