Description Arguments Value Author(s) Examples
Adds the prefix "s." to colnames of columns that contain singlets and "m." to columns that contain multiplets.
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. |
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.
Jason Serviss
1 2 | counts <- data.frame(a = runif(26), b = runif(26), c = runif(26))
labelSingletsAndMultiplets(counts, ids = c("a", "b"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.