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/tuSelecter2 documentation built on July 18, 2021, 5:09 p.m.