Refactored bwtools functions to include the background calculation when such bigWig files are provided.
In the previous version, all these calculations were made in the plot functions. Which means, if you just wanted the normalized values, you needed to normalize them yourself.
Fixes #50
Additional change is that bw_profile calculates background per-locus and ignores NaN and Inf values when computing point means.
Refactored bwtools functions to include the background calculation when such bigWig files are provided.
In the previous version, all these calculations were made in the plot functions. Which means, if you just wanted the normalized values, you needed to normalize them yourself.
Fixes #50
Additional change is that bw_profile calculates background per-locus and ignores NaN and Inf values when computing point means.