Skip to content

Commit

Permalink
Added more GenomicsDB tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
lima1 committed Feb 26, 2022
1 parent 406a3fc commit da76569
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file added inst/extdata/gatk4_m2_test_pon_db.tgz
Binary file not shown.
10 changes: 10 additions & 0 deletions tests/testthat/test_setMappingBiasVcf.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ test_that("GenomicsDB import works", {
bias <- calculateMappingBiasGatk4(workspace, "hg19")
expect_equal(2101, length(bias))
unlink(tmp_dir, recursive = TRUE)
# newer 4.2.5.0 GenomicsDB
resources_file <- system.file("extdata", "gatk4_m2_test_pon_db.tgz",
package = "PureCN")
tmp_dir <- tempdir()
untar(resources_file, exdir = tmp_dir)
workspace <- file.path(tmp_dir, "gatk4_m2_test_pon_db")
bias <- calculateMappingBiasGatk4(workspace, "hg38")
expect_equivalent(bias$pon.count, c(3, 3, 2, 6, 2, 6, 5, 6, 8, 1, 1, 1, 3, 2, 1, 1, 3, 3, 3))
unlink(tmp_dir, recursive = TRUE)

})


Expand Down

0 comments on commit da76569

Please sign in to comment.