| Trees | Indices | Help |
|
|---|
|
|
UserDict.DictMixin --+
|
_IndexedSeqFileDict --+
|
_SQLiteManySeqFilesDict
Read only dictionary interface to many sequential record files. This code is used in both Bio.SeqIO for indexing as SeqRecord objects, and in Bio.SearchIO for indexing QueryResult objects. Keeps the keys, file-numbers and offsets in an SQLite database. To access a record by key, reads from the offset in the appropriate file and then parses the record into an object. There are OS limits on the number of files that can be open at once, so a pool are kept. If a record is required from a closed file, then one of the open handles is closed first.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
D[k] if k in D, else d |
|
||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
|
|
How many records are there?
|
Iterate over the keys.
|
Return a list of all the keys (SeqRecord identifiers).
|
x[y]
|
d defaults to None.
|
Similar to the get method, but returns the record as a raw string. If the key is not found, a KeyError exception is raised. Note that on Python 3 a bytes string is returned, not a typical unicode string. NOTE - This functionality is not supported for every file format.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Feb 5 17:59:51 2013 | http://epydoc.sourceforge.net |