CellScope.gev.plot_mean_expression_heatmap
CellScope.gev. plot_mean_expression_heatmap (fea : np.ndarray, marker_gene_indices : list, marker_gene_name : list, cell_type : np.ndarray, save_fig : bool = False, save_path : str = None)
The plot_mean_expression_heatmap function creates a heatmap displaying the mean expression levels of marker genes
across different cell types.
It allows for the visualization of gene expression patterns and
provides an option to save the heatmap as a file for further analysis or reporting.
Parameters
fea (
np.ndarray|csr_matrix):Feature matrix for gene expression.
marker_gene_indices (
list):List of indices for marker genes.
marker_gene_name (
list):List of marker gene names.
cell_type (
np.ndarray):Array of cell type labels.
save_fig (
bool, optional, default=False):If set to True, saves the figure to the specified path.
save_path (
str, optional):File path to save the figure. Required if save_fig=True.
Return
This function does not return any values. It displays a heatmap of mean expression for marker genes across cell types.