muon.pl.mofa_loadings#
- muon.pl.mofa_loadings(mdata: MuData, factors: str | Sequence[int] | None = None, include_lowest: bool = True, n_points: int | None = None, show: bool | None = None, save: str | bool | None = 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’}.