lib5c.parsers.table module

Module for parsing table files, which function as a simple extension of .counts files to multiple replicates.

lib5c.parsers.table.load_table(filename, primermap, sep='\t', dtype=<class 'float'>)[source]

Loads a table into a counts_superdict structure.

Parameters
  • filename (str) – The table file to load.

  • primermap (primermap or pixelmap) – Defines the FFLJs or bin-bin pairs.

  • sep (str) – The separator used in the table file.

  • dtype (numpy-compatible dtype) – The dtype to use when constructing the arrays in the counts_superdict.

Returns

The loaded counts_superdict.

Return type

counts_superdict