A computer implemented method for compression of genomic data comprising a plurality of genomic sequences having a plurality of characters, the method comprising: modifying the genomic data by removing intermediary data included in the genomic data to obtain modified genomic data, wherein each of the plurality of genomic sequences includes data in the form of primary characters, from amongst the plurality of characters, and wherein the intermediary data includes all information in the genomic data apart from a plurality of primary characters, and wherein the modified genomic data includes the plurality of primary characters; generating, from the modified genomic data, at most two most-frequent character files using at least positions of occurrence of a most-frequent character and a second most-frequent character, selected from amongst the plurality of primary characters in the modified genomic data, wherein the most-frequent character is a primary character, from amongst the plurality of primary characters, that occurs most frequently in the modified genomic data, and wherein the second most-frequent character is a primary character, from amongst the plurality of primary characters, that occurs second most frequently in the modified genomic data,and wherein the at most two most-frequent character files comprise a first character file and the second character file, and said files are generated as unary coded files, creating a least-frequent characters file by removing the most-frequent character and the second most-frequent character from the modified genomic data, wherein the least-frequent characters file is created as a binary file; and compressing together the intermediary data, the at most two most-frequent character files, and the least-frequent characters file to generate compressed genomic data. modifying the genomic data by removing intermediary data included in the genomic data to obtain modified genomic data, wherein each of the plurality of genomic sequences includes data in the form of primary characters, from amongst the plurality of characters, and wherein the intermediary data includes all information in the genomic data apart from a plurality of primary characters, and wherein the modified genomic data includes the plurality of primary characters; generating, from the modified genomic data, at most two most-frequent character files using at least positions of occurrence of a most-frequent character and a second most-frequent character, selected from amongst the plurality of primary characters in the modified genomic data, wherein the most-frequent character is a primary character, from amongst the plurality of primary characters, that occurs most frequently in the modified genomic data, and wherein the second most-frequent character is a primary character, from amongst the plurality of primary characters, that occurs second most frequently in the modified genomic data,and wherein the at most two most-frequent character files comprise a first character file and the second character file, and said files are generated as unary coded files, creating a least-frequent characters file by removing the most-frequent character and the second most-frequent character from the modified genomic data, wherein the least-frequent characters file is created as a binary file; and compressing together the intermediary data, the at most two most-frequent character files, and the least-frequent characters file to generate compressed genomic data.