Nothing
library(testthat)
test_that("vcfwriter: writing variant works", {
outvcf <- file.path(paste0(tempfile(), ".vcf.gz"))
bw <- vcfwriter$new(outvcf, "VCF4.3")
bw$addLine('##ALT=<ID=NON_REF,Description="Represents any possible alternative allele at this location">')
bw$addContig("chr20")
bw$addFILTER("PASS", "All filters passed")
bw$addINFO("AF", "A", "Float", "Estimated allele frequency in the range (0,1)");
s1 <- "chr20\t2006060\t.\tG\tC\t100\tPASS\t."
bw$writeline(s1)
bw$close()
## tests
skip_on_os(c("windows"), arch = NULL)
br <- vcfreader$new(outvcf)
## print(br$header())
br$variant()
expect_identical(br$chr(), "chr20")
s2 <- br$line()
expect_identical(s1, s2)
})
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.