Package: napari-flim-phasor-plotter
napari-flim-phasor-plotterNapari-flim-phasor-plotter is anapariplugin to interactively load and show raw fluorescence lifetime imaging microscopy (FLIM) single images and series and generate phasor plots. These are Fourier transforms of the decay data being visualized using thenapari-clusters-plotterplotter, adapted to suit the FLIM context. This allows qualitative and quantitative downstream analysis of FLIM images.UsageOpen a FLIM image to visualize it both as a 'FLIM image series' being a sequence of intensity images each corresponding to an individual time point of the FLIM 'micro-time', plus as a timely summed up image. Scrolling through the FLIM time series provides a first glimpse of lifetimes across image regions.Call the plugin from the menuPlugins > FLIM phasor plotter > Make FLIM Phasor Plotto generate a phasor plot by pixel-wise Fourier transformation of the decay data. Hereby, select the FLIM image to be used, specify the laser pulse frequency if not read properly from metadata. Define an intensity threshold to exclude pixels of low photon counts, optionally a median filter, and a harmonic for optimal visualization.Runcreates the phasor plot and an additional labels layer in the layer list. Below is a demonstration:Change the color-code of the phasor plot to a density plot of various ‘Colormaps’ from the pulldownExpand for advanced optionsand selectHISTOGRAM. Manually encircle a region of interest in the phasor plot to highlight the corresponding pixels in the newly created image layer. Hold ‘Shift’ to select and visualize several clusters to investigate image regions of similar FLIM patterns.Input DataThis plugin integrates withnapari-clusters-plotter plugin.This plugin can read the following FLIM file types:".ptu"".sdt"".tif"".zarr"This plugin works with the following data shapes:2D FLIM images (actually 3D data where FLIM counts are in the first axis).3D FLIM images (actually 4D data where FLIM counts are in the first axis).3D timelapse FLIM images (actually 5D data where FLIM counts are in the first axis).Multichannel '.tif' or '.zarr' data may need to be loaded separately.The plugin outputs data axes in the following order (data from multiple detectors are displayed as distinct napari layers):(flim_counts,time,z,y,x)It also outputs the standard intensity image in another layer by summing theflim_countsdimension.Data ConversionIf a collection of raw (uncompressed) images are larger than 4GB, we recommend converting them to.zarr. This can be done viaPlugins > napari-flim-phasor-plotter > Convert to zarr.Warning: In the current version, lazy loading with.zarris available, but processing may still load all data into memory, so keep track of your memory usage.If you have multiple slices or time-points as separated files, you can choose a folder containing the files. In order for the plugin to properly build a stack, the file names must contain some indication about which slice or time-point they represent, i.e.,each file name should contain a_tand/or_zfollowerd by a number.Here are a few example templates:timelapse:image_t001.ptuimage_t002.ptuz-stack:image_z01.sdtimage_z02.sdt3D timelapse:image_t001_z001.tifimage_t001_z002.tif...image_t002_z001.tifInstallationYou can installnapari-flim-phasor-plotterviapip. Follow these steps from a terminal.We recommend usingmamba-forgewhenever possible. Clickhereto choose the right download option for your OS.If you usemamba-forge, replace thecondaterm whenever you see it below withmamba.Create a conda environment:conda create -n napari-flim-phasor-env python=3.9Activate the environment:conda activate napari-flim-phasor-envThen installnapariandnapari-clusturs-plotter(plus git if on Windows):conda install -c conda-forge napari==0.4.17 napari-clusters-plotter git pyqtOptional: westronglyrecommend having thedevbio-napariplugin bundle also installed for post-processing. This can be done with:conda install -c conda-forge devbio-napariFinally installnapari-flim-phasor-plotterplugin with:pip install napari-flim-phasor-plotterAlternatively, clone this repository and install the latest plugin development version with:pip install git+https://github.com/zoccoler/napari-flim-phasor-plotter.gitContributingContributions are very welcome. Tests can be run withtox, please ensure
the coverage at least stays the same before you submit a pull request.LicenseDistributed under the terms of theBSD-3license,
"napari-flim-phasor-plotter" is free and open source softwareIssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.