omicverse.bulk2single.bulk2single_plot_cellprop

omicverse.bulk2single.bulk2single_plot_cellprop#

omicverse.bulk2single.bulk2single_plot_cellprop(generate_single_data, celltype_key, figsize=(4, 4))[源代码]#

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.

参数:
  • 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.

返回:

Figure and axes containing the cell-type bar plot.

返回类型:

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