sample_cells: Randomly sample cells

Description Usage Arguments Value

View source: R/cell_sampler.R

Description

Sample a specific numbers of cells different subgroups of cells in a DGE data.frame.

Usage

1
sample_cells(dge, sizes, groups, replace = TRUE)

Arguments

dge

A data.frame containing DGE data, with rows being genes and columns cells. The first column is assumed to provide the gene identifiers.

sizes

Number of cells that should be sampled from each group.

groups

A factor of length ncol(dge) - 1 providing group assignments for each cell in dge.

replace

Should samples be drawn with replacement?

Value

A data.frame with sampled DGE data in the same format as dge.


argschwind/dropseqr documentation built on May 23, 2019, 4:24 p.m.