response
Partial (chunked) reads of backed anndata matrices X
This reads groups of cells at a time in a backend object. It only supports CSR format, since cell-level reading is much more efficient in row-oriented tables.
iter_response_chunks(adata, chunk_size=None)
(start, stop, read_response_rows(adata, start, stop)) across chunks.
This generator provides indexing information and the actual materialized chunks associated with a backed anndata object. If chunk size is not provided, defaults to 20000.
Source code in scdesigner/src/scdesigner/data/response.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | |
read_response_rows(adata, start, stop)
Read rows [start:stop] of adata.X
This only applies to CSR-oriented data. We read only views and never materialize the entire anndata object.
Source code in scdesigner/src/scdesigner/data/response.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |