Closed lecorguille closed 5 years ago
Should be fixed now in RELEASE_3_8 version. To install you would have to call devtools::install_github("sneumann/xcms", ref = "RELEASE_3_8")
.
To get the update, I create a temporary conda package : https://anaconda.org/workflow4metabolomics/bioconductor-xcms You will agree that it's better than the copy/paste hack :)
But:
> xdata <- fillChromPeaks(xdata, param=fillChromPeaksParam)
Defining peak areas for filling-in .
... OK
Start integrating peak areas from original files
Requesting 4252 missing peaks from ko15.CDF ... got 1558.
Requesting 4140 missing peaks from ko16.CDF ... got 1435.
Requesting 4251 missing peaks from wt15.CDF ... got 1436.
Requesting 4218 missing peaks from wt16.CDF ... got 1538.
Warning message:
In if (idx_rt_adj > idx_pk_det) { :
the condition has length > 1 and only the first element will be used
and
> print(xdata)
MSn experiment data ("XCMSnExp")
Object size in memory: 1.36 Mb
- - - Spectra data - - -
MS level(s): 1
Number of spectra: 5112
MSn retention times: 41:33 - 75:0 minutes
- - - Processing information - - -
Concatenated [Thu Feb 8 15:36:09 2018]
MSnbase version: 2.4.2
- - - Meta data - - -
phenoData
rowNames: ./ko15.CDF ./ko16.CDF ./wt15.CDF ./wt16.CDF
varLabels: sample_name sample_group
varMetadata: labelDescription
Loaded from:
[1] ko15.CDF... [4] wt16.CDF
Use 'fileNames(.)' to see all files.
protocolData: none
featureData
featureNames: F1.S0001 F1.S0002 ... F4.S1278 (5112 total)
fvarLabels: fileIdx spIdx ... spectrum (27 total)
fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
- - - xcms preprocessing - - -
Chromatographic peak detection:
Error in ph[[1]] : subscript out of bounds
Aaaaah. Well, I have to check again into the code...
So, the xdata
is still an XCMSnExp
object from an older xcms
release, right?
Yes, from a 3.0.0++ version
As always - by adding the fix I created a new bug. I propose an alternative solution: I've now added a function updateObject
that can be used to update/upgrade objects created with a previous version. You would have to call:
xdata <- updateObject(xdata)
after loading your original, old, object. Could you please report back if that worked (just get the xcms from the RELEASE_3_8
branch).
It did the trick! Thanks a lot.
Issue
Ok! I found enough time to have a look at this error message with
fillChromPeaks
I suspect a problem of retrocompatibility
The test script
xcms_3.4.2
xcms_3.0.0
Start of explanation of my error message
I used to launch tool individually for my functional test. No problemo until
fillChromPeaks
. But when I fed the fillChromPeaks.3.4.2 with an output from groupChromPeaks.3.0.0, it fails.