Mercury
A Python toolkit for processing and analyzing high-throughput microfluidic enzyme kinetics (HT-MEK) data.
Mercury provides a reproducible workflow for converting HT-MEK microscopy data into calibrated measurements and fitted biochemical parameters. It supports image stitching and chamber quantification, structured assay-data handling, initial-rate and model fitting, quality-control filtering, and diagnostic visualization.
The companion Mercury notebooks provide the recommended, step-by-step interface for routine data processing and analysis.
[In Review] Freitas, N., Zhang, J., Muir, D., et al. Processing and analyzing high-throughput microfluidic enzymology data: a practical guide to rate fitting and quality control. Methods in Enzymology.
What Mercury does
- Stitches tiled microscopy images and corrects uneven illumination.
- Locates and quantifies microfluidic reaction chambers.
- Imports button-quantification, standard-curve, kinetic, binding, and stability measurements.
- Converts fluorescence measurements to product concentrations using per-chamber calibration curves.
- Fits initial rates, Michaelis–Menten parameters, binding isotherms, and user-supplied models.
- Applies explicit quality-control filters at the chamber, concentration, and sample levels.
- Exports fitted parameters, filtered datasets, and end-to-end diagnostic plots.
Getting started
1. Create an environment
We recommend a fresh Conda environment with Python 3.12:
conda create -n mercury python=3.12 -y
conda activate mercury
2. Install Mercury
For the most recent official release:
python -m pip install mercury-kinetics
Or, to install the current development version instead:
git clone https://github.com/pinneylab/mercury.git
cd mercury
python -m pip install -e .
Verify the installation:
python -c "import mercury; print(mercury.__version__)"
3. Run the tutorial notebooks
Download the latest notebook release, activate the same environment, and start Jupyter:
jupyter notebook
For a first analysis, begin with the Michaelis–Menten analysis notebook. The released notebook archive includes example data and additional workflows where available.
Documentation
Check back soon for in-depth documentation...
Using Mercury beyond Michaelis–Menten kinetics
Mercury separates data ingestion, transformation, fitting, filtering, and visualization so that the workflow can be adapted to different HT-MEK assays. In addition to Michaelis–Menten analysis, the package includes support for binding and stability measurements, and its fitting routines can be extended with user-provided models and analysis logic.
Reporting problems and contributing
To report a bug, request a feature, or ask a usage question, open a GitHub issue. When reporting a problem, please include:
- the Mercury release or commit used;
- your operating system and Python version;
- a minimal example or relevant input-file description; and
- the complete error message or unexpected output.
Contributions are welcome through pull requests. Please run the test suite before submitting changes:
pytest
Citation
If Mercury contributes to published work, please cite the Methods in Enzymology chapter and the archived software release:
[In Review] Freitas, N., Zhang, J., Muir, D., et al. Processing and analyzing high-throughput microfluidic enzymology data: a practical guide to rate fitting and quality control. Methods in Enzymology.
Authors and acknowledgments
Mercury is developed by Nicholas Freitas, Duncan Muir, Jonathan Zhang, and contributors in the Pinney Lab.
Additional contributions and foundational development: Daniel Mohktari, Scott Longwell, and members of the Fordyce Lab.
License
Mercury is distributed under the MIT License.
Metadata
Release files for mercury-kinetics 2.0.2
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 |
|---|---|---|---|---|
| mercury_kinetics-2.0.2.tar.gz | 96.7 kB | With provenance | Details for mercury_kinetics-2.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mercury_kinetics-2.0.2-py3-none-any.whl | Python 3 | none | any | Details for mercury_kinetics-2.0.2-py3-none-any.whl |
Total release size: 203.9 kB
Release files / mercury_kinetics-2.0.2.tar.gz
| Download URL | mercury_kinetics-2.0.2.tar.gz |
|---|---|
| Size | 96.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9792f02b547dca4070ce7b3a3c9a2b9c48e54bfa7e2a714264d7269196b9f736
|
|
BLAKE2b-256 checksum How to use checksums |
1eec16bf5c754db85a1a12a0f2b8b7b6cc6cccaf57c8d64780fb36f6793e3265
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / mercury_kinetics-2.0.2-py3-none-any.whl
| Download URL | mercury_kinetics-2.0.2-py3-none-any.whl |
|---|---|
| Size | 107.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93fa0b355ab35bbca0065cb303c0961feafe21ec789dab78e800936ff4c4b98b
|
|
BLAKE2b-256 checksum How to use checksums |
c323951b80227877b50dbe013e4975b97baaa5b7c7aba90a0e97bafd2aa8d252
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logSecurity for mercury-kinetics 2.0.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mercury_kinetics-2.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logA 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.