alphapepttools.pl.PlotConfig#

class alphapepttools.pl.PlotConfig(data=None, _extra=None)#

Base configuration for all plot types

This dataclass holds common configuration parameters for different plot types. It allows handling of different arguments for different plot types, eliminating the need to repeat shared parameters across different instances of the same plot.

Usage#

Attributes table#

Methods table#

copy_with(**changes)

Create a copy with specified changes

to_kwargs()

Convert to kwargs dict

Attributes#

PlotConfig.data: AnnData | DataFrame | None = None#

Methods#

PlotConfig.copy_with(**changes)#

Create a copy with specified changes

Return type:

PlotConfig

PlotConfig.to_kwargs()#

Convert to kwargs dict

Return type:

dict[str, Any]