Open sneumann opened 5 years ago
Hi,
the following snippet will use readMSData()
from package xcms
.
Installation can be done via (see also http://bioconductor.org/packages/3.9/bioc/html/xcms.html)
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("xcms", version = "3.9")
The code that has similar result as readCDF()
will be:
library(MSnbase)
raw_data <- readMSData(files = "simdata.CDF", msLevel. = 1, mode="onDisk")
rett <- rtime(raw_data)
tiv <- tic(raw_data)
npoint <- sapply(mz(raw_data), length)
mz <- unlist(mz(raw_data))
iv <- unlist(intensity(raw_data))
Please try the following file: simdata.mzml.gz
Will examine the netCDF file and the converted mzML one for issues.
Reading of files is done in /tmp/simd/SW620/simdata.CDF function
readCDF()
It extracts from CDF the content of the netCDF:
simdata.zip
@nilshoffmann can we have the simdata,zip converted as mzML please ? Thanks!
Yours, Steffen