Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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 uv.

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.

This is an approved de.NBI service. Please help us improve by taking our short user survey.

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}
}

Metadata

Release files for mofaflex 0.2.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mofaflex 0.2.0rc1
File Size Uploaded
mofaflex-0.2.0rc1.tar.gz 46.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for mofaflex 0.2.0rc1
File Interpreter ABI Platform
mofaflex-0.2.0rc1-py3-none-any.whl Python 3 none any Details

Total release size: 46.7 MB

Release files / mofaflex-0.2.0rc1.tar.gz

Download URL mofaflex-0.2.0rc1.tar.gz
Size 46.5 MB
Tags Source
SHA-256 checksum
How to use checksums
a6f0d7406ea4b4114afb13640856b6e1a9725a37fcd2c23fc6c28249598cd593
BLAKE2b-256 checksum
How to use checksums
59620ba9c56b419ff2287799a7b3d65d921cf95a457cad069c908f538649bd14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

Release files / mofaflex-0.2.0rc1-py3-none-any.whl

Download URL mofaflex-0.2.0rc1-py3-none-any.whl
Size 135.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b872fb4972c7e486b3f9e13ea2dd39a46b0a88691d1e58c5197352ee2344cf89
BLAKE2b-256 checksum
How to use checksums
625f3052eb494444731cc5c37958e2ba66e783c473c48ad482c4dc4709c8c09a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page