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
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
- Clone this repo from the pinneylab Github
- Change directory to unzipped package path
$ cd /repo-download-dir
- 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 newload_data()method.
- If it makes sense, could repurpose the
- 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, andexport_end_to_end_summary_by_sampleinMercuryExperiment. - In
MercuryExperiment, add enzyme concentration information toexport_binding_chamber_dataandexport_binding_sample_datamethods. Mimicexport_MM_chamber_dataandexport_MM_sample_datamethods here. - Add
MercuryExperimentmethods to export binding isotherm subplots on a per-chamber and per-sample basis. Seeexport_mm_subplots_by_chamberandexport_mm_subplots_by_samplefor 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ea5988967a23941875f7fa396c52c42437045325cf993a7abb5cc887afd47cd
|
|
| MD5 |
e0e45fea80cdb673ffe4c93352e38606
|
|
| BLAKE2b-256 |
0cb141d19c31281e120e5710c027c0d76e6b27163357339982f625f4fdf32c64
|
Provenance
The following attestation bundles were made for mercury_kinetics-2.0.0a1.tar.gz:
Publisher:
publish.yml on pinneylab/Mercury
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mercury_kinetics-2.0.0a1.tar.gz -
Subject digest:
7ea5988967a23941875f7fa396c52c42437045325cf993a7abb5cc887afd47cd - Sigstore transparency entry: 2286239601
- Sigstore integration time:
-
Permalink:
pinneylab/Mercury@d559b089eae14ba4fbb23250361041ff2b204102 -
Branch / Tag:
refs/tags/v2.0.0a1 - Owner: https://github.com/pinneylab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d559b089eae14ba4fbb23250361041ff2b204102 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mercury_kinetics-2.0.0a1-py3-none-any.whl.
File metadata
- Download URL: mercury_kinetics-2.0.0a1-py3-none-any.whl
- Upload date:
- Size: 102.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec235b0b5021b2b924c9d24559bfe5407df8fc941882b1ad173cba61986e880b
|
|
| MD5 |
eb8fbb2f4de490c6e4c0bdef814c3814
|
|
| BLAKE2b-256 |
e0c39cddf2694da858ec7438bfc128cf27ab24a52f7a9613264fff909ba462f1
|
Provenance
The following attestation bundles were made for mercury_kinetics-2.0.0a1-py3-none-any.whl:
Publisher:
publish.yml on pinneylab/Mercury
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mercury_kinetics-2.0.0a1-py3-none-any.whl -
Subject digest:
ec235b0b5021b2b924c9d24559bfe5407df8fc941882b1ad173cba61986e880b - Sigstore transparency entry: 2286239798
- Sigstore integration time:
-
Permalink:
pinneylab/Mercury@d559b089eae14ba4fbb23250361041ff2b204102 -
Branch / Tag:
refs/tags/v2.0.0a1 - Owner: https://github.com/pinneylab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d559b089eae14ba4fbb23250361041ff2b204102 -
Trigger Event:
release
-
Statement type: