Skip to main content

Factor Analysis Models

Project description

MOFA-FLEX

PyPI Tests codecov Documentation

graphical abstract

MOFA-FLEX is a versatile factor analysis framework designed to streamline the construction and training of complex matrix factorisation models for omics data. It is built on a probabilistic programming-based Bayesian factor analysis framework that integrates concepts from multiple existing methods while remaining modular and extensible. MOFA-FLEX generalises widely used matrix factorisation tools by incorporating flexible prior options (including structured sparsity priors for multi-omics data and covariate-informed priors for spatio-temporal data), non-negativity constraints, and diverse data likelihoods - allowing users to mix and match components to suit their specific needs. Additionally, MOFA-FLEX introduces a novel module for integrating prior biological knowledge in the form of gene sets or, more generally, variable sets, enabling the inference of interpretable latent factors linked to specific molecular programs.

Getting started

Please refer to the documentation. In particular, the

Installation

You need to have Python 3.11 or newer installed on your system. If you don't have Python installed, we recommend installing Micromamba.

There are several alternative options to install MOFA-FLEX:

  1. Install the latest release of MOFA-FLEX from PyPI:
pip install mofaflex
  1. Install the latest development version:
pip install git+https://github.com/bioFAM/mofaflex.git@main

Release notes

See the changelog.

Contact

For questions and help requests, you can reach out in the discussions. If you found a bug, please use the issue tracker.

Citation

If you use MOFA-FLEX in your work, please cite

Qoku A, Rohbeck M, Walter FC, Kats I, Stegle O, and Buettner F. MOFA-FLEX: A Factor Model Framework for Integrating Omics Data with Prior Knowledge. Preprint at bioRxiv (2025). DOI: 10.1101/2025.11.03.686250.

BibTeX
@article {mofaflex,
	author = {Qoku, Arber and Rohbeck, Martin and Walter, Florin Cornelius and Kats, Ilia and Stegle, Oliver and Buettner, Florian},
	title = {MOFA-FLEX: A Factor Model Framework for Integrating Omics Data with Prior Knowledge},
	eprint = {2025.11.03.686250},
	year = {2025},
	doi = {10.1101/2025.11.03.686250},
	URL = {https://www.biorxiv.org/content/early/2025/11/04/2025.11.03.686250},
	archiveprefix = {bioRxiv}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mofaflex-0.1.1.tar.gz (31.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mofaflex-0.1.1-py3-none-any.whl (104.9 kB view details)

Uploaded Python 3

File details

Details for the file mofaflex-0.1.1.tar.gz.

File metadata

  • Download URL: mofaflex-0.1.1.tar.gz
  • Upload date:
  • Size: 31.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mofaflex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 19cb27a94fffc6d6e5fc64bb0c42680e67d756a796f2c315829896e57c9e9e39
MD5 8e305ee5debb764eeb3702c2f302c4b0
BLAKE2b-256 a7140f06b2cac3a797d04b7d94b2548665a9b684ca54cabdcb7f0078f0d6c4d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for mofaflex-0.1.1.tar.gz:

Publisher: release.yaml on bioFAM/mofaflex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mofaflex-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mofaflex-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 104.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mofaflex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1d79a773cc5560bdebd3deea8be3d67d30f71e26926fa8992c339a6ed3eddc6
MD5 5c98a7394aa7073a52cfe09d66b6c185
BLAKE2b-256 758aaf9710d68db80020feccfb87cd9df15f11434ce4701600cdd8c001abd78c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mofaflex-0.1.1-py3-none-any.whl:

Publisher: release.yaml on bioFAM/mofaflex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page