Get salmon counts via tximport.
Arguments
- x
Path to
quant.sf
orquant.genes.sf
file with abundances. See tximport::tximport.- tx2gene
data.frame with tx_name and gene_id columns. See tximport::tximport.
Examples
x <- system.file("rawdata/test_data/dragen/TEST.quant.sf", package = "RNAsum")
tx2gene <- NULL
(sc <- salmon_counts(x, tx2gene)) # NULL since no tx2gene specified
#> NULL