
Draw a subsample that preserves sparse regions of marker space
Source:R/embedding-prep.R
draw_subsample_rare.RdDraw a subsample that preserves sparse regions of marker space
Arguments
- gated_idx
Integer indices of gated cells.
- X
feature matrix for those cells, in the same row order
- n_take
Number of cells to draw.
- seed
Random seed. The stream is restored afterwards.
- k
neighbour rank for
density_weights()