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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/p/i/picobio-HEAD/sambam/profile/bench_iter.py   picobio(Download)
 
try:
    from Bio.Sequencing.SamBam import BamIterator
    def peter_iter(bam_filename, out_filename):
        """Peter's pure Python BAM iterator."""
        h = open(bam_filename, "rb")
        out_h = open(out_filename, "w")
        count = 0
        mapped = 0
        for read in BamIterator(h):