Strip transcript versions

stripTranscriptVersions(object, ...)

# S4 method for character
stripTranscriptVersions(object)

# S4 method for matrix
stripTranscriptVersions(object)

# S4 method for sparseMatrix
stripTranscriptVersions(object)

# S4 method for SummarizedExperiment
stripTranscriptVersions(object)

Arguments

object

Object.

...

Additional arguments.

Value

Modified object. Contains transcript identifiers without version numbers.

Note

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

Examples

## Ensembl (modify; contains versions) stripTranscriptVersions(c( "ENSMUST00000000001.1", "ENSMUST00000000001-1", "ENSMUST00000000001_1" ))
#> [1] "ENSMUST00000000001" "ENSMUST00000000001" "ENSMUST00000000001"
## WormBase (keep; doesn't contain versions) stripTranscriptVersions("cTel79B.1")
#> [1] "cTel79B.1"