fitGLMpd: fitGLMpd Uses a GLM to identify the set of genes used in a...

Description Usage Arguments Value

Description

fitGLMpd Uses a GLM to identify the set of genes used in a pattern for a given cell type or condition

Usage

1
fitGLMpd(object, ..., verbose = TRUE)

Arguments

verbose

Boolean. Verbose output for model fitting.

countsMatrix

matrix of gene expression counts. genes x cells / samples.

annotDF

A dataframe with annotations for each cell or sample in the gene expression dataset

model_formula_str

A string specifying the model to fit, in the format "~ var1 + var2"

projected_patterns

A matrix of projected pattern weights to use as an explanatory variable in the model fit for each gene. colnames are patterns, rownames are cells. Must have viable column names.

cores

Integer defining the number of cores to use for parallelization of model fitting across genes.

exp_family

The regression family to use (default: 'negbinomial')

clean_model

Boolean. Passed through to monocle3::fit_model

result

Return full or summarized results. Summarized results are stripped of memory-intensive models and return coefficients from extractCoefficients().

Value

Returns a list of fitted models (output similar to monocle3::fit_model)


gofflab/glmpd documentation built on April 11, 2021, 6:38 a.m.