Skip to main content

A simple plugin to use phasor analysis

Project description

napari-phasors

License BSD-3 PyPI Python Version tests codecov napari hub

A simple plugin to do phasor analysis in napari. Based on the phasorpy library.

Jump to Intallation


Usage

napari-phasors is composed of a few widgets that allow reading a few specific FLIM and hyperspectral file formats, perform phasor analysis, and display and export the results of manual phasor selections.

Sample Data

Two sample datasets for FLIM are provided, along with their corresponding calibration images. Additionally, a paramecium image is included as sample data for hyperspectral analysis.

sample_data

Phasor Analysis

Plot FLIM Data

FLIM phasor data can be plotted as a 2D histogram or scatter plot. The colormap, the number of bins and the scale of the colors can be customized. Filtering and thresholding can also be applied to process phasor data and the mean intensity image.

phasors_flim

Plot Hyperspectral Data

Hyperspectral phasor data can also be plotted as a 2D histogram or scatter plot and visualized in the full universal circle.

phasors_hyperspectral

Apparent Lifetime Display

A FLIM image can be colormapped according to the phase or modulation apparent lifetime. A histogram is also created for visualization of the distribution of apparent lifetimes of the FLIM image.

lifetimes

Phasor Calibration

FLIM images can be calibrated using a reference image acquired under the same experimental parameters. This reference image should consist of a homogeneous solution of a fluorophore with a known fluorescence lifetime and the laser frequency used in the experiment. This ensures accuracy and consistency in lifetime measurements.

calibration

Phasor Custom Import

Supported file formats (.tif, .ptu, .sdt, .fbd, .lsm, .ome.tif) can be read and transformed to the phasor space. Additional options, such as the harmonics, channels and frames, can be specified depending on the file format to be read.

custom_import

Phasor Export

The average intensity image and the phasor coordinates can be exported as OME-TIF files that can be read by napari-phasors and PhasorPy. Alternatively, the phasor coordinates, as well as the selections (cursors) can be exported as a CSV file.

export_phasors

Installation

You can install napari-phasors via pip. Follow these steps from a terminal.

We recommend using miniforge whenever possible. Click here to choose the right download option for your OS. If you do not use miniforge, but rather Anaconda or Miniconda, replace the mamba term whenever you see it below with conda.

Create a conda environment with napari by typing :

mamba create -n napari-phasors-env napari pyqt python=3.10

Activate the environment :

mamba activate napari-phasors-env

Install napari-phasors via pip :

pip install napari-phasors

Alternatively, install latest development version with :

pip install git+https://github.com/napari-phasors/napari-phasors.git

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "napari-phasors" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

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

napari_phasors-0.0.2.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

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

napari_phasors-0.0.2-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

Details for the file napari_phasors-0.0.2.tar.gz.

File metadata

  • Download URL: napari_phasors-0.0.2.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for napari_phasors-0.0.2.tar.gz
Algorithm Hash digest
SHA256 427a66812c29598d46429cc27662eea26dabefc90b3fda957471ab4bedb98b1f
MD5 bf3e6c62f6a3e0e15144184c35b84d3f
BLAKE2b-256 ef50c9da1545255fe55f80ac56b3ef4be0ba67aafda5ebea8892c0386fea670d

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_phasors-0.0.2.tar.gz:

Publisher: run-tests.yml on napari-phasors/napari-phasors

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

File details

Details for the file napari_phasors-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: napari_phasors-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 39.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for napari_phasors-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aeffa004ee20c79bcb668b906adbab7c668f30422b7312325f84bb41fc03a13d
MD5 427869e8ede36768cca1b9e049bf71cd
BLAKE2b-256 effb9d0f3f7ac4fd2c8961614688a10025c117e278bd46ac4feb351a3b352c89

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_phasors-0.0.2-py3-none-any.whl:

Publisher: run-tests.yml on napari-phasors/napari-phasors

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