Description Usage Arguments Value Examples
View source: R/monocle_fitModel.R
monocle_fitModel() is the fitModel() function found in monocle 2. This function fits a vector generalized additive model (VGAM) from the VGAM package for each gene in a CellDataSet. By default, expression levels are modeled as smooth functions of the Pseudotime value of each cell. That is, expression is a function of progress through the biological process. More complicated formulae can be provided to account for additional covariates (e.g. day collected, genotype of cells, media conditions, etc).
1 2 | monocle_fitModel(cds, modelFormulaStr = "~sm.ns(Pseudotime, df=3)",
relative_expr = TRUE, cores = 1)
|
cds |
a monocle CellDataSet object |
modelFormulaStr |
model formula string specifying the model to fit for the genes |
relative_expr |
Whether to fit a model to relative or absolute expression. Only meaningful for count-based expression data. If TRUE, counts are normalized by Size_Factor prior to fitting. |
cores |
the number of processor cores to be used during fitting. |
a vglm object
1 | monocle_fitModel(dat, modelFormulaStr="~num_genes_expressed+genotype")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.