stripGeneVersions: Strip gene identifier versions

stripGeneVersionsR Documentation

Strip gene identifier versions

Description

Strip gene identifier versions

Usage

stripGeneVersions(object, ...)

## S4 method for signature 'SummarizedExperiment'
stripGeneVersions(object)

Arguments

object

Object.

...

Additional arguments.

Details

Intentionally does not strip transcript versions, if defined in the object. To perform that action in parallel, use stripVersions instead.

Value

Modified object. Contains gene identifiers without version numbers.

Note

Updated 2022-03-09.

See Also

  • https://www.ensembl.org/info/genome/stable_ids/index.html

Examples

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))

acidgenomics/r-acidexperiment documentation built on Jan. 17, 2024, 7:56 p.m.