Skip to contents

Strip transcript identifier versions

Usage

stripTranscriptVersions(object, ...)

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

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

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

# S4 method for class 'matrix'
stripTranscriptVersions(object)

Arguments

object

Object.

...

Additional arguments.

Value

Modified object. Contains transcript identifiers without version numbers.

Details

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

Note

Updated 2023-11-28.

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

See also

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

Examples

## Ensembl.
stripTranscriptVersions("ENST00000431238.7")
#> [1] "ENST00000431238"

## GENCODE.
stripTranscriptVersions("ENST00000493373.5_7")
#> [1] "ENST00000493373"
stripTranscriptVersions("ENST00000431238.7_PAR_Y")
#> [1] "ENST00000431238_PAR_Y"

## WormBase (no modification).
stripTranscriptVersions("cTel79B.1")
#> ! No transcript versions to modify.
#> [1] "cTel79B.1"