Subsample {countland}R Documentation

Subsample cells to a standard number of counts by randomly sampling observations without replacement.

Description

Subsample cells to a standard number of counts by randomly sampling observations without replacement.

Usage

Subsample(C, gene_counts = NA, cell_counts = NA)

Arguments

C

countland object

gene_counts

maximum total counts for genes

cell_counts

sequencing depth for all cells, or "min" to use the minimum cell total

Value

countland object with slot subsample

Examples

gold_path <- system.file("testdata", package = "countland", mustWork = TRUE)
gold.data <- Seurat::Read10X(data.dir = gold_path)
C <- countland(gold.data)
C <- Subsample(C,gene_counts=250,cell_counts=100)

[Package countland version 0.1.2 Index]