RunMAST: Run MAST to perform DE analysis.

View source: R/differential_expression.R

RunMASTR Documentation

Run MAST to perform DE analysis.

Description

Run MAST to assign a p-value to each feature for the null hypothesis that this feature is not significantly differently expressed in the cells of a given cluster between two levels of a condition. This function gives MAST the CPM (counts per million) normalized expression level, and includes cellular detection rate as a covariate. Based on https://github.com/csoneson/conquer_comparison/blob/master/scripts/apply_MASTcpmDetRate.R

Usage

RunMAST(seurat, cluster, grouping.var)

Arguments

seurat

A seurat object.

cluster

The number of a cluster to perform DE analysis on

grouping.var

The name of the metadata variable used to group the samples into two groups to compare.

Value

A data.frame with row names as feature names, and the columns p and fold.change.

Examples

de.results <- RunMAST(seurat, 0, 'challenge_status')

WarrenLab/single-cell documentation built on June 10, 2022, 1:50 a.m.