OpenChrom / openchrom

Visualization and Analysis of mass spectrometric and chromatographic data.
https://www.openchrom.net
Eclipse Public License 1.0
82 stars 24 forks source link

GC-FID data: automatinc peak detector / integrator not working #402

Closed AnnaClo closed 1 year ago

AnnaClo commented 1 year ago

I have data detected simultneously on gc ms and fid. OpenChrom detects and integrates properly the ms data, but not the fid peaks. For some reason some of the peaks result integrated only halfaway - see screenshots. The other half of the peak is not quantified, not even as a separate peak. Before peak integration, I can see that the dotted line reaches the top of the peak but doesn't climb down the other half, so I guess the problem is peak detection. Any idea what could be the fix? I managed to get some peaks right by forcing 'optimize the baseline (VV) in peak detection, but the problem still appears for a handful of peaks per chromatogram. This isssue is not there at all in MS data.

Here below a peak detected and integrated with the same procedure, from ms data, and from fid data respectively.

image

image

eselmeister commented 1 year ago

With GC-FID, smoothing might be required first. Could you provide the displayed data set?

AnnaClo commented 1 year ago

Yes sure, here is a link to the same dataset. The peaks are very tiny compared to the solvent, between 13 and 27 mins. https://we.tl/t-AfNfUjLLBc

eselmeister commented 1 year ago

Thanks for the file. I would recommend to run the following steps on the GC-FID chromatogram:

1) Remove the solvent and first big peak via Chromatogram Filter > Scan Remover 2) Set a baseline via Baseline Detector > SNIP (Iterations: 250, Size: 9) 3) Remove the baseline via Chromatogram Filter > Chromatogram Baseline Subtract Filter 4) Smooth the data Chromatogram Filter > Savitzgy-Golay (Order: 2, Width: 9) 5) Detect peak via Peak Detector > First Derivative (Include Background: yes, Use Noise Segments: yes, Optimize Baseline: yes)

Screenshot from 2023-07-31 07-42-33

AnnaClo commented 1 year ago

Thank you for indicating the steps, I used them and I managed to integrate peaks well. I only have a minor issue with the removal of the first big peak, the scan remover doesn't take it away. Did you use any specific setting?

eselmeister commented 1 year ago

@AnnaClo Watch out: there are two big peaks, one at ~3.2 Minutes, the other at ~6.1 Minutes:

Screenshot from 2023-08-01 09-53-00 Screenshot from 2023-08-01 09-53-15 Screenshot from 2023-08-01 09-53-36 Screenshot from 2023-08-01 09-53-42

AnnaClo commented 1 year ago

Oh ok I got it! Thank you!