differentialExpression.Rd
Finds markers (differentially expressed genes) for cell clusters using MAST: a flexible statistical framework for assessing transcriptional changes and characterizing heterogeneity in single-cell RNA sequencing data (Finak et al, Genome Biology, 2015)
differentialExpression(counts, celda.mod, c1, c2 = NULL, only.pos = FALSE, log2fc.threshold = NULL, fdr.threshold = 1)
counts | Integer matrix. Rows represent features and columns represent cells. This matrix should be the same as the one used to generate `celda.mod`. |
---|---|
celda.mod | Celda model. Options are "celda_C" or "celda_CG". |
c1 | Integer vector. Cell populations to include in group 1 for the differential expression analysis. |
c2 | Integer vector. Cell populations to include in group 2 for the differential expression analysis. If NULL, everything in c1 is compared to all other clusters. Default NULL. |
only.pos | Logical. Whether to only return markers with positive log2fc. Default FALSE. |
log2fc.threshold | Numeric. A number greater than 0 that specifies the absolute log2 fold change threshold. Only features with absolute value above this threshold will be returned. |
fdr.threshold | Numeric. A number between 0 and 1 that specifies the false discovery rate (FDR) threshold. Only features below this threshold will be returned. |
Data frame containing a ranked list (based on the absolute value of log2fc) of putative markers, and associated statistics (p-value, log2fc and FDR).
celda.sim = simulateCells("celda_CG") celda.mod = celda_CG(celda.sim$counts, K=celda.sim$K, L=celda.sim$L, nchains=1, max.iter=1)#>#>#>#>#>#>#>#>#>#>#>#>#>cluster.diffexp.res = differentialExpression(celda.sim$counts, celda.mod, c1=c(1,2))#>#>#>#>#>#>#> #>#>#>#>#>#>#>#>#>#>#> #>