Strip transcript identifier versions
Source:R/AllGenerics.R
, R/stripTranscriptVersions-methods.R
stripTranscriptVersions.Rd
Strip transcript identifier versions
Usage
stripTranscriptVersions(object, ...)
# S4 method for SummarizedExperiment
stripTranscriptVersions(object)
Details
Intentionally does not strip gene versions, if defined in the object.
To perform that action in parallel, use stripGeneVersions
instead.
Examples
data(SummarizedExperiment_transcripts, package = "AcidTest")
rowData <- SummarizedExperiment::rowData
## SummarizedExperiment ====
object <- SummarizedExperiment_transcripts
head(rowData(object)[["txId"]])
#> [1] "ENST00000494424.1" "ENST00000496771.5" "ENST00000612152.4"
#> [4] "ENST00000371584.8" "ENST00000371588.9" "ENST00000413082.1"
rownames(object) <- as.character(rowData(object)[["txId"]])
head(rownames(object))
#> [1] "ENST00000494424.1" "ENST00000496771.5" "ENST00000612152.4"
#> [4] "ENST00000371584.8" "ENST00000371588.9" "ENST00000413082.1"
object <- stripTranscriptVersions(object)
head(rowData(object)[["txId"]])
#> [1] "ENST00000494424.1" "ENST00000496771.5" "ENST00000612152.4"
#> [4] "ENST00000371584.8" "ENST00000371588.9" "ENST00000413082.1"
head(rownames(object))
#> [1] "ENST00000494424" "ENST00000496771" "ENST00000612152" "ENST00000371584"
#> [5] "ENST00000371588" "ENST00000413082"