-
Notifications
You must be signed in to change notification settings - Fork 2
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
PrecursorIntensity of all MS2 spectra equal to zero? #6
Comments
I know. Some instruments don't report the precursor intensity (we use Sciex and also have no precursor intensities). I have a utility function in The function in od <- MSnbase::readMSData(fls, mode = "onDisk")
pints <- xcms::estimatePrecursorIntensity(od, ppm = 10) If you use all.equal(rtime(od), rtime(sps)) and if that's true, you could set the precursor intensities with sps$precursorIntensity <- pints That would be the workaround until I have that function also implemented in |
Hi Johannes, FYI. When I loaded the XCMS together with Spectra libraries.
It gives me this error:
But then I think there is some conflicts in xcms. So this solves the issue:
Maybe there is another function called Thanks, |
Thanks for the excellent workaround option. I have successfully implemented that! It cleared up the blockade. BTW, I am not familiar with how to play around with the spectra object. is there a way I can sort the spectra object based on precursor Intensity? (e.g., I want to sort out the top 3 spectra out of a bunch of spectra that have overlapped precursorMz value). Right now I am doing something not very elegant like this:
I think this works but I do want to have a better view of handling this type of object (S4)? Do you have a good cheatsheet or guideline for that? Thanks a lot! Best, |
for the problem you reported in the previous message: yes, I know, there is the problem that many functions with the same name are implemented in For the ordering - you can think of a Your problem is actually a quite interesting one. It would be difficult if you don't know the grouping of your spectra beforehand (i.e. if your top_3 <- sps_ms2[order(sps_ms2$precursorIntensity, decreasing = TRUE)][1:3] otherwise you would need to first group them by similar m/z, then split it and do an |
Thanks for your swift and detailed replies! That is extremely helpful! My current way to run your Spectra package
Currently, I am looping a list of sps_ms2 objects (they all have nearly the same precursor m/z) by using the Some ideas (or wishlist) about the workflow.I would like to share some ideas of my workflow which may be also relevant for many Spectrometry practitioners:
Any suggestions will be welcome. I am mainly working through step 3 now. Thanks always for the supports! I hope the long session of idea-sharing is more helpful than annoying (just want to share, I felt talking through always help!) Best regards, |
Thanks for the update. Note that the |
Hi Johannes,
I noticed that in my dataset, all my precursor intensity of all MS2 spectra equal to zero? But I do get peaks when I look into the data. This is important for me as I need to filter the data with relatively high precursor intensity.
I can see TIC of the MS2 spectra:
Do you know why? Any ideas on the troubleshooting? I haven't tried it in your tutorial dataset. If I finish this run, I will try.
Hope you can help! Appreciate it!
Thanks,
Minghao Gong
The text was updated successfully, but these errors were encountered: