Skip to main content
Last commit Test Status Code coverage Documentation Status MIT License

Tutorials | API documentation | Source code | Release on pip

Pylluminator is a Python package designed to provide an efficient workflow for processing, analyzing, and visualizing DNA methylation data. Pylluminator is inspired from the popular R packages SeSAMe and ChAMP.

Pylluminator supports the following Illumina’s Infinium Beadchip array versions:

  • human: 27k, 450k, MSA, EPIC, EPIC+, EPICv2

  • mouse: MM285

  • mammalian: Mammal40

Main functionalities

  • idat files parsing

  • data preprocessing

    • Type-I probes channel inference

    • Dye bias correction (3 methods: using normalization control probes / linear scaling / non-linear scaling)

    • Detection p-value calculation (pOOBAH)

    • Background correction (NOOB)

    • Batch effect correction (ComBat)

    • Missing beta values imputation

    • Lift over annotation

  • data analysis and visualisation

    • beta values (density, PCA, MDS, dendrogram…)

    • DMPs accounting for replicates / random effects, DMRs

    • CNV, CNS

    • pathway analysis with GSEApy (GSEA, ORA)

  • quality control

Visualization examples:

https://raw.githubusercontent.com/eliopato/pylluminator/refs/heads/main/docs/images/tutorials_1_-_Read_data_and_get_betas_16_0.png

Fig 1. Samples beta values density

https://raw.githubusercontent.com/eliopato/pylluminator/refs/heads/main/docs/images/tutorials_3_-_Calculate_DMP_and_DMR_15_0.png

Fig 2. Differentially methylated regions (DMRs)

https://raw.githubusercontent.com/eliopato/pylluminator/refs/heads/main/docs/images/tutorials_3_-_Calculate_DMP_and_DMR_17_1.png

Fig 3. Probes beta values associated with a specific gene

https://raw.githubusercontent.com/eliopato/pylluminator/refs/heads/main/docs/images/tutorials_4_-_Copy_Number_Variation_9_0.png

Fig 4. Copy number variations (CNVs)

Installation

With pip

You can install Pylluminator directly with:

pip install pylluminator

Or, if you want to use the GSEA functionalities, install the additional dependencies with:

pip install pylluminator[gsea]

From source

We recommend using uv to build pylluminator from source. The project requires Python 3.12 or later.

Install uv (if needed)

curl -LsSf https://astral.sh/uv/install.sh | sh

Clone and install

git clone https://github.com/eliopato/pylluminator.git
cd pylluminator
uv sync

This creates a virtual environment and installs all dependencies automatically. To include optional extras:

uv sync --extra gsea
uv sync --extra dev
uv sync --extra docs

Run scripts or tests within the project environment using uv run:

uv run pytest

Usage

Refer to https://pylluminator.readthedocs.io/ for step-by-step tutorials and detailed documentation.

Citing

Pylluminator is described in detail in: Pylluminator: fast and scalable analysis of DNA methylation data in Python, available on BioRxiv

If you use this package in your research, please cite our work.

If you use the updated version of the EPICv2/hg38 annotations, please cite Re-annotating the EPICv2 manifest with genes, intragenic features, and regulatory elements, (BioRxiv link)

Contributing

We welcome contributions! If you’d like to help improve the package, please follow these steps:

  1. Fork the repository.

  2. Create a new branch for your feature or bugfix.

  3. Make your changes and test them.

  4. Submit a pull request describing your changes.

The packages used for development (testing, packaging and building the documentation) can be installed with:

uv sync --extra dev --extra docs

Bug reports / new features suggestion

If you encounter any bugs, have questions, or feel like the package is missing a very important feature, please open an issue on the GitHub Issues page.

When opening an issue, please provide as much detail as possible, including:

  • Steps to reproduce the issue

  • The version of the package you are using

  • Any relevant code snippets or error messages

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

This package is strongly inspired from SeSAMe and includes code from methylprep for .idat files parsing.

Metadata

Release files for pylluminator 2.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 pylluminator 2.2
File Size Uploaded
pylluminator-2.2.tar.gz 86.2 kB Details

Built distribution (wheel)

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

Total release size: 178.8 kB

Release files / pylluminator-2.2.tar.gz

Download URL pylluminator-2.2.tar.gz
Size 86.2 kB
Tags Source
SHA-256 checksum
How to use checksums
41733147233aa2930f32d56f755c84af35d6ba54d1a9e45db39f1a13d5776979
BLAKE2b-256 checksum
How to use checksums
de35415326ce2f914dca611769fcc4f1f963e92130034fe7b9f0702c942b7f2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pylluminator-2.2-py3-none-any.whl

Download URL pylluminator-2.2-py3-none-any.whl
Size 92.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46ee4f246a37219fe1dff2f988f95bd8e174f969b782a8be82f2fbcca499a0a4
BLAKE2b-256 checksum
How to use checksums
1ffd1767f7cba15e094e501bc5e12c85058247a7834fa52952b03a4baf7b9c50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

2.2 This release

2 release files

2.1

2 release files

2.0

2 release files

1.3

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

0.2

2 release files

0.1

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