RunWilcoxon: Run Wilcoxon tests to perform DE analysis.

View source: R/differential_expression.R

RunWilcoxonR Documentation

Run Wilcoxon tests to perform DE analysis.

Description

Use Wilcoxon tests 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 uses the CPM (counts per million) normalized expression levels as input to the Wilcoxon test. Based on https://github.com/csoneson/conquer_comparison/blob/master/scripts/apply_Wilcoxon.R

Usage

RunWilcoxon(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.