detectERCCreads: detectERCCreads

Description Arguments Value Author(s) Examples

View source: R/countFuns.R

Description

Detects the 92 ERCC reads in the rownames of the counts data.frame. ERCC reads must be named with the standard naming convention that matches the regex "^ERCC\-[0-9]*$".

Arguments

counts

data.frame; A data frame with counts data with gene names as rownames.

Value

A logical vector with length = nrow(counts) that is TRUE when the counts data.frame row contains an ERCC read. A warning is issued if all 92 ERCC reads are not detected.

Author(s)

Jason Serviss

Examples

1
2
counts <- data.frame(runif(100), row.names = c(1:8, paste0("ERCC-", 1:92)))
detectERCCreads(counts)

jasonserviss/sp.scRNAseqData documentation built on Jan. 8, 2020, 11:46 a.m.