Multi-exponetional fitting of TCSPC histograms based on full reconvolution method.
Batchwise proccessing, select 1 or multiple files via the GUI Data is read via the PTUreader https://github.com/SumeetRohilla/readPTU_FLIM
With this script you can fit TCSPC lifetime histograms to single, double or triple order exponential fit with reconvolution method Minimalization method are NLLS / MLE-Nelder-Mead minimalisation methods.
Input data selection tools:
- select SPAD channel from PTU file (Channel)
- Limit number of photos in the file (photons)
- Limit/set histogram peak value (peak_lim)
- Long lifetime/phosforence remove 2nd photon afer APD deadtime recovery (Drop_multi_AC_count)
Fitting options
- Fitting Methods: NLLS or MLE (method)
- Fit order 'single, 'double' or 'triple' (fit_order)
- Fixing any of the fitting parameters. (set in lmfit params)
- Fitting boundaries can set. (set in lmfit params)
- IRF from experimental file or Automatic reconstruction. (irf_source)
Output shows exp fit components and intensity weighted average lifetime.
Example: visual on Automatic IRF reconstruction.
CSV output of decays → time [ns], IRF, TCSPC decay, fit, residuals.
CSV output of fit values over all proccessed files → file,t1,t2,t3,tav,a1,a2,a3
Keywords: PTU, Picoquant, fluorescent lifetime, reconvolution, TCSPC