GetTopMarkersDF | R Documentation |
Retrieves a data frame of the top N differentially expressed genes from differential gene expression analysis results, offering an option to exclude certain genes based on patterns.
GetTopMarkersDF(
dfDE = df.markers,
n = p$n.markers,
order.by = c("avg_log2FC", "p_val_adj")[1],
exclude = c("^A[CFLP][0-9]{6}", "^Z[0-9]{5}", "^LINC0[0-9]{4}", "^C[1-9]+orf[1-9]+",
"[-|\\.]AS[1-9]*$", "[-|\\.]DT[1-9]*$", "^MIR[1-9]", "^SNHG[1-9]")
)
dfDE |
Data frame containing the results of differential gene expression analysis
(e.g., output from |
n |
Number of top markers to retrieve per cluster. Default: |
order.by |
Priority column for sorting markers before selection, such as |
exclude |
Vector of regex patterns to exclude genes from the top markers list;
Default: |
FindAllMarkers
, arrange
,
filter
, group_by
## Not run:
if (interactive()) {
topMarkersDF <- GetTopMarkersDF(dfDE = 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.