A helper function for coverage_to_histogram that returns the weighted coverage of a disjoint bin
Source:R/coverage_to_histogram.R
weighted_coverage.RdA helper function for coverage_to_histogram that returns the weighted coverage of a disjoint bin
Arguments
- split_coverage
A GRangesList object where each element is a GRanges object representing 1 bin and each element in the GRanges object contains an mcols column
cvgrepresenting the coverage for that elementreturn A GRanges object where each element is one bin and
cvgrepresents the weighted average of the coverage of its components