inst/unitTests/test_kendrick.R

test.grp.lpc <- function() {

  library(RUnit)
  library(faahKO)
  library(CAMERA)

  xs   <- group(faahko)
  
  ## With specific selected sample
  xsa     <- xsAnnotate(xs)

  ## Screen for substance with CH2 mass gain and RT increase
  k1 <- findKendrickMasses(xsa, masses=c(14, 14.01565),
                           maxHomologue=1, error=0.05, time=60,
                           plot=FALSE)

  checkEqualsNumeric(nrow(k1), 22)

  k2 <- findKendrickMasses(xsa, masses=c(14, 14.01565),
                           maxHomologue=1, error=0.05, time=-60,
                           plot=TRUE)

  checkEqualsNumeric(nrow(k2), 22)
  
}

Try the CAMERA package in your browser

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

CAMERA documentation built on Nov. 8, 2020, 4:59 p.m.