omicverse.bulk2single.bulk2single_plot_cellprop

omicverse.bulk2single.bulk2single_plot_cellprop(generate_single_data, celltype_key, figsize=(4, 4))[source]

Plot cell-type proportions in generated single-cell data.

Visualizes the distribution of cell types in data generated by bulk2single analysis as a bar plot with cell counts per type.

Parameters:
  • generate_single_data (anndata.AnnData) – Generated single-cell AnnData returned by Bulk2Single workflow.

  • celltype_key (str) – Column in generate_single_data.obs containing cell-type labels.

  • figsize (tuple) – Figure size passed to matplotlib.

Returns:

Figure and axes containing the cell-type bar plot.

Return type:

Tuple[matplotlib.figure.Figure,matplotlib.axes.Axes]