Skip to main content

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


Download files

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

Source Distribution

photon_flux_estimation-0.1.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

photon_flux_estimation-0.1.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file photon_flux_estimation-0.1.1.tar.gz.

File metadata

  • Download URL: photon_flux_estimation-0.1.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for photon_flux_estimation-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ed2798d479fd5f66c54ae08118d93c0cf1c5df9bdd8755fab40bb85d38ccbc3c
MD5 f3e65787bb29470215c7d3f01e7ea752
BLAKE2b-256 caa93b45fab19dfb54be1a310b183cf77d5525953c0fd894115088c9dce00f89

See more details on using hashes here.

Provenance

The following attestation bundles were made for photon_flux_estimation-0.1.1.tar.gz:

Publisher: python-publish.yml on catalystneuro/photon-flux-estimation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file photon_flux_estimation-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for photon_flux_estimation-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c6a392ae4bf96a10384a8162c64418030419534569420074e254823766d353b
MD5 d55ebea12b9a209434a60f1e8052f500
BLAKE2b-256 6f90c632de5ccf909acd96de6cf3c59927a3e44df7bda8a13118b1de439e0732

See more details on using hashes here.

Provenance

The following attestation bundles were made for photon_flux_estimation-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on catalystneuro/photon-flux-estimation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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