Skip to main content

Python package to analyse mass photometry data

Project description

PyPhotoMol

Tests codecov Docs

Welcome to PyPhotoMol, a python-package to analyse mass photometry data.

Features

  • Data Import: Import HDF5 (.h5) and csv mass photometry data files, generated by Refeyn instruments (https://refeyn.com).
  • Histogram Analysis: Create histograms of mass or contrast distributions
  • Peak Detection: Automated peak finding in histograms using peak height, distance and prominence
  • Mass-Contrast Conversion: Convert between mass and contrast with calibration parameters
  • Gaussian Fitting: Fit multiple Gaussians to the histogram data
  • Comprehensive Logging: Track all operations with logbooks

Installation

Install PyPhotoMol with pip:

pip install pyphotomol

Quick Start

from pyphotomol import PyPhotoMol

# Create a new analysis instance
model = PyPhotoMol()

# Import data from an HDF5 file
model.import_file('data.h5')

# Create a histogram and detect peaks
model.create_histogram(use_masses=True, window=[0, 1000], bin_width=10)
model.guess_peaks(min_height=10, min_distance=4, prominence=4)

# Fit Gaussian models to detected peaks
model.fit_histogram(
    peaks_guess=model.peaks_guess,
    mean_tolerance=200,
    std_tolerance=300
)

# Create and view results
model.create_fit_table()
print(model.fit_table)

Acknowledgements

PyPhotoMol is derived from PhotoMol, an online tool presented in the following publication:

Niebling, Stephan, et al. "Biophysical Screening Pipeline for Cryo-EM Grid Preparation of Membrane Proteins." Frontiers in Molecular Biosciences 9 (2022): 903148.

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

pyphotomol-0.1.3.tar.gz (45.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyphotomol-0.1.3-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file pyphotomol-0.1.3.tar.gz.

File metadata

  • Download URL: pyphotomol-0.1.3.tar.gz
  • Upload date:
  • Size: 45.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyphotomol-0.1.3.tar.gz
Algorithm Hash digest
SHA256 aec652426ed7f1044e84a45f3556c05abf424efe7e1e7fd8ec957acaecda436f
MD5 7da27f3f575564e7305db435c64d6601
BLAKE2b-256 d055bd5f41796bf6125458aef5c66619558dadcb8a448c82b38e154aaea37f42

See more details on using hashes here.

File details

Details for the file pyphotomol-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pyphotomol-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 33.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyphotomol-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f8f1aa24c0a1365390892685dffbf71e321aca4104abcc9d2025c119dfcb62f2
MD5 30ea69c9cd3af5cbe2b928c680527e0e
BLAKE2b-256 dbaba885a9d8af64b31cd03d4d215f4500be5c6f0dccbc4fc8aee4561108fbbb

See more details on using hashes here.

Supported by

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