View source: R/plot_marker_express_ALL.R
plot_marker_express_ALL | R Documentation |
This function plots the top n marker genes for a all cell types based off of
the stats
table from get_mean_ratio()
in a multi-page PDF file.
The gene expression is plotted as violin plot with plot_gene_express()
and
adds annotations to each plot.
plot_marker_express_ALL(
sce,
stats,
pdf_fn = NULL,
n_genes = 10,
rank_col = "MeanRatio.rank",
anno_col = "MeanRatio.anno",
gene_col = "gene",
cellType_col = "cellType",
color_pal = NULL,
plot_points = FALSE
)
sce |
SummarizedExperiment-class object |
stats |
A |
pdf_fn |
A |
n_genes |
An |
rank_col |
The |
anno_col |
The |
gene_col |
The |
cellType_col |
The |
color_pal |
A named |
plot_points |
A |
A PDF file with violin plots for the expression of top marker genes for all cell types.
Other expression plotting functions:
plot_gene_express()
,
plot_marker_express()
,
plot_marker_express_List()
#' ## Fetch sce example data
if (!exists("sce_DLPFC_example")) sce_DLPFC_example <- fetch_deconvo_data("sce_DLPFC_example")
## load example marker stats
data("marker_test")
# Plot marker gene expression to PDF, one page per cell type in stats
pdf_file <- tempfile("test_marker_expression_ALL", fileext = ".pdf")
plot_marker_express_ALL(
sce_DLPFC_example,
cellType_col = "cellType_broad_hc",
stat = marker_test,
pdf_fn = pdf_file
)
if (interactive()) browseURL(pdf_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.