dandelion.polars.plotting.productive_ratio
- dandelion.polars.plotting.productive_ratio(adata, figsize=(8, 4), palette=['lightblue', 'darkblue'], fontsize=8, rotation=90, legend_kwargs={'bbox_to_anchor': (1, 0.5), 'frameon': False, 'loc': 'center left'})[source]
Plot productive/non-productive contig ratio from AnnData (cell level).
- Parameters:
adata (AnnData) – AnnData object with .uns[‘productive_ratio’] computed from tl.productive_ratio.
figsize (tuple[float, float], optional) – Size of figure.
palette (list[str], optional) – List of colours to plot non-productive and productive respectively.
fontsize (int | float, optional) – Font size of x and y tick labels.
rotation (int | float, optional) – Rotation of x tick labels.
legend_kwargs (dict, optional) – Any additional kwargs to plt.legend