reduceByRange with iterate=TRUE is a great way to analyse a collection of large files on laptop.
Say I have a set of files and a set of ranges. In addition, for every file I have an additional variable, say a normalisation factor, that can't be calculated on each individual range/file combination.
For every call of MAP by reduceByRange, I would like to pass the appropriate normalisation factor to the calculation along with the file, in the same way you would call mapply on multiple parallel arguments (
mapply(function, files, normalisationFactor)).
Is such a thing possible with GenomicFiles?