daler/pybedtools

Confusing error for too many pybedtools intersect -b files

Closed this issue · 0 comments

When trying to run pybedtools intersect with hundreds of -b files, I received:

Error message was:
Error: Unable to open file <filename.bed.gz>. Exiting.

However, I was able to run bedtools intersect between -a file and the problematic -b file alone successfully on the command line. I tried slicing my list of -b files in various ways, and it seems that there is a cap of 253 -b files. It might be worth adding a more descriptive error for this case.

bedtools v2.29.0
pybedtools==0.8.0