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
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.