Skip to main content

Library to analyze count data of MPRA experiments.

Project description

MPRAlib

Documentation Status DOI GitHub License GitHub Release PyPI version Bioconda Version Tests Coverage badge GitHub Issues GitHub Pull Requests

MPRAlib is a Python library and CLI for processing MPRA (Massively Parallel Reporter Assay) data.

Citation

If you use MPRAlib in your work please cite out recent preprint:

Uniform processing and analysis of IGVF massively parallel reporter assay data with MPRAsnakeflow Jonathan D. Rosen, Arjun Devadas Vasanthakumari, Kilian Salomon, Nikola de Lange, Pyaree Mohan Dash, Pia Keukeleire, Ali Hassan, Alejandro Barrera, Martin Kircher, Michael I. Love, Max Schubach bioRxiv (2025). 2025.09.25.678548

Installation

PyPI

pip install mpralib

Conda

From the bioconda channel

conda install -c bioconda mpralib

Usage

Command Line Interface

Use the mpralib command to access various functionalities.

Validate a file

MPRAlib provides a CLI tool for validating MPRA data files against supported schemas.

mpralib validate-file <schema> --input <input_file>
  • <schema>: One of reporter-sequence-design, reporter-barcode-to-element-mapping, reporter-experiment-barcode, reporter-experiment, reporter-element, reporter-variant, reporter-genomic-element, reporter-genomic-variant
  • <input_file>: Path to your data file (e.g., .tsv.gz, .bed.gz)

Example:

mpralib validate-file reporter-sequence-design --input data/reporter_sequence_design.example.tsv.gz

Python API

In general MPRAlib is ment to be used as a library. Please have a look at our notebook mpralib.ipynb for a more detailed example.

License

MIT License

Links

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

mpralib-0.10.1.tar.gz (51.1 kB view details)

Uploaded Source

Built Distribution

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

mpralib-0.10.1-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file mpralib-0.10.1.tar.gz.

File metadata

  • Download URL: mpralib-0.10.1.tar.gz
  • Upload date:
  • Size: 51.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mpralib-0.10.1.tar.gz
Algorithm Hash digest
SHA256 66c85c5c9a3c119548110659b95b1e496e4d01b4ca7a857740316956058d9b16
MD5 c5bc51392b5e4ca1f5e0eb81e02e1175
BLAKE2b-256 9d22c4973dac6a3d331646da5bcc18301b6c5ec97fd2ac4302e4a48de3c658ff

See more details on using hashes here.

File details

Details for the file mpralib-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: mpralib-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mpralib-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d615722d44b87ff775d8336b6d7fedba201fb986259ca0f56719d1626078313
MD5 4e9afaf1d7ba34aef0793806b79979a6
BLAKE2b-256 57402b5e063b581e9bdda6aa1e8a3443e4752df9ceef179e7f5f249a6afced7d

See more details on using hashes here.

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