Clarification regarding (deepTools) bamCoverage output

Im using bamCoverage on a file and ive set the bin size to 1 but also normalizing using RPKM for defined regions using a bedgraph file. The output from bamCoverage however is in binned segments each with a (RPKM) score. Am I correct in interpreting then that

1 - the output bedgraph tells me the (total) RPKM score for that particular bin?

2 - to get the total RPKM score for the region defined in the bedgraph I need to sum all the RPKM scores given for that particular region?

• If I'm not mistaken, RPKM includes a "normalization" by unit of length, so it does not make sense to sum these values along a region. A weighted average makes more sense (were the weights would be the bin widths). – bli Dec 29 '20 at 8:36