Closed eterlova closed 2 years ago
I think there is a confusion about the terms. It seems to me that you have DIA data (SWATH or similar?) since you're also running chromatographic peak detection on MS2 and are able to find chrom peaks there. The featureSpectra
function was more intended to be used with DDA data, as the function simply looks for each feature (or to be more precise for each chrom peak) if there is an MS2 spectrum with a precursor m/z within the m/z range and a retention time within the rt range of the chrom peaks.
Can you please check precursorMz
on your data? Could be that with DIA you don't have that since ions are selected in rather broad m/z windows...
I have Waters MSe data. I initially ran xcms how you recommend it in the tutorials (plus parameter optimization with IPO), with a single peak picking call, but ran into this problem. Then I found a discussion here (issue 451 https://github.com/sneumann/xcms/issues/451), in which Corey Broeckling shows his script to analyze the same type of data, and decided to try the same. However, it did not make my MS2 spectra appear and I did not change my script when posed this message.
The precursor data (looks odd with 1025 being the only non-NA value, doesn't it?):
> head(precursorMz(xdata_filled), 50)
F01.S0001 F01.S0002 F01.S0003 F01.S0004 F01.S0005 F01.S0006 F01.S0007 F01.S0008
NA NA 1025 NA 1025 NA 1025 NA
F01.S0009 F01.S0010 F01.S0011 F01.S0012 F01.S0013 F01.S0014 F01.S0015 F01.S0016
1025 NA 1025 NA 1025 NA 1025 NA
F01.S0017 F01.S0018 F01.S0019 F01.S0020 F01.S0021 F01.S0022 F01.S0023 F01.S0024
1025 NA 1025 NA 1025 NA 1025 NA
F01.S0025 F01.S0026 F01.S0027 F01.S0028 F01.S0029 F01.S0030 F01.S0031 F01.S0032
1025 NA 1025 NA 1025 NA 1025 NA
F01.S0033 F01.S0034 F01.S0035 F01.S0036 F01.S0037 F01.S0038 F01.S0039 F01.S0040
1025 NA 1025 NA 1025 NA 1025 NA
F01.S0041 F01.S0042 F01.S0043 F01.S0044 F01.S0045 F01.S0046 F01.S0047 F01.S0048
1025 NA 1025 NA 1025 NA NA 1025
F01.S0049 F01.S0050
NA 1025
If I'm not wrong MSe data is similar to Sciex SWATH and MS2 spectra are not created for a single ion but for all ions within a m/z window. Thus, it will not be possible to use the featureSpectra
function to extract MS2 spectra.
Maybe check the SWATH data analysis section in the LC-MS/MS. With MSe/SWATH data you perform also chromatographic peak detection on MS2 level and then try to reconstruct (build) the MS2 spectrum of a chromatographic peak using the m/z and intensity values of all MS2 chromatographic peaks with a highly similar peak shape than the MS1 chromatographic peak.
Maybe it might be even better to directly ask Corey @cbroeckl since he has definitely more experience with this type of data than me.
Oh I see.. Yes, I think this is how MSe works. Thank you for the advice!
Best, Lisa
https://github.com/sneumann/xcms/issues/430
Long conversation here as background.
@cbroeckl indeed! and thank you for replying! In that thread you mention that the workflow you had at the time is a workaround until @jorainer changes some of the functions, which he did. Does this mean that you don't separate MS1 and MSe files anymore and process them all together?
I have a few more questions about your workflow, not sure if I should list them all here? or maybe if you have some sort of an office hour when I could call? or I could open an issue over in RAMClustR depository?
@eterlova you can email me directly and i can help walk you through it or get a script to you.
Hello all,
I ran into trouble trying to extract MS2 spectra using
featureSpectra
function. The function runs but finds zero spectra, even though I can see them in the dataset. What could be wrong do you think?I thought that was suspicious, so I run a couple "tests":
So I think my MS2 spectra are there, but why featureSpectra does not find them? Session info:
Best, Lisa