bioalpha.h5ad_map.H5ADMap.chunked_X
- H5ADMap.chunked_X(axis: int | None = None, shuffle: bool = False, chunk_size: int | None = None, batch_size: int | None = None, random_state: int | None = None)
Return an iterator over the rows of the data matrix
X.- Parameters:
axis (Optional[
0|1], default =None) – The axis will be sliced. Default is major axis of X (E.gcsc_matrixwill be sliced withaxis=1)shuffle (
bool, default =False) – whether shuffling the chunk or not.chunk_size (Optional[
int], default =None) – Row size of a single chunk.batch_size (Optional[
int], default =None) – The max number of non zero can be sliced. In compatiple withchunk_size.random_state (Optional[
int], default =None) – Only work withshuffle=True. The seed for reproducing shuffle.