tests/testthat/test_checkloci.R

context("Test check.loci")

test_that("check loci from results generated by loci.sample=random",{
  expect_message(check.loci(dir="ResMCtest/"), "")
})

test_that("check loci from results generated by loci.sample=fst",{
  check.loci(dir="ResMCtestFst/")
  expect_true(file.exists("ResMCtestFst/High_Fst_Locus_Freq.txt"))
})
unlink("ResMCtestFst/High_Fst_Locus_Freq.txt")

Try the assignPOP package in your browser

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

assignPOP documentation built on Oct. 28, 2021, 1:06 a.m.