labelSingletsAndMultiplets: labelSingletsAndMultiplets

Description Arguments Value Author(s) Examples

View source: R/countFuns.R

Description

Adds the prefix "s." to colnames of columns that contain singlets and "m." to columns that contain multiplets.

Arguments

data

data.frame or character; A data frame with sample IDs as colnames or a vector of sample IDs.

ids

character; a character vector of regex statments used to indicate colnames of columns that contain SINGLETS.

Value

If data is of class data.frame colnames are modified in place with the appropriate prefix attatched. If data is of class character, the modified character vector is returned. Throws a warning if no singlets are detected.

Author(s)

Jason Serviss

Examples

1
2
counts <- data.frame(a = runif(26), b = runif(26), c = runif(26))
labelSingletsAndMultiplets(counts, ids = c("a", "b"))

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