swiftcnv.plot_CNV_density

swiftcnv.plot_CNV_density#

plot_CNV_density(adata, sample_key, sample_name=None, show=True, figsize=(12, 6))#

Plots malignancy scores distributions per sample.

Parameters:
  • adata (AnnData) – Annotated data object containing cell metrics in .obs.

  • sample_name (str, optional) – Specific sample to plot. If None, plots all unique samples in adata.obs[sample_key].

  • sample_key (str, default 'sample') – Column in adata.obs defining sample identifiers.

Returns:

fig – The generated figure object containing the plot layout.

Return type:

matplotlib.figure.Figure