testthat::test_that("immune epitope database calculation", {
v <- c("SIINFEKL", "ILAKFLHWL", "ILRGSVAHK")
skip_pred_tools()
ie <- v %>% foreignness_score(db = "mouse")
testthat::expect_equal(
ie[, foreignness_score] %>% format(digits = 5),
c("1.0000e+00", "9.0884e-07", "1.0000e+00")
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.