MPRAlib
MPRAlib is a Python library and CLI for processing MPRA (Massively Parallel Reporter Assay) data.
Count exports preserve floating-point counts using 17 significant digits, including normalized counts and REF/ALT aggregates. Integer raw-count exports retain integer formatting. This avoids rounding small fractional counts to zero or changing predicted counts before downstream barcode-level analysis.
Citation
If you use MPRAlib in your work, please cite:
Rosen JD, Vasanthakumari AD, Salomon K, de Lange N, Dash PM, Keukeleire P, Hassan A, Barrera A, Krupkin B, Oualline G, Kircher M, Love MI, Schubach M. Uniform processing and analysis of IGVF massively parallel reporter assay data with MPRAsnakeflow. Genome Research (2025). doi: 10.1101/gr.281462.125
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 ofreporter-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
Metadata
Release files for mpralib 0.11.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mpralib-0.11.3.tar.gz | 56.3 kB | Without provenance | Details for mpralib-0.11.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mpralib-0.11.3-py3-none-any.whl | Python 3 | none | any | Details for mpralib-0.11.3-py3-none-any.whl |
Total release size: 95.6 kB
Release files / mpralib-0.11.3.tar.gz
| Download URL | mpralib-0.11.3.tar.gz |
|---|---|
| Size | 56.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3497a30f141d4d662e58529992675ab76e013f7a4d440a5e566222d56c058aa
|
|
BLAKE2b-256 checksum How to use checksums |
c4c0cc4909585f45c97e6cfaf01424fe4280d424b1f1c20efb8699258ca32c53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / mpralib-0.11.3-py3-none-any.whl
| Download URL | mpralib-0.11.3-py3-none-any.whl |
|---|---|
| Size | 39.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfd7103572cf2db4733baadd4b653731c245a68d612ec7508f9bae0ea57288ef
|
|
BLAKE2b-256 checksum How to use checksums |
4c380e81bba64c5f71a894820f17f9b19d83b30e671341a9ee22b6c7de80c3f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for mpralib 0.11.3
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.