FLOPA - FLIM Open, Process, and Analyze
A python based tool for Fluorescence Lifetime Imaging Microscopy (FLIM) data opening, processing and analysis. Designed as a modular widget for the napari multi-dimensional image viewer. Planned as napari plugin.
FLOPA tool is made to handle the TTTR files from various FLIM data acquisition settings, providing a clear interface for configuring reconstruction parameters and generating insightful data products like intensity/lifetime images, decay curves, and phasor plots.
| 1. PTU Reconstruction & Configuration | 2. Pixel-based Phasor |
|---|---|
![]() |
|
| 3. Object-based Phasor | 4. Decay Curve |
![]() |
![]() |
Currently implemented
- PTU file import
- header / metadata configuration option (lines, pixels, frames, sequences, accumulations)
- support for sequential and bidirectional scan (option to estimate and correct for bidirectional phase shift)
- preprocessing tools (binning, smoothing)
- intensity and mean arrival time image generation and export
- plotting TCSPC decay histograms
- phasor analysis (plot and export)
- pixel-based phasor
- object-based phasor (from label mask)
Planned functionalities
- batch processing widget
- multi-format data import (.sdt, and more)
- segmentation from phasor plot (interactive ROI selection)
- object-based TCSPC decay histograms
- decay fitting
The project is structured as a Python package, allowing its functions to be used in scripts and notebooks, with a top-level script for launching the napari GUI.
This project can be used in two ways: as a standalone napari application (recommended for interactive use) or as a Python library (for scripting and notebooks).
1. Installation
First, set up the project and install its dependencies.
- Prerequisites: Python 3.9+, Git
- Steps:
- Clone the repository:
git clone https://your-repository-url/FLOPA.git cd FLOPA - Create and activate a virtual environment:
conda create --name flopa python=3.9 conda activate flopa
- Install the package in editable mode:
This installs all required dependencies from
pyproject.tomland makes theflopapackage importable.pip install -e .
- Clone the repository:
2. Usage
This is the primary method for interactive data exploration and analysis.
- Make sure your virtual environment is activated.
- Run the
launch_napari.pyscript from the project's root directory:python launch_napari.py
This will launch a napari window with the full FLOPA widget docked and ready for you to load a file.
The core logic of FLOPA is accessible as a library, allowing you to build custom analysis workflows.
- Make sure your virtual environment is activated.
- Start a Python interpreter, an IPython session, or a Jupyter Notebook.
- Import and use the functions directly.
- Navigate to the /notebooks directory to explore the example notebooks.


