Strip transcript identifier versions
Source:R/AllGenerics.R
, R/stripTranscriptVersions-methods.R
stripTranscriptVersions.Rd
Strip transcript identifier versions
Usage
stripTranscriptVersions(object, ...)
# S4 method for Matrix
stripTranscriptVersions(object)
# S4 method for character
stripTranscriptVersions(object)
# S4 method for integer
stripTranscriptVersions(object)
# S4 method for matrix
stripTranscriptVersions(object)
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"
.
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"