-
Notifications
You must be signed in to change notification settings - Fork 81
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
getEIC gives wrong result for zero intensity scans #39
Comments
This was completely confusing to me from the beginning and in the (not so far) future I would like to clear all these things/confusions. |
Yeah I understand that. But what behaviour should I then expect with step / profStep = 0? What is it doing then? |
Funny, with my xcms (version 1.49.3) I cannot use I wouldn't spent too much time with that method, as this is one of the candidate-methods that have to be fixed. |
I'm closing the issue now - feel free to re-open if needed. |
XCMS version: 1.49.2
I was writing a function to make EICs for many ranges (I wanted to use the raw data and rawEIC supports only one, but my function turned out rather slow).
When I get went to getEIC (thinking I could disable the profile matrix with step = 0), that is faster, and compared results I noticed that they were not the same as my manually calculated results.
So I investigated and it looks like getEIC does something wrong sometimes with scans where there are no mz peaks in range.
I shall attempt to explains below. My test file: xraw.zip (an RDS so use readRDS)
I tried both getEICOld and getEICNew but they give same result.
Range:
Old:
New:
My own function:
Now lets look at the output.
EIC_manual (empty scans a dropped, which was a bug but instructive here):
So scan 5 and 8 is empty.
head(EIC_xcms_old@eic$xcmsRaw[[1]], 10):
head(EIC_xcms_new@eic$xcmsRaw[[1]], 10):
See that getEIC puts an intensity also for scan 5 and 8 but otherwise agree on the intensity.
I checked who is rigt looking at the scan directly which seems to confirm that my function is right and getEIC is somehow wrong:
Any idea why this is happening? Am I misunderstanding something?
I thought this might have to do with the profile matrix but it doesn't appear so since I disabled that with step=0 both in the xcmsRaw and in getEIC.
rawEIC gives the correct result too.
The text was updated successfully, but these errors were encountered: