check-scalar-isTximport | R Documentation |
Does the input contain a tximport list?
isTximport(x)
x |
Object. |
TRUE
on success;
FALSE
on failure, with cause set.
Updated 2023-07-21.
tximport::tximport
.
## TRUE ====
if (allAreInstalled(c("tximport", "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)))
object <- tximport::tximport(
files = files,
type = "salmon",
txIn = TRUE,
txOut = TRUE
)
isTximport(object)
}
## FALSE ====
object <- list()
isTximport(object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.