Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| lifetime_fitting_using_the_tcpsc_fitting_script [2014/02/14 11:16] – rosario | lifetime_fitting_using_the_tcpsc_fitting_script [2026/08/19 03:27] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Lifetime Fitting Using the TCPSC Fitting Script ====== | ||
| - | |||
| - | |||
| - | ===== Summary ===== | ||
| - | |||
| - | |||
| - | This tutorial shows step-by-step, | ||
| - | |||
| - | ===== Step-by-Step Tutorial ===== | ||
| - | |||
| - | |||
| - | Select a file and start the script | ||
| - | |||
| - | * Start [[products: | ||
| - | * Open the " | ||
| - | |||
| - | **Note:** The " | ||
| - | |||
| - | **Response: | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_1.png }} | ||
| - | |||
| - | * Highlight the file '' | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_2.png }} | ||
| - | |||
| - | * Select the " | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_3.png }} | ||
| - | |||
| - | **Note:** The drop down menu can be opened and closed by clicking on the grey button on the left side of the header of the drop down menu: {{grey_button.png}} | ||
| - | |||
| - | * Start the "TCSPC Fitting" | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_4.png }} | ||
| - | |||
| - | **Response: | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_5.png? | ||
| - | |||
| - | **Note:** The window contains two different regions:\\ | ||
| - | - **Left:** Fitting and analysis options. | ||
| - | - **Center/ | ||
| - | |||
| - | * In the decay form on the left, select n-exponential reconvolution as fitting model. | ||
| - | **Response: | ||
| - | * In the TCSPC window, the IRF is displayed in bright red and the data fitting limits are moved to the border of the TCSPC window. | ||
| - | * The new fitting parameters "Shift IRF" and "Bkgr IRF" (=background IRF) appear in the fitting parameter table. | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_6.png? | ||
| - | |||
| - | **Note:** The software offers the possibility to fit the data using a n-exponential tailfit or a n-exponential reconvolution fit. A tailfit can be used when the fitted lifetimes are significantly longer than the instrument response function. Still a reconvolution fit is usually preferable, because the complete decay is fitted, while for a tailfit, the start of the fitting range is usually a bit arbitrary.\\ | ||
| - | For explanation about the fitting model and the used equations, click on the " | ||
| - | |||
| - | * Click: " | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_7.png? | ||
| - | |||
| - | |||
| - | |||
| - | **Response: | ||
| - | * In the TCSPC window, the fit is displayed as a black line. Below, the residuals (= raw data fit values) are displayed. | ||
| - | * Fit values appear in the fitting table. | ||
| - | |||
| - | **Note:** | ||
| - | Usually, a decent fit is characterized by the following criteria:\\ | ||
| - | The fitted curve overlays well with the decay curve. In the residual window, the values spread randomly around 0.\\ | ||
| - | The χ²-value approaches 1.\\ | ||
| - | The calculated fitting values are reasonable.\\ | ||
| - | Usually the fitting model with least parameters is selected.\\ | ||
| - | => In this example, the fit is already sufficient. | ||
| - | |||
| - | |||
| - | * Store the result file by selecting: "Save Results" | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_8.png }} | ||
| - | |||
| - | **Response: | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_9.png }} | ||
| - | |||
| - | * Later, clicking on the result file reopens the file in the same way as it was stored. | ||
| - | * Now all necessary steps are done. There are several possibilities how to continue: | ||
| - | |||
| - | ===== Export the Fitting Values ===== | ||
| - | |||
| - | * To transfer the fitting data into another program, place your mouse cursor over the fitting table into a grey region, use a right mouse click to open the context menu and select " | ||
| - | * Open Notepad or Excel or any other program you want to copy the data into, and past the data there using "< | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_10.png? | ||
| - | ⇓ | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_11.png? | ||
| - | |||
| - | ===== Export the Complete Decay ===== | ||
| - | |||
| - | * If the complete decay should be exported to plot the graph in another program, place the cursor over the decay graph, use the right mouse click to open the context menu and select one of the ASCII export options, in this case " | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_12.png? | ||
| - | |||
| - | **Response: | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_13.png? | ||
| - | |||
| - | **Note:** The .dat file contains the TCSPC curve, the estimated instrument response function (IRF) and the fitted curve. | ||
| - | |||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_14.png? | ||
| - | |||
| - | ===== Process Several Files and Calculate Averages ===== | ||
| - | |||
| - | * If several raw data files are marked in the workspace and the TCSPC fitting script is then applied, the decays of all loaded files are displayed in the script. For illustration, | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_15.png }} | ||
| - | |||
| - | **Response: | ||
| - | |||
| - | **Note:** The file '' | ||
| - | |||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_16.png? | ||
| - | |||
| - | * Click on " | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_17.png? | ||
| - | |||
| - | * If both dyes can be fitted with the same model, click "Fit All". | ||
| - | **Response: | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_18.png? | ||
| - | |||
| - | * To toggle between the fitted values of the different data sets and check the fits, click onto the different datasets to activate them. | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_19.png }} | ||
| - | |||
| - | * To export all fitting values for all fits, activate the " | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_20.png }} | ||
| - | |||
| - | **Response: | ||
| - | |||
| - | **Note:** The parameter plot is in this case not very illuminating, | ||
| - | |||
| - | * Place the mouse over the graph, activate the context menu with a right mouse click and select the " | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_21.png? | ||
| - | |||
| - | **Response: | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_22.png }} | ||
| - | |||
| - | * Store the file. You can open the data e.g. with the notepad function of the PC to have a look at the data structure. Every data set is stored as a line and the fitting values are arranged as columns. The order of the data sets corresponds to the order of the data sets in the SymPhoTime table. | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_23.png? | ||
| - | |||
| - | * Don't forget to save the data in SymPhoTime by clicking on "Save results" | ||
| - | {{ lifetime_fitting_using_the_tcpsc_fitting_script_Image_24.png }} | ||
| - | |||
| - | |||