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

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/s/e/seq_crumbs-HEAD/crumbs/pairs.py   seq_crumbs(Download)
from crumbs.utils.file_utils import flush_fhand
from crumbs.iterutils import sorted_items, group_in_packets_fill_last
from crumbs.collectionz import KeyedSet
    '''It matches the seq pairs in an iterator and splits the orphan seqs.'''
    counts = 0
    check_order_buffer = KeyedSet()
    for pair in _get_paired_and_orphan(reads, ordered, max_reads_memory,

src/s/e/seq_crumbs-HEAD/test/test_collectionz.py   seq_crumbs(Download)
import unittest
from crumbs.collectionz import OrderedSet, KeyedSet
    def test_unordered_set(self):
        in_set = [1, 2, 3, 4, 5, 8, 10]
        not_in_set = [6, 9, 11, 13]
        keyed_set = KeyedSet(in_set)
        for item in in_set:
        def key(item):
            return item[0]
        keyed_set = KeyedSet(in_set, key=key)
        for item in in_set:
            assert item in keyed_set