Differentiable HDX-MS prediction in JAX
Project description
🧪 diff-hdx: Differentiable HDX-MS Prediction in JAX
diff-hdx is a high-performance Python library for differentiable Hydrogen-Deuterium Exchange (HDX-MS) prediction. Built on JAX, it provides auto-differentiable kernels to bridge structural ensembles and experimental protection factors.
🎯 Features
- Differentiable SASA Kernels: Hardware-accelerated approximations of Solvent Accessible Surface Area using Gaussian occlusion models.
- Protection Factor Modeling: Implementations of Linderstrøm-Lang models for H-exchange rates ($PF$).
- Kinetic Simulation: Model time-dependent mass shifts using EX2 kinetics (Hvidt & Nielsen, 1966).
- Gradient-Based Refinement: Optimize protein structures or ensembles directly against experimental HDX-MS time-curves.
- Vectorized Execution: Native support for
vmapto handle large conformational ensembles.
🏗️ Technical Architecture
- Backend: JAX (XLA-compiled) — supports CPU, GPU, and TPU.
- Differentiability: Full support for forward and reverse-mode autodiff.
- Integration: Compatible with
biotitefor structural parsing anddiff-biophysfor ensemble averaging.
🚀 Roadmap
- Initial differentiable SASA and $ln P$ kernels.
- Integration with JAX
vmapfor ensemble averaging. - Residue-specific intrinsic exchange rates (Bai et al. 1993) — all 20 amino acids.
- Integration with MD trajectory loaders.
🚀 Installation
pip install diff-hdx
🧪 Scientific Validation
- Parity Checks: Kernels are validated against standard non-differentiable implementations (e.g.,
biotiteSASA) to ensure physical accuracy. - Gradient Tests: All kernels are verified using JAX's
gradcheckto ensure numerically stable derivatives across the full support. - Ensemble Consistency: Verified against
diff-biophysensemble averaging for IDP conformational ensembles.
🔗 Related Projects
diff-hdx is part of the differentiable biophysics ecosystem:
- diff-biophys — Core differentiable biophysics engine.
- diff-fret — Differentiable FRET modeling.
- diff-epr — Differentiable EPR/DEER simulation.
- synth-pdb — Synthetic structure generation.
📖 Citation
@software{diff_hdx,
author = {Elkins, George},
title = {diff-hdx: Differentiable HDX-MS prediction in JAX},
year = {2026},
url = {https://github.com/elkins/diff-hdx},
version = {0.1.0}
}
⚖️ License
MIT
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 diff_hdx-0.1.0.tar.gz.
File metadata
- Download URL: diff_hdx-0.1.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaac3f4aca8a3a60212f126cd871916ae0b238a529b232f5860f45b6a5f8c735
|
|
| MD5 |
9ea5dc390837b867a00e68b1f277cf5c
|
|
| BLAKE2b-256 |
5ffa2a9f8f6e567d4813b4d927696c749bfff981023e406d97452ad41af59387
|
File details
Details for the file diff_hdx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: diff_hdx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dce336cbea0bf26772507750289c63a361256bd4f8f855322cfc9edd1ff8036b
|
|
| MD5 |
10253899ad24d4252399cac0a2e205df
|
|
| BLAKE2b-256 |
21bc5b0cf776b8832fa468b6c04f49289957015b61b98b577a0fea845681c989
|