A DNA sequencing data storage method and system based on artificial intelligence
By using artificial intelligence-based methods in DNA sequencing data storage to identify and compress the longest matching sequence in DNA sequencing data, the problem of low compression rate due to individual position differences in the existing technology is solved, and more efficient data is achieved Compression and retrieval.
Patent Information
- Application Number
- CN202410987241.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-23
AI Technical Summary
Existing DNA sequencing data storage methods cannot effectively compress short gene sequences due to differences in individual positions, affecting the compression rate.
Using an artificial intelligence-based DNA sequencing data storage method, the DNA sequencing data to be stored is compressed through a reference-free compression model based on sequence assembly. The longest matching sequence in the read is identified for targeted compression, and the matched and unmatched sequences are separated. Matching sequences are compressed separately, and unmatched sequences are compressed using ASCII.
It achieves efficient encoding of repetitive sequences in DNA sequencing data, dynamically adapts to data changes, improves compression rate, and facilitates rapid retrieval and positioning of specific reads.
Smart Images

Figure CN118522351B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of bioinformatics, and in particular to a DNA sequencing data storage method and system based on artificial intelligence. Background Art
[0002] The information hidden in biological genetic material has always been one of the important contents of bioinformatics research. From 2000 to the present, with the rapid development of DNA sequencing technology, the cost of DNA (DeoxyriboNucleic Acid) sequencing has been continuously reduced, and the output speed of DNA sequencing data has continued to soar. According to statistics, from 2007 to 2020, the cost of gene sequencing has dropped by about 10,000 times, and the sequencing cost for one person has dropped to less than $1,000. As a result, the output speed of sequencing data is also growing rapidly. In 2017, nearly 20Tb of data can be generated in 6 days. Therefore, the storage and compression of DNA sequencing data is crucial.
[0003] At present, a commonly used compression method for DNA sequencing data is a reference-free compression model based on sequence assembly. This method uses the high repetitiveness of the genome sequence combined with the genome assembly algorithm De Bruijn Graph to compress the genome sequence during assembly. During assembly, for sequences that have appeared before, they are compressed by the offset and length in the assembled sequence, thereby achieving the purpose of compression. When compressing the sequence, this method divides the sequence into several short gene sequence reads for compression. Each read has a base sequence of a certain length. Therefore, for reads with local differences in the base sequence, the differences in individual positions will cause the entire read to be unable to be effectively compressed, affecting the compression rate. Summary of the invention
[0004] In order to solve the technical problem that the existing DNA sequencing data storage method cannot effectively compress the entire short gene sequence due to differences in individual positions, thereby affecting the compression rate, the purpose of the present invention is to provide a DNA sequencing data storage method and system based on artificial intelligence. The technical solutions adopted are as follows:
[0005] A DNA sequencing data storage method based on artificial intelligence, comprising:
[0006] Acquire DNA sequencing data to be stored; wherein the DNA sequencing data to be stored includes a plurality of short gene sequences, and the short gene sequence refers to sequencing reading data corresponding to a fragment of a DNA chain corresponding to the DNA sequencing data to be stored; the short gene sequence includes ID data, Base data and Quality data;
[0007] A reference-free compression model based on sequence assembly is used to compress the DNA sequencing data to be stored; wherein, when the reference-free compression model based on sequence assembly is compressing the DNA sequencing data to be stored, each short gene sequence is continuously compressed and spliced, and a spliced sequence composed of uncompressed short gene sequences is recorded at the same time; the short gene sequence to be spliced is matched with the spliced sequence, and if all the Base data in the short gene sequence to be spliced are successfully matched, the offset and length of the Base data of the short gene sequence to be spliced in the spliced sequence are recorded to complete the compression of the Base data of the short gene sequence to be spliced; if the Base data of the short gene sequence to be spliced is partially matched successfully, the Base data of the short gene sequence to be spliced is split into a matched sequence and an unmatched sequence, and the split matched sequence and unmatched sequence are compressed respectively to complete the compression of the Base data of the short gene sequence to be spliced;
[0008] The compressed DNA sequencing data is stored to realize artificial intelligence-based DNA sequencing data storage.
[0009] Furthermore, the ID data refers to the unique identifier of the short gene sequence; the Base data refers to the sorted sequence of DNA base pairs; and the Quality data consists of the confidence of each read position of the short gene sequence, indicating the sequencing accuracy of the base.
[0010] Furthermore, when the reference-free compression model based on sequence assembly is used to compress the DNA sequencing data to be stored, the ID data, Base data and Quality data in each short gene sequence are compressed separately.
[0011] Furthermore, when the ID data in the short gene sequence is compressed, if all the ID data of the short gene sequence to be spliced are matched to the spliced sequence, the offset and length of the ID data of the short gene sequence to be spliced in the spliced sequence are recorded to complete the compression of the ID data of the short gene sequence to be spliced; otherwise, the ID data of the short gene sequence to be spliced is not compressed;
[0012] When compressing the Quality data in the short gene sequence, if the Quality data of the short gene sequence to be spliced currently all matches the spliced sequence, the offset and length of the Quality data of the short gene sequence to be spliced currently in the spliced sequence are recorded to complete the compression of the Quality data of the short gene sequence to be spliced currently; otherwise, the Quality data of the short gene sequence to be spliced currently is not compressed.
[0013] Furthermore, if the Base data of the short gene sequence to be spliced is partially matched successfully, the Base data of the short gene sequence to be spliced is split into a matched sequence and an unmatched sequence, and the split matched sequence and unmatched sequence are compressed respectively, including:
[0014] If part of the Base data of the short gene sequence to be spliced currently matches the already spliced sequence, then according to the matching result of the Base data of the short gene sequence to be spliced currently and the already spliced sequence, determine the longest matching sequence in the Base data of the short gene sequence to be spliced currently; wherein the longest matching sequence is composed of all the data that are matched and continuous between the Base data of the short gene sequence to be spliced currently and the already spliced sequence;
[0015] The data corresponding to the longest matching sequence in the Base data of the short gene sequence to be spliced is divided into matched sequences, and the remaining data is divided into unmatched sequences;
[0016] The split matched sequences and unmatched sequences are compressed using different compression methods.
[0017] Furthermore, the method of determining the longest matching sequence in the Base data of the short gene sequence to be spliced currently according to the matching result between the Base data of the short gene sequence to be spliced currently and the spliced sequence comprises:
[0018] Step 1: according to the matching result between the Base data of the short gene sequence to be spliced and the spliced sequence, a sequence composed of the matched data in the Base data of the short gene sequence to be spliced is used as a candidate sequence, and the length of the current candidate sequence is recorded;
[0019] Step 2, remove the first character in the current Base data to obtain new Base data; match the newly obtained Base data with the spliced sequence, and calculate the length of the sequence composed of the matched data in the newly obtained Base data according to the matching result. If the length of the sequence composed of the matched data in the newly obtained Base data is greater than the length of the current candidate sequence, the sequence composed of the matched data in the newly obtained Base data is used as the new candidate sequence, and the length of the candidate sequence is updated; otherwise, the candidate sequence and the length of the candidate sequence are kept unchanged;
[0020] Step 3, iteratively execute step 2 until the preset iteration termination condition is met, and the obtained candidate sequence is the longest matching sequence.
[0021] Furthermore, the preset iteration termination condition is: the length of the newly obtained Base data is less than the initial value of the length of the candidate sequence, or the difference between the length of the newly obtained Base data and the length of the sequence composed of the data that completes the matching in the newly obtained Base data is less than a preset threshold.
[0022] Furthermore, the preset threshold value is 3.
[0023] Furthermore, the split matched sequences and unmatched sequences are compressed using different compression methods, including:
[0024] For the matched sequence, record its offset and length in the spliced sequence;
[0025] For unmatched sequences, they are compressed using ASCII.
[0026] A DNA sequencing data storage system based on artificial intelligence, comprising:
[0027] A data acquisition module, used to acquire DNA sequencing data to be stored; wherein the DNA sequencing data to be stored includes a plurality of short gene sequences, wherein the short gene sequence refers to sequencing reading data corresponding to a fragment of a DNA chain corresponding to the DNA sequencing data to be stored; the short gene sequence includes ID data, Base data and Quality data;
[0028] A data compression module is used to compress the DNA sequencing data to be stored acquired by the data acquisition module using a reference-free compression model based on sequence assembly; wherein, when the reference-free compression model based on sequence assembly compresses the DNA sequencing data to be stored, it continuously compresses and splices each short gene sequence, and records a spliced sequence composed of uncompressed short gene sequences; the short gene sequence to be spliced is matched with the spliced sequence, and if all the Base data in the short gene sequence to be spliced are successfully matched, the offset and length of the Base data of the short gene sequence to be spliced in the spliced sequence are recorded to complete the compression of the Base data of the short gene sequence to be spliced; if the Base data of the short gene sequence to be spliced is partially matched, the Base data of the short gene sequence to be spliced is split into a matched sequence and an unmatched sequence, and the split matched sequence and unmatched sequence are compressed respectively to complete the compression of the Base data of the short gene sequence to be spliced;
[0029] The data storage module is used to store the DNA sequencing data compressed by the data compression module to realize DNA sequencing data storage based on artificial intelligence.
[0030] The present invention has the following beneficial effects:
[0031] The present invention specifically compresses repetitive sequences in DNA sequencing data by identifying the longest matching sequence in the read, thereby achieving efficient encoding of specific sequence patterns, and solving the problem that the compression unit of the traditional reference-free compression model based on sequence assembly can only reach the read; compared with the prior art, the present invention can dynamically adapt to changes in DNA sequencing data, update the matching strategy in real time to cope with new sequence patterns that may appear in the sequencing data, obtain the longest matching sequence in the match more quickly, facilitate rapid retrieval and positioning of specific reads, obtain a greater degree of redundant data sequences, and improve the compression rate of DNA sequencing data. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 This is a schematic diagram of gene sequence splicing;
[0034] Figure 2 This is a schematic diagram of the FASTQ file format for gene sequencing results;
[0035] Figure 3 A flowchart of a DNA sequencing data storage method based on artificial intelligence provided by one embodiment of the present invention;
[0036] Figure 4 This is a structural block diagram of an artificial intelligence-based DNA sequencing data storage system provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, characteristics and effects of a DNA sequencing data storage method and system based on artificial intelligence proposed by the present invention, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of the present invention.
[0038] First embodiment
[0039] The following is a detailed description of a DNA sequencing data storage method based on artificial intelligence provided by the present invention in conjunction with the accompanying drawings. First, in order to enable relevant personnel to better understand the method, the following application scenario is described as follows:
[0040] DNA sequencing is a laboratory technique used to determine the precise order of nucleotides (adenine [A], cytosine [C], guanine [G], and thymine [T]) in DNA molecules. During the development of sequencing technology, three generations of sequencing technology have been gradually produced, and the sequence length of gene sequencing has gradually increased. The read length of the third generation sequencing technology can reach up to 80Kbp, but DNA molecules are usually very long, and the length of DNA molecules in the human genome can reach hundreds of millions of nucleotides. Therefore, even the longest sequencing sequence cannot accurately express the genetic information of the entire genome, so it is necessary to sequence the short gene sequence obtained (ideally, get a DNA chain and measure all the data from the beginning to the end. But in fact, the DNA chain can only be broken into fragments, and then these fragments are sequenced. The general fragment length is about 150-300bp (bp: base pair). For each fragment, there will be at least one sequencing read data, which is called a short gene sequence (read) in the sequencing field. Splice them together to get a more complete gene sequence. This is the work of sequence assembly. In the process of gene sequencing, the shotgun method first cuts the gene fragments into multiple short gene sequence reads with shorter lengths. All short gene sequences constitute a short gene sequence sample library. Since there are certain repeated regions between each short gene sequence, if the number of identical bases between two reads exceeds the set threshold, the two reads can be connected to a longer sequence, and the complete gene sequence can be obtained by continuing to splice. The specific process is as follows Figure 1 shown.
[0041] Here, the result of DNA sequencing is usually a FASTQ file, and the format of the FASTQ file is as follows Figure 2 As shown. FASTQ files consist of several read data. Figure 2 The box in the middle is the data of a read. Each read consists of three parts: ID data, Base data, and Quality data. Figure 2The data in the first line starting with @ is the ID data of each read, which is the unique identifier of the read. The GATCG...GCT data in the second line is the Base data, which is essentially the sorting sequence of DNA base pairs. The third line of data is the supplementary data of the ID and has no practical meaning. The fourth line is the quality score sequence Quality, which is composed of the confidence of each reading position of the read, indicating the sequencing accuracy of the base.
[0042] When compressing FASTQ file data, the file is usually divided into three parts: ID, Base, and Quality, and compressed separately. Since the essence of data compression is to reduce the amount of data by using the redundancy of data, and the redundancy of the ID and Quality parts of the FASTQ file is relatively low, different compression algorithms have little difference in their compression performance. Therefore, various compression algorithms are all for mining and compression improvement of Base data. In the following text of this embodiment, only the improvement of the compression algorithm of Base data is discussed.
[0043] Based on the above, the present invention provides an artificial intelligence-based DNA sequencing data storage method, which further compresses the Base data in the read of the DNA sequencing data by re-splitting to improve the compression efficiency; specifically, please refer to Figure 3 , which shows a flow chart of a DNA sequencing data storage method based on artificial intelligence provided by an embodiment of the present invention. The DNA sequencing data storage method based on artificial intelligence provided by this embodiment includes the following execution steps:
[0044] S1, obtaining DNA sequencing data to be stored; wherein the DNA sequencing data to be stored includes multiple short gene sequences, and the short gene sequence refers to sequencing reading data corresponding to a fragment of a DNA chain corresponding to the DNA sequencing data to be stored; the short gene sequence includes ID data, Base data and Quality data.
[0045] S2, using a reference-free compression model based on sequence assembly to compress the DNA sequencing data to be stored; wherein, when the reference-free compression model based on sequence assembly compresses the DNA sequencing data to be stored, the short gene sequences are continuously compressed and spliced, and a spliced sequence composed of uncompressed short gene sequences is recorded at the same time; the short gene sequence to be spliced is matched with the spliced sequence, and if all the Base data in the short gene sequence to be spliced are successfully matched, the offset and length of the Base data of the short gene sequence to be spliced in the spliced sequence are recorded to complete the compression of the Base data of the short gene sequence to be spliced; if the Base data of the short gene sequence to be spliced is partially matched successfully, the Base data of the short gene sequence to be spliced is split into a matched sequence and an unmatched sequence, and the split matched sequence and unmatched sequence are compressed respectively to complete the compression of the Base data of the short gene sequence to be spliced.
[0046] Among them, when the reference-free compression model based on sequence assembly is used to compress the DNA sequencing data to be stored, the ID data, Base data and Quality data in each short gene sequence are compressed separately. For the ID data to be compressed, if all of them match the spliced sequence, then directly record its offset and length in the spliced sequence to complete the compression of the current ID data to be compressed, otherwise, do not compress the current ID data to be compressed; for the Quality data to be compressed, if all of them match the spliced sequence, then directly record its offset and length in the spliced sequence to complete the compression of the Quality data, otherwise, do not compress the Quality data. Since the redundancy of ID data and Quality data is low, different compression algorithms have little difference in their compression performance, so this embodiment only mines and compresses the Base data, so in the following, this embodiment focuses on the compression of the Base data.
[0047] It should be noted that the reference-free compression model based on sequence assembly compresses based on a large number of sequence self-repetitiveness in the genome sequence. During the compression process, each short gene sequence read is continuously spliced. If the Base sequence of the read to be compressed can match the spliced sequence, then for the read, only the offset and length in the spliced sequence need to be recorded, thereby achieving the purpose of compression. When the reference-free compression model based on sequence assembly splices and compresses the read, the read to be spliced is first input into the de Bruijin Graph splicing algorithm, and the de Bruijin Graph splicing algorithm performs splicing of each read. The smallest unit of the traditional reference-free compression model based on sequence assembly is a read, for example: CTCCAGATTACTTCCATTTCCGCCCAAGCTGCTCACAGTATAC, then during matching, a read may not be matched due to a small local difference, resulting in the inability to effectively compress the entire read. To solve this problem, this embodiment splits the reads that have small local differences when matching, that is, for the gene sequence fragments of the reads that do not fully match, the largest matching data segment is selected for compression, thereby improving the overall compression efficiency. Finding the largest matching sequence becomes the key to further improve compression efficiency.
[0048] At this time, the data compression problem of DNA sequencing sequences is transformed into the maximum matching problem between two data sequences.
[0049] It is known that when two sequences are matched, it is necessary to first determine whether the first character is the same. If they are the same, the subsequent characters are determined one by one to determine whether the two sequences match or obtain the largest matching data segment. At the same time, in order to prevent the problem that the subsequent matching data is difficult to obtain an effective match due to the splitting of the read Base data for matching, when performing sequence splicing, in addition to outputting the compressed data, this embodiment also saves an additional spliced uncompressed gene sequencing sequence for subsequent read matching compression. Based on this, the steps of implementing Base data compression in this embodiment are as follows:
[0050] S21, the Base data of the short gene sequence to be spliced Concatenate the uncompressed sequence to the current one To match; if All matches In the case of a match, directly record exist The offset and length in are sufficient; if Not all matches In the The longest matching sequence in ; wherein the longest matching sequence is and The matching rules are: The first character and Each character in the sequence is matched. If a match is found, the second character is judged against the character at the corresponding position until When the end is reached or a mismatch occurs during matching, the longest matching data segment in the matching process is recorded. ;in, Indicates the first character position of the longest matching data segment. Indicates the length of the longest matching data segment.
[0051] Specifically, in this embodiment, the process of determining the longest matching sequence includes:
[0052] S211, according to and The matching results are The sequence composed of the matched data is taken as the candidate sequence, and the length of the current candidate sequence is recorded.
[0053] S212, remove the first character in the current Base data to obtain new Base data; and compare the newly obtained Base data with Perform matching, and calculate the length of the sequence composed of the matched data in the newly obtained Base data according to the matching result. If the length of the sequence composed of the matched data in the newly obtained Base data is greater than the length of the current candidate sequence, the sequence composed of the matched data in the newly obtained Base data is used as the new candidate sequence, and the length of the candidate sequence is updated; otherwise, the candidate sequence and the length of the candidate sequence are kept unchanged.
[0054] S213, iteratively execute S212 until a preset iteration termination condition is met to obtain the longest matching sequence; wherein the preset iteration termination condition is that the length of the newly obtained Base data is less than the initial value of the length of the candidate sequence, or the difference between the length of the newly obtained Base data and the length of the sequence composed of the data that completes the matching in the newly obtained Base data is less than a preset threshold (in this embodiment, the preset threshold is 3).
[0055] It should be noted that if the length of the newly obtained Base data is less than the initial value of the length of the candidate sequence, then even if the newly obtained Base data is If a complete match is obtained in the data, the length of the sequence composed of the matched data at this time cannot be greater than the initial value of the length of the candidate sequence. Therefore, there is no need to continue to execute S212 to update the candidate sequence and the length of the candidate sequence. At the same time, if the difference between the length of the newly obtained Base data and the length of the sequence composed of the matched data in the newly obtained Base data is less than 3, it can be considered that a sufficient compression effect has been achieved at this time, and there is no need to find a better matching sequence. Therefore, when any of the above two conditions is met, S212 can be stopped, and the candidate sequence obtained at this time is the longest matching sequence.
[0056] S22, will The data corresponding to the longest matching sequence in is classified as the matched sequence, and the remaining data is classified as the unmatched sequence.
[0057] S23, compressing the split matched sequence and unmatched sequence using different compression methods respectively.
[0058] Specifically, in this embodiment, for the matched sequence, its offset and length in the spliced sequence are recorded and compressed; for the unmatched sequence, it is compressed using ASCII (American Standard Code for Information Interchange).
[0059] S3 stores the compressed DNA sequencing data to realize artificial intelligence-based DNA sequencing data storage.
[0060] In summary, this embodiment provides a DNA sequencing data storage method based on artificial intelligence. The method identifies the longest matching sequence in the read and specifically compresses the repetitive sequences in the DNA sequencing data, thereby realizing efficient encoding of specific sequence patterns, and solving the problem that the compression unit of the traditional reference-free compression model based on sequence assembly can only reach the read; compared with the prior art, the method can dynamically adapt to changes in the DNA sequencing data, update the matching strategy in real time to cope with new sequence patterns that may appear in the sequencing data, obtain the longest matching sequence in the match more quickly, facilitate rapid retrieval and positioning of specific reads, and obtain a greater degree of redundant data sequences, thereby improving the compression rate of DNA sequencing data.
[0061] Second embodiment
[0062] This embodiment provides a DNA sequencing data storage system based on artificial intelligence. The structure of the DNA sequencing data storage system based on artificial intelligence is as follows: Figure 4 As shown, it includes the following modules:
[0063] A data acquisition module is used to acquire DNA sequencing data to be stored; wherein the DNA sequencing data to be stored includes multiple short gene sequences, and the short gene sequence refers to sequencing reading data corresponding to a fragment of a DNA chain corresponding to the DNA sequencing data to be stored; the short gene sequence includes ID data, Base data and Quality data.
[0064] A data compression module is used to compress the DNA sequencing data to be stored acquired by the data acquisition module using a reference-free compression model based on sequence assembly; wherein, when the reference-free compression model based on sequence assembly compresses the DNA sequencing data to be stored, the short gene sequences are continuously compressed and spliced, and a spliced sequence composed of uncompressed short gene sequences is recorded at the same time; the short gene sequence to be spliced is matched with the spliced sequence, and if all the Base data in the short gene sequence to be spliced are successfully matched, the offset and length of the Base data of the short gene sequence to be spliced in the spliced sequence are recorded to complete the compression of the Base data of the short gene sequence to be spliced; if the Base data of the short gene sequence to be spliced is partially matched, the Base data of the short gene sequence to be spliced is split into a matched sequence and an unmatched sequence, and the split matched sequence and unmatched sequence are compressed respectively to complete the compression of the Base data of the short gene sequence to be spliced.
[0065] The data storage module is used to store the DNA sequencing data compressed by the data compression module to realize DNA sequencing data storage based on artificial intelligence.
[0066] It should be noted that, for the sake of convenience, Figure 4 Only the main components of the DNA sequencing data storage system based on artificial intelligence of this embodiment are shown. Moreover, the DNA sequencing data storage system based on artificial intelligence of this embodiment corresponds to the DNA sequencing data storage method based on artificial intelligence of the first embodiment described above; wherein, the functions implemented by each functional module in the DNA sequencing data storage system based on artificial intelligence of this embodiment correspond to each process step in the DNA sequencing data storage method based on artificial intelligence of the first embodiment described above; therefore, no further description is given here.
[0067] In addition, it should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0068] It should also be noted that: each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A DNA sequencing data storage method based on artificial intelligence, characterized in that: include: Acquire DNA sequencing data to be stored; wherein the DNA sequencing data to be stored includes a plurality of short gene sequences, and the short gene sequence refers to sequencing reading data corresponding to a fragment of a DNA chain corresponding to the DNA sequencing data to be stored; the short gene sequence includes ID data, Base data and Quality data; A reference-free compression model based on sequence assembly is used to compress the DNA sequencing data to be stored; wherein, when the reference-free compression model based on sequence assembly is compressing the DNA sequencing data to be stored, each short gene sequence is continuously compressed and spliced, and a spliced sequence composed of uncompressed short gene sequences is recorded at the same time; the short gene sequence to be spliced is matched with the spliced sequence, and if all the Base data in the short gene sequence to be spliced are successfully matched, the offset and length of the Base data of the short gene sequence to be spliced in the spliced sequence are recorded to complete the compression of the Base data of the short gene sequence to be spliced; if the Base data of the short gene sequence to be spliced is partially matched successfully, the Base data of the short gene sequence to be spliced is split into a matched sequence and an unmatched sequence, and the split matched sequence and unmatched sequence are compressed respectively to complete the compression of the Base data of the short gene sequence to be spliced; Storing compressed DNA sequencing data to achieve artificial intelligence-based DNA sequencing data storage; If the Base data of the short gene sequence to be spliced is partially matched successfully, the Base data of the short gene sequence to be spliced is split into a matched sequence and an unmatched sequence, and the split matched sequence and unmatched sequence are compressed respectively, including: If the Base data of the short gene sequence to be spliced currently partially matches the already spliced sequence, then according to the matching result of the Base data of the short gene sequence to be spliced currently and the already spliced sequence, determine the longest matching sequence in the Base data of the short gene sequence to be spliced currently; wherein the longest matching sequence is composed of all the data that are matched and continuous between the Base data of the short gene sequence to be spliced currently and the already spliced sequence; The data corresponding to the longest matching sequence in the Base data of the short gene sequence to be spliced is divided into matched sequences, and the remaining data is divided into unmatched sequences; The split matched sequences and unmatched sequences are compressed using different compression methods respectively; The step of determining the longest matching sequence in the Base data of the short gene sequence to be spliced currently according to the matching result between the Base data of the short gene sequence to be spliced currently and the spliced sequence comprises: Step 1: according to the matching result between the Base data of the short gene sequence to be spliced and the spliced sequence, a sequence composed of the matched data in the Base data of the short gene sequence to be spliced is used as a candidate sequence, and the length of the current candidate sequence is recorded; Step 2, remove the first character in the current Base data to obtain new Base data; match the newly obtained Base data with the spliced sequence, and calculate the length of the sequence composed of the matched data in the newly obtained Base data according to the matching result. If the length of the sequence composed of the matched data in the newly obtained Base data is greater than the length of the current candidate sequence, the sequence composed of the matched data in the newly obtained Base data is used as the new candidate sequence, and the length of the candidate sequence is updated; otherwise, the candidate sequence and the length of the candidate sequence are kept unchanged; Step 3, iteratively execute step 2 until the preset iteration termination condition is met, and the obtained candidate sequence is the longest matching sequence.
2. The method for storing DNA sequencing data based on artificial intelligence according to claim 1, characterized in that: The ID data refers to the unique identifier of the short gene sequence; the Base data refers to the sorted sequence of DNA base pairs; the Quality data consists of the confidence of each read position of the short gene sequence, indicating the sequencing accuracy of the base.
3. The method for storing DNA sequencing data based on artificial intelligence according to claim 1, characterized in that: When the sequence assembly-based reference-free compression model is used to compress the DNA sequencing data to be stored, the ID data, Base data and Quality data in each short gene sequence are compressed separately.
4. The method for storing DNA sequencing data based on artificial intelligence as claimed in claim 3, characterized in that: When the ID data in the short gene sequence is compressed, if all the ID data of the short gene sequence to be spliced are matched in the spliced sequence, the offset and length of the ID data of the short gene sequence to be spliced in the spliced sequence are recorded to complete the compression of the ID data of the short gene sequence to be spliced; otherwise, the ID data of the short gene sequence to be spliced is not compressed; When compressing the Quality data in the short gene sequence, if the Quality data of the short gene sequence to be spliced currently all matches the spliced sequence, the offset and length of the Quality data of the short gene sequence to be spliced currently in the spliced sequence are recorded to complete the compression of the Quality data of the short gene sequence to be spliced currently; otherwise, the Quality data of the short gene sequence to be spliced currently is not compressed.
5. The method for storing DNA sequencing data based on artificial intelligence according to claim 1, characterized in that: The preset iteration termination condition is: the length of the newly obtained Base data is less than the initial value of the length of the candidate sequence, or the difference between the length of the newly obtained Base data and the length of the sequence composed of the data that completes the matching in the newly obtained Base data is less than a preset threshold.
6. The method for storing DNA sequencing data based on artificial intelligence as claimed in claim 5, characterized in that: The preset threshold value is 3.
7. The method for storing DNA sequencing data based on artificial intelligence according to claim 1, characterized in that: The split matched sequences and unmatched sequences are compressed using different compression methods, including: For the matched sequence, record its offset and length in the spliced sequence; For unmatched sequences, they are compressed using ASCII.
8. A DNA sequencing data storage system based on artificial intelligence, characterized in that: include: A data acquisition module, used to acquire DNA sequencing data to be stored; wherein the DNA sequencing data to be stored includes a plurality of short gene sequences, wherein the short gene sequence refers to sequencing reading data corresponding to a fragment of a DNA chain corresponding to the DNA sequencing data to be stored; the short gene sequence includes ID data, Base data and Quality data; A data compression module is used to compress the DNA sequencing data to be stored acquired by the data acquisition module using a reference-free compression model based on sequence assembly; wherein, when the reference-free compression model based on sequence assembly compresses the DNA sequencing data to be stored, it continuously compresses and splices each short gene sequence, and records a spliced sequence composed of uncompressed short gene sequences; the short gene sequence to be spliced is matched with the spliced sequence, and if all the Base data in the short gene sequence to be spliced are successfully matched, the offset and length of the Base data of the short gene sequence to be spliced in the spliced sequence are recorded to complete the compression of the Base data of the short gene sequence to be spliced; if the Base data of the short gene sequence to be spliced is partially matched, the Base data of the short gene sequence to be spliced is split into a matched sequence and an unmatched sequence, and the split matched sequence and unmatched sequence are compressed respectively to complete the compression of the Base data of the short gene sequence to be spliced; A data storage module, used to store the DNA sequencing data compressed by the data compression module, so as to realize DNA sequencing data storage based on artificial intelligence; If the Base data of the short gene sequence to be spliced is partially matched successfully, the Base data of the short gene sequence to be spliced is split into a matched sequence and an unmatched sequence, and the split matched sequence and unmatched sequence are compressed respectively, including: If the Base data of the short gene sequence to be spliced currently partially matches the already spliced sequence, then according to the matching result of the Base data of the short gene sequence to be spliced currently and the already spliced sequence, determine the longest matching sequence in the Base data of the short gene sequence to be spliced currently; wherein the longest matching sequence is composed of all the data that are matched and continuous between the Base data of the short gene sequence to be spliced currently and the already spliced sequence; The data corresponding to the longest matching sequence in the Base data of the short gene sequence to be spliced is divided into matched sequences, and the remaining data is divided into unmatched sequences; The split matched sequences and unmatched sequences are compressed using different compression methods respectively; The step of determining the longest matching sequence in the Base data of the short gene sequence to be spliced currently according to the matching result between the Base data of the short gene sequence to be spliced currently and the spliced sequence comprises: Step 1: according to the matching result between the Base data of the short gene sequence to be spliced and the spliced sequence, a sequence composed of the matched data in the Base data of the short gene sequence to be spliced is used as a candidate sequence, and the length of the current candidate sequence is recorded; Step 2, remove the first character in the current Base data to obtain new Base data; match the newly obtained Base data with the spliced sequence, and calculate the length of the sequence composed of the matched data in the newly obtained Base data according to the matching result. If the length of the sequence composed of the matched data in the newly obtained Base data is greater than the length of the current candidate sequence, the sequence composed of the matched data in the newly obtained Base data is used as the new candidate sequence, and the length of the candidate sequence is updated; otherwise, the candidate sequence and the length of the candidate sequence are kept unchanged; Step 3, iteratively execute step 2 until the preset iteration termination condition is met, and the obtained candidate sequence is the longest matching sequence.
Citation Information
Patent Citations
Discontinuous context modeling and maximum entropy principle based gene compression method
CN103546162A
Reference gene sequence-free gene data compression and reduction method, system and medium
CN111916155A
