Skip to content

Commit

Permalink
Fix broken test.
Browse files Browse the repository at this point in the history
  • Loading branch information
lima1 committed Mar 31, 2024
1 parent 5169999 commit daf175b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test_adjustLogRatio.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ test_that("Function returns expected values for example coverage", {
log.ratio.adjusted <- adjustLogRatio(log.ratio, purity, ploidy)
total.ploidy <- 1.73
p <- 1
log.ratio.offset <- 0
opt.C <- (2^(log.ratio.adjusted + log.ratio.offset) * total.ploidy)/p - ((2 * (1 - p))/p)
expect_lt(abs(min(log.ratio.adjusted, na.rm=TRUE) - log2(0.004)), 0.001)
expect_lt(median(abs(opt.C - purecn.example.output$results[[1]]$seg$C)), 0.1)
Expand Down

0 comments on commit daf175b

Please sign in to comment.