getTrace: Obtain a trace of inferential replicates for a sample

View source: R/helper.R

getTraceR Documentation

Obtain a trace of inferential replicates for a sample

Description

Simple helper function to obtain a trace (e.g. MCMC trace) of the ordered inferential replicates for one samples. Supports either multiple features, idx, or multiple samples, samp_idx (not both). Returns a tidy data.frame for easy plotting.

Usage

getTrace(y, idx, samp_idx)

Arguments

y

a SummarizedExperiment with inferential replicates as assays infRep1 etc.

idx

the names or row numbers of the gene or transcript to plot

samp_idx

the names or column numbers of the samples to plot

Value

a data.frame with the counts along the interential replicates, possible with additional columns specifying feature or sample

Examples


y <- makeSimSwishData()
getTrace(y, "gene-1", "s1")


mikelove/fishpond documentation built on Aug. 29, 2023, 2:45 p.m.