pl_matrixplot
Generate heatmaps to visualize mean expression values across groups using var_names, enabling clear comparison and analysis of single-cell RNA sequencing data with customizable color maps, scales, and grouping options.
Instructions
matrixplot, Create a heatmap of the mean expression values per group of each var_names.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cmap | No | String denoting matplotlib color map. | viridis |
color_map | No | Color map to use for continuous variables. | |
colorbar_title | No | Title for the color bar. New line character (\n) can be used. | Mean expression in group |
dendrogram | No | If True or a valid dendrogram key, a dendrogram based on the hierarchical clustering between the groupby categories is added. | |
figsize | No | Figure size. Format is (width, height). | |
gene_symbols | No | Column name in .var DataFrame that stores gene symbols. | |
groupby | Yes | The key of the observation grouping to consider. | |
layer | No | Name of the AnnData object layer that wants to be plotted. | |
legend_fontoutline | No | Line width of the legend font outline in pt. | |
legend_fontsize | No | Numeric size in pt or string describing the size. | |
legend_fontweight | No | Legend font weight. A numeric value in range 0-1000 or a string. | bold |
legend_loc | No | Location of legend, either 'on data', 'right margin' or a valid keyword for the loc parameter. | right margin |
log | No | Plot on logarithmic axis. | |
num_categories | No | Only used if groupby observation is not categorical. This value determines the number of groups into which the groupby observation should be subdivided. | |
palette | No | Colors to use for plotting categorical annotation groups. | |
standard_scale | No | Whether or not to standardize the given dimension between 0 and 1. | |
swap_axes | No | By default, the x axis contains var_names and the y axis the groupby categories. By setting swap_axes then x are the groupby categories and y the var_names. | |
use_raw | No | Use raw attribute of adata if present. | |
var_group_labels | No | Labels for each of the var_group_positions that want to be highlighted. | |
var_group_positions | No | Use this parameter to highlight groups of var_names with brackets or color blocks between the given start and end positions. | |
var_group_rotation | No | Label rotation degrees. By default, labels larger than 4 characters are rotated 90 degrees. | |
var_names | No | var_names should be a valid subset of adata.var_names or a mapping where the key is used as label to group the values. | |
vcenter | No | The value representing the center of the color scale. | |
vmax | No | The value representing the upper limit of the color scale. | |
vmin | No | The value representing the lower limit of the color scale. |