Skip to content

Commit

Permalink
change unordered_map back to map for mapRead
Browse files Browse the repository at this point in the history
  • Loading branch information
sfchen committed Feb 24, 2018
1 parent 3604298 commit f153343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/indexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void Indexer::indexContig(int ctg, string seq, int start) {
}

vector<SeqMatch> Indexer::mapRead(Read* r) {
unordered_map<long, int> kmerStat;
map<long, int> kmerStat;
kmerStat[0]=0;
string seq = r->mSeq.mStr;
const int step = 2;
Expand Down Expand Up @@ -146,7 +146,7 @@ vector<SeqMatch> Indexer::mapRead(Read* r) {
int count1 = 0;
long gp2 = 0;
int count2 = 0;
unordered_map<long, int>::iterator iter;
map<long, int>::iterator iter;
//TODO: handle small difference caused by INDEL
for(iter = kmerStat.begin(); iter!=kmerStat.end(); iter++){
if(iter->first != 0 && iter->second > count1){
Expand Down

0 comments on commit f153343

Please sign in to comment.