Skip to content

Commit

Permalink
copy dbtype and clear map
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed Sep 22, 2021
1 parent 4a3bb34 commit 5e245d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/pairaln.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ int pairaln(int argc, const char **argv, const Command& command) {
localThreads = std::max(std::min((size_t)par.threads, alnDbr.getSize()), (size_t)1);
#endif

DBWriter resultWriter(par.db4.c_str(), par.db4Index.c_str(), localThreads, par.compressed, Parameters::DBTYPE_ALIGNMENT_RES);
DBWriter resultWriter(par.db4.c_str(), par.db4Index.c_str(), localThreads, par.compressed, alnDbr.getDbtype());
resultWriter.open();

Debug::Progress progress(alnDbr.getSize());
Expand Down Expand Up @@ -101,6 +101,7 @@ int pairaln(int argc, const char **argv, const Command& command) {
}
resultWriter.writeData(outputA.c_str(), outputA.length(), alnDbr.getDbKey(i), thread_idx);
resultWriter.writeData(outputB.c_str(), outputB.length(), alnDbr.getDbKey(i+1), thread_idx);
findPair.clear();
}
}

Expand Down

0 comments on commit 5e245d1

Please sign in to comment.