getFitsMean: Get mean model fits

Description Usage Arguments Value Author(s) Examples

Description

Return mean model fits per gene and cell as matrix for chosen model.

Usage

1
getFitsMean(lsMuModel, vecGeneIDs = NULL)

Arguments

lsMuModel

(list) Object containing description of gene-wise mean parameter models.

vecGeneIDs

(vector of strings) Gene IDs for which mean model fits are to be extracted.

Value

(numeric matrix genes x cells) Mean parameter fits.

Author(s)

David Sebastian Fischer

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
lsSimulatedData <- simulateContinuousDataSet(
    scaNCells = 20,
    scaNConst = 2,
    scaNLin = 2,
    scaNImp = 2,
    scaMumax = 100,
    scaSDMuAmplitude = 3,
    vecNormConstExternal=NULL,
    vecDispExternal=rep(20, 6),
    vecGeneWiseDropoutRates = rep(0.1, 6))
objLP <- runLineagePulse(
    counts = lsSimulatedData$counts,
    dfAnnotation = lsSimulatedData$annot,
    strMuModel = "impulse")
# Get mean parameter fits on alternative model:
# Use H1 model fits.
vecMeanFits <- getFitsMean(
     lsMuModel = lsMuModelH1(objLP),
     vecGeneIDs = rownames(lsSimulatedData$counts)[1])
#plot(lsSimulatedData$annot$continuous, vecMeanFits)     

YosefLab/LineagePulse documentation built on May 6, 2019, 2:19 p.m.