Plot a heatmap of marker genes fold change over metacells given an McPeaks object
Source:R/plot-markers.R
plot_rna_markers.RdThis is a thin wrapper around plot_rna_markers_mat which computes the marker matrix and uses the correct metadata fields in the McPeaks object.
Arguments
- atac_mc
a McPeaks object with RNA expression (using
add_mc_rna)- n_genes
maximal number of genes to return. Default: 100
- force_cell_type
do not split cell types when ordering the metacells. Default: TRUE
- ...
Arguments passed on to
plot_rna_markers_matmata heatmap of marker genes fold change over metacells (e.g. output of
get_rna_marker_matrix)metacell_typesa data frame with a field called "metacell" and a field called "cell_type" (optional)
cell_type_colorsa data frame with a field called "cell_type" and a field called "color" (optional)
low_colora color for low fold change
high_colora color for high fold change
mid_colora color for mid fold change
midpointmidpoint for the color scale (default: 0)
min_lfpminimum log2 fold change (default: -3). Value below this will be set to
min_lfp.max_lfpmaximum log2 fold change (default: 3). Value above this will be set to
max_lfp.plot_legendTRUE to plot a legend of the cell types (default: TRUE)
top_cell_type_baradd a cell type annotation also at the top of the heatmap (default: TRUE)
gene_colorsa named list with a color for each marker gene (optional)
col_namesshow column names (metacells)
interleaveshow the gene names (rows) interleaved
annotation_titletitle for cell type annotation. Default: "Cell type"
top_annotation_titletitle for top cell type annotation. Default: "Cell type"
titletitle for the plot
row_namesThe names that will be used as the Y-axis labels. A NULL (the defualt) indicates that the original matrix rownames are used. A FALSE indicates that no Y-axis labels should be displayed.
plot_rightWhether to put the Y-axis labels at the right side of the heatmap (as well as at the left hand side)
col_names_orientOrientation of the X-axis label