dynamo.pl.basic_stats

dynamo.pl.basic_stats(adata, group=None, figsize=(4, 3), save_show_or_return='show', save_kwargs={})[source]

Plot the basic statics (nGenes, nCounts and pMito) of each category of adata.

Parameters
  • adata (AnnData) – an Annodata object

  • group (string (default: None)) – Which group to facets the data into subplots. Default is None, or no faceting will be used.

  • figsize (tuple) – Figure size of each facet.

  • save_show_or_return ({‘show’, ‘save’, ‘return’} (default: show)) – Whether to save, show or return the figure.

  • save_kwargs (dict (default: {})) – A dictionary that will passed to the save_fig function. By default it is an empty dictionary and the save_fig function will use the {“path”: None, “prefix”: ‘basic_stats’, “dpi”: None, “ext”: ‘pdf’, “transparent”: True, “close”: True, “verbose”: True} as its parameters. Otherwise you can provide a dictionary that properly modify those keys according to your needs.

Returns

Return type

A violin plot that shows the fraction of each category, produced by seaborn.