c2v.pl.clone_size

Contents

c2v.pl.clone_size#

c2v.pl.clone_size(clones, return_fig=False, title='Clone size distribution', bins=30, log=True, alpha=1, edgecolor='black', show=True, figsize=None, ax=None)#

Plot basic statistics of clone size distribution.

Parameters:
clones AnnData

Annotated data matrix containing clone size stat in clones.obs[“n_cells”]

return_fig bool, optional

If True, returns the Matplotlib Figure object. Default is False.

title str, optional

Title of the plot. Default is “Clone size distribution”.

show bool, optional

Whether to show the plot. Default is True.

figsize tuple[float, float] | None, optional

Figure size. Default is None.

ax list[matplotlib.axes.Axes] | None, optional

List of axes to plot on. Default is None.

bins int

log bool

alpha float

edgecolor str

Return type:

Figure | list[Axes] | None

Returns:

None or matplotlib.figure.Figure or list[matplotlib.axes.Axes] The plot figure if return_fig is True, or axes if return_ax is True, otherwise None.

Notes

Single-cell clone annotations with only one occurrence (clone size = 1) are excluded from both plots.