Skip to main content

This is a preprint.

It has not yet been peer reviewed by a journal.

The National Library of Medicine is running a pilot to include preprints that result from research funded by NIH in PMC and PubMed.

bioRxiv logoLink to bioRxiv
[Preprint]. 2025 Feb 15:2025.02.10.637545. [Version 1] doi: 10.1101/2025.02.10.637545

GSLab: Open-Source Platform for Advanced Phasor Analysis in Fluorescence Microscopy

Alexander Vallmitjana 1, Belén Torrado 1, Amanda F Durkin 1, Alexander Dvornikov 1, Navid Rajil 1, Suman Ranjit 1, Mihaela Balu 1,2
PMCID: PMC11844366  PMID: 39990344

Abstract

GSLab addresses the need for effective image analysis tools in fluorescence microscopy by providing an open-source platform that enhances traditional phasor analysis with advanced features. Key capabilities include machine learning-based clustering, real-time monitoring, and quantitative unmixing of fluorescent species. Designed for both commercial and custom systems, GSLab provides researchers with comprehensive lifetime and spectral phasor image analysis tools to tackle complex biological problems.

Main Text

Fluorescence lifetime microscopy (FLIM) is a powerful imaging technique that provides quantitative information about the local environment and molecular interactions of fluorophores within biological tissues or other materials. By measuring how long a fluorescent molecule remains in an excited state before emitting a photon, FLIM offers a new dimension for biological imaging, which, combined with spectral imaging, enables researchers to investigate complex cellular processes and interactions. The integration of advanced analytical methods, such as the phasor approach, enables more sophisticated image analysis and interpretation. As a result, this will further enhance the capabilities of FLIM and spectral microscopy.

The basis of phasor analysis lies in using the phasor transform to map every pixel of an image onto a two-dimensional space known as phasor space, based on the photon distribution within that pixel across the fluorescence lifetime or spectral dimensions1,2. The position of each pixel in phasor space is determined by the shape of the photon distribution and is independent of the signal’s intensity. Analysis by means of the phasor representation does not require prior knowledge of the nature of the sample nor fitting of a model. In addition, utilization of the Fast Fourier Transform algorithm enables rapid computation. This analysis simplifies visual inspection and identification of distinct populations of pixels, which can subsequently be mapped back to the original fluorescence image (or set of images)3. Furthermore, the mathematical properties of the phasor transform enable researchers to understand the phenomena occurring in the sample by observing changes in the photon distribution represented in phasor space. A brief overview of the mathematics behind the phasor approach for analyzing fluorescence lifetime microscopy images is available in Online Methods.

Phasor analysis is widely used in the biophysics and bioimaging fields and has led to a vast number of quantification methods and applications. These include studying cellular metabolic states4, molecular interactions5, molecular dynamics6, drug delivery7, chromatin compaction8, sensing local polarity9, ion concentration10, pH11, enhancing superresolution12 and multiplexed imaging13.

For over a decade, the scientific community has primarily relied on Globals for Images SimFCS software developed by Prof. Enrico Gratton for phasor analysis14. However, maintenance and updates for this software were discontinued in 2021, prompting developers to create alternative phasor analysis tools. While several research laboratories have developed custom tools to address specific challenges1524, and commercial brands such as Leica, PicoQuant, Becker & Hickl, FLIM Labs, and ISS have incorporated phasor analysis into their software suites, there are few reports on open-source software solutions. Existing platforms, based on Phyton (PhasorPy15, FLUTE18, Phasor Identifier19, FLIMPA25), Java (FLIMJ20) or MATLAB (PAM17), have successfully incorporated traditional phasor analysis techniques, such as intensity thresholding, image filtering, color-mapping, and cursor analysis (manual clustering). Despite these developments, recent advances in machine learning-clustering for image segmentation26 and unmixing of fluorescent species present in the same pixel via higher harmonics27, are not yet available in open-source formats.

To address this gap, our team has developed GSLab, a pioneering, open-source software platform designed to provide researchers with a comprehensive set of tools for advanced lifetime and spectral phasor image analysis. GSLab not only incorporates traditional phasor analysis techniques, but also introduces unique and advanced capabilities, including automated machine learning-based clustering in phasor space for image segmentation, real-time monitoring of both image and phasor space, and quantitative unmixing of multiple fluorescent species from a single pixel, applicable to any imaging system, whether commercial or custom-built.

