weights#
- mofaflex.pl.weights(model, n_features=10, views=None, factors=None, pointsize=2, figsize=None, nrow=None, ncol=None)#
Plot the weights for a given factor and view.
- Parameters:
model (
MOFAFLEX) – The MOFA-FLEX model.n_features (
int(default:10)) – Number of top features to annotate.views (
str|Sequence[str] |None(default:None)) – The views to consider in the ranking. IfNone, use all views.factors (
int|str|Sequence[int] |Sequence[str] |None(default:None)) – The factors to plot. IfNone, plot all factors.pointsize (
float(default:2)) – Point size for the annotated features. Points for unannotated features will be of size0.25 * pointsize.figsize (
tuple[int,int] |None(default:None)) – Figure size in inches.nrow (
int|None(default:None)) – Number of rows in the faceted plot. If None, plotnine will determine automatically.ncol (
int|None(default:None)) – Number of columns in the faceted plot. If None, plotnine will determine automatically.
- Return type: