R6 class representing data from an RNA-Seq or Ribo-Seq experiment
seqlist.Rd
A `seqlist` has data from the experiment and information about the experimental design and model specification.
Public fields
counts
Numeric matrix of output value, where rows represent genes or tags and columns represent samples
tags
A dataframe of tag metadata, matching the row-order of `counts`
fixed_design
Fixed effects design matrix for a single group
random_design
Random effects design matrix for a single group
mixture_probabilities
Vector giving the prior probabilities that each regression parameter is drawn from the 0-component of the mixture prior
standata
List of data to be passed to Stan
fit
Fit object returned by `run_model()`
Methods
Method new()
Create a new `seqlist`
Usage
seqlist$new(
counts = NULL,
tags = NULL,
fixed_design = NULL,
random_design = NULL,
mixture_probabilities = NULL
)
Method filter()
Method set_standata()
Method run_model()
Usage
seqlist$run_model(
method = c("sample", "vb", "pathfinder"),
run_estimation = FALSE,
use_multithread = FALSE,
grainsize = NULL,
modify_in_place = TRUE,
...
)
Arguments
method
the sampling algorithm to use
run_estimation
include the likelihood in the objective?
use_multithread
use the multithread-enabled model?
grainsize
grainsize for multithread
modify_in_place
add the fit to the `seqlist` object? otherwise return it
...
arguments passed to the `cmdstanr` function identified by `method`