View source: R/plotting_functions.R
plot_top_TF_scExp | R Documentation |
Barplot of top TFs from ChEA3 TF enrichment analysis
plot_top_TF_scExp(
scExp,
group = unique(scExp$cell_cluster)[1],
set = c("Differential", "Enriched", "Depleted")[1],
type = c("Score", "nTargets", "nTargets_over_TF", "nTargets_over_genes")[1],
n_top = 25
)
scExp |
A SingleCellExperiment |
group |
A character string specifying the differential group to display the top TFs |
set |
A character string specifying the set of genes in which the TF were enriched, either 'Differential', 'Enriched' or 'Depleted'. |
type |
A character string specifying the Y axis of the plot, either the number of differential targets or the ChEA3 integrated mean score. E.g. either "Score", "nTargets", "nTargets_over_TF" for the number of target genes over the total number of genes targeted by the TF or "nTargets_over_genes" for the number of target genes over the number of genes in the gene set. |
n_top |
An integer specifying the number of top TF to display |
A bar plot of top TFs from ChEA3 TF enrichment analysis
data("scExp")
plot_top_TF_scExp(
scExp,
group = "C1",
set = "Differential",
type = "Score",
n_top = 10)
plot_top_TF_scExp(
scExp,
group = "C1",
set = "Enriched",
type = "nTargets_over_genes",
n_top = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.