s-andrews / FastQC

A quality control analysis tool for high throughput sequencing data
GNU General Public License v3.0
444 stars 86 forks source link

File detection update #107

Open mgenereu opened 2 years ago

mgenereu commented 2 years ago

File type detection is different under newer versions of Java and this adds support for null detection and alternate MIME strings.

ghB111 commented 1 year ago

May I suggest also explicitly checking magic bytes of file to guess if it's gzipped? FileTypeDetector docs say it may only check file extension, which can be misleading when, for example, you create a temp file in your pipeline and that information is lost.