A helper function for coverage_to_histogram that returns the weighted coverage of a disjoint bin
Source:R/coverage_to_histogram.R
weighted_coverage.Rd
A 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
cvg
representing the coverage for that elementreturn A GRanges object where each element is one bin and
cvg
represents the weighted average of the coverage of its components