dynamo.pl.feature_genes

dynamo.pl.feature_genes(adata, layer='X', mode=None, figsize=(4, 3), save_show_or_return='show', save_kwargs={})[source]

Plot selected feature genes on top of the mean vs. dispersion scatterplot.

Parameters
  • adata (AnnData) – AnnData object

  • layer (str (default: X)) – The data from a particular layer (include X) used for making the feature gene plot.

  • mode (None or str (default: None)) – The method to select the feature genes (can be either dispersion, gini or SVR).

  • 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”: ‘feature_genes’, “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

Nothing but plots the selected feature genes via the mean, CV plot.