thor.pl.multi_molecules
- thor.pl.multi_molecules(vars_list, vars_expression_array, cells_pixels, image_size=None, global_norm=True, **multiple_kwds)[source]
Color the cells or nuclei with multiple variables, gene or any observable (gene expression array as input).
- Parameters:
vars_list (list) – List of variable names to color the cells or nuclei.
vars_expression_array (numpy array) – Array of shape (n_cells, n_variables) containing the expression values of the variables.
image_size (tuple) – Tuple (height, width) representing the size of the image.
cells_pixels (list of numpy arrays) – List of numpy arrays representing the pixels of each cell or nucleus.
global_norm (bool, optional) – If True, normalize the expression values of each variable across all cells. Default is True.
**multiple_kwds (dict, optional) – Additional keyword arguments for the multiple function.
- Returns:
If return_fig is False and show is False, the function returns the Axes object. If return_fig is True, the function returns the Figure object. If show is True, the function displays the plot and returns None.
- Return type:
matplotlib.axes._subplots.AxesSubplot or matplotlib.figure.Figure, optional