File: test-plot_correlation_bootstrap.R

package info (click to toggle)
r-bioc-mutationalpatterns 3.8.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,336 kB
  • sloc: sh: 8; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
context("test-plot_correlation_bootstrap")

# Get contri boots
contri_boots <- readRDS(system.file("states/bootstrapped_snv_refit.rds",
  package = "MutationalPatterns"
))

# Run default function
output <- plot_correlation_bootstrap(contri_boots)

# Run for all samples combined
output_combi <- plot_correlation_bootstrap(contri_boots, per_sample = FALSE)

# Test
test_that("Output has correct class", {
  expect_true(inherits(output, c("list")))
  expect_true(inherits(output[[1]], c("gg")))
  expect_true(inherits(output_combi, c("gg")))
})