BWA error: [bwa_idx_build] fail to open file 'ref.fa' : No such file or directory
1
0
Entering edit mode
2.7 years ago
David • 0

Hi, I'm looking to leverage BWA to do some HLA typing. I can't get past the "Getting Started" code on the Github page for some reason. When running ./bwa index ref.fa I get the error below:

[bwa_idx_build] fail to open file 'ref.fa' : No such file or directory

I'm running this out of Terminal on MacOS. Please let me know if there's any more information you need from my end. Any help would be much appreciated! Thank you!

BWA • 2.1k views
ADD COMMENT
1
Entering edit mode

In the future, the context of the error message is important for troubleshooting. You should quote the exact command line that generated the error. You should also show evidence that you did some troubleshooting yourself; e.g when the error says "file not found", you should put the command line that you used to determine if the file does indeed exist where you told the program it is.

ADD REPLY
1
Entering edit mode
2.7 years ago
Mensur Dlakic ★ 27k

[bwa_idx_build] fail to open file 'ref.fa' : No such file or directory

It is exactly as stated: there is no file with that name in a directory from which you are running the command. You can do one of two things: 1) copy ref.fa from wherever it is into your current directory, then repeat the command; 2) give a full location of the ref.fa file (something like /home/david/files/ref.fa).

ADD COMMENT

Login before adding your answer.

Traffic: 3129 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6