fit_pseudotime_model: Fit the gene expression profile in pseudotime

Description Usage Arguments Value Examples

View source: R/embeddr.R

Description

This function fits the expression profile of y as a function of pseudotime using a natural cubic spline of degree three. A tobit model is used to censor values less than min_expr

Usage

1

Arguments

sce

An object of type SCESet

gene

The gene name to fit, or anything that can subset the SCE model to a single gene

...

Additional arguments to be passed to AER::tobit

Value

An object of class AER::tobit

Examples

1
2
3
4
5
library(scater)
data('sc_example_counts') ; sce <- newSCESet(countData = sc_example_counts)
sce <- embeddr(sce)
sce <- fit_pseudotime(sce)
model <- fit_pseudotime_model(sce, 1) # fit for first gene

kieranrcampbell/embeddr documentation built on May 20, 2019, 9:24 a.m.