yomix.plotting.figure

This module provides tools for creating and customizing the main figure for data visualizations, including handling embeddings and plot sizing.

Functions

main_figure(adata, embedding_key, width=900, height=600, title='')

Creates the main figure for visualizing data, typically using embeddings from the provided AnnData object.

Parameters:
  • adata (AnnData) – The AnnData object containing the data, including embeddings and other information.

  • embedding_key (str) – The key in adata.obsm that contains the embedding (e.g., ‘X_pca’, ‘X_umap’).

  • width (int, optional) – The width of the figure in pixels (default is 900).

  • height (int, optional) – The height of the figure in pixels (default is 600).

  • title (str, optional) – The title of the figure (default is an empty string).

Returns:

A Bokeh figure.Figure object representing the main visualization.

Return type:

Bokeh.plotting.figure.Figure