Metadata-Version: 2.4
Name: enthalpy
Version: 0.1.0
Summary: A Python framework for global analysis of molecular binding equilibria from titration experiments.
Author-email: Jan Haase <j.haase@rub.de>
License-Expression: GPL-3.0-only
Project-URL: documentation, https://enthalpy.readthedocs.io
Project-URL: repository, https://gitlab.ruhr-uni-bochum.de/cheminfolab/enthalpy
Project-URL: issues, https://gitlab.ruhr-uni-bochum.de/cheminfolab/enthalpy/-/work_items
Project-URL: changelog, https://gitlab.ruhr-uni-bochum.de/cheminfolab/enthalpy/-/blob/development/CHANGELOG.md
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Chemistry
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.26
Requires-Dist: scipy>=1.11
Requires-Dist: pint>=0.23
Requires-Dist: array-api-compat>=1.9
Provides-Extra: chem
Requires-Dist: rdkit; extra == "chem"
Provides-Extra: jax
Requires-Dist: jax>=0.4.32; extra == "jax"
Provides-Extra: plot
Requires-Dist: matplotlib>=3.8; extra == "plot"
Provides-Extra: pandas
Requires-Dist: pandas>=2.0; extra == "pandas"
Provides-Extra: all
Requires-Dist: enthalpy[chem,jax,pandas,plot]; extra == "all"
Dynamic: license-file

# EnthalPy

A Python framework for global analysis of molecular binding equilibria from titration experiments.

EnthalPy fits one thermodynamic model (ΔG°, ΔH° and optionally ΔCp° per reaction) to several
experiments at once: isothermal titration calorimetry, NMR titrations (fast exchange) and UV-Vis
titrations, at different concentrations and temperatures. It reports not only estimates and
uncertainties but also whether the data actually determine the parameters.

- **Chemistry:** any stoichiometry (1:1, 1:2, competition, dimerization), any independent set of
  reactions, thermodynamically consistent by construction; a robust equilibrium solver.
- **Experiments:** stock solutions with concentration scale factors, titration protocols, ITC
  (overfilled cell), NMR shifts, UV-Vis spectra.
- **Fitting:** global likelihood with per-dataset noise estimation, closed-form elimination of
  spectra and limiting shifts, bounded multistart least squares.
- **Statistics:** Wald and profile-likelihood intervals, parametric bootstrap, model comparison
  (AICc, BIC, likelihood-ratio tests), convergence and identifiability diagnostics.
- **Reproducibility:** single-file `.enthalpy` projects with data and fit records; command line
  `enthalpy fit | report | export`.

## Installation

```bash
pip install enthalpy            # core
pip install "enthalpy[plot]"    # with plotting (Matplotlib)
pip install "enthalpy[all]"     # plotting, JAX backend, pandas, RDKit
```

## Example

```python
import enthalpy as en

system = en.ChemicalSystem()
system.components("H", "G")
system.reaction("H + G -> HG", name="K1")          # fitted: K1.dG, K1.dH

itc = en.Experiment(
    "itc",
    en.Conditions(T="25 degC"),
    en.ITCInjectionProtocol(en.Stock("H", "30 uM"), en.Stock("G", "400 uM"), "200 uL", ["2 uL"] * 20),
    [en.ITCHeat(en.io.read_csv("heats.csv", "energy", columns="heat", unit="ucal"))],
)

fit = en.GlobalFit(system, [itc])
result = fit.fit(multistart=4, seed=0)
print(result.summary())
en.profile_likelihood(result, "K1.dH").interval
fit.save("itc.enthalpy")
```

See the documentation for tutorials (global ITC + NMR + UV-Vis fits, tight binding and displacement
titrations) and the validation report.

## Scientific assumptions

Activities are concentrations relative to 1 mol/L (ideal dilute solution), so constants are apparent
values for the medium used. Measured ITC enthalpies include buffer ionization heats unless
protonation is part of the model. NMR models assume fast exchange.

## License

GPL-3.0-only.
