plot an rna marker heatmap (right) together with an heatmap of fold change of ATAC peaks that
are the most correlated to each marker gene (left, using get_genes_atac_fp).
Usage
plot_atac_rna_markers(
atac_mc,
n_genes = 100,
force_cell_type = TRUE,
plot_legend = TRUE,
row_names = FALSE,
...
)Arguments
- atac_mc
a McPeaks/McTracks 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
- plot_legend
TRUE to plot a legend of the cell types (default: TRUE)
- row_names
show the row names of the heatmaps. Note that the space each plot takes might become uneven due to genes / peaks with longer names.
- ...
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.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
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