tests/testthat/test_adducts.R

context("Find annotation")

isotopes <- getIsotopes(ex.cliqueGroups)
adducts <- getAnnotation(isotopes, positive.adinfo, "positive")

test_that("This features are correct adducts", {
    expect_identical(adducts$peaklist$an1[132], "[M+H]+")
    expect_identical(adducts$peaklist$an1[143], "[M+Na]+")
    expect_identical(adducts$peaklist$an1[241], "[M+K]+")
})

Try the cliqueMS package in your browser

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

cliqueMS documentation built on May 1, 2019, 6:32 p.m.