Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions src/evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,23 @@ bool Evaluator::isTwoColorSystem() {
if(!r)
return false;

// NEXTSEQ500, NEXTSEQ 550/550DX, NOVASEQ
if(starts_with(r->mName, "@NS") || starts_with(r->mName, "@NB") || starts_with(r->mName, "@NDX") || starts_with(r->mName, "@A0")) {
delete r;
return true;
// Two-color system instrument prefixes
// See https://github.com/OpenGene/fastp/pull/508 for a detailed discussion
const vector<string> twoColorPrefixes = {
"@FS", // iSeq 100
"@MN", "@SH", // MiniSeq
"@NS", "@NB", // NextSeq 500/550
"@NDX", // NextSeq 550DX
"@VL", "@VH", // NextSeq 1000/2000
"@A", "@NA", // NovaSeq 6000
"@LH" // NovaSeq X
};

for (const string& prefix : twoColorPrefixes) {
if (starts_with(r->mName, prefix)) {
delete r;
return true;
}
}

delete r;
Expand Down