tx_variance_explained: tx_variance_explained

Description Usage Arguments Value

View source: R/model_fit_statistics.R

Description

Calculates fraction of variance in the data explained per transcript/combination of n transcripts at a locus.

Usage

1
tx_variance_explained(models, abundance, data, masks, n = 1)

Arguments

models

the matrix of transcript models

abundance

a vector of abundance values, one per model

data

a vector of count data

masks

an integer vector of positions to be masked

n

the number of model with non-zero abundance that can be used to explain variance. If fewer models available it will use all available models. Note that some models correspond to multiple transcripts due to high similarity in co-ordinates.

Value

a vector of the variance explained per model where the names indicate the models each entry corresponds to. When there are multiple models being used they are seperated by a "_" delimiter


ndukler/tuSelecter2 documentation built on Aug. 4, 2020, 1 p.m.