Strip transcript identifier versions

stripGeneVersions(object, ...)

stripTranscriptVersions(object, ...)

# S4 method for character
stripGeneVersions(object)

# S4 method for character
stripTranscriptVersions(object)

# S4 method for matrix
stripGeneVersions(object)

# S4 method for matrix
stripTranscriptVersions(object)

# S4 method for Matrix
stripGeneVersions(object)

# S4 method for 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 stripVersions instead.

Note

Updated 2021-01-27.

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

See also

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

Examples

## Ensembl. stripGeneVersions("ENSG00000002586.20")
#> [1] "ENSG00000002586"
stripTranscriptVersions("ENST00000431238.7")
#> [1] "ENST00000431238"
## GENCODE. stripGeneVersions("ENSG00000002586.20_PAR_Y")
#> [1] "ENSG00000002586_PAR_Y"
stripTranscriptVersions("ENST00000431238.7_PAR_Y")
#> [1] "ENST00000431238_PAR_Y"
## WormBase. stripTranscriptVersions("cTel79B.1")
#> ! No transcript versions to modify.
#> [1] "cTel79B.1"