From e9b100e52af2bc86cb20d80b87542bcbf3a5f137 Mon Sep 17 00:00:00 2001 From: George GUO <44556652+MASHUOA@users.noreply.github.com> Date: Mon, 13 Nov 2023 10:59:35 +1300 Subject: [PATCH] Update readImzML.R to fix NULL representation issue --- R/readImzML.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/readImzML.R b/R/readImzML.R index 2d78514..771723d 100644 --- a/R/readImzML.R +++ b/R/readImzML.R @@ -98,7 +98,7 @@ readImzML <- function(name, folder = getwd(), attach.only = TRUE, by=resolution) # seq == full-bin-widths tol <- c(absolute = resolution) } - if ( representation == "centroid spectrum" ) + if ("centroid spectrum" %in% representation) { .message("binning centroided peaks...") if ( is.finite(guess.max) ) {