netmap.downstream.edge_selectionΒΆ

Memory-efficient edge ranking and top-edge annotation for GRN AnnData objects.

add_top_edge_annotation_global() and add_top_edge_annotation_cluster() annotate grn_adata.var with per-cell counts of how often each edge appears in the top-N% of attributions, globally or per Leiden cluster respectively.

Functions

add_top_edge_annotation_cluster

Annotate grn_adata.var with per-cluster top-edge cell counts.

add_top_edge_annotation_global

Annotate grn_adata.var with global top-edge cell counts.

chunked_argsort

Compute np.argsort on adata.X in chunks to reduce peak memory usage.