fit_splines: Fit splines to each gene of data matrix, used by...

Description Usage Arguments Details Value

View source: R/splines.R

Description

Fit splines to each gene of data matrix, used by DE_timecourse

Usage

1
fit_splines(design_matrix, data, weights = NULL)

Arguments

design_matrix

design matrix (containing evaluated basis matrix, but potentially other variables) to fit

data

a matrix of data to fix splines to

weights

A matrix of weights, of the same dimension as data.

Details

Needed to allow for fitting weights, in which case for loop over every row/gene. Otherwise, just a call to lm.fit.

Value

matrix of the coefficients for each basis function, each row of the matrix containing the coefficients for the corresponding gene in data.


NelleV/moanin documentation built on July 28, 2021, 7:34 p.m.