### =========================================================================
### reduceFiles
### =========================================================================
reduceFiles <- function(ranges, files, MAP, REDUCE, ..., init) {
if (is(ranges, "GenomicFiles")) {
files <- GenomicFiles::files(ranges)
ranges <- rowRanges(ranges)
}
if (!is(ranges, "GRanges") && !is(ranges, "GRangesList"))
stop("'ranges' must be GRanges or GRangesList")
.reduceByFile(list(ranges), files, MAP, REDUCE, ...,
iterate=FALSE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.