How to Baseline Correct Mass Spectrometry Data Using Python and Peakutils

  Рет қаралды 4,454

Christopher Pulliam, PhD

Christopher Pulliam, PhD

Жыл бұрын

In this video, I'm going to show you how to do something really cool - baseline correction on mass spectrometry data using the PeakUtils library. But don't worry, it's not as complicated as it sounds! I'll guide you through the process step-by-step and even use some E. coli mass spectrometry data to demonstrate. With the help of PeakUtils, you'll be able to get super accurate results and improve the quality of your data analysis. So sit back, relax, and let's get started!
Github: github.com/chrisp33/Python-Fo...
peak_picking: • 2 Methods to Find Peak...
baseline correction: • How to Baseline Correc...
Signal Filtering: • Analytical Signal Proc...

Пікірлер: 21
@CJP3
@CJP3 Жыл бұрын
More analytical data processing videos soon!🎉
@marcellopojucan3419
@marcellopojucan3419 4 ай бұрын
You saved my life, brother. thank you so much. Greetings from Brazil
@CJP3
@CJP3 4 ай бұрын
Howdy!! My pleasure! 🙏🏽
@justinlin6798
@justinlin6798 Жыл бұрын
Amazing video!!
@CJP3
@CJP3 Жыл бұрын
Thank you very much!!
@mariron42
@mariron42 6 ай бұрын
Excelente, justo lo que estaba buscando
@CJP3
@CJP3 6 ай бұрын
Muchas gracias, estoy feliz de escucharlo
@robertbarrios9969
@robertbarrios9969 8 ай бұрын
I have spent months trying to do BC with gpt and it does not work good, the code does not corrected all the peaks from my NIR spectra data. I'm going to try with your tutorial I Believe that i have some of hope that it work this time. Thank you so much. Oh, I almost forget the detrending. Can you make a tutorial about detrending?
@CJP3
@CJP3 8 ай бұрын
Great suggestion! I’ll certainly work on that video! Great suggestion. If you continue to have issues with reliable BC let me know. There are other techniques that could also work!
@robertbarrios9969
@robertbarrios9969 7 ай бұрын
@@CJP3 I want to do the BC for all the spectrums of my NIR dataset, based on what should I do it? What I want to ask is if based on a 'fake' spectrum that is the average of all, or one that looks more 'central' or the spectrum that is lower on the graph, or just maybe do the bc based on itself, how the algorithm manages to model it. Thanks in advance.
@peacebarefoot4385
@peacebarefoot4385 2 ай бұрын
Any idea why there's a large "background peak"/hump in the data between 650 and 800? I also have that in my mass spectrometer data
@CJP3
@CJP3 2 ай бұрын
Howdy! Yes, that background is indicative of 1. Insufficient mass resolution and or 2. Too much signal. It’s a common issue for complex materials! I hope this helps :)
@peacebarefoot4385
@peacebarefoot4385 2 ай бұрын
@@CJP3 Thank you!
@Haav89
@Haav89 Жыл бұрын
What if the baseline has a periodical behavior?
@CJP3
@CJP3 Жыл бұрын
Hi Hugo, If there baseline is a periodic you can use a higher order polynomial fit to try to eliminate the oscillation. If the data is from a timeseries, there are other methods available as well. Thanks for watching!
@rajshekhar616
@rajshekhar616 9 ай бұрын
When I insert peakutils, it says no module named peakutils. why is it so?
@CJP3
@CJP3 9 ай бұрын
Howdy! Sorry to hear that! Did you pip install the package?
@rajshekhar616
@rajshekhar616 9 ай бұрын
​@@CJP3 I am using Anaconda. What do I have to do? I am copy pasting the error message. ModuleNotFoundError Traceback (most recent call last) Cell In[33], line 16 13 from scipy.sparse.linalg import spsolve 15 get_ipython().system('pip install peakutils') ---> 16 from peakutils import baseline ModuleNotFoundError: No module named 'peakutils' the code is: !pip install peakutils from peakutils import baseline
@CJP3
@CJP3 7 ай бұрын
@@rajshekhar616Does the !pip command execute properly?
@OmnipotentEntity
@OmnipotentEntity 3 ай бұрын
Please note, the example data given does not seem to actually have a non-linear baseline. The apparent baseline in the higher range seems to be solely due to the overlap of the gaussians from insufficient resolution and separation. As a simple example, try to graph exp(-9 x^2) + exp(-9 (x-1)^2), you'll see in the middle of this plot at about 1/2, there seems to be an elevated baseline of about 1/5 or so, but clearly there isn't one from the formula of the graph. When performing data transformations like this, you should be careful, as attempting to eliminate a fake baseline such as this can move your peaks in relation to each other in both the x and y directions (in the example given, it moves your peaks away from each other slightly and shrinks them), causing unnecessary systematic errors.
@CJP3
@CJP3 3 ай бұрын
Great point! I’ve run into that pitfall at work. I should have chosen a better dataset for the demonstration. Thanks for the comment!!!
Analytical Signal Processing Tutorial Using Savitzky-Golay from Python Scipy
6:08
Christopher Pulliam, PhD
Рет қаралды 8 М.
Fitting Raman Data using Python
14:21
Dr Manab
Рет қаралды 4,7 М.
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 12 МЛН
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 533 М.
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
Correcting Skewed Data with Scipy and Numpy
11:36
Christopher Pulliam, PhD
Рет қаралды 6 М.
How to use SciPy to curve fit in Python || Python for Engineers
6:33
Baseline correction and smoothing of FTIR spectrum in Origin software
9:58
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 233 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 795 М.
Mass Chromatograms
16:34
ShortChemistry
Рет қаралды 24 М.
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 12 МЛН