FLIMKit

Plugins / FLIMKit / Module Reference · edit on GitHub

Module Reference

flimkit.formats - Format Dispatch

The format layer sits behind one interface: every reader returns the same (Y, X, H) decay cube plus metadata, so the fitter, phasor, stitching and GUI never branch on file type.

flim_file.py


flimkit.formats.PTU - PicoQuant PTU

reader.py

decode.py

tools.py

stitch.py


flimkit.formats.BH - Becker & Hickl SDT

reader.py

writer.py

flimkit.formats.PS - Photonscore LINCam

reader.py

flimkit.formats.ISS - ISS FastFLIM / Vista

Experimental: written from ISS specifications and checked only against synthetic files, not real acquisitions (issue #19).

reader.py

fdflim.py

image.py


flimkit.synth - Synthetic Ground Truth

Generates FLIM data with known parameters, for validation. Driven by synth_cli.py.


flimkit.FLIM - Reconvolution Fitting

fitters.py

Two-pass model:

y(t) = [IRF(t + Shift_IRF) + Bkgr_IRF] ⊗ [Σ αᵢ·exp(−t/τᵢ) + Bkgr]

Pass 1 (summed): DE → LM polish → fixes τ₁...τₙ
Pass 2 (per-pixel): NNLS fits α₁...αₙ and background with fixed τ values

Primary per-pixel output: tau_mean_amp = Σ(fracᵢ × τᵢ) - amplitude-weighted mean lifetime

assemble.py

irf_tools.py


flimkit.phasor - Phasor Analysis

signal.py

filters.py

interactive.py

export.py

peaks.py


flimkit.UI - Desktop GUI

gui.py

roi_tools.py

The region model itself lives in flimkit/utils/roi.py so that headless and web use can reach it without Tkinter. roi_tools re-exports RoiManager and the patch helpers, so existing imports keep working.

phasor_panel.py


flimkit.image - Image Utilities

tools.py


flimkit.utils - Shared Utilities

roi.py

display.py

config_snapshot.py

session.py

plotting.py

enhanced_outputs.py

lifetime_image.py

xlsx_tools.py

xml_utils.py