View source: R/sanitizeTximportIdentifiers.R
sanitizeTximportIdentifiers | R Documentation |
Sanitize tximport identifiers
sanitizeTximportIdentifiers(txi)
txi |
|
Fix transcript identifiers that contain "|"
delimters. This can occur when
importing GENCODE-aligned data from kallisto, and BAM files from salmon.
No modification occurs for objects not containing these types of identifier.
list
.
tximport list with corrected transcript identifiers.
Updated 2023-07-25.
suppressPackageStartupMessages({
library(tximport)
library(tximportData)
})
dir <- system.file("extdata", package = "tximportData")
samples <- read.table(file.path(dir, "samples.txt"), header = TRUE)
files <- file.path(dir, "salmon", samples[["run"]], "quant.sf.gz")
names(files) <- paste0("sample", seq(from = 1L, to = length(files)))
txi <- tximport(files, type = "salmon", txIn = TRUE, txOut = TRUE)
txi <- sanitizeTximportIdentifiers(txi)
print(head(rownames(txi[["counts"]])))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.