# 11.3 The Quick Peaks Gadget

See more related video:Quick Peaks Gadget

## Overview

The Quick Peaks Gadget provides a quick and interactive way to perform peak analysis on data plotted in a graph. You can select an arbitrary range of the data plot using the region of interest (ROI) object displayed in the graph. Peak analysis results will update as the ROI is moved or resized.

With the Quick Peaks gadget, you can:

##### To Open Quick Peaks Gadget

To use this tool, select Gadgets: Quick Peaks from the Origin menu, when a graph is active. If the tool has already been activated, you can re-open the Quick Peaks dialog by clicking on the arrow in the upper-right corner of the ROI and choosing Preferences.

##### To Show or Hide Gadget Tool

To toggle the display of all gadget ROI boxes in a graph at the same time, click the H button in the top right corner of the graph, which enables users to export the graph with gadget results.

## ROI Box Tab

X Scale Specify the X Data range for the ROI. From The beginning of X scale. To The ending of X scale. Fixed (Prevent moving by ROI) Fix the X scale to prevent from moving by ROI box. Specify whether to show the tool's name near the top of the ROI. Specify whether to show the number of peaks on center-top of the ROI. Specify the filled color of the ROI.

## Baseline Tab

Mode Specify the baseline mode. Options include: None (Y=0) Use Y=0 as baseline. Constant Use a horizontal line for baseline. You can specify the intercept of the horizontal line in the Constant control below. 2nd Derivative Use the 2nd Derivative method to create baseline. Use Existing Dataset Select an existing dataset as the baseline. Min&Max Use minimum Y as baseline to find positive peaks. Use maximum Y as baseline to find negative peaks. End Points Weighted Create a smoothed curve using data points from two ends. Straight Line Connect two end points of the data plot and connect them as baseline. This is not available when the Mode is Straight Line. Specify how the baseline range shows on the ROI. Full Plot Range Create the baseline for the full plot range. Curve Within ROI Create the baseline only for the plot range within the ROI box. This is only available when the Mode is Straight Line. Specify how the straight line end points are decided. Entire Data The end points of the data plot are used Rectangle The end points at the boundaries of ROI box are used Scale The end points at the X axis scale are used This is only available when the Mode is Straight Line. Specify the left end point offset on the Y axis scale. This is only available when the Mode is Straight Line. Specify the right end point offset on the Y axis scale. Select smoothing method to create baseline. This option is only available when the Mode is set as 2nd Derivative. Adjacent-Averaging Please refer to algorithm of smoothing. Savitzky-Golay Please refer to algorithm of smoothing. Window Size: Specify the desired window size (a positive integer) in the moving window for the Savitzky-Golay or Adjacent-Averaging smoothing. Threshold: Specify threshold for the Savitzky-Golay or Adjacent_Averaging smoothing. Polynomial Order: This parameter is available only when Savitzky-Golay is selected for Smoothing Method. It specifies the polynomial order (1 through 9). Specify the maximum of baseline anchor points. This option is only available when you set Mode to 2nd Derivative. Specify connect method for the anchor points. This option is only available when you set Mode to 2nd Derivative. Use drop-down list to specify the intercept for the horizontal line to be used as the baseline. Minimum Set the intercept to the minimum value of the data. Maximum Set the intercept to the maximum value of the data. Mean Set the intercept to the mean of the data. Median Set the intercept to the median of the data. Custom When this option is chosen, specify the desired intercept for the horizontal line as baseline. Specify the customized intercept for the horizontal line as baseline. This option is only available when Constant is Custom. Specify a dataset as baseline. This option is only available when Mode is set to Use Existing Dataset. Specify the percentage of end points to create baseline. This option is only available when you set Mode as End Points Weighted.

## Area Tab

Integration from Select how to integrate the peaks, from Beaseline or Y=0. Select if show the integration area of found peaks in the ROI box.

## Output to Tab

Script Window Specify whether to output the results to the Script Window. Specify whether to output the result to the Results Log. Specify whether to append the results to a worksheet. This is only available when Append to Worksheet is selected. It is used to specify the name of the worksheet. Specify the output sheet name to store the tag information. If Data Plot is chosen for Tag Peak and Base as in the Find Peaks tab, a new worksheet with specified name will be created with tag info data when output the results; Otherwise, if Marker is chosen for Tag Peak and Base as, the worksheet will not be created because Marker does not have associated data. Specify if output the baseline to worksheet.

## Quantities Tab

Output Quantities Specify what data to output. Dataset Identifier Specify a dataset identifier in the drop-down list. Peak ID Peak ID, something like "Peak 1", "Peak 2", etc. Peak Row The row index of the peak center. Peak X The X scale of the peak. Peak Y The Y scale of the peak. Height The height of peak, calculated from baseline. Peak Area The peak area that is calculated by integrating the raw peak data from the baseline or Y=0 (depending on the selection in the Integrate From drop-down list under the Area tab). The integration range is marked out by Base Marker on Find Peak tab, which is not identical to the range covered by ROI box. FWHM The full width at half maximum height or the peak width at half the peak's maximum value. Centroid The peak centroid or gravity center, which is defined as: $C=\frac{\int_{0}^{\infty}xF(x)dx}{\int_{0}^{\infty}F(x)dx}$ Left Half Width The left half width. If we draw a line for $y = MaximumHeight / 2$, this line will intercept with the input data at two points. Let's denote them as $(x1, y1)$ and $(x2, y2)$, where $x1 < x2$. Also, we denote the peak center as $(xc, yc)$. Then we can compute the left half width as: $LeftHalfWidth = xc - x1$ Right Half Width The righthalf width. If we draw a line for $y = MaximumHeight / 2$, this line will intercept with the input data at two points. Let's denote them as $(x1, y1)$ and $(x2, y2)$, where $x1 < x2$. Also, we denote the peak center as $(xc, yc)$. Then we can compute the right half width as: $RightHalfWidth = x2 - xc$ Left Base Marker Row The row index of the left base marker. Left Base Marker X The X scale of the left base marker. Left Base Marker Y The Y scale of the left base marker. Right Base Marker Row The row index of the right base marker. Right Base Marker X The X scale of the right base marker. Right Base Marker Y The Y scale of the right base marker. Info The information of the baseline, which is an embedded notes window.