Skip to content

Commit

Permalink
correct bug in Assembler::correct_contigs()
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixingfeng committed Feb 14, 2020
1 parent 5456cf5 commit dadf534
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file not shown.
4 changes: 3 additions & 1 deletion src/modules/assemble/assembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1934,7 +1934,9 @@ void Assembler::correct_contigs(string ann_file, string out_file, double min_ove
is_corrected[i] = true;
for (auto k = 0; k < this->rl_ann_clust[j].cons_seq.size(); ++k){
if (cons_seq_hash[i].find(rl_ann_clust[j].cons_seq[k]) == cons_seq_hash[i].end() &&
tested_loci_hash[i].find(rl_ann_clust[j].cons_seq[k]/4) == tested_loci_hash[i].end()){
tested_loci_hash[i].find(rl_ann_clust[j].cons_seq[k]/4) == tested_loci_hash[i].end() &&
int(rl_ann_clust[j].cons_seq[k]/4) >= rl_ann_clust[i].start &&
int(rl_ann_clust[j].cons_seq[k]/4) <= rl_ann_clust[i].end){

cons_seq_corrected[i].insert(rl_ann_clust[j].cons_seq[k]);
tested_loci_corrected[i].insert(rl_ann_clust[j].cons_seq[k]/4);
Expand Down

0 comments on commit dadf534

Please sign in to comment.