renameRows | R Documentation |
The most common usecase for this is when you have a SummarizedExperiment, DGEList, matrix, etc. that is "rownamed" by some gene idnetifiers (ensembl, entrez, etc) that you want to "easily" convert to be rownamed by symbols. And perhaps the most common use-case for this, again, would be able to easily change rownames of a heatmap to symbols.
renameRows(x, xref, duplicate.policy = "original", ...)
x |
an object to whose rows need renaming |
xref |
an object to help with the renaming.
|
duplicate.policy |
The policy used to deal with duplicates in the
renamed values. If Multiple elements in the source can be renamed to
the same elements in the target (think of microarray probes to gene
symbols), what to do? By deafult ( |
... |
pass through variable down to default method |
The rownames that can't successfully remapped will keep their old names. This function should also guarantee that the rows of the incoming matrix are the same as the outgoing one.
An updated version of x
with freshly minted rownames.
eset <- exampleExpressionSet(do.voom = FALSE)
ess <- renameRows(eset, "symbol")
vm <- exampleExpressionSet(do.voom = TRUE)
vms <- renameRows(vm, "symbol")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.