Skip to contents

Strip gene identifier versions

Usage

stripGeneVersions(object, ...)

# S4 method for Matrix
stripGeneVersions(object)

# S4 method for character
stripGeneVersions(object)

# S4 method for integer
stripGeneVersions(object)

# S4 method for matrix
stripGeneVersions(object)

Arguments

object

Object.

...

Additional arguments.

Value

Modified object. Contains gene identifiers without version numbers.

Details

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

Note

Updated 2022-03-09.

This method is strict, and will only strip Ensembl gene identifiers beginning with "ENS.*G".

See also

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

Examples

## Ensembl.
stripGeneVersions("ENSG00000002586.20")
#> [1] "ENSG00000002586"

## GENCODE.
stripGeneVersions("ENSG00000116288.13_10")
#> [1] "ENSG00000116288"
stripGeneVersions("ENSG00000002586.20_PAR_Y")
#> [1] "ENSG00000002586_PAR_Y"