Skip to main content
Pre-release

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

MeRIT - Mendelian Randomization for Identification of Targets

version: 0.8.0a0

This package allows users to perform Mendelian randomisation (MR) analysis and all the data manipulation steps that are required before the analysis. Whilst the focus is on cis-MR it can also be used for traditional genomewide-MR:

There is online documentation for merit.

There is a TLDR that should get you started.

Installation instructions

MeRIT currently supports Python 3.11, 3.12, and 3.13.

Install the released package

With pip (the package is called merit-mr on PyPI, and is imported as merit):

pip install merit-mr

To submit analyses to a computing cluster with merit-mr-hpc, install the optional hpc extra as well:

pip install "merit-mr[hpc]"

With conda:

conda install -c cfin -c conda-forge -c bioconda merit

Development install

Installation using pip

Install from a local clone for development:

git clone git@gitlab.com:cfinan/merit.git
cd merit
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

For a non-editable install from the repository root:

python -m pip install .

Installation using conda

Create a supported conda environment first, then install MeRIT with pip inside that environment:

git clone git@gitlab.com:cfinan/merit.git
cd merit
conda create -n merit python=3.13
conda activate merit
python -m pip install -e ".[dev]"

The repository also keeps CI/CD and packaging helpers under resources/ci_cd/ and resources/conda/.

Next steps

  • The TLDR shows the few steps needed for a first MR run.
  • The pipeline command-line guide explains every command, the GWAS catalogue and the archives the commands write.
  • The examples show MeRIT used from Python.

Development checks

From the root of a development install, run the linter and the tests with:

ruff check merit tests
pytest tests/

Change log

To see what has changed in the current development cycle and tagged releases, see the change log.

Metadata

Release files for merit-mr 0.8.0a0

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

Source distribution (sdist)

Source distribution for merit-mr 0.8.0a0
File Size Uploaded Provenance Actions
merit_mr-0.8.0a0.tar.gz 666.5 kB Without provenance Details for merit_mr-0.8.0a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for merit-mr 0.8.0a0
File Interpreter ABI Platform Actions
merit_mr-0.8.0a0-py3-none-any.whl Python 3 none any Details for merit_mr-0.8.0a0-py3-none-any.whl

Total release size: 1.4 MB

Release files / merit_mr-0.8.0a0.tar.gz

Download URL merit_mr-0.8.0a0.tar.gz
Size 666.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b35ff98aec86a7412b4721ff742c6b457725e5b9f7a74657b0e09bdaea71cf2a
BLAKE2b-256 checksum
How to use checksums
6eeb9c2dcf779445e63264fa7d895379fc5722e6b2f3c4409ef7aaa4a2873fdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release files / merit_mr-0.8.0a0-py3-none-any.whl

Download URL merit_mr-0.8.0a0-py3-none-any.whl
Size 738.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9128c4304191db089d013c2683675d779ddaf9775069c177d2556992f1a5216b
BLAKE2b-256 checksum
How to use checksums
8c6d426c9863da6792a7df19c7af3e563284df0a87851b6c5b6a3d237933d5d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Security for merit-mr 0.8.0a0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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