GSLab is developed in MATLAB. It offers robust computational and visualization capabilities, allowing researchers to enhance their phasor analysis workflows effectively. GSLab compiles these tools into a user-friendly program, featuring a graphical user interface that simplifies complex analyses. MATLAB’s extensive library of built-in functions facilitates rapid development, enabling users to tailor GSLab to their specific research needs. While a MATLAB license by Mathworks Inc. may be a barrier for some, the widespread availability in academia ensures that most researchers can benefit from the advanced functionalities of GSLab. We have uploaded GSLab in a public repository28 under MIT license.

Figure 1 provides an overview of GSLab’ capabilities. It highlights its key features across three main areas: Input/Output, Basic Analysis, and Advance Analysis. The Input/Output section illustrates the software’s compatibility with various image formats for lifetime and spectral data, along with its export options for phasor plots and color-coded intensity images. The Basic Analysis section illustrates the commonly available tools such as cursor analysis, phasor filtering and image manipulation, enabling users to interact with and process the data efficiently. The current open-source solutions allow for the implementation of a subset of these analysis tools. The Advanced Analysis section emphasizes the software’s powerful functions for unmixing multiple fluorescence components, machine-learning based clustering, and real-time examination of the reciprocity between image and phasor space, demonstrating its robust analytical capabilities. A more detailed description of GSLab’ capabilities is available in the Supplementary Material.

Figure 1. GSLab capability overview.

Figure 1.

1) Input/Output: Supports major image formats for lifetime and spectral data. Allows exporting of phasor plots and color-coded intensity images based on phasor coordinates, component unmixing, or clustering results, with various styling options for both phasor plots and images. 2) Basic Analysis: Offers cursor analysis, phasor filtering, image manipulation, and the ability to create or load masks. Users can measure pixel phasor coordinates and create color gradients on the phasor space, generate lifetime and spectral images based on the color gradients, and calibrate the data using reference files. 3) Advanced Analysis: Enables unmixing of multiple fluorescence components, machine learning-based clustering of phasor distributions, and real time inspection of the reciprocity between image and phasor space.

Figure 2 illustrates the advanced capabilities of phasor analysis for automated machine learning, clustering, and unmixing of fluorescent components. We demonstrate these capabilities by analyzing two sets of data. First, label-free FLIM images of a fresh human skin specimen (discarded tissue from surgery), acquired with a custom-built clinical multiphoton microscopy device29 are used to demonstrate automated clustering and image segmentation (Figure 2 AD). Second, time-resolved fluorescence images of labeled cell cultures, obtained using another custom-built FLIM-based multiphoton microscope for thick tissue imaging30 are used to demonstrate unmixing of fluorescent components (Figure 2 EH).

Figure 2. Advanced phasor analysis: Automated machine-learning clustering of phasor distributions and fluorescent component unmixing.

Figure 2.

A) Intensity obtained through time-resolved two-photon excited fluorescence signal detection from a human skin specimen. B) Corresponding fluorescence lifetime phasor plot with gradient color distribution representing tau-phase values. The plot demonstrates automated machine learning clustering into four populations with ellipses outlining 88% of pixels within each Gaussian component. C) The intensity image from (A) shown as color-coded lifetime image, based on tau-phase values from the phasor plot. D) The intensity image from (A) displayed as color-coded image highlighting the four populations identified through automatic clustering. These populations correspond to known skin structures: keratin in epidermal keratinocytes (green), melanin in pigmented keratinocytes (red), elastin in the dermis (blue), and other structures characterized by a mixed fluorescence lifetime distribution, representing a linear combination of the other three clusters. E) Intensity images obtained through time-resolved two-photon excitation signal detection from five cell cultures: four of them stained independently with one of the nuclear dyes Ethidium Bromide, Acridine Orange, NucBlue, and Rose Bengal, and the fifth with a mixture of all four dyes. F) Corresponding fluorescence lifetime phasor plot with gradient color distribution representing tau-modulation values. The plot shows the fluorescence lifetime signatures for each dye and the signature of the mixed sample as an elongated distribution in the center. The theoretical lifetime of the four dyes is used to compute the coordinates for each of the four components, depicted by the vertices of a quadrilateral. Inset displays the same data in the 2nd harmonic required for the fluorescent component unmixing. G) Intensity images from (E) shown as color-coded lifetime images, based on tau-modulation values from the phasor plot. H) Results of fluorescent component unmixing: H1-H4) Unmixed photon fraction images for each component (rows) and each measurement (columns). Inset violin plots illustrate pixel value distribution for each image. H5) Merged images for each measurement using linear addition of panels (H1-H4).

