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.2a0.tar.gz (36.2 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.2a0-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: napari_phasors-0.0.2a0.tar.gz
  • Upload date:
  • Size: 36.2 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.2a0.tar.gz
Algorithm Hash digest
SHA256 c1a43bb888573e7aa57ea706f1eb541dfec447818f32734fa3dc7185e4afd0c2
MD5 50f2b675a4010d065d3ad9a8faea8957
BLAKE2b-256 aff711327b34c2a5efdb7625bf4f847fac60fef2f4b33f956a19a24e779a52c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_phasors-0.0.2a0.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.2a0-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_phasors-0.0.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 8379647386521a3c4723a024da9224e70c125d45ef3ccea59e8afae7cc376aae
MD5 5c074c103ed64af3346625235f541225
BLAKE2b-256 1d8cab9295590ee284b065ffee15c10da2dee1519cd0313017f1e449155a32e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_phasors-0.0.2a0-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