View source: R/Seurat.Utils.Visualization.R
PlotTopGenesPerCluster | R Documentation |
Visualizes the top N differentially expressed (DE) genes for each cluster within a specified clustering resolution of a Seurat object, facilitating the exploration of gene expression patterns across clusters.
PlotTopGenesPerCluster(
obj = combined.obj,
cl_res = GetClusteringRuns()[1],
nrGenes = p$n.markers,
order.by = c("combined.score", "avg_log2FC", "p_val_adj")[1],
df_markers = obj@misc$df.markers[[paste0("res.", cl_res)]],
filt_coding_genes = TRUE,
...
)
obj |
Seurat object containing single-cell RNA-seq data and clustering information;
Default: |
cl_res |
Cluster resolution used to identify distinct clusters for analysis; Default: |
nrGenes |
Number of top DE genes to display for each cluster; Default: GetClusteringRuns()1. |
order.by |
Criteria for ranking DE genes within clusters; Default: |
df_markers |
Data frame or list of DE genes across clusters. If not provided,
attempts to retrieve from |
filt_coding_genes |
Logical indicating whether to filter out non-coding genes; Default: |
## Not run:
if (interactive()) {
PlotTopGenesPerCluster(obj = combined.obj, cl_res = 0.5, nrGenes = 10)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.