inst/unitTests/test_bam_tally.R

test_bam_tally <- function() {
  param <- BamTallyParam(TP53Genome(), TP53Which(), indels = TRUE)
  bam <- system.file("extdata/H1993.analyzed.bam", 
                     package="LungCancerLines", mustWork=TRUE)
  tallies <- bam_tally(bam, param)
  variants <- variantSummary(tallies, NULL, 0L)
}

test_IITs_not_created <- function() {
  gmapGenome <- GmapGenome(genome="NoGenome", directory = getwd())
  checkException(BamTallyParam(genome=gmapGenome,
                               which = GRanges()), silent = TRUE)
}

Try the gmapR package in your browser

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

gmapR documentation built on Nov. 8, 2020, 5:29 p.m.