readImzML() Error in if (representation == "centroid spectrum") { : argument is of length zero

35 views
Skip to first unread message

Davide G. Franchina

unread,
Nov 16, 2023, 3:16:10 PM11/16/23
to Cardinal MSI Help
Hi,

I have been loading my files with:

file <- "data_20um"
mydata <- readImzML(file,
                    mass.range = c(800.000, 4000.000),
                    resolution = 10,
                    units = c("ppm"),
                    attach.only = T)

now I get the error:

reading imzML file: 'path/data_20um.imzML'
detected ibd binary type: ‘processed’
reading ibd file: 'path/data_20um.ibd'
using mass range: 800 to 4000
using mass resolution: 10 ppm
Error in if (representation == "centroid spectrum") { :
  argument is of length zero


I tried with both Cardinal 3.4.1 and the devel version (3.5).
has anyone encountered this error?
thank you

kbemis

unread,
Nov 16, 2023, 4:03:43 PM11/16/23
to Cardinal MSI Help
Yes, it's a known bug introduced by the recent update. I will push out a fix in the next few days when I find the time.

-Kylie

Reply all
Reply to author
Forward
0 new messages