elsasserlab / labcode

Utils to perform frequent data analyses in the lab.
GNU General Public License v3.0
0 stars 1 forks source link

bwtools refactored to calculate backgrounds #54

Closed cnluzon closed 4 years ago

cnluzon commented 4 years ago

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.