View source: R/miscFunctions.R
dedupRowNames | R Documentation |
Adds '-1', '-2', ... '-i' to multiple duplicated rownames, and in place
replace the unique rownames, store unique rownames in rowData
, or
return the unique rownames as character vecetor.
dedupRowNames(x, as.rowData = FALSE, return.list = FALSE)
x |
A matrix like or /linkS4classSingleCellExperiment object, on which
we can apply |
as.rowData |
Only applicable when |
return.list |
When set to |
By default, a matrix or /linkS4classSingleCellExperiment object
with rownames deduplicated.
When x
is a /linkS4classSingleCellExperiment and as.rowData
is set to TRUE
, will return x
with rowData
updated.
When return.list
is set to TRUE
, will return a character vector
with the deduplicated rownames.
data("scExample", package = "singleCellTK")
sce <- dedupRowNames(sce)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.