GetTopMarkers: Get Top Differential Expression Markers from DGEA Results

View source: R/Seurat.Utils.R

GetTopMarkersR Documentation

Get Top Differential Expression Markers from DGEA Results

Description

Retrieves the top N differentially expressed genes from the results of a differential gene expression analysis, such as that provided by FindAllMarkers().

Usage

GetTopMarkers(
  dfDE = df.markers,
  n = p$n.markers,
  order.by = c("combined.score", "avg_log2FC", "p_val_adj")[2]
)

Arguments

dfDE

Data frame containing differential expression analysis results. Default: df.markers.

n

Number of top markers to retrieve for each cluster. Default: p$n.markers.

order.by

Column by which to sort the markers before selection, typically prioritizing markers by significance or effect size. Default: "avg_log2FC".

See Also

FindAllMarkers, arrange, group_by

Examples

## Not run: 
if (interactive()) {
  topMarkers <- GetTopMarkers(df = df.markers, n = 3)
}

## End(Not run)


vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.