Skip to content

Files

Latest commit

ed2a968 · Apr 7, 2011

History

History

fileindex

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