This invention relates to the field of
gene testing
data compression technology, and discloses an intelligent compression
processing method for
gene testing data. This invention divides compression blocks by
genetic marker names, sample identifiers, chromosomal regions, or
gene functional regions as boundaries, assigns an independent compression context to each block, and blocks do not share any compression dictionary or encoding state. A global
index mapping table containing exclusion marker bits is established, and a writable marker area physically separated from the data area and index area is defined at the end of the compressed file. Operation records are linked into an immutable
chain structure using the national cryptographic SM3
hash chain. This invention can also dynamically select the
compression method based on
population genetic parameters and perform Mendelian genetic tests during the compression stage to force
lossless compression of genetically inconsistent sites. This invention achieves on-demand decompression at the business semantic
granularity, balancing
storage efficiency and
data accuracy, and meeting the requirements of immutability of
original data for
forensic identification and judicial auditing.