netmap.downstream.edge_selection.chunked_argsort

netmap.downstream.edge_selection.chunked_argsort(unsadata, layer_name='sorted', chunk_size=500, dtype=None)

Computes np.argsort on adata.X in chunks to save memory.

Parameters:

adataAnnData

The AnnData object to process.

layer_namestr

The name of the layer where results will be stored.

chunk_sizeint

Number of rows (cells) to process per iteration.

dtypenp.dtype

The integer type for the output. If None, it will automatically choose uint16 or uint32 based on the number of genes.