A computer implemented method for constructing profile of a tissue or a cell, the profile being based on pairs of adjacent epigenetically modified bases, based on epigenetic modification information derived from nucleic acid containing epigenetically modified bases-contained in a sample relating to said tissue or a cell, the method comprising the following steps:
- a) providing digital data on values of epigenetic modification level measurements for epigenetically modified bases contained in said nucleic acid in said sample relating to said tissue or said cell;
- b) determining a set of pairs of adjacent epigenetically modified bases in said nucleic acid contained in said sample relating to said tissue or said cell, each pair of adjacent epigenetically modified bases consisting of two adjacent epigenetically modified bases localized within one nucleic acid molecule so as to generate a map of adjacent epigenetically modified bases containing genomic coordinates of each identified pair of adjacent epigenetically modified bases;
- c) compressing information on epigenetic modification level value, iteratively for each pair of adjacent epigenetically modified bases among the determined set of pairs of adjacent epigenetically modified bases, by converting two values of epigenetic modification level associated with two epigenetically modified bases in each pair, into one single numerical value, said single value representing compressed epigenetic modification information for a pair of adjacent epigenetically modified bases and being indicative of epigenetic modification status in each pair of adjacent epigenetically modified bases;
- d) saving
- genomic coordinates of adjacent epigenetically modified bases for each pair in said determined set of pairs and
- compressed epigenetic modification information in the form of one single numerical value for said each pair of adjacent epigenetically modified bases in said sample so as to generate a profile based on pairs of adjacent epigenetically modified bases of said tissue or said cell;
- wherein each said pair of adjacent epigenetically modified bases is further localized at a distance less than a pre-defined threshold distance.