Skip to contents

A helper function for coverage_to_histogram that returns the weighted coverage of a disjoint bin

Usage

weighted_coverage(split_coverage)

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 element

return A GRanges object where each element is one bin and cvg represents the weighted average of the coverage of its components