locus_variance_explained: locus_variance_explained

View source: R/model_fit_statistics.R

locus_variance_explainedR Documentation

locus_variance_explained

Description

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

Usage

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 June 2, 2025, 7:09 a.m.