tests/testthat/test_autodetectGenotypes-methods.R

context("variantsInSamples")

# Settings ----

# VCF file
vcfFile <- system.file("extdata", "moderate.vcf", package = "TVTB")

# Import variants
vcf <- VariantAnnotation::readVcf(vcfFile)

# Signatures ----

test_that("new TVTBparam added in metadata if missing", {

    # Add
    expect_message(
        "TVTBparam" %in% names(metadata(autodetectGenotypes(vcf))),
        "created"
    )

})

Try the TVTB package in your browser

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

TVTB documentation built on Nov. 8, 2020, 6:09 p.m.