muon.pl.mofa_loadings#

muon.pl.mofa_loadings(mdata: mudata._core.mudata.MuData, factors: Optional[Union[str, Sequence[int]]] = None, include_lowest: bool = True, n_points: Optional[int] = None, show: Optional[bool] = None, save: Optional[Union[str, bool]] = None)#

Rank genes according to contributions to MOFA factors. Mirrors the interface of scanpy.pl.pca_loadings.

Parameters
  • mdata – MuData objects with .obsm[“X_mofa”] and .varm[“LFs”].

  • factors – For example, '1,2,3' means [1, 2, 3], first, second, third factors.

  • include_lowest – Whether to show the variables with both highest and lowest loadings.

  • n_points – Number of variables to plot for each factor.

  • show – Show the plot, do not return axis.

  • save – If True or a str, save the figure. A string is appended to the default filename. Infer the filetype if ending on {‘.pdf’, ‘.png’, ‘.svg’}.