fitSigmoidGene: Fit a sigmoidal model to a single gene

Description Usage Arguments Value Author(s) See Also

View source: R/srcImpulseDE2_fitSigmoid.R

Description

[Model fitting function hierarchy: 2 out of 3] This secondary fitting wrapper calls the optimisation wrappers for the individual fitting operations to be performed on the observations of this gene. Structure of this function:

Usage

1
2
fitSigmoidGene(vecCounts, scaDisp, vecSizeFactors, vecTimepointsUnique,
  vecidxTimepoint, lsvecidxBatch, MAXIT = 1000)

Arguments

vecCounts

(numeric vector number of samples) Read count data.

scaDisp

(scalar) Gene-wise negative binomial dispersion hyper-parameter.

vecSizeFactors

(numeric vector number of samples) Model scaling factors for each sample which take sequencing depth into account (size factors).

vecTimepointsUnique

(numeric vector length number of unique timepoints) Vector of unique time coordinates observed in this condition.

vecidxTimepoint

(idx vector length number of samples) Index of the time coordinates of each sample (reference is vecTimepointsUnique).

lsvecidxBatch

(idx list length number of confounding variables) List of vectors. One vector per confounding variable. Each vector has one entry per sample with the index of the batch ID within the given confounding variable of the given sample. Reference is the list of unique batch ids for each confounding variable.

MAXIT

(scalar) [Default 1000] Maximum number of BFGS iterations for model fitting with optim.

Value

(list) List of sigmoidal fit parameters and results.

Author(s)

David Sebastian Fischer

See Also

Called by fitSigmoidModels to fit sigmoidal model to samples of one condition and one gene. Calls sigmoidal parameter initialisation function estimateSigmoidParam and optimisation wrapper fitSigmoidModel.


ImpulseDE2 documentation built on April 28, 2020, 9:19 p.m.