stripGeneVersions | R Documentation |
Strip gene identifier versions
stripGeneVersions(object, ...)
## S4 method for signature 'SummarizedExperiment'
stripGeneVersions(object)
object |
Object. |
... |
Additional arguments. |
Intentionally does not strip transcript versions, if defined in the object.
To perform that action in parallel, use stripVersions
instead.
Modified object. Contains gene identifiers without version numbers.
Updated 2022-03-09.
https://www.ensembl.org/info/genome/stable_ids/index.html
data(RangedSummarizedExperiment, package = "AcidTest")
rowData <- SummarizedExperiment::rowData
## SummarizedExperiment ====
object <- RangedSummarizedExperiment
head(rowData(object)[["geneId"]])
rownames(object) <- as.character(rowData(object)[["geneId"]])
head(rownames(object))
object <- stripGeneVersions(object)
head(rowData(object)[["geneId"]])
head(rownames(object))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.