Skip to content

Commit 9a42e7a

Browse files
committed
fix: fixed call_entab to write data_format attribute correctly for ms data
1 parent d6ffa29 commit 9a42e7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/call_entab.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ call_entab <- function(path, data_format = c("wide", "long"),
4848
x <- data.frame(row.names = x$time, intensity = x$intensity)
4949
}
5050
} else if (grepl("ms$", file_format)){
51-
colnames(x)[c(1,3)] <- c("rt", "intensity")
51+
colnames(x)[c(1, 3)] <- c("rt", "intensity")
52+
data_format <- "long"
5253
}
5354
x <- convert_chrom_format(x, format_out = format_out)
5455
if (read_metadata){

0 commit comments

Comments
 (0)