Skip to content
Permalink
Browse files

resolve failure of index file open

  • Loading branch information...
ekg committed May 24, 2012
1 parent 1c2da8e commit b65d5689f0707b96615fea0e8b44d8fef7f62d5e
Showing with 5 additions and 6 deletions.
  1. +4 −5 bamaddrg.cpp
  2. +1 −1 bamtools
@@ -93,11 +93,10 @@ void setRegion(BamMultiReader& reader, string& regionStr) {

int startSeqRefID = refID[startSeq];

if (!reader.LocateIndexes()) {
cerr << "region specified, but could not open load BAM index" << endl;
exit(1);
} else {
reader.SetRegion(startSeqRefID, startPos, startSeqRefID, stopPos);
reader.LocateIndexes();
if (!reader.SetRegion(startSeqRefID, startPos, startSeqRefID, stopPos)) {
cerr << "Could not set region" << endl;
exit(1);
}

}
Submodule bamtools updated 173 files

0 comments on commit b65d568

Please sign in to comment.
You can’t perform that action at this time.