This post will show you how to add peak properties table and tag peak indices in graph created after peak deconvolution.
We have put together an Origin Project (OPJ) Peak_Deconvolution_with_Peak_Properties_Table.zip (23.9KB) file, you can download this OPJ file to learn how to do this.
In this blog post we will discuss how to:
- Perform peak deconvolution and output fitting curves to source graph
- Add peak indices to each individual peak
- Create a table to show desired properties of each peak
Perform Peak Deconvolution
- Open the opj file and click on Graph1 to activate the window. Choose Analysis: Peaks and Baseline: Peak Analyzer from menu to open dialog.
-
Select Fit Peaks(Pro) as Goal and click Next button.
-
Check Custom radio box under Constant node and input 0 in Y= edit box.
-
Click Next button twice to go to Find Peaks page. Uncheck Enable Auto Find checkbox, click Add button and
double click 4 times around each of the four peak positions to add peaks for fitting.
- Click Done in Get Points dialog to exit. Click Next button to go to Fit Peaks (Pro) page.
-
Expand Configure Graph subnode under Result node and select <Source Graph> as Create Report Graph drop-down list.
- Click Fit Control button on bottom of the page. Peak Fit Parameters dialog opens. On Parameters tab, check Fixed for y0 row. Click Fit till Converged button. Click OK to close the dialog
-
Click Finish button and you will see the independent and cumulative fitting curves are added to source graph.
-
Select legend and delete it.
Add Peak Index at Each Peak
- Activate the source workbook, and go to PeakProperties1 sheet.
-
Set column Center Max (Long Name) as X column. Highlight column Max Height (Long Name), place mouse cursor over its right edge till cursor icon changes as follows and drag-and-drop the selection to source graph and release the mouse.
- It will add scatter plot with X, Y coordinates of each peak. Double click on source graph to open Plot Details dialog, expand Layer1 node on left panel and highlight [Book1]PeakProperties1!F(X),H(Y)[1.4].
-
Go to Symbol tab on right panel and set symbol Size to be 0 to hide the symbol.Then go to Label tab, check Enable checkbox and then click Label From drop-down to select Col(A):”Peak Index” as peak label.
-
Select Above as Position drop-down list and check Show Leader Line if Offset Exceeds (%) checkbox in Leader Line group.
- Click OK button to exit. We can see peak indices are added to source graph, single click twice on any label will select that label only. Drag to reposition it properly.
Note: If you drag it beyound the layer frame. Labels may be clipped. Go to Plot Details dialog again. Select Layer1 on the left and go to Display tab. Uncheck Clip Data to Frame checkbox. The label beyond the layer frame will show.
Create and Customize Peak Properties Table
Suppose now we only want to know the peak center, peak height, peak FWHM and peak integration area of each peak. We can table these properties and place it on source graph.
- With PeakProperties1 sheet active, hold Ctrl key to select column Peak Index, Area FitT, Center Max, Max Height, FWHM (Long Name) and right click to select Copy: Copy.
-
Go to source graph, right click on the graph to select Paste and a table is added to the graph.
Tip: Since Origin 2016, the results table will also be automatically outputted to source graph so that you will not need to manually copy it over.
- To customize the table, double click it to expand. Highlight whole table and click toolbar buttons to center the text horizontally and vertically.
-
Insert a label row, input labels as shown below and make the labels bold.
-
Highlight column Area and right click to select Move Columns: Move to Last.
-
Click Update Table button on top left corner to update it and click collapse button on top right corner to exit.
Tip:
To set number of decimals or digits shown in table, you can go to menu Tools: Options to open Options dialog. Go to Numeric Format tab, and check desired radio box (Decimal Digits/Significant Digits) and set Number of Digits.
awesome
Thank you for this, I’ve just applied it to a bunch of emission spectra and the information makes for much better presentation.