tests/testthat/test_getWinFromBamFile.R

test_that("GetWinFromBamFile Return Proper DataFrame", {
  file <- system.file("extdata", "ex1.bam", package="Rsamtools")
  win <- getWinFromBamFile(file)
  require_cols <- c(
      "Seq","Start","End","NbPos","NbNeg","CovPos","CovNeg","MaxCoverage","File"
      )
  expect_true(all(require_cols %in% colnames(win)))
})

Try the strandCheckR package in your browser

Any scripts or data that you put into this service are public.

strandCheckR documentation built on Nov. 8, 2020, 7:02 p.m.