Skip to content

Commit

Permalink
Removed Illumina postprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
rvaser committed Apr 20, 2018
1 parent a5dbcf6 commit f2afb73
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,29 +131,6 @@ bool Window::generate_consensus(std::shared_ptr<spoa::AlignmentEngine> alignment
} else {
consensus_ = consensus_.substr(begin, end - begin + 1);
}

} else if (type_ == WindowType::kNGS) {
uint32_t i = 0;
for (uint32_t j = 0; i < consensus_.size(); ++i) {
if (consensus_[i] != 'N') {
continue;
}

j = std::max(j, i);
while (j < consensus_.size() && consensus_[j] == 'N') {
++j;
}

if (j >= consensus_.size()) {
break;
} else if (i != j) {
consensus_[i] = consensus_[j];
consensus_[j] = 'N';
}
}
if (i < consensus_.size()) {
consensus_.resize(i);
}
}

return true;
Expand Down

0 comments on commit f2afb73

Please sign in to comment.