We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef5e33a commit a4ac0acCopy full SHA for a4ac0ac
1 file changed
src/options.cpp
@@ -64,6 +64,9 @@ void Options::loadFastaAdapters() {
64
map<string, string>::iterator iter;
65
for(iter = contigs.begin(); iter != contigs.end(); iter++) {
66
if(iter->second.length()>=6) {
67
+ // deduplicate adapter sequences in fasta file, for example when the same adapter is listed for multiple samples in a batch processing
68
+ if(find(adapter.seqsInFasta.begin(), adapter.seqsInFasta.end(), iter->second) != adapter.seqsInFasta.end())
69
+ continue;
70
adapter.seqsInFasta.push_back(iter->second);
71
}
72
else {
0 commit comments