Library to compute estimated photon flux from multiphoton imaging data
Project description
Photon Flux Estimation
A Python library for estimating photon flux from multiphoton imaging data. This package provides tools to compute photon sensitivity and generate photon flux visualizations from imaging data.
Installation
pip install photon-flux-estimation
Features
- Compute photon sensitivity from imaging data
- Generate photon transfer curve visualizations
- Calculate photon flux estimates
- Visualize coefficient of variation
- Demo notebook with DANDI dataset integration
Usage
from photon_flux_estimation import PhotonFluxAnalyzer
# Load your imaging data (height, width, time)
movie = your_data_loading_function()
# Create estimator and compute sensitivity
estimator = PhotonFluxEstimator(movie)
results = estimator.compute_sensitivity()
print(f"Sensitivity: {results['sensitivity']:.2f}")
print(f"Zero level: {results['zero_level']:.2f}")
# Get photon flux movie
photon_flux = estimator.compute_photon_flux()
# Generate visualization
from photon_flux_estimation import (
plot_photon_transfer_curve,
plot_average_intensity,
plot_coefficient_variation,
plot_photon_flux,
)
plot_average_intensity(
movie=movie,
title="Average Intensity",
save_path=str(figure_filename) + "-A.png",
)
plot_photon_transfer_curve(
results=results,
title="Photon Transfer Curve",
save_path=str(figure_filename) + "-B.png",
)
plot_coefficient_variation(
movie=movie,
results=results,
title="Coefficient of Variation",
save_path=str(figure_filename) + "-C.png",
)
plot_photon_flux(
movie=movie,
results=results,
title="Average Photon Flux",
save_path=str(figure_filename) + "-D.png",
)
Citation
This package is based on code from the compress-multiphoton repository. If you use this package in your research, please cite both this package and the original repository.
Documentation
For detailed documentation and examples, please see the demo notebook.
License
MIT License. See LICENSE for details.
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 photon_flux_estimation-0.1.0.tar.gz.
File metadata
- Download URL: photon_flux_estimation-0.1.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae46ba96a5aba6c4ccfe691ab7dc8c2a3aa24efba1f1357e8202baa42c5d165a
|
|
| MD5 |
a8e719c4ea1dc12294d92e0ba92530f0
|
|
| BLAKE2b-256 |
2ba9ce2aa40a13464ad27d1d230f17734025382381e84593919fa89b4b156232
|
File details
Details for the file photon_flux_estimation-0.1.0-py3-none-any.whl.
File metadata
- Download URL: photon_flux_estimation-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b67c3f63f57cce1acb7b8b0d51c6b43fda1568483e5d6b7f71c4df24002a79f
|
|
| MD5 |
31ac5509ee71c9c2eb0d14ce2805aa74
|
|
| BLAKE2b-256 |
8f7bfe1814ff48d4cdc24d15c88f418d3335ee82540e75074aa02e42f0c1fa7a
|