Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
examples
README.rst
fileindex.py

README.rst

FileIndex

index flat files. see: blogpost example:

>>> FileIndex.create(f, lambda fh: SamLine(fh).name, allow_multiple=True)
>>> fi = FileIndex(f, SamLine, allow_multiple=True)
>>> [(s.name, s.ref_seqid, s.ref_loc) for s in fi['23351265']]
[('23351265', '2', 8524), ('23351265', '3', 14202495)]

Installation

requires py-tcdb (and tokyo-cabinet headers):

easy_install -UZ py-tcdb