Phasor analysis of the skin specimen’s FLIM image (Figure 2 B) shows automated machine-learning-based clustering into four populations, which are subsequently illustrated in the corresponding color-coded FLIM image revealing well-known skin structures. Phasor analysis of the fluorescence images of stained cell cultures highlights the ability to unmix four fluorescent components by clearly resolving the fluorescence lifetime signatures of the dyes and computing the pixel fractions of the components in the mixed sample. These examples demonstrate the powerful advanced capabilities of GSLab for resolving complex fluorescence signatures within a single sample.

Supplementary Material

1

Acknowledgements

We wish to recognize the impactful career of Prof. Enrico Gratton, whose contributions have significantly influenced our work. We also acknowledge the funding support for this project from the NIBIB (R01EB026705), NIAMS (R21AR082648) and NCI (R01CA259019), as well as the Skin Biology Resource-Based Center at the University of California, Irvine (P30AR075047).

Footnotes

Ethics Declarations

MB is a coauthor of a patent owned by the University of California, Irvine (UCI) related to the development of clinical multiphoton microscopy technology. Additionally, MB is a cofounder of Infraderm, LLC, a startup spin-off from UCI focused on commercializing clinical multiphoton microscopy imaging platforms that may benefit from the use of advanced analysis tools. The Institutional Review Board and Conflict of Interest Office of UCI have reviewed patent disclosures and found no concerns. The other authors declare no competing interests.

References

  • 1.Digman M. A., Caiolfa V. R., Zamai M. & Gratton E. The Phasor Approach to Fluorescence Lifetime Imaging Analysis. Biophys J 94, L14–L16 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Fereidouni F., Bader A. N. & Gerritsen H. C. Spectral phasor analysis allows rapid and reliable unmixing of fluorescence microscopy spectral images. Opt Express 20, 12729–12741 (2012). [DOI] [PubMed] [Google Scholar]
  • 3.Malacrida L., Ranjit S., Jameson D. M. & Gratton E. The Phasor Plot: A Universal Circle to Advance Fluorescence Lifetime Analysis and Interpretation. Annu Rev Biophys 50, 575–593 (2021). [DOI] [PubMed] [Google Scholar]
  • 4.Stringari C. et al. Phasor approach to fluorescence lifetime microscopy distinguishes different metabolic states of germ cells in a live tissue. Proc Natl Acad Sci U S A 108, 13582–13587 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Guaglianone G. et al. Elucidating the Oligomerization and Cellular Interactions of a Trimer Derived from Aβ through Fluorescence and Mass Spectrometric Studies. ACS Chem Neurosci 13, 2473–2482 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Rossetta A. The bright future of fluorescence lifetime analysis. 1239805, 26 (2023). [Google Scholar]
  • 7.Jeong S. et al. Time-resolved fluorescence microscopy with phasor analysis for visualizing multicomponent topical drug distribution within human skin. Sci Rep 10, (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Pelicci S., Diaspro A. & Lanzanò L. Chromatin nanoscale compaction in live cells visualized by acceptor-to-donor ratio corrected Förster resonance energy transfer between DNA dyes. J Biophotonics 12, (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Malacrida L. & Gratton E. LAURDAN fluorescence and phasor plots reveal the effects of a H2O2 bolus in NIH-3T3 fibroblast membranes dynamics and hydration. Free Radic Biol Med 128, 144–156 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Celli A. et al. The epidermal Ca2+ gradient: Measurement using the phasor representation of fluorescent lifetime imaging. Biophys J 98, 911–921 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Rennick J. J., Nowell C. J., Pouton C. W. & Johnston A. P. R. Resolving subcellular pH with a quantitative fluorescent lifetime biosensor. Nat Commun 13, (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Lanzanò L. et al. Encoding and decoding spatio-temporal information for super-resolution microscopy. Nat Commun 6, 1–9 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Yao Z. et al. Multiplexed bioluminescence microscopy via phasor analysis. Nat Methods 19, 893–898 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Gratton Enrico. Globals for Images SimFCS. https://www.lfd.uci.edu/globals/ (2021).
  • 15.Gohlke C. & Malacrida L. PhasorPy. https://www.phasorpy.org/stable/ (2024).
  • 16.Tan K. K. D., Tsuchida M. A., Chacko J. V., Gahm N. A. & Eliceiri K. W. Real-time open-source FLIM analysis. Frontiers in Bioinformatics 3, (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Schrimpf W., Barth A., Hendrix J. & Lamb D. C. PAM: A Framework for Integrated Analysis of Imaging, Single-Molecule, and Ensemble Fluorescence Data. Biophys J 114, 1518–1528 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Gottlieb D., Asadipour B., Kostina P., Ung T. P. L. & Stringari C. FLUTE: A Python GUI for interactive phasor analysis of FLIM data. Biological Imaging 3, (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Bernardi M. & Cardarelli F. Phasor identifier: A cloud-based analysis of phasor-FLIM data on Python notebooks. Biophysical Reports 3, (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Gao D. et al. FLIMJ: An open-source ImageJ toolkit for fluorescence lifetime image data analysis. PLoS One 15, (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Zoccoler M., Iarovenko S. & Wetzker C. FLIM phasor plotter. https://doi.org/10.5281/zenodo. 12620956 (2024) doi: 10.5281/zenodo.12620956. [DOI] [Google Scholar]
  • 22.Castello M. et al. A robust and versatile platform for image scanning microscopy enabling super-resolution FLIM. Nat Methods 16, 175–178 (2019). [DOI] [PubMed] [Google Scholar]
  • 23.Stowers Institute. Spectral Image Analysis Plugins. https://research.stowers.org/imagejplugins/spectral_imaging.html (2017).
  • 24.Farzad Fereidouni. SPECHRON. http://www.spechron.com/SpectralPhasor-Download.aspx (2024).
  • 25.Kapsiani S. et al. FLIMPA: A versatile software for Fluorescence Lifetime Imaging Microscopy Phasor Analysis. bioRxiv (2024) doi: 10.1101/2024.09.13.612802. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Vallmitjana A. et al. Resolution of 4 components in the same pixel in FLIM images using the phasor approach. Methods Appl Fluoresc 8, 035001 (2020). [DOI] [PubMed] [Google Scholar]
  • 27.Vallmitjana A., Torrado B. & Gratton E. Phasor-based image segmentation: machine learning clustering techniques. Biomed Opt Express 12, 3410 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Vallmitjana A. GSLab: Open-Source Platform for Advanced Phasor Analysis in Fluorescence Microscopy. 10.6084/m9.figshare.27921966 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Fast A. et al. Fast, large area multiphoton exoscope (FLAME) for macroscopic imaging with microscopic resolution of human skin. Sci Rep 10, 1–14 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Dvornikov A., Malacrida L. & Gratton E. The diver microscope for imaging in scattering media. Methods Protoc 2, 1–12 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Clayton A. H. A., Hanley Q. S. & Verveer P. J. Graphical representation and multicomponent analysis of single-frequency fluorescence lifetime imaging microscopy data. J Microsc 213, 1–5 (2004). [DOI] [PubMed] [Google Scholar]
  • 32.Datta R., Heaster T. M., Sharick J. T., Gillette A. A. & Skala M. C. Fluorescence lifetime imaging microscopy: fundamentals and advances in instrumentation, analysis, and applications. J Biomed Opt 25, 1 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Malacrida L., Ranjit S., Jameson D. M. & Gratton E. The Phasor Plot: A Universal Circle to Advance Fluorescence Lifetime Analysis and Interpretation. 88, 49 (2024). [DOI] [PubMed] [Google Scholar]
  • 34.Silberberg M. & Grecco H. E. pawFLIM: reducing bias and uncertainty to enable lower photon count in FLIM experiments. Methods Appl Fluoresc 5, 024016 (2017). [DOI] [PubMed] [Google Scholar]
  • 35.Fast A. et al. Fast, large area multiphoton exoscope (FLAME) for macroscopic imaging with microscopic resolution of human skin. Sci Rep 10, 1–14 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Torrado B., Pannunzio B., Malacrida L. & Digman M. A. Fluorescence lifetime imaging microscopy. Nature Reviews Methods Primers 4, 80 (2024). [Google Scholar]
  • 37.Ranjit S., Malacrida L., Jameson D. M. & Gratton E. Fit-free analysis of fluorescence lifetime imaging data using the phasor approach. Nat Protoc 13, 1979–2004 (2018). [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

1

Articles from bioRxiv are provided here courtesy of Cold Spring Harbor Laboratory Preprints

RESOURCES