tests/testthat/test_utilities_api_phg.R

test_that("Basic tests", {
    logFile    <- tempfile(fileext = ".txt")
    configFile <- tempfile()

    startLogger(logFile)
    createConfigFile(configFile)

    testOutput <- graphFromHaplotypes(
        configFile = configFile,
        method = "CONSENSUS",
        chrom = "1",
        includeSequence = FALSE,
        includeVariants = FALSE
    )

    expect_true(is(testOutput, "jobjRef"))
})
maize-genetics/rPHG documentation built on April 4, 2024, 11:18 p.m.