-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BigWig files produce divide by zero in summary view and have "disappearing" data #518
Comments
We could use maxValue instead of sumData/validCnt, and this actually seems more accurate for "spikey" data. Here are the before with var summaryOpts = {score: sumData/validCnt}; (note the clip markers/infinities where there are divide by zero errors) Thanks to Scott Cain and Thomas Down for commentary on this |
This was reported here http://gmod.827538.n3.nabble.com/Gmod-ajax-Bigwig-disappearing-data-tt4046316.html |
Note: Setting a variable scoreType to "maxScore" is now possible in 1.11.6 while helps considerable for wiggle tracks with spiky data. The original divide by zero bug was also fixed. |
The BigWig parser does some math to calculate the "average signal" of the bigwig, but this ends up producing a divide by zero error
Line 215 of src/JBrowse/Store/SeqFeature/BigWig/RequestWorker.js
In some cases validCnt is zero in the bigwig.
The text was updated successfully, but these errors were encountered: