-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ways to extract all MS2 peaks? #737
Comments
The object returned by the |
Hi Johannes, Thank you for your response. I should've stated this more clearly. Yes, the object returned by I tried Thanks a lot! |
Firstly please use the dedicated functions to extract data from a For your question: the information on "totIonCurrent", "basePeakMZ", "basePeakIntensity" are all spectra variables that are extracted from the original data file (the mzML file). This is the information what is provided there as the header info for each spectrum and is usually information put there by the MS manufacturers software. Even if you convert from the raw data files to an mzML (e.g. using proteowizard) this data does usually does not get changed/modified. Also, if the data/file was in any form processed (e.g. centroiding, filtering etc) you will start seeing differences here. So, the spectra variables always represent the data what is provided by the original data files. Same for the m/z and intensity values, unless you did any data processing/filtering within Now, some maybe useful lines of code, if you want to extract peaks data and work with a single pd <- peaksData(s)
s_index <- rep(seq_along(s), vapply(pd, nrow, integer(1)))
pd_df <- data.frame(spectrum_index = s_index, do.call(rbind, pd)) that way you'll have one (veeery long) |
Hello,
I had QE data which I wanted to extract MS2 information from. I tried to do so by
featureSpectra(xdata)
wherexdata
was an XcmsExperiment object I got by going through LC-MS preprocessing steps including peak detection, alignment, and correspondence. However, the returned object fromfeatureSpectra
contained columns like "basePeakMZ", "lowMZ', and "highMZ". Are there any ways to extract all MS2 peaks instead of only having the base peak information?Thank you!
The text was updated successfully, but these errors were encountered: