bedtools icon indicating copy to clipboard operation
bedtools copied to clipboard

Blank BED files throw an error

Open jsilter opened this issue 10 years ago • 1 comments

bedtools apparently throws an error when trying to read empty files, and treats them as though they cannot be opened. When I try to intersect 2 blank files, this is the result:

Error: The requested bed file (blank.bed) could not be opened. Exiting!

I think it would be better to treat the file as containing no features. This has come up in IGV integration, where sometimes one of the temporary files being operated on is blank. The correct result would vary depending on the command so it's much harder to fix on the IGV end.

jsilter avatar Oct 03 '13 22:10 jsilter

Thanks Jacob,

I will look into this asap.

Aaron

arq5x avatar Oct 07 '13 13:10 arq5x