View source: R/plot_marker_express.R
plot_marker_express | R Documentation |
This function plots the top n marker genes for a specified cell type based off of
the stats
table from get_mean_ratio2()
.
The gene expression is plotted as violin plot with plot_gene_express
and adds
annotations to each plot.
plot_marker_express(
sce,
stats,
cell_type,
n_genes = 4,
rank_col = "rank_ratio",
anno_col = "anno_ratio",
gene_col = "gene",
cellType_col = "cellType",
color_pal = NULL,
plot_points = FALSE,
ncol = 2
)
sce |
SummarizedExperiment-class object |
stats |
A |
cell_type |
A |
n_genes |
An |
rank_col |
The |
anno_col |
The |
gene_col |
The |
cellType_col |
The |
color_pal |
A named |
plot_points |
A logical indicating whether to plot points over the violin,
defaults to |
ncol |
= Number of columns for the facet in the final plot. Defaults to 2. |
plotExpression style violin plot for selected marker genes
Other expression plotting functions:
plot_gene_express()
,
plot_marker_express_ALL()
,
plot_marker_express_List()
#plot_marker_express(sce = sce.test, stat = marker_test, cell_type = "Astro", gene_col = "Symbol")
#plot_marker_express(sce = sce.test, stat = marker_test, cell_type = "Micro", gene_col = "Symbol", n_genes = 1, rank_col = "rank_ratio", anno_col = "anno_ratio", plot_points = TRUE)
#plot_marker_express(sce = sce.test, stat = marker_test, cell_type = "Oligo", gene_col = "Symbol", n_genes = 10, rank_col = "rank_ratio", anno_col = "anno_ratio")
#plot_marker_express(sce = sce.test, stat = marker_test, cell_type = "Excit.1", gene_col = "Symbol", n_genes = 5, rank_col = "rank_ratio", anno_col = "anno_ratio")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.