pytometry.pl.plotdata

Contents

pytometry.pl.plotdata#

pytometry.pl.plotdata(adata, key='signal_type', option='area', normalize=None, cofactor=10, figsize=(15, 6), bins=400, save=None, n_cols=3, **kwargs)#

Creating histogram plot of channels from Anndata object.

Parameters:
  • adata (AnnData) – Anndata object containing data.

  • key (str (default: 'signal_type')) – Key in adata.var to plot. Default is ‘signal_type’, which is generated when calling the preprocessing function split_signal().

  • normalize (Optional[Literal['arcsinh', 'biexp', 'logicle']] (default: None)) – Normalization type.

  • cofactor (float | None (default: 10)) – Cofactor for arcsinh normalization.

  • figsize (tuple[float, float] (default: (15, 6))) – Figure size (width, height).

  • option (str (default: 'area')) – Switch to choose directly between area and height data.

  • bins (int (default: 400)) – Number of bins for the histogram.

  • save (str | None (default: None)) – Path to save the figure.

  • **kwargs – Additional arguments passed to matplotlib.pyplot.savefig()

Return type:

Figure

Returns:

matplotlib figure