Thank you very much for that, it helped a lot. I sorted the bed file and then used sort -k1,1V to reverse the order so it is in ascending order.. Now I get the error:
Error: The genome file sorted.bed.ascending has no valid entries. Exiting.
Do you know why is this? The files seem fine now..
Thank you once again!
Output of three commands:
ẁhich bedtools,bedtools --versionanduname -acould be helpful to know about your setup