predictSmooth {tradeSeq}R Documentation

predictSmooth

Description

Get smoothers estimated by tradeSeq along a grid. This function does not return fitted values but rather the predicted mean smoother, for a user-defined grid of points.

Usage

predictSmooth(models, ...)

## S4 method for signature 'SingleCellExperiment'
predictSmooth(models, gene, nPoints = 100)

## S4 method for signature 'list'
predictSmooth(models, gene, nPoints = 100)

Arguments

models

Either the SingleCellExperiment object obtained after running fitGAM, or the specific GAM model for the corresponding gene, if working with the list output of tradeSeq.

...

parameters including:

gene

Either a vector of gene names or an integer vector, corresponding to the row(s) of the gene(s).

nPoints

The number of points used to create the grid along the smoother for each lineage. Defaults to 100.

Value

A matrix with estimated averages.

Examples

data(gamList, package = "tradeSeq")
predictSmooth(models = gamList, gene = 1)

[Package tradeSeq version 1.2.01 Index]