Skip to contents

Strip exon identifier versions

Usage

stripExonVersions(object, ...)

# S4 method for class 'Matrix'
stripExonVersions(object)

# S4 method for class 'character'
stripExonVersions(object)

# S4 method for class 'integer'
stripExonVersions(object)

# S4 method for class 'matrix'
stripExonVersions(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 2024-01-02.

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

See also

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

Examples

## Ensembl.
stripExonVersions("ENSG00000002586.20")
#> ! No exon versions to modify.
#> [1] "ENSG00000002586.20"

## GENCODE.
stripExonVersions("ENSG00000116288.13_10")
#> ! No exon versions to modify.
#> [1] "ENSG00000116288.13_10"
stripExonVersions("ENSG00000002586.20_PAR_Y")
#> ! No exon versions to modify.
#> [1] "ENSG00000002586.20_PAR_Y"