Good morning,
I have found an error using bedtools and now I am trying to make sense of it: Using some scripts I wrote I created a .bed-file, but now when I try to use this file with bedtools it shows me the error:
Error: Invalid record in file genes.bed. Record is chr1 214785930 -2147107995
However, there is no line with this start and end position, and there is no minus sign in the whole file.
I tried it with differen systems, locally I am using bedtools v2.25.0
I uploaded a part of my .bed-file as a gist:
https://gist.github.com/menzel/a497d22f8bdba8e73d635ac998e38e1c
Maybe you can check if you see the same error, right now I tend to think there is some issue with this version of bedtools. The error occurs with merge and intersect, so you can try:
bedtools merge -i genes.bed