title: KungFQ: a simple and powerful approach to compress fastq files.
abstract: Nowadays storing data derived from deep sequencing experiments has become pivotal and standard compression algorithms do not exploit in a satisfying manner their structure. A number of reference-based compression algorithms have been developed but they are less adequate when approaching new species without fully sequenced genomes or nongenomic data. We developed a tool that takes advantages of fastq characteristics and encodes them in a binary format optimized in order to be further compressed with standard tools (such as gzip or lzma). The algorithm is straightforward and does not need any external reference file, it scans the fastq only once and has a constant memory requirement. Moreover, we added the possibility to perform lossy compression, losing some of the original information (IDs and/or qualities) but resulting in smaller files; it is also possible to define a quality cutoff under which corresponding base calls are converted to N. We achieve 2.82 to 7.77 compression ratios on various fastq files without losing information and 5.37 to 8.77 losing IDs, which are often not used in common analysis pipelines. In this paper, we compare the algorithm performance with known tools, usually obtaining higher compression levels.
authors.affiliation: Department of Genetics, Biology and Biochemistry, Molecular Biotechnology Center, via Nizza 52, Torino 10126, Italy. grassi.e@gmail.com
authors.forename: Elena
authors.initials: E
authors.lastname: Grassi
authors.forename: Federico
authors.initials: F
authors.lastname: Di Gregorio
authors.forename: Ivan
authors.initials: I
authors.lastname: Molineris
mesh_terms: D000465:Algorithms; D044962:Data Compression / Q000379:methods*; D030541:Databases, Genetic; D023281:Genomics / Q000379:methods*; D059014:High-Throughput Nucleotide Sequencing; D020407:Internet; D012984:Software