labsquare / FastQt

FastQC port to Qt5: A quality control tool for high throughput sequence data.
GNU General Public License v3.0
110 stars 25 forks source link

format_detection finds `ubam` for bgzipped fastq file #96

Open yhoogstrate opened 6 years ago

yhoogstrate commented 6 years ago

Hi there,

I found a small error in the format detection that marks a bgzipped fastq as unaligned bam.

At the following line: https://github.com/labsquare/FastQt/blob/07da1bec97e50d2dcb3fbe77eaa0e0352a0b7a2e/utils/format_detection.cpp#L140 There needs to be an additional constraint that parses (using zlibs gzread or the included quagzipfile.h) the first 4 bases from the bgzipped file and ensures it equals [B][A][M][\1]

kind regards,

Youri