R/scanBamHeader.R

setMethod(scanBamHeader, "character", 
          function(files, ...)
{
    files <- .normalizePath(files)
    lst <- lapply(files, function(file) {
        bam <- open(BamFile(file, character(0)))
        on.exit(close(bam))
        scanBamHeader(bam, ...)
    })
    names(lst) <- files
    lst
})

Try the Rsamtools package in your browser

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

Rsamtools documentation built on Nov. 8, 2020, 8:11 p.m.