File Exchange > Data Analysis >    Global Peak Fit

Author:
OriginLab Technical Support
Date Added:
11/9/2017
Last Update:
12/18/2017
Downloads (90 Days):
221
Total Ratings:
4
File Size:
927 KB
Average Rating:
File Name:
Global Peak Fit.opx
File Version:
1.10
Minimum Versions:
License:
Free
Type:
App
Summary:

Fit multiple peaks in multiple datasets with parameter sharing.

Screen Shot and Video:
Description:

This App lets you perform a global fit to multiple datasets with multiple peaks. The number of peaks in each dataset should be the same. Peak parameters such as center, width and area can be shared across the datasets.

Installation

Download the file Global Peak Fit.opx, and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps Gallery window.

Operation

  1. Select the datasets from a worksheet, or select the graph with the data plotted. Then click the Global Peak Fit icon to open the dialog.
  2. Select the Fit Control tab and choose a Function Type.
  3. Specify/add/remove peaks:
    1. Set or update the Number of Peaks in the Fit Parameters tab.
      The peaks will automatically be detected, and peak parameters will be auto initialized.
    2. Double-click on the graph to add a peak, or right-click a vertical line in the left panel to add and remove one peak respectively.
      Previous settings will not be changed in these cases. New peaks are automaitcally initialized according to the peak center.
  4. Initialize the fitting parameters in the table.
    1. When the cursor hovers over an editable cell in the parameter table, you can use the mousewheel to increase or decrease the corresponding value.
      Hold Ctrl and/or Alt and/or Shift key(s) to change a value more precisely.
      You can also adjust settings for Shift and Stretch in the Input Data tab using the mousewheel. 
    2. You can also drag a peak label in the preview panel to change the peak location.
      When dragging the peak label, the parameters for the peak will initialize automatically.
    3. To switch among different datasets, you can either change the value of Parameters of Input Data drop-box or click the corresponding curve in the preview area.
    4. To quickly apply one setting to all peaks and/or other datasets, use the right-click context menu of the corresponding element, e.g. parameter's values and bounds.
  5. Click Fit to perform fitting.
  6. Click OK to generate the fitting report before closing the dialog.

Sample OPJ File

The App ships with a sample OPJU file. In the Apps Gallery, right-click on the Global Peak Fit icon and select Show Samples Folder. From the window that opens,  drag and drop GlobalFitSampleEx.opju  into Origin to open the project. The project includes a Note of instructions. Note: If saving the OPJU after changing it, it is best to save it to a different location than the one it was opened from (e.g. save to your User Files Folder).

Updates:

v1.1 Fix the bug about large number of input datasets.

Reviews and Comments:
12/08/2018quimicouniit is very useful

03/05/2018OriginLabhi goeckm1p, thank you for the comment. We will look into supporting copy and paste.

03/05/2018goeckm1pThis is exactly what I need for my work. Unfortunately, the App does not allow to insert starting values by copy-paste but every field must be filled in manually instead.

11/24/2017AdrianFranciscoFirst time I tried it, the program crashed and I lost all progress, if you try it I recommend you to save the project beforehand.
I went with maybe too many datasets, I expected to fit around 20~25 spectra, but I thought this was precisely the purpose of the app
Anyways, there's too little customization of the peaks, I needed to run a Peak Analyzer of one of the espectra prior to use this app to know the parameters and the peaks that I would need later in the app