wobbegong.client package¶
Submodules¶
wobbegong.client.client module¶
wobbegong.client.readers module¶
- class wobbegong.client.readers.WobbegongBase(accessor, summary=None)[source]¶
Bases:
objectBase class for Wobbegong objects.
- class wobbegong.client.readers.WobbegongDataFrame(accessor, summary=None)[source]¶
Bases:
WobbegongBaseWobbegongDataFrame class.
- __annotations__ = {}¶
- __init__(accessor, summary=None)[source]¶
Initialize WobbegongDataFrame.
- Parameters:
accessor (
Accessor) – Helper to access data.summary (
dict) – Summary dictionary.
- class wobbegong.client.readers.WobbegongMatrix(accessor, summary=None)[source]¶
Bases:
WobbegongBaseWobbegongMatrix class.
- __annotations__ = {}¶
- __init__(accessor, summary=None)[source]¶
Initialize WobbegongMatrix.
- Parameters:
accessor (
Accessor) – Helper to access data.summary (
dict) – Summary dictionary.
- get_rows(row_indices, num_threads=None)[source]¶
Retrieves multiple rows efficiently using mmap and parallel decompression.
Note: Currently only supports local files.
- class wobbegong.client.readers.WobbegongSingleCellExperiment(accessor, summary=None)[source]¶
Bases:
WobbegongSummarizedExperimentWobbegongSingleCellExperiment class.
- __annotations__ = {}¶
- class wobbegong.client.readers.WobbegongSummarizedExperiment(accessor, summary=None)[source]¶
Bases:
WobbegongBaseWobbegongSummarizedExperiment class.
- __annotations__ = {}¶
- __init__(accessor, summary=None)[source]¶
Initialize WobbegongSummarizedExperiment.
- Parameters:
accessor (
Accessor) – Helper to access data.summary (
dict) – Summary dictionary.
- get_assay(index_or_name)[source]¶
Get assay by index or name.
wobbegong.client.utils module¶
- wobbegong.client.utils.read_boolean(path, start, length, compression='zlib')[source]¶
Read boolean data from a file.
- wobbegong.client.utils.read_double(path, start, length, compression='zlib')[source]¶
Read double (float) data from a file.
- wobbegong.client.utils.read_integer(path, start, length, compression='zlib')[source]¶
Read integer data from a file.
- wobbegong.client.utils.read_sparse_row_values(path, start, vlen, ilen, reader_func, compression='zlib')[source]¶
Read sparse row values.
- Parameters:
path (
str) – Path to the file.start (
int) – Start offset.vlen (
int) – Length of values in bytes.ilen (
int) – Length of indices in bytes.reader_func (
callable) – Function to read the values (integer, double, etc.).compression (
Literal['lz4','zlib']) – Compression method to use, either ‘lz4’ or ‘zlib’ (default).
- Returns:
Tuple of (values, indices).
- wobbegong.client.utils.read_string(path, start, length, compression='zlib')[source]¶
Read string data from a file.