Skip to content

Commit

Permalink
tests-processBismarkAln: add test
Browse files Browse the repository at this point in the history
- to check that reading sam and bam returns the same object

Signed-off-by: Alexander Blume <alex.gos90@gmail.com>
  • Loading branch information
alexg9010 committed Apr 26, 2023
1 parent 033e391 commit bae69d7
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions tests/testthat/test-5-processBismarkAln.r
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,53 @@ test_that("check that sam file can be read-in", {
'methylRawDB')
})

test_that("check that reading sam and bam returns the same object", {
expect_equal(
processBismarkAln(
location = system.file("extdata",
"ctrl.bismark_paired_end.sorted.bam",
package = "methylKit"
),
sample.id = "ctrl1",
assembly = "hg18",
verbose = FALSE,
mincov = 1
),
processBismarkAln(
location = system.file("extdata",
"ctrl.bismark_paired_end.sorted.wh.sam",
package = "methylKit"
),
sample.id = "ctrl1",
assembly = "hg18",
verbose = FALSE,
mincov = 1
)
)
expect_equal(
processBismarkAln(
location = system.file("extdata",
"test.bismark_single_end.sorted.bam",
package = "methylKit"
),
sample.id = "test",
assembly = "hg18",
verbose = FALSE,
mincov = 1
),
processBismarkAln(
location = system.file("extdata",
"test.bismark_single_end.sorted.wh.sam",
package = "methylKit"
),
sample.id = "test",
assembly = "hg18",
verbose = FALSE,
mincov = 1
)
)
})

test_that("check that CHG context can be read in", {
expect_is(
processBismarkAln(
Expand Down

0 comments on commit bae69d7

Please sign in to comment.