I am trying to calculate the coverage of a ChIP data set over a very limited set of gene coordinates. I have very simple bed files for both (after trying to eliminate any cause of the error) that are just the bare bones "chr start end" columns, and every time I run the command:
bedtools coverage -a a.bed -b b.bed
I get this error:
ERROR: Received illegal bin number 4294967295 from getBin call.
ERROR: Unable to add record to tree
I used grep to search for this number and it's nowhere to be found in either of my files, which makes sense given that my genome isn't that big. So why am I still getting this error?
Thanks for your input!
4294967295 is a special number. Maybe an overflow error somewhere with an unsigned integer.
Hmm interesting, could you explain a little more? I'm not terribly experienced yet.
It's not your fault, probably, but when you see that number pop up, it usually indicates that an unsigned integer is being used incorrectly to store a negative number (which is signed).
Ok, thanks so much. Any idea how to correct it?
No idea. You might contact the developers.
Can you provide a few lines of those BED files?
a.bed
b.bed
I got the same error and the cause was a little bit different:
In the bed file I downloaded there were lines with third column missing!
That file was claimed to be derived from UCSC liftover. So I suppose liftover program might have produced something partial?
I got same error when using subtract of bedtools. And I have tried to use bedops to check one of my input file:
I got this:
Then I used awk to delete illegal lines
then subtract got right answer.
You can also use
awk
to fix the input before running it throughbedops
:You don't necessarily need to delete "illegal" lines, although you could if it makes sense to do so.
I am facing the same error. kindly guide me how i can i solve it.
Please use the formatting bar (especially the
code
option) to present your post better. You can use backticks for inline code (`text` becomestext
), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.Did you check the proposed solutions (hidden characters) etc?