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 = "MeanRatio.rank",
anno_col = "MeanRatio.anno",
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 |
ncol |
An |
A ggplot2
object created with plot_gene_express()
. It is
a scater::plotExpression()
style violin plot for selected marker genes.
Other expression plotting functions:
plot_gene_express()
,
plot_marker_express_ALL()
,
plot_marker_express_List()
## Download the processed study data from
## <https://github.com/LieberInstitute/Human_DLPFC_Deconvolution>.
if (!exists("sce_DLPFC_example")) sce_DLPFC_example <- fetch_deconvo_data("sce_DLPFC_example")
## load example marker stats
data("marker_test")
## Plot the top markers for Astrocytes
plot_marker_express(
sce = sce_DLPFC_example,
stat = marker_test,
cellType_col = "cellType_broad_hc",
cell_type = "Astro",
gene_col = "gene"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.