Skip to content

Commit

Permalink
Include bt2 indexes in index search
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rr0 committed Feb 6, 2019
1 parent 121dada commit 1f52511
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ebwt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ string adjustEbwtBase(const string& cmdline,
if(getenv("BOWTIE_INDEXES") != NULL) {
str = string(getenv("BOWTIE_INDEXES")) + "/" + ebwtFileBase;
if(verbose) cout << "Trying " << str << endl;
in.open((str + ".1.ebwt").c_str(), ios_base::in | ios::binary);
if (access((str + ".1." + gBt2_ext).c_str(), R_OK) == 0) {
gEbwt_ext = gBt2_ext;
}
in.open((str + ".1." + gEbwt_ext).c_str(), ios_base::in | ios::binary);
if(!in.is_open()) {
if(verbose) cout << " didn't work" << endl;
in.close();
Expand Down

0 comments on commit 1f52511

Please sign in to comment.