R/isRegular-methods.R

## MassSpectrum
setMethod(f="isRegular",
          signature=signature(object="MassSpectrum"),
          definition=function(object, threshold=1e-3) {

  s <- .irregularScore(object@mass) <= threshold
  !is.na(s) & s
})

Try the MALDIquant package in your browser

Any scripts or data that you put into this service are public.

MALDIquant documentation built on March 31, 2023, 10:40 p.m.