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 ef86697 commit 4d8de8aCopy full SHA for 4d8de8a
src/sequali/_qcmodule.c
@@ -1478,7 +1478,7 @@ BamParser__next__(BamParser *self)
1478
fastq_buffer_cursor += seq_length;
1479
memcpy(fastq_buffer_cursor, "\n+\n", 3);
1480
fastq_buffer_cursor += 3;
1481
- if (bam_qual_start[0] == 0xff) {
+ if (seq_length && bam_qual_start[0] == 0xff) {
1482
/* If qualities are missing, all bases are set to 0xff, which
1483
is an invalid phred value. Create a quality string with only
1484
zero Phreds for a valid FASTQ representation */
0 commit comments