1
2
3
4
5
6
7
8
9 """Custom indexing for Bio.SearchIO objects."""
10
11 from StringIO import StringIO
12 from Bio._py3k import _bytes_to_string
13 from Bio import bgzf
14 from Bio.File import _IndexedSeqFileProxy, _open_for_random_access
15
16
18 """Base class for file format specific random access.
19
20 Subclasses for each file format should define '_parser' and optionally
21 'get_raw' methods.
22 """
23
25 self._handle = _open_for_random_access(filename)
26 self._kwargs = kwargs
27
30
31 - def get(self, offset):
33