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

All Samples(16)  |  Call(15)  |  Derive(0)  |  Import(1)

src/b/i/biopython-HEAD/Tests/test_bgzf.py   biopython(Download)
        h.close()
 
        h = bgzf.BgzfReader(new_file, "r")  # Text mode!
        new_line = h.readline()
        new = new_line + h.read(len(old))
            old = old_line + h.read()
 
        with bgzf.BgzfReader(new_file, "r") as h: # Text mode!
            new_line = h.readline()
            new = new_line + h.read(len(old))
 
            for cache in [1, 10]:
                h = bgzf.BgzfReader(new_file, mode, max_cache=cache)
                if "b" in mode:
                    new = _empty_bytes_string.join(line for line in h)
 
            for cache in [1, 10]:
                h = bgzf.BgzfReader(new_file, mode, max_cache=cache)
                temp = []
                while True:
        #Forward, using explicit open/close
        new = _empty_bytes_string
        h = bgzf.BgzfReader(filename, "rb")
        self.assertTrue(h.seekable())
        self.assertFalse(h.isatty())

src/b/i/biopython-1.63/Tests/test_bgzf.py   biopython(Download)
        h.close()
 
        h = bgzf.BgzfReader(new_file, "r")  # Text mode!
        new_line = h.readline()
        new = new_line + h.read(len(old))
 
            for cache in [1, 10]:
                h = bgzf.BgzfReader(new_file, mode, max_cache=cache)
                if "b" in mode:
                    new = _empty_bytes_string.join(line for line in h)
 
            for cache in [1, 10]:
                h = bgzf.BgzfReader(new_file, mode, max_cache=cache)
                temp = []
                while True:
        #Forward
        new = _empty_bytes_string
        h = bgzf.BgzfReader(filename, "rb")
        self.assertTrue(h.seekable())
        self.assertFalse(h.isatty())
        #Reverse
        new = _empty_bytes_string
        h = bgzf.BgzfReader(filename, "rb")
        for start, raw_len, data_start, data_len in blocks[::-1]:
            h.seek(bgzf.make_virtual_offset(start, 0))

src/s/e/seq_crumbs-HEAD/test/test_pairing.py   seq_crumbs(Download)
from tempfile import NamedTemporaryFile
 
from Bio.bgzf import BgzfReader
from Bio.SeqRecord import SeqRecord
from Bio.Seq import Seq