Computer-implemented method for compressing genomic data, whereby the genomic data are stored in at least one data file containing at least a plurality of reads built by a genome sequencing method, whereby each read includes a mapping position, a CIGAR string and an actual sequenced nucleotide sequence as a local part of the donor genome, comprising the steps: - unwind a nucleotide sequence of a current read of one of said data files by using the mapping position and the CIGAR string of said current read, whereby said current read has at least one previous read, - compute a difference between the unwound nucleotide sequence of said current read and an unwound nucleotide sequence of at least one of said previous reads, whereby said difference contains the differences of the mapping positions and the nucleotide sequences, - pass said computed difference to an entropy coder to compress said difference, - encode said current read by the compressed difference, and - repeat the forgoing steps with said current read as one of said previous reads and a following read as a new current read until no more following reads are available, characterized in that - a consensus read including a consensus unwound nucleotide sequence is computed based on unwound nucleotide sequences of consecutive previous reads by building a consensus of each unwound nucleotide of the unwound nucleotide sequences of said consecutive previous reads, - said consensus read is used as a previous read for computing a difference between said current read and said consensus read as a previous read, and - wherein said current read has a number of consecutive previous reads and the number of consecutive previous reads is a number greater that 2, if said number of consecutive previous reads exists, and if the difference is compressed and the current read is encoded, the current read is added to the number of previous reads as a youngest read and the oldest read is deleted from the number of previous reads to implement a sliding window line by line through all reads of the data file. - unwind a nucleotide sequence of a current read of one of said data files by using the mapping position and the CIGAR string of said current read, whereby said current read has at least one previous read, - compute a difference between the unwound nucleotide sequence of said current read and an unwound nucleotide sequence of at least one of said previous reads, whereby said difference contains the differences of the mapping positions and the nucleotide sequences, - pass said computed difference to an entropy coder to compress said difference, - encode said current read by the compressed difference, and - repeat the forgoing steps with said current read as one of said previous reads and a following read as a new current read until no more following reads are available, characterized in that - a consensus read including a consensus unwound nucleotide sequence is computed based on unwound nucleotide sequences of consecutive previous reads by building a consensus of each unwound nucleotide of the unwound nucleotide sequences of said consecutive previous reads, - said consensus read is used as a previous read for computing a difference between said current read and said consensus read as a previous read, and - wherein said current read has a number of consecutive previous reads and