-
Notifications
You must be signed in to change notification settings - Fork 20
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
stats from repeated regions behave strangely #8
Comments
Hi, I think this error persists with slightly different behavior. Now when I run
I can confirm this because when I |
I should also mention, that when running |
Hi @snystrom, would you mind providing a minimal file to reproduce this? |
Sure thing. Here's a bigwig file & a bash script to reproduce the error. Let me know if there's anything else you need.
|
Thanks for reporting this. And this is a different bug from the original one and I published the new version with the fix to this bug. |
Some more details about the d4 file I'm using. In the example I uploaded, I use a bigwig, but I've also done this from a bam file & got the same result (even when setting -q 0 for the bam), so I think it's not the input file, but I'd be happy to be proven wrong. |
Yep, I can confirm this bug - and this should be fixed in version 0.1.16 |
Just messed around with the new version & can confirmed fixed! Thanks! |
There is some odd behavior when using
stat
from a bed file when the bed file contains duplicated regions. The stat will run correctly for the first occurrence of the region, then subsequent instances will be reported as 0. This happens formean
,median
, andpercentile
but nothist
.Example bed file:
regions.bed
belowExample of unexpected behavior
This happens with
mean
,median
, andpercentile
.d4utils stat test.d4 -r regions.bed
In the above example, I would expect the following output:
hist
behaves as expected.The text was updated successfully, but these errors were encountered: