gendas.tabix package

Submodules

gendas.tabix.constants module

gendas.tabix.index module

gendas.tabix.reader module

class gendas.tabix.reader.BlockReader(filename, cache_size=1000)

Class to randomly decompress a single block in a tabix block-gzipped file

close()
header()

Returns: The first line of the file

read(block)

Uncompress a block and return the contents uncompressed

Parameters:block – Block number
Returns:A list with all the text lines in this block
class gendas.tabix.reader.LRUCache(capacity)

A simple in-memory cache implementation

get(key)
has_key(key)
set(key, value)

Module contents