pytometry.plotting.plotdata#

pytometry.plotting.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) – Key in adata.var to plot. Default is ‘signal_type’ which is generated when calling the preprocessing function split_signal.

  • normalize (str) – Normalization type. Default is None but can be set to “arcsinh”, “biExp” or “logicle”

  • cofactor (float) – Cofactor for arcsinh normalization. Default is 10.

  • figsize (tuple) – Figure size (width, height). Default is (15, 6).

  • option (str) – Switch to choose directly between area and height data. Default is “area”.

  • bins (int) – Number of bins for the histogram. Default is 400.

  • save (str, optional) – Path to save the figure.

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

Returns: matplotlib.pyplot.Figure