API#
Core#
|
Options for the data. |
|
Options for the model. |
|
Options for training. |
|
Options for Gaussian processes. |
|
Fit the model using the provided data. |
|
Class for storing a single set of features (genes). |
|
Class for storing a collection of feature sets (see FeatureSet). |
Presets#
Presets corresponding to different previously published factor analysis models.
These can be used by passing them to the MOFAFLEX constructor: MOFAFLEX(*preset).
- mofaflex.presets.MOFA
Options used to reproduce MOFA results in the MOFA-FLEX paper.
- mofaflex.presets.MEFISTO
Options used to reproduce MEFISTO results in the MOFA-FLEX paper.
- mofaflex.presets.NSF
Options used to reproduce NSF results in the MOFA-FLEX paper.
Settings#
An instance of the _core.settings.Settings class is available as mofaflex.settings and allows configuring MOFA-FLEX.
|
Global settings. |
Tools#
|
Generator class for creating synthetic multi-view data with latent factors. |
|
Calculate the correlation between factors. |
Get the index of the GPU with current lowest memory usage. |
|
|
Find optimal permutation and signs to match two tensors along specified axis. |
|
Get gene sets from the MSIGDB molecular signatures database. |
|
List available MSIGDB categories for the given database version. |
List available versions of the MSIGDB molecular signature database. |
|
|
Test feature sets for significant associations with model factors. |
Plotting#
|
Plot the weight matrices. |
|
Plot a factor against one or two covariate dimensions. |
|
Plot factor values (y-axis) for each sample (x-axis). |
|
Plot the correlation between factors. |
|
Plot an overview of the factors summarizing the PCGSE results along with the variance explained per factor. |
|
Plot a histogram of probabilities that factors are non-zero for views with SnS prior. |
|
Plot every factor against one or two covariates. |
|
Plot two factors against each other and color by covariates. |
|
Plot the fitted GP mean for each factor in each group at the data covariate locations. |
|
Generate an overview plot of missing data across different views and groups. |
|
Plot the smoothness of the GP for each factor. |
|
Plot the top weights for a given factor and view. |
|
Plot the training curve: -ELBO vs epoch. |
|
Plot the variance explained per factor in each group and view. |
|
Plot a histogram of probabilities that weights are non-zero for views with SnS prior. |
|
Plot the weights for a given factor and view. |