Skip to content

Commit

Permalink
Fix invalid entries accessed in FindPam
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed May 15, 2020
1 parent 2361e17 commit c6c1c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/FindPam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ int findpam(int argc, const char **argv, const Command& command) {
std::vector<std::string> columns = Util::split(line, "\t");
size_t tsetid = Util::fast_atoi<size_t>(columns[0].c_str());
// should we not call getId first? is this not a key?
size_t contigid = Util::fast_atoi<size_t>(setReader.getData(tsetid, thread_idx));
char *data = targetReader.getData(contigid, thread_idx);
size_t contigid = Util::fast_atoi<size_t>(setReader.getDataByDBKey(tsetid, thread_idx));
char *data = targetReader.getDataByDBKey(contigid, thread_idx);
size_t qstart = Util::fast_atoi<size_t>(columns[5].c_str()) - 1;
size_t qend = Util::fast_atoi<size_t>(columns[6].c_str()) - 1;
size_t qlen = Util::fast_atoi<size_t>(columns[7].c_str());
Expand Down

0 comments on commit c6c1c48

Please sign in to comment.