Skip to main content
Pre-release

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

Mercury

Duncan Muir Nicholas Freitas Jonathan Zhang

Credits: Daniel Mohktari and Scott Longwell


BuildStatus License: MIT Coverage Status

Overview

This is a WORK IN PROGRESS package for processing and analysing various assays from the Mercury/HTBAM/HTMEK platform.

Installation

Conda Environment Setup

(Recommended) Create a fresh conda environment with python=3.12 using:

conda create -n mercury python=3.12

and activate using:

conda activate mercury

Install Stable Release via Wheel File

Download the latest wheel file from the Release Page

Then, install the package to your conda environment using:

pip install /path/to/downloaded/wheel.file

For latest code (Not recommended) clone the repo and install locally

  1. Clone this repo from the pinneylab Github
  2. Change directory to unzipped package path
    • $ cd /repo-download-dir
  3. pip install the package in place and make editable
    • $ pip install -e .

Processing and Analyzing Data

Our processing and analysis is done in Jupyter notebooks. To get started, download the latest release of our notebooks repo.

Then in your conda environment, start the Jupyter server with the command jupyter notebook.

To-Do:

  • Flexible initialization of LocalMercuryDBAPI. One should be able to read in any combination of button quant, standard curve, kinetic, binding, and/or stability data.
    • If it makes sense, could repurpose the add_run() method for loading datasets individually. If not, could make a new load_data() method.
  • Implement the process_dataframe_binding() function within csv_processing.py.
  • Represent binding data as Data3D (no time dimension). The dependent variable dimension is the fluorescence ratio of post-wash prey to post-wash bait.
  • Implement a function in fit.py for fitting binding isotherms to data. Again, keep the API and logic consistent with what is already implemented.
    • There should be an optional argument for specifying a list of identifiers for tight-binders. If this argument is provided, the code will fix the value of rmax, estimated from the rmax fit to the tight-binders, to fit the rest of the data.
    • Similar to fitting standards and initial rates, one should be able to specify custom fit windows on a per-concentration basis.
  • Implement a function to visualize binding isotherms in plot.py
  • Implement plotting methods analgous to export_MM_sample_data, export_MM_chamber_data, and export_end_to_end_summary_by_sample in MercuryExperiment.
  • In MercuryExperiment, add enzyme concentration information to export_binding_chamber_data and export_binding_sample_data methods. Mimic export_MM_chamber_data and export_MM_sample_data methods here.
  • Add MercuryExperiment methods to export binding isotherm subplots on a per-chamber and per-sample basis. See export_mm_subplots_by_chamber and export_mm_subplots_by_sample for examples
  • Add an optional argument to fit_binding_isotherm() to take in a user-defined fixed r_max value.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mercury_kinetics-2.0.0a1.tar.gz (92.7 kB view details)

Uploaded Source

Built Distribution

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

mercury_kinetics-2.0.0a1-py3-none-any.whl (102.8 kB view details)

Uploaded Python 3

File details

Details for the file mercury_kinetics-2.0.0a1.tar.gz.

File metadata

  • Download URL: mercury_kinetics-2.0.0a1.tar.gz
  • Upload date:
  • Size: 92.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mercury_kinetics-2.0.0a1.tar.gz
Algorithm Hash digest
SHA256 7ea5988967a23941875f7fa396c52c42437045325cf993a7abb5cc887afd47cd
MD5 e0e45fea80cdb673ffe4c93352e38606
BLAKE2b-256 0cb141d19c31281e120e5710c027c0d76e6b27163357339982f625f4fdf32c64

See more details on using hashes here.

Provenance

The following attestation bundles were made for mercury_kinetics-2.0.0a1.tar.gz:

Publisher: publish.yml on pinneylab/Mercury

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mercury_kinetics-2.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for mercury_kinetics-2.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec235b0b5021b2b924c9d24559bfe5407df8fc941882b1ad173cba61986e880b
MD5 eb8fbb2f4de490c6e4c0bdef814c3814
BLAKE2b-256 e0c39cddf2694da858ec7438bfc128cf27ab24a52f7a9613264fff909ba462f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for mercury_kinetics-2.0.0a1-py3-none-any.whl:

Publisher: publish.yml on pinneylab/Mercury

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.0.0a1 This release

2 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