overview

Contents

overview#

mofaflex.pl.overview(data, group_by=None, missingcolor='#214D83', nonmissingcolor='#8AB6D4', figsize=(15, 5), max_plot_obs=400, max_plot_x_labels=150)#

Generate an overview plot of missing data across different views and groups.

Parameters:
  • data (dict[str, dict[str, AnnData]] | MuData | MofaFlexDataset) – A nested dictionary where the first level keys are group names, and the second level keys are view names. The values are AnnData objects.

  • group_by (str | list[str] | None (default: None)) – Columns of .obs in MuData objects to group data by. Ignored if the input data is not a MuData object.

  • missingcolor (str (default: '#214D83')) – The color to use for missing data.

  • nonmissingcolor (str (default: '#8AB6D4')) – The color to use for non-missing data.

  • figsize (tuple[float, float] (default: (15, 5))) – Figure size in inches.

  • max_plot_obs (int (default: 400)) – The maximum number of observations to plot. If the number of observations is greater than this value in any group, a horizontal bar plot is created instead of a tile plot.

  • max_plot_x_labels (int (default: 150)) – The maximum number of x-axis labels to show. If the number of observations is greater than this value in any group, the x-axis labels are not shown.

Return type:

plotnine.ggplot