-
Notifications
You must be signed in to change notification settings - Fork 367
Open
Description
Hi,
If paired fastq files are out-of-order, fastp seems to continue as normal, despite the pairing assumption (for dropping both reads if one pair files if e.g. --unpaired1 is not set) not being satisfied.
I was hoping to just put a readname check in the pe processing loop
Lines 383 to 386 in 7a0acec
| for(int p=0;p<leftPack->count && p<rightPack->count;p++){ | |
| Read* or1 = leftPack->data[p]; | |
| Read* or2 = rightPack->data[p]; | |
if (*or1->mName!=*or2->mName) {
//skip or assert an error
}
But the mName for the read contains the whole line (read indexes or the "MGI" format or /1 or /2), which means many reads won't have equal IDs. Maybe taking the substring up to the first space (but still would need to handle the /1 or /2), but this gets messy.
Realistically this should be fixed upstream, but would make sense that this would also raise an issue during a QC step.
Best,
Alex
Metadata
Metadata
Assignees
Labels
No labels