tests/testthat/test_getStrandFromBamFile.R

test_that("GetWinFromBamFile Return Proper DataFrame", {
  file <- system.file("extdata", "ex1.bam", package="Rsamtools")
  win <- getStrandFromBamFile(file)
  require_cols <- c(
      "Seq","Start","End","NbPos","NbNeg","CovPos","CovNeg","MaxCoverage","File"
      )
  expect_true(all(require_cols %in% colnames(win)))
})
UofABioinformaticsHub/rnaCleanR documentation built on Aug. 11, 2021, 11:51 p.m.