fit_count_models: Fit a gene with regression models

Description Usage Arguments Value

View source: R/fit_count_models.R

Description

Fit a gene with regression models

Usage

1
2
fit_count_models(gexpr, formula_string = NULL, nCores = NULL,
  seed = NULL, adapt_delta = 0.8, model2fit = NULL)

Arguments

gexpr

A data frame that containes UMI count (y), log_depth (exposure), and covariate values

formula_string

A regression formula to fit the non-zero-inflated counts (Note: Do not use 'offset()')

nCores

Number of cores

seed

Seed number

adapt_delta

The target average proposal acceptance probability during Stan’s adaptation period (default:0.8)

model2fit

A specific model to fit (1:P, 2:NB, 3:ZIP, 4:ZINB, NULL:All)

Value

A list of 'stanfit' returned by model(s)


churchill-lab/scRATE documentation built on Aug. 12, 2020, 2:52 p.m.