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

Plot the fraction of each category of data used in the velocity estimation.

  • adata (AnnData) – an Annodata object

  • genes (list like:) – The list of gene names from which the fraction will be calculated.

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

  • figsize (string (default: (4, 3))) – 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”: ‘show_fraction’, “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.


Return type

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