Closed zhuxr11 closed 3 years ago
Thanks @zhuxr11 for the bug report.
Note however that this was already fixed in xcms
version 3.10.2 (which you can install e.g. using devtools::install_github("sneumann/xcms", ref = "RELEASE_3_11")
) - or even better by calling BiocManager::install()
and updating all packages (you might have to install the BiocManager
package if you don't have it with install.packages("BiocManager")
).
I'm closing this issue - feel free to re-open if even after updating of xcms
you still have the problem.
Hi, recently I upgraded my xcms from 3.9.1 to 3.10.0. After this, I discovered an additional column
ms_level
to the right of theDataFrame
fromfeatureDefinitions()
, as added bydf$ms_level <- as.integer(msLevel)
. When I coerce anXCMSnExp
object to anxcmsSet
object, the codexs@groups <- S4Vectors::as.matrix(fgs[, -ncol(fgs)])
actually removesms_level
column instead of thepeakidx
column as it did in 3.9.1, causing problems when using it with other packages such asCAMERA
(updated to 1.44.0), sinceCAMERA
is expecting a traditional numeric matrix in thegroups
slot but it actually gets an S4 matrix with a list columnpeakidx
now.Now I use an
XCMSnExp
object created fromfaahKO
dataset to illustrate the issue. Please note thatbatch_tibble$xcms_set_list[[1]]
is the createdXCMSnExp
object, pulled out from atibble
.Here are what I got in xcms 3.9.1:
Here are what I get now in xcms 3.10.0:
Could you please keep the
peakidx
removed in thegroups
slot after coersion toxcmsSet
, so that the new version ofxcms
is still compatible with other packages that build on it such asCAMERA
? Many thanks.