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.0a2.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.0a2-py3-none-any.whl (102.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mercury_kinetics-2.0.0a2.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.0a2.tar.gz
Algorithm Hash digest
SHA256 50d048bdbbf059acc31ea1947866af85084b39b829834d187ea410e8a61433db
MD5 739f9783481732170c7d1333246168b1
BLAKE2b-256 8ced2357700c74cbfccd6f15d28fa0358f4740ab9d8e75c1d2b9fd0cee904c60

See more details on using hashes here.

Provenance

The following attestation bundles were made for mercury_kinetics-2.0.0a2.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.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for mercury_kinetics-2.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 94d9adea2640c5fa5c0a3d544bd0acfcb2d541c5d42a62e0782bdf2ed7123a96
MD5 244db44f429eb5379235fce858b8dbcf
BLAKE2b-256 e78e19bd88f1a69912fa231889e295c6f9b6682eed52e51c74cc63491703674c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mercury_kinetics-2.0.0a2-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.0a2 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