dandelion.plotting.clone_rarefaction¶
-
dandelion.plotting.
clone_rarefaction
(self, color, clone_key=None, palette=None, figsize=(6, 4), save=None)[source]¶ Plots rarefaction curve for cell numbers vs clone size.
- Parameters
self (AnnData, Dandelion) – AnnData or Dandelion object.
color (str) – Column name to split the calculation of clone numbers for a given number of cells for e.g. sample, patient etc.
clone_key (str, optional) – Column name specifying the clone_id column in metadata/obs.
palette (Sequence, optional) – Color mapping for unique elements in color. Will try to retrieve from AnnData .uns slot if present.
figsize (Tuple[Union[int,float], Union[int,float]]) – Size of plot.
save (str, optional) – Save path.
- Returns
- Return type
rarefaction curve plot.