File Exchange > Stats >    Principal Component Analysis for Spectroscopy

Author:
OriginLab Technical Support
Date Added:
9/7/2016
Last Update:
6/13/2025
Downloads (90 Days):
939
Total Ratings:
39
File Size:
2417 KB
Average Rating:
File Name:
PCASpec.opx
File Version:
1.44
Minimum Versions:
License:
Free
Type:
App
Summary:

Perform principal component analysis on spectroscopy data.

Screen Shot and Video:
Description:

PURPOSE
This tool performs principal component analysis for spectra (IR, Fluorescence, UV-Vis, Raman, etc.).
Features include:

  • Study relations of individual samples.
  • Find important wavelengths/frequencies in the spectra.
  • Detect outliers in samples.
  • Create Loading with Reference Spectrum Plot, 2D/3D Loading Plot and Score Plot.

INSTALLATION
Download the file PCASpec.opx, and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps Gallery window.
NOTE: This tool requires OriginPro.

OPERATION

  1. Click the Principal Component Analysis for Spectroscopy icon in the Apps Gallery window to open the dialog.
  2. In the Input tab, choose input data for Spectra Data.
    Each column should represent a sample's spectrum.
    You can also optionally choose a column for Frequency/Wavelength, which will be used for labels in Loading Plot, choose Spectra Names for labels in Scor Plot, and Group Info can be used to divide samples in Score Plot.
  3. In the Settings tab, Analyze option determines whether to standardize rows (Correlation Matrix) or not. 
    Number of Components to Extract is used to control outputs of loadings, scores and their plots. 
    Standardize Scores option will standardize scores of each component to set their variance to be 1.
  4. In Quantities to Compute tab, check options to control which results to output in Report Data sheet.
  5. In Plots tab, specify whether to create Scree PlotLoading with Reference Spectrum Plot (Vertically stacked multiple panels plot of loading along with a sample's spectrum), Loading PlotScore Plot and Biplot. All except Scree Plot support to show two components or three components in the plot. The last two can allow whether to show confidence ellipse and labeling outliers.
  6. Click OK button, a report sheet, a report data sheet and a plot data sheet will be created. If Show Confidence Ellipse option is checked in Plots tab, a Matrix book will also be created.

Sample OPJ File
This App provides a sample OPJ file.  Right click on the Principal Component Analysis for Spectroscopy icon in the Apps Gallery window, and choose Show Samples Folder from the short-cut menu. A folder will open. Drag-and-drop the project file PCASpecEx.opj from the folder onto Origin. The Notes window in the project has a link to a blog page for detailed steps.
Note: If you wish to save the OPJ after changing, it is recommended that you save to a different folder location (e.g. User Files Folder).

NOTES

  1. If you have XYYY data, choose all Y data for Spectra Data, and X data for Frequency/Wavelength in the Input tab.
  2. If a row in Spectra Data contains one or more missing values, the entire row will be excluded in the analysis.

Updates:

v1.44 11/17/2025 Updated localization.
v1.42 4/9/2025 Added localization.
v1.4 11/29/2024 Updated graph templates.
v1.3 8/23/2019 Updated to make it compatible with Origin 2020.
v1.2 3/20/2019 Updated function for 2D Confidence Ellipse.
v1.1 12/3/2018 Fixed Standardize Scores bug.

Reviews and Comments:
06/09/20262351453592ni

06/09/20262351453592no

04/20/202618861803827

03/23/2026Langkenone

07/16/2025  

03/08/2025yan2007xiaoxu很不错

02/22/202524414968003HJKJ

10/03/2024giuliana.iromanogood

09/24/2024youyou356

09/24/2024youyou356

09/24/2024youyou356

12/08/2023mazengiaI need to have the upgraded OriginPro.

11/08/2023aocadenas 

05/22/2023100515123

04/11/20231554299033很好,我很喜欢

04/11/20231554299033很好,我很喜欢

03/20/2023SamOA2023Great app

01/17/2023OriginLabHi, nancysingla

The minimum version required is Origin 2017. Origin 8.6 does not support app yet.

OriginLab Technical Services

01/15/2023Yangrong02025

01/13/2023nancysinglaI have installed PCA for spectroscopy but i am not able to locate it in my origin.I have origin 8.6. I have searched in view option but there is no option of app gallery in it. kindly help

12/26/202215737342116No

12/17/2022 When I try to open it by clicking on it, it doesn't open and doesn't let me do the correct analysis.

12/01/2022Piaopiao Long挺不错,希望继续更新

11/28/2022snowball1027我需要pca主成分画图插件

09/24/2022RXN0523good

09/21/202220220922Good

08/28/202218297106561good

06/08/2022bi_haojie我需要pca主成分画图插件

05/25/2022mbusiprimemafuI like the installation part , its simple just drag and drop. good job

01/23/2022cherish forever我需要PCA主成分画图插件 (643662778@qq.com)

01/18/2022ensoultech603我需要PCA主成分画图插件

11/18/2021muhammad92superb and straightforward

07/24/202119c54002 

01/01/2021mimilauuu我需要PCA主成分画图插件 290892113@qq.com

01/06/2020Kunal 

01/06/2020shaluzhiren98849

12/05/2018haohuang_08It is very good for PCA analysis by origin

10/07/20181148855780我需要pca主成分画图插件

09/29/2017zienabzzwhat is the steps to use the PSC spectroscopy App. ? and what is the origin use 2017 , 9.0 .......etc

Many thanks for your support