Skip to main content

Python package for Bayesian analysis of dipolar EPR spectroscopy data through Markov chain Monte Carlo sampling with PyMC.

Project description

dive

About

dive is a Python package for Bayesian analysis of dipolar EPR (electron paramagnetic resonance) spectroscopy data through Markov chain Monte Carlo (MCMC) sampling with the Python package PyMC.

Requirements

dive is available for Windows, Mac and Linux systems and requires Python 3.9 or later and PyMC 5.0 or later.

Features

dive's features include:

  • An output InferenceData object containing many random posterior samples for each parameter
  • Full uncertainty quantification for all model parameters, including the distance distribution
  • Visualizations for ensembles of fitted signals and residuals
  • Visualizations for ensembles of fitted distance distributions
  • Histograms for margnialized posteriors of other parameters such as modulation depth and background decay rate

Setup

You can install dive using pip. Please note that the PyPI package name is dive-EPR.

pip install dive-EPR

You can also directly clone the dive directory. Please make sure to also import the necessary packages.

pip install pymc deerlab scipy matplotlib numpy pandas mkl-service h5netcdf pytest
git clone https://github.com/StollLab/dive

dive can then be used by importing the package as usual.

import dive

Documentation

See the documentation for a detailed guide on how to use dive. An IPython Notebook guide on using dive can also be found under the examples/ directory.

Citation

When you use dive in your work, please cite the following publication:

Bayesian Probabilistic Analysis of DEER Spectroscopy Data Using Parametric Distance Distribution Models
Sarah R. Sweger, Stephan Pribitzer, and Stefan Stoll
J. Phys. Chem. A 2020, 124, 30, 6193–6202
doi.org/10.1021/acs.jpca.0c05026

License

dive is licensed under the MIT License.

Copyright © 2024: Sarah Sweger, Julian Cheung, Lukas Zha, Stephan Pribitzer, Stefan Stoll

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dive_epr-0.2.1.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

dive_EPR-0.2.1-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file dive_epr-0.2.1.tar.gz.

File metadata

  • Download URL: dive_epr-0.2.1.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for dive_epr-0.2.1.tar.gz
Algorithm Hash digest
SHA256 db401b96cbfc9eaa6497fbbfe4601153406561ed0212131932e42647d6249912
MD5 0514b7ff26094b398f4ebc65eaa1891c
BLAKE2b-256 4481bbff8a09aa01dde6d99c8ae468fe7d8eea2365656c6cb96260fcf8e05fc9

See more details on using hashes here.

File details

Details for the file dive_EPR-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: dive_EPR-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for dive_EPR-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a3f0b8c7c51a7439ba21e2dd604ab06b1159b35d575fb0648b81f43aa13dd2a
MD5 230b71d2d6702e42cdbfd6105f2ea021
BLAKE2b-256 9f3d7b15969d1bf3893b910b5e5fecf190392c0ba6ca85e3d261554d1dfe0d8c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page