readSalmonResults: Read Salmon results from a batch of jobs

Description Usage Arguments Details Value Examples

View source: R/salmon-wrapper.R

Description

After generating transcript/feature abundance results using Salmon for a batch of samples, read these abundance values into an SCESet object.

Usage

1
2
readSalmonResults(Salmon_log = NULL, samples = NULL, directories = NULL,
  logExprsOffset = 1, verbose = TRUE)

Arguments

Salmon_log

list, generated by runSalmon. If provided, then samples and directories arguments are ignored.

samples

character vector providing a set of sample names to use for the abundance results.

directories

character vector providing a set of directories containing Salmon abundance results to be read in.

logExprsOffset

numeric scalar, providing the offset used when doing log2-transformations of expression data to avoid trying to take logs of zero. Default offset value is 1.

verbose

logical, should function provide output about progress?

Details

This function expects to find only one set of Salmon abundance results per directory; multiple adundance results in a given directory will be problematic.

Value

an SCESet object

Examples

1
2
3
4
5
6
7
## Not run: 
## Define output directories in a vector called here "Salmon_dirs"
## and sample names as "Salmon_samples"
sceset <- readSalmonResults(samples = Salmon_samples, 
directories = Salmon_dirs)

## End(Not run)

dynverse/scaterlegacy documentation built on Feb. 17, 2020, 5:07 a.m.