testthat::test_that("Check accessor methods:", {
syntheticData <- generateSyntheticData(nBackgroundVariants = 20, nKataegisFoci = 1)
kd <- detectKataegis(syntheticData)
testthat::expect_equal(base::length(getGenomicVariants(kd)), 40)
testthat::expect_equal(base::length(getKataegisFoci(kd)), 1)
testthat::expect_equal(getSegments(kd)$firstVariantID[1],1)
testthat::expect_equal(getInfo(kd)$sampleName, "syntheticData")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.