CellScope.gev.scatter_gene_expression

CellScope.gev. plot_mean_expression_heatmap (fea : np.ndarray, Y : np.ndarray, marker_gene_indices : list, marker_gene_name : list, figsize : tuple = (15, 9), subplot_size : tuple = None, save_fig : bool = False, save_path : str = None)

The scatter_gene_expression function generates scatter plots for visualizing the expression of specified marker genes in a two-dimensional space defined by Y. It supports customization of figure size, subplot layout, and saving of the resulting figure.

Parameters

  • fea (np.ndarray | csr_matrix):

    The feature matrix for gene expression.

  • Y (np.ndarray):

    2D array of coordinates for scatter plot.

  • marker_gene_indices (list):

    List of indices for marker genes to be visualized.

  • marker_gene_name (list):

    List of marker gene names corresponding to the indices.

  • figsize (tuple, optional, default=(15, 9)):

    Size of the figure.

  • subplot_size (tuple, optional):

    Number of rows and columns for subplots.

  • 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 directly displays a scatter plot of marker gene expression.