tests/testthat/test_isotopes.R

context("Find isotopes")

isotopes <- getIsotopes(ex.cliqueGroups)

test_that("Filter isotopes is working ", {
    expect_equal(length(unique(isotopes$isotopes[,1])),
                 length(isotopes$isotopes[,1]))
})

test_that("This features are correct isotopes", {
    iso0 = isotopes$isotopes[isotopes$isotopes$feature == 205,]
    iso1 = isotopes$isotopes[isotopes$isotopes$feature == 197,]
    expect_identical(iso0$cluster, iso1$cluster)
    expect_equal(iso0$grade, 0)
    expect_equal(iso1$grade, 1)
})

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.