Skip to main content

NMFProfiler

Name

NMFProfiler: A multi-omics integration method for samples stratified in groups

Description

NMFProfiler method scheme

Installation

NMFProfiler can be installed from PiPy:

pip install nmfprofiler

In addition, various docker images are provided in the container registry.

Usage

Below is a short illustration of the method on a toy dataset.

from nmfprofiler.nmfprofiler import NMFProfiler
from nmfprofiler.toyexample import ToyExample

# Fix a seed (not mandatory)
seed = 240820

# Run NMFProfiler
model = NMFProfiler(
    omics=[ToyExample().omic1, ToyExample().omic2],
    y=ToyExample().y,
    seed=seed,
    as_sklearn=False,
    backtrack=True)
res = model.fit()

# Get a quick overview of the dataset and model used
print(res)

# Visualize analyzed datasets (samples x features)
ToyExample().y  # 2 groups
res.heatmap(obj_to_viz="omic", width=15, height=6, path="", omic_number=1)
res.heatmap(obj_to_viz="omic", width=15, height=6, path="", omic_number=2)

Note: NMFProfiler produces as many signatures as groups, i.e. levels in $\mathbf{y}$ vector. Hence in this case we will obtain 2 signatures.

# Visualize contribution matrix W obtained (samples x 2)
res.heatmap(obj_to_viz="W", width=10, height=10, path="")

# Visualize signature matrices H1 and H2 obtained (2 x features)
res.heatmap(obj_to_viz="H", width=15, height=6, path="", omic_number=1)
res.heatmap(obj_to_viz="H", width=15, height=6, path="", omic_number=2)

# Monitor the size of each error term of the loss
res.barplot_error(width=15, height=6, path="")

Support

For questions or additional feature requests, use gitlab issues if possible. Authors can also be contacted by email (check authors' webpages for email information).

Citation

If you are using NMFProfiler, please cite:

Mercadié, A., Gravier, É., Josse, G., Fournier, I., Viodé, C., Vialaneix, N., & Brouard, C. (2025). NMFProfiler: A multi-omics integration method for samples stratified in groups. Bioinformatics, 41(2), btaf066.

Authors and acknowledgment

This work was supported by the ANRT (CIFRE no. 2022/0051).

License

GPL-3

Project status

Active

See Changelog

Release files for NMFProfiler 0.3.2

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

Source distribution (sdist)

Source distribution for NMFProfiler 0.3.2
File Size Uploaded
nmfprofiler-0.3.2.tar.gz 59.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for NMFProfiler 0.3.2
File Interpreter ABI Platform
nmfprofiler-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 104.3 kB

Release files / nmfprofiler-0.3.2.tar.gz

Download URL nmfprofiler-0.3.2.tar.gz
Size 59.2 kB
Tags Source
SHA-256 checksum
How to use checksums
83458f4100151a1b1d71a6c9dafb5224f7fd2a62356c646f453902734474e4bd
BLAKE2b-256 checksum
How to use checksums
cefb8ca46ea656ccdf0b68e8d347dd892125332f2ac51b8afa2be1e9f9d035c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / nmfprofiler-0.3.2-py3-none-any.whl

Download URL nmfprofiler-0.3.2-py3-none-any.whl
Size 45.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
778c7a391a2baf67f44c451a673e6f0bee3a875b1a1c76323c84dfb4f7cdb293
BLAKE2b-256 checksum
How to use checksums
dfb2a579f1bd1ae0d4658c78700c304ce68f240b2f2fbe5f0512845622ad3a13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2

2 release files

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