Skip to content
Snippets Groups Projects
Commit 570f0e12 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

bugfix

parent 7b0c0412
No related branches found
No related tags found
No related merge requests found
...@@ -118,6 +118,7 @@ void SeqToPentamerIndices(const String& seq, bool unique, std::vector<int>& indi ...@@ -118,6 +118,7 @@ void SeqToPentamerIndices(const String& seq, bool unique, std::vector<int>& indi
} }
indices.resize(N-4); indices.resize(N-4);
if(unique) { if(unique) {
std::sort(indices.begin(), indices.end());
auto last = std::unique(indices.begin(), indices.end()); auto last = std::unique(indices.begin(), indices.end());
indices.erase(last, indices.end()); indices.erase(last, indices.end());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment