Skip to contents

Get kallisto counts via tximport.

Usage

kallisto_counts(x, tx2gene = NULL)

Arguments

x

Path to abundance.tsv file with abundances. See tximport::tximport.

tx2gene

data.frame with tx_name and gene_id columns. See tximport::tximport.

Value

Tibble with the counts per gene transcript, or NULL if any of the input params are NULL.

Examples

x <- system.file("rawdata/test_data/quant/abundance.tsv", package = "RNAsum")
tx2gene <- NULL
(kc <- kallisto_counts(x, tx2gene)) # NULL since no tx2gene specified
#> NULL