- Purpose
This app is capable of performing peak analysis intuitively and interactively. It is able to define baseline, then detect the peaks, and fit peaks.
- Installation
Download the file "Peak Deconvolution.opx", and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps gallery window.
- Operation
Click a worksheet with XY data to make it active, and then click the app icon to bring up the dialog. Then you can customize baseline, find peaks and fit peaks, intuitively and interactively.
Dialog Settings:
- Top Preview Panel: By default, it only shows the source data plot, baseline plot and the fitted plot. You can also toggle two buttons to show/hide 2nd derivative plot and residual plot respectively. These two buttons are described in Bottom Right Panel below.
- Bottom Left Panel
- Baseline Tab: Please refer to Baseline Mode.
- Subtract Baseline & Close: Subtract baseline, output the subtracted data and baseline data, and then close dialog.
- Peaks Tab: Please refer to Find Peaks.
- Allow Auto Peak Fit If Less Than: If the found peaks are less than this specified value, it will do peak fit (parameter initialization) automatically. If the found peaks are greater or equal to this value, you need to use Init Fit button to initialize parameter if you want to.
- Re-find Peak for Each Dataset in Batch: If checked, it would re-find peak based on current peak finding settings for each dataset when performing batch fitting.
- Init Fit: Do peak fit initialization.
- Peak Finding Settings:
- Find Peak & Close: Find peak for current data, report the result and close dialog.
- Save/Load Tab
- Save Settings: Save the settings as file.
- Load Settings: Load settings from file.
- Delete Settings: Delete settings file.
- Bottom Right Panel
- Buttons in the Top of Panel (From Left to Right):
- Show/hide the 2nd derivative plot.
- Show/hide the residual plot.
- Tune each peak individually. When clicking this button, it goes to the mode for tuning each peak individually, then you can change each peak's position and width.
- Show/hide peak marker.
- Change the content of peak label. By default, the peak's X value is shown as label, you can click this button to change the content, including X value, Y value, peak index, XY value pair sequentially.
- Rotate the peak label. Click this button to rotate the peak label by 90 degrees counter-clockwise.
- Change the position of peak label. Positions include top, bottom, center, left and right.
- Reinit parameters. Reinitialize the peak parameters for fitting.
- Get chi-square. The reduced chi-square value is shown as flyout.
- Do 1 iteration. Perform 1 iteration for the peak fitting.
- Fit until converged. Perform the fitting until converged or the specified max number of iteration is reached.
- Switch to previous data. Change the data to the previous XY in the worksheet.
- Switch to next data. Change the data to the next XY in the worksheet.
- Output summary report for current data.
- Batch peak fitting for all data in worksheet. Do the batch peak fitting for all the XY data in worksheet, and a summary is created for all the XY data.
- Create report for current data.
- Parameters Tab
- Auto Parameter Initialization: If checked, parameter is initialized automatically.
- Parameter Table: This table is for showing the fitting parameters of peaks. In this table, you can do the following settings:
- Specify the baseline for fitting if you have fitted baseline with peaks, also change the fitting function for each peak individually.
- Specify if share parameters.
- Fix parameters.
- Specify the initial parameters.
- Specify lower bound and upper bound for parameters.
- Dropdown in the Bottom: Change the peak function for all peaks.
- Buttons in the Bottom (From Left to Right): Please refer to Fit Parameters.
- Reorder peaks based on sorted peaks. Reorder the peaks for fitting, based on the sorted peaks.
- Sort peaks position in table. Sort the peaks according to the settings. It just changes the peak position showing in the table, but not for fitting.
- Fix/release baseline parameter. Fix or release baseline parameter.
- Fix/release peak center parameter. Fix or release the parameters for peak center.
- Fix/release peak width parameter. Fix or release the parameters for peak width.
- Share all peak width parameters. Apply the current highlight width parameter to other peaks. The highlight row needs to be width row.
- Apply value to all corresponding parameters. Apply the highlight parameter to the corresponding parameters of other peaks.
- Set bounds for peaks.
- Apply bounds to all corresponding parameter. Apply the highlight bounds to the corresponding parameters of other peaks.
- Show Notice: If checked, the error/warning/result message will show as flyout. If clear this checkbox, no message shows.
- Fit Control Tab
- Max. Number of Iterations: Specify the max number of iterations for peak fitting.
- Tolerance: Specify the tolerance for peak fitting.
- Enable Constraints: Check this to enable constraints for peak fitting.
- Constraints: When Enable Constraints is checked, this is for the specified constraints.
- Result Settings Tab