GetTopMarkers | R Documentation |
Retrieves the top N differentially expressed genes from the results of a differential
gene expression analysis, such as that provided by FindAllMarkers()
.
GetTopMarkers(
dfDE = df.markers,
n = p$n.markers,
order.by = c("combined.score", "avg_log2FC", "p_val_adj")[2]
)
dfDE |
Data frame containing differential expression analysis results. Default: |
n |
Number of top markers to retrieve for each cluster. Default: |
order.by |
Column by which to sort the markers before selection, typically prioritizing
markers by significance or effect size. Default: |
FindAllMarkers
, arrange
, group_by
## Not run:
if (interactive()) {
topMarkers <- GetTopMarkers(df = df.markers, n = 3)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.