Instant Gibbs free energy estimation coupled to HDX-MS database.
Project description
instaGibbs
Instant Gibbs free energy estimation coupled to a HDX-MS database.
Aim
The aim of this project is to provide a realiable and fast method to esitmate Linderstrøm-Lang Gibbs free energies (ΔG/ΔΔG) for HDX-MS data. Gibbs free energies are determined at the peptide level by area-under-the-curve (ΔG) and area-between-curves (ΔΔG). Peptide-level values can then be reduced to residue level by weighted averaging or linear least squares fitting, where the latter method can enhance residue-resolution by taking into account overlapping peptides.
The main advantage of instagibbs is computational speed. Therefore, the method can be applied in batch to many datasets easily. For a dataset of 180 peptides spanning 872 residues, obtaining peptide-level ΔG values takes ~100 ms, and reduction to residue-level by ridge regression another 8 ms. For differential HDX (ΔΔG) computational times are 1.7 ms (peptide) and 7.4 ms (residue-level lasso regression). ΔG values are found by root finding in area comparison to a theoretical uptake curve and therefore takes longer to compute. ΔΔG values are from direct peptide to peptide area comparison and only requires trapezoidal integration.
Output residue-level result from instagibbs provide an estimate of true underlying ΔG values, as with any method. Use and interpret results at your own risk. When in doubt, use weighted averaging, which is robust yet loses some resolution compared to regression methods. Lasso and ridge regression methods for obtaining ΔG or ΔΔG values can provide higher resolution but are subject to overfitting or false-positive detection of differences. Use higher regularization values to mitigate overfiitting and cross-reference results with peptide-level data.
Concepts
The idea of relating area-between-curves to ΔΔG originates from the Hamuro jasms paper:
Hamuro, Y. Quantitative Hydrogen/Deuterium Exchange Mass Spectrometry. J. Am. Soc. Mass Spectrom. (2021) doi:10.1021/jasms.1c00216.
In the implementation by instagibbs, areas are determined by trapezoidal integration over the available time window. D-uptake curves are not extrapolated to 0% or 100% D-uptake. As a consequence, the range of ΔG values that can be obtained is dependent on the time window (and temperature/pH) and ΔΔG values can be underestimated as a result of potential area differences outside of the time windows.
However, these limitations are not specific to the method but a result of the principle that if something is not measured it cannot be resolved. To expand the ΔG range or resolve additional ΔΔG in differential HDX, the time window must be expanded.
Development Install
Install uv
Git clone
$ git clone https://github.com/Jhsmit/instagibbs.git
navigate to the folder
$ cd instagibbs
Make a virtual env
$ uv venv -p "3.12"
Activate the venv
$ .venv\Scripts\activate
Editable install the project
$ uv pip install -e .
download the database: $ git clone https://github.com/Jhsmit/HDXMS-database.git
Then change the database_dir in instagibbs/config/default.yaml to point to your local copy of the database.
Run
solara run instagibbs/web/app.py
Project details
Release history Release notifications | RSS feed
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 instagibbs-1.0.0.tar.gz.
File metadata
- Download URL: instagibbs-1.0.0.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7058892484a1b6a6892261c8111c6dd6785e716cfce260d1ea6c193eb61f21b9
|
|
| MD5 |
8d34ae4a6b622e59268b1e29fbe5e956
|
|
| BLAKE2b-256 |
6265949be44ede77e311e31d4b5f2be8f4d9f555eb7f3d26d89a28f6f2c7d7b2
|
File details
Details for the file instagibbs-1.0.0-py3-none-any.whl.
File metadata
- Download URL: instagibbs-1.0.0-py3-none-any.whl
- Upload date:
- Size: 39.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42a7616ae2e6ba41c0433fd38826271c28a844db0a6f1dd376ae9ddc8ef1fc85
|
|
| MD5 |
81d3578e7fc289a737cfbd787bdc7022
|
|
| BLAKE2b-256 |
268a035057a13cb6db04da3a080f47fc719462f2e168c48d8f204eb15a1dd5f6
|