downsample_cells: Downsample to get fewer cells from the specified cell type

Description Usage Arguments Author(s)

View source: R/downsample_cells.R

Description

Downsample to get fewer cells from the specified cell type

Usage

1
downsample_cells(keptExp, prop_cell = NULL, n_top_genes = NULL)

Arguments

keptExp

A dgCMatrix object where genes as rows and cells as columns. Output from scFlowExamples::merge_zeisel_celltypes() function.

prop_cell

A vector containing cell proportion to downsample. Should be of same length as the cell types in the dgCMatrix. Value ranges between 0-1.

n_top_genes

Number of top variable genes to downsample. If NULL all genes are returned.

Author(s)

Nurun Fancy n.fancy@imperial.ac.uk


neurogenomics/scFlowExamples documentation built on Dec. 22, 2021, 1:13 a.m.