sgibb / MALDIquant

Quantitative Analysis of Mass Spectrometry Data
https://strimmerlab.github.io/software/maldiquant/
60 stars 25 forks source link

totalIonCurrent causes "integer overflow" #25

Closed sgibb closed 11 years ago

sgibb commented 11 years ago

Some raw files contain integer intensity values (e.g. fid files). Summing all this integers could cause an integer overflow.

totalIonCurrent(g[[1]])
# [1] NA
# Warning message:
# In sum(object@intensity, na.rm = TRUE) :
#   Integer overflow - use sum(as.numeric(.))