locus_variance_explained: locus_variance_explained

Description Usage Arguments Value

View source: R/model_fit_statistics.R

Description

Calculates fraction of variance in the data explained jointly by all models at a locus

Usage

1
locus_variance_explained(models, abundance, data, masks)

Arguments

models

the matrix of transcript models

abundance

a matrix or vector of abundance values. When it is a matrix each column is a set of abundance values for all models at that loci. This is a more efficient way to calculate the variance explained at the locus for multiple different combinations of abundance values. If it is a vector it must have length equal to the number of models at the loci.

data

a vector of count data

masks

an integer vector of positions to be masked

Value

a vector of the total variance explained at the locus by all models with one entry corresponding to each column of the aundance matrix or a single value if abundance is a vector


CshlSiepelLab/DENR documentation built on July 16, 2021, 10:42 p.m.