tests/testthat/test-getFullTriads.R

test_that("getFullTriads works", {
  exmpls.dir <- system.file("extdata", package = "Haplin")
  ped.file <- "qc_all_ok"
  map.file <- file.path(exmpls.dir, "qc_all.map")
  my.ped.data <- suppressWarnings(genDataLoad(ped.file, dir.in = exmpls.dir))

  expect_warning(
    my.ped.data.triads <- getFullTriads(
      my.ped.data,
      overwrite = TRUE
    )
  )
  expect_equal(nindiv(my.ped.data.triads), 1362)
  expect_equal(nfam(my.ped.data.triads), 454)
})

Try the Haplin package in your browser

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

Haplin documentation built on Sept. 11, 2024, 7:13 p.m.