fit_null_model: Fit the null pseudotime model

Description Usage Arguments Value Examples

View source: R/embeddr.R

Description

This function fits the null expression profile in y (ie y ~ 1). A tobit model is used to censor values less than min_expr

Usage

1
fit_null_model(sce, gene)

Arguments

sce

The SCESet object

gene

The gene name to fit

Value

An object returned by 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_null_model(sce, 1) # fit for first gene

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