Nothing
context("shared loci")
test_that("shared alleles are properly computed", {
data(msats.g)
sa.num <- sharedAlleles(msats.g, "num")
sa.wch <- sharedAlleles(msats.g, "which")
expect_equal(ncol(sa.num), getNumLoci(msats.g) + 2)
expect_equal(unique(sapply(sa.wch, class)), "character")
expect_equal(sa.num[1, "D11t"], 3)
expect_equal(sa.num[3, "Ttr11"], 7)
expect_equal(nchar(sa.wch[1, "D11t"]), 13)
expect_equal(nchar(sa.wch[3, "Ttr34"]), 38)
})
test_that("duplicates are identified", {
data(msats.g)
dups <- dupGenotypes(msats.g)
expect_equal(nrow(dups), 12)
expect_equal(dups[1, "prop.loci.shared"], 1)
expect_equal(unname(unlist(dups[1, c("ids.1", "ids.2")])), c("41579", "45237"))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.