CreateAssayObject: Create an Assay object

Description Usage Arguments Details Examples

Description

Create an Assay object from a feature (e.g. gene) expression matrix. The expected format of the input matrix is features x cells.

Usage

1
CreateAssayObject(counts, data, min.cells = 0, min.features = 0)

Arguments

counts

Unnormalized data such as raw counts or TPMs

data

Prenormalized data; if provided, do not pass counts

min.cells

Include features detected in at least this many cells. Will subset the counts matrix as well. To reintroduce excluded features, create a new object with a lower cutoff.

min.features

Include cells where at least this many features are detected.

Details

Non-unique cell or feature names are not allowed. Please make unique before calling this function.

Examples

1
2
3
4
5
6
pbmc_raw <- read.table(
  file = system.file('extdata', 'pbmc_raw.txt', package = 'Seurat3.0'),
  as.is = TRUE
)
pbmc_rna <- CreateAssayObject(counts = pbmc_raw)
pbmc_rna

atakanekiz/Seurat3.0 documentation built on May 26, 2019, 2:33 a.m.