delnx.pl.violinplotΒΆ

delnx.pl.violinplot(adata, genes, groupby, splitby=None, plot_type='violin', save=None, show=True, **kwargs)[source]ΒΆ

Create a violin plot for gene expression across groups and splits.

Parameters:
  • adata (AnnData) – Annotated data matrix.

  • genes (list[str]) – List of gene names to plot.

  • groupby (str) – Column name in adata.obs to group by.

  • splitby (str | None (default: None)) – Column name in adata.obs to split by.

  • plot_type (Literal['violin', 'box', 'boxen'] (default: 'violin')) – Type of plot to generate.

  • save (str | None (default: None)) – Path to save the figure. If None, does not save.

  • show (bool (default: True)) – Whether to display the plot.

  • **kwargs – Additional arguments passed to ViolinPlot.

Return type:

StackBoard