Opens path once and reads its genes a block at a time, as
read_genes() reads them. For an .rds, opening inflates the file once;
each block is then read in parallel from the index that pass built, so a
block costs a fraction of a read_genes() call. Memory holds one block,
plus 4 bytes per nonzero of the whole matrix while it is read.
Value
A picklerick_gene_blocks list:
nNumber of blocks.
genesList of each block's gene positions.
read(k)Block
kas a cells x genesdgCMatrix.next_block()The next block, or
NULLafter the last.
Details
Forked workers (e.g. parallel::mclapply) can share one iterator and
read different blocks with $read(k).