DNA sequence assembly method
Through the quantum annealing method based on the Ising machine, a directed graph of DNA fragments is constructed and the path with the smallest weight value is solved, which solves the problem of inefficiency of DNA sequence determination technology in processing huge amounts of samples, and realizes the rapid assembly and assembly of DNA sequences. Efficient reproduction.
Patent Information
- Application Number
- CN202210406466.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-18
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-04-18
AI Technical Summary
Existing DNA sequencing technology is difficult to efficiently assemble complete sequences when processing huge amounts of DNA samples. Especially when faced with hundreds of millions of nucleotides, traditional methods are inefficient and cannot quickly process huge amounts of sample information.
The quantum annealing method based on the Ising machine is used to construct a directed graph of DNA fragments. Through the annealing evolution of the Ising Hamiltonian, the path with the smallest sum of weight values is found, and the DNA fragments are arranged to reproduce the complete sequence. Quantum computing is used to The advantage of rapid evolution is to process huge amounts of DNA sample information.
It achieves rapid assembly of DNA sequences, improves the efficiency of processing huge amounts of DNA samples, can effectively reproduce complete DNA sequences, and solves the deficiencies in efficiency and processing capabilities of traditional methods.
Smart Images

Figure CN114913922B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of deoxyribonucleic acid determination, and more specifically, to a DNA sequence assembly method based on Ising machine quantum annealing. Background Art
[0002] Deoxyribonucleic acid is the technology for determining DNA sequence. In molecular biology research, DNA sequence analysis is the basis for further research and transformation of target genes. The main technologies used for sequencing are the dideoxy chain end termination method proposed by Sanger and the chemical degradation method of Gilbert. These two methods are very different in principle, but both are based on the nucleotide starting at a fixed point and randomly terminating at a specific base, producing four groups of ATCG series of nucleotides of different lengths and needing to be detected on urea denatured PAGE gel electrophoresis to obtain DNA sequences.
[0003] The second-generation nucleic acid sequencing technology that has emerged in recent years has outstanding advantages such as high throughput, high accuracy and low operating costs compared to traditional Sanger sequencing technologies. It is a revolutionary change in DNA sequencing technology, which has spawned research in many cutting-edge fields of biology and has a very broad application prospect. Among them, the GA sequencer and the sequencer of Applied Biology are the two sequencers that currently dominate the market. Since the nucleic acid sequences generated by these two sequencers have the industry characteristics of relatively short sequences, the essential link in the data analysis process from the data generated by the sequencer to the application in numerous biological applications is the short sequence back to the genome. That is, the high-throughput short sequence generated by the sequencer is compared with the long sequence of the genome. That is, the matching degree requirement of the genome sequence is generated.
[0004] The main goal is to find the most similar fragment on the genome sequence to match it, and output the matching position, so that the essence of short sequence back to the genome is a short sequence and long sequence alignment problem. This is the most basic and commonly used algorithm in bioinformatics, and it is required for almost all biological information processing tasks. With the explosive growth of the amount of biological sequence data available for comparative analysis, the emerging new demands for sequence comparison have posed new challenges to the methods of processing sequence alignment. For example, how to realize the problem of deoxyribonucleic acid sequence assembly.
[0005] At present, due to the need to achieve extremely high detection reliability, DNA sequencing technology is becoming a hot spot in life science and medical science research, and has achieved rapid and rapid development. DNA sequence data is obtained by sequencing technology for DNA substances. It is a basic research object in many fields such as genetics, genomics, bioinformatics, and medicine, and has important scientific value and practical significance. With the increasing maturity and extensive use of the new generation of high-throughput sequencing technology, the time required to obtain DNA data has been slightly reduced. However, the new generation of high-throughput sequencing technology is helpless in the face of single molecules with hundreds of millions of nucleotides. Summary of the invention
[0006] The present application discloses a DNA sequence assembly method, comprising:
[0007] A directed graph of the DNA fragment is established, an Ising Hamiltonian is constructed according to the directed graph, and the complete sequence of the entire DNA is reproduced by the annealing evolution result of the Ising Hamiltonian.
[0008] The above method, wherein:
[0009] Establishing the directed graph includes: duplicating multiple copies of the DNA to be sequenced, breaking each copy of the DNA into multiple DNA fragments at random positions and performing nucleotide sequencing, and treating the DNA fragments that have completed nucleotide sequencing as nodes of the directed graph.
[0010] The above method, wherein:
[0011] A directed edge is assigned to each ordered pair of nodes in the directed graph.
[0012] The above method, wherein:
[0013] A weight value is assigned to each of the directed edges, and the weight value is used to evaluate the degree of overlap between two DNA fragments represented by a pair of nodes at both ends of the directed edge.
[0014] The above method, wherein:
[0015] The smaller the weight value, the greater the overlap, and the larger the weight value, the lower the overlap.
[0016] The above method, wherein:
[0017] The quantum annealing of the Ising Hamiltonian is used to find a path with the smallest sum of weight values in the directed graph, and the corresponding DNA fragments are arranged in the order of the smallest path to completely reproduce the nucleotide sequence structure of the DNA.
[0018] The above method, wherein:
[0019] A zero node that does not represent any DNA fragment is added to the directed graph. The zero node is interconnected with all other nodes by directed edges. The weights of the directed edges between the zero node and all other nodes are all zero. The zero node is connected with the node representing the starting point of the path and the node representing the end point of the path to form a closed loop to describe the minimum path.
[0020] The present application also discloses another DNA sequence assembly method, comprising:
[0021] The DNA to be sequenced is replicated multiple times, each of which is broken into multiple DNA fragments at random positions and subjected to nucleotide sequencing. The DNA fragments that have completed nucleotide sequencing are regarded as nodes of a directed graph;
[0022] An Ising Hamiltonian is constructed according to the directed graph, which is used in quantum annealing to find a path with the smallest sum of weight values in the directed graph, and the DNA fragments are arranged in the order of the smallest path to reproduce the nucleotide sequence structure of the DNA.
[0023] The above method, wherein:
[0024] A zero node that does not represent any DNA fragment is added to the directed graph. The zero node is interconnected with all other nodes by directed edges. The weights of the directed edges between the zero node and all other nodes are all zero. The zero node is connected with the node representing the starting point of the path and the node representing the end point of the path to form a closed loop for describing the minimum path.
[0025] The present application also discloses another DNA sequence assembly method, which comprises the following steps:
[0026] S1. Construct a directed graph of DNA fragments;
[0027] S2. constructing an Ising Hamiltonian according to the directed graph;
[0028] S3, performing quantum annealing evolution on the Ising Hamiltonian by an Ising machine;
[0029] S4. Reproduce the complete sequence of the entire DNA according to the quantum annealing evolution result.
[0030] In the above method, step S1 comprises:
[0031] S11, making multiple copies of the DNA to be sequenced;
[0032] S12, breaking each DNA into multiple DNA fragments at random positions;
[0033] S13, selecting fragments of a length suitable for direct sequencing from the DNA fragments, and performing nucleotide sequencing;
[0034] S14, taking the DNA fragment that has completed nucleotide sequencing as a node in the graph;
[0035] S15. Assign a directed edge (uv) to each ordered pair of nodes (u, v).
[0036] The purpose of this application is to propose a new solution to DNA sequence assembly, that is, to use Ising machine quantum annealing to efficiently solve the DNA replication problem.
[0037] In view of this, the main purpose of this method is to provide a DNA sequence assembly method based on Ising machine quantum annealing, which utilizes the rapid evolution advantage of Ising machine quantum annealing to quickly process massive NDA sample information.
[0038] In order to solve the above technical problems, the present invention adopts the following technical solutions.
[0039] The weight assigned to the directed edge (uv) is W uv =S(u,v). For example, S(u,v) is a known function that can be freely selected or preset by the user, such as an overlap scoring function, which is used to evaluate the degree of overlap between the tail end of DNA fragment u and the head end of DNA fragment v. The greater the overlap, the smaller S(u,v). If u and v do not overlap at all, S(u,v) is very large.
[0040] According to the nodes v, u and directed edges (uv), the edge weight W uv Together we construct a directed graph G = (V, E).
[0041] The Ising Hamiltonian H ising Produced by the following formula:
[0042]
[0043] Graph path problem, given a directed graph and multiple paths, requires that each edge in the directed graph be weighted and the weight rule requires that the weights of the edges between all nodes be minimized. The graph path assignment mapping is a Hamiltonian problem.
[0044] The graph path assignment problem is mathematically equivalent to path finding, and the graph path assignment can be efficiently solved using Ising machine quantum annealing. The so-called Ising machine refers to a physical system constructed, and the basic Hamiltonian has the following form:
[0045]
[0046] Hamiltonian s i Ising spin, with a value of ±1, is constructed by assigning the graph path to the corresponding Ising Hamiltonian H in the form ising =-∑ i<j Jij s i s j -∑ i h i s i , and various constraints and optimization purposes are reflected in the Ising Hamiltonian. The final result of the quantum annealing evolution of the Ising machine corresponds to the solution of the graph path distribution. Therefore, the Ising machine can be used to efficiently solve the assembly order problem between DNA fragments (such as DNA fragments interrupted by sequencing). In essence, it is a problem of how to restore and reproduce the complete DNA sequence after measuring the nucleotide sequence structure of all DNA fragments.
[0047] The basic Hamiltonian J ij In the Ising Hamiltonian, we represent the i-th spin s i and the jth spin s j coupling strength.
[0048] The basic Hamiltonian h i Represents the local field term in the Ising Hamiltonian.
[0049] Quantum computing quantum approximate optimization algorithm is a polynomial time approximate optimization algorithm, which is mainly used to solve combinatorial optimization problems and has the potential to demonstrate quantum supremacy. Approximate optimization, as the name suggests, only requires an approximate solution to the problem. It can solve NP-hard complete problems and NP-hard problems with higher complexity.
[0050] The Quantum Approximate Optimization Algorithm (QAOA) is one of the most promising algorithms that demonstrate quantum advantage implemented on recent quantum computers. As an approximation algorithm, it does not give the best results, but rather gives "good enough" results and its accuracy depends on the lower bound of the approximation ratio.
[0051] According to the knowledge of graph theory in the field of mathematics, the DNA recovery problem can be equivalent to a graph path problem. The graph path problem is a well-known NP-complete problem. Although people have developed many heuristic algorithms and other algorithms to solve the graph path problem, the quantum annealing method based on the Ising machine is a more efficient solution to the graph path problem. Each graph path problem can correspond to an Ising machine model. The natural evolution result of the Ising machine under the control of physical laws is the solution to the graph path problem, that is, the solution to the Hamiltonian path problem or the Hamiltonian cycle problem.
[0052] The above DNA sequence assembly method can be used to replace all nucleic acid sequencers, sequencing equipment, sequencing systems, etc., including traditional GA sequencers and Applied Biology sequencers, etc. It is just that the Ising machine needs to be integrated into the sequencer, equipment, or system, etc., or the Ising machine is used as a sequencing carrier, so the present application also involves a DNA sequence assembly device and the device includes an Ising machine that executes the aforementioned DNA sequence assembly mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to make the above-mentioned purposes, features and advantages more obvious and easy to understand, the specific implementation methods are explained in detail below in conjunction with the drawings. After reading the following detailed description and referring to the following drawings, the features and advantages of the present application will become obvious.
[0054] Figure 1 A directed graph is constructed by factors such as nodes, directed edges, and edge weights.
[0055] Figure 2 It is a flow chart of DNA determination and DNA fragment sequence assembly.
[0056] Figure 3 It is the process of constructing a directed graph of RNA fragments related to DNA fragments. DETAILED DESCRIPTION
[0057] The scheme of the present invention will be clearly and completely explained below in conjunction with various embodiments. The described embodiments are only embodiments used for narration and explanation of the present invention rather than all embodiments. Based on these embodiments, the scheme obtained by technicians in this field without making any creative work belongs to the protection scope of the present invention.
[0058] See also Figure 1 Graph does not refer to an image or map. Generally speaking, the industry regards a graph as an abstract network composed of "vertices". The vertices in the network can be connected to each other through "edges" to indicate that two vertices are related. Note the two keywords in the definition of the graph here, from which we get our two most basic concepts, namely vertex and edge. First, let's introduce the core contents of graph theory.
[0059] See also Figure 1 , a vertex describes a thing or object. Since graph terminology is not standardized, a vertex can be called a point, a node, a node, or an endpoint. The same applies to vertex terms in the application context.
[0060] See also Figure 1 , edges represent the relationship between things. Edges represent the logical relationship between vertices.
[0061] See also Figure 1 , directed / undirected graph (Directed Graph / Undirected Graph). The most basic graph is usually defined as an undirected graph and the corresponding one is called a directed graph. The difference is that the edges in a directed graph are directional.
[0062] See also Figure 1 , weight belongs to weight, cost, length, and each edge has a corresponding value. For example, when the vertices represent some physical locations or similar, the weight of the edge between two vertices can be set to the distance in the road network. Sometimes, in order to deal with special cases, the weight of the edge can be zero or negative.
[0063] See also Figure 1 The present application relates to the field of DNA sequencing. In combination with the aforementioned graph, the present application particularly relates to a DNA sequence assembly method or a DNA sequence recovery method based on Ising machine quantum annealing.
[0064] See also Figure 1 Regarding the sequence assembly of DNA fragments, in the DNA sequencing process, the length of a complete single DNA molecule that can be sequenced is usually very short. Even with the current technological advancement, only a DNA molecule of a few thousand nucleotides can be sequenced at a time, but a human chromosome is a single molecule with hundreds of millions of nucleotides.
[0065] See also Figure 1 Given the huge number of bases in a single nucleotide molecule, it is impossible to sequence all of them at once, so the industry has to break chromosomes into DNA fragments that can be sequenced directly. However, the assembly order between DNA fragments cannot be directly inferred, and the amount of calculation required for this assembly order is huge given the huge number of bases in a single nucleotide molecule.
[0066] See also Figure 1 Even under very favorable hypothetical circumstances, the nucleotide sequence structure and sequence rules of all DNA fragments can be determined, but the sequence of the complete DNA cannot be restored.
[0067] See also Figure 1, the industry has developed a shotgun sequencing method. The DNA to be tested is copied into multiple copies or backups, and for each copy, it is broken into DNA fragments at random positions, and fragments of suitable length are selected for sequencing. Since the fragments come from many DNA copies, the breakpoints are random, so the sample size must be large enough to make it possible for the DNA fragment sequences from many different copies to overlap. This key overlapping information allows the industry to reconstruct the order relationship between DNA fragment sequences and assemble DNA fragment sequences into a complete DNA sequence.
[0068] See also Figure 1 However, how to process the huge amount of sample information (typically the overlapping sequences of DNA fragments in different copies and the sequential relationship between their related sequences) is an urgent problem to be solved.
[0069] See also Figure 1 , establishing a directed graph includes: duplicating multiple copies of the DNA to be sequenced, breaking each copy of the DNA into multiple DNA fragments at random positions and performing nucleotide sequencing, and the DNA fragments that have completed nucleotide sequencing are regarded as nodes of the directed graph, such as exemplary nodes {A, B, C, D...N}, etc. More DNA fragments (nodes) are not shown.
[0070] See also Figure 1 , nodes v, u and directed edges (uv), edge weights W uv Together we construct a directed graph G = (V, E). For example, we can assume that the graph G = (V, E) has N nodes, V represents the set of all nodes, and E represents the set of all directed edges. For another example, (uv) can usually be used to represent a directed edge from node u to node v, and the edge weight W uv =S(u,v).
[0071] See also Figure 1 In the explanatory example of directed edges, (AB) can be used to represent the directed edge from node A to node B and the weight W on this edge. AB = S(A, B); On the contrary, (BA) can be used to represent the directed edge from node B to node A and the weight W on this edge BA =S(B,A).
[0072] See also Figure 1 In the explanatory example of directed edges, (BC) can be used to represent the directed edge from node B to node C and the weight W on this edge. BC = S(B, C); On the contrary, (CB) can be used to represent the directed edge from node C to node B and the weight W on this edge CB =S(C,B).
[0073] See also Figure 1In the explanatory example of directed edges, (CD) can be used to represent the directed edge from node C to node D and the weight W on this edge. CD = S(C, D); On the contrary, (DC) can be used to represent the directed edge from node D to node C and the weight W on this edge DC =S(D,C).
[0074] See also Figure 1 In the explanatory example of directed edges, (DN) can be used to represent the directed edge from node D to node N and the weight W on this edge. DN = S(D,N); on the contrary, (ND) can be used to represent the directed edge from node N to node D and the weight W on this edge ND =S(N,D).
[0075] See also Figure 1 In the explanatory example of directed edges, (AN) can be used to represent the directed edge from node A to node N and the weight W on this edge. AN = S(A,N); On the contrary, (NA) can be used to represent the directed edge from node N to node A and the weight W on this edge NA =S(N,A).
[0076] See also Figure 1 In the explanatory example of directed edges, (AD) can be used to represent the directed edge from node A to node D and the weight W on this edge. AD = S(A, D); On the contrary, (DA) can be used to represent the directed edge from node D to node A and the weight W on this edge DA =S(D,A).
[0077] See also Figure 1 In the explanatory example of directed edges, (AC) can be used to represent the directed edge from node A to node C and the weight W on this edge. AC = S(A,C); On the contrary, (CA) can be used to represent the directed edge from node C to node A and the weight W on this edge CA =S(C,A).
[0078] See also Figure 1 In the explanatory example of directed edges, (BD) can be used to represent the directed edge from node B to node D and the weight W on this edge. BD = S(B, D); On the contrary, (DB) can be used to represent the directed edge from node D to node B and the weight W on this edge DB =S(D,B).
[0079] See also Figure 1 , edges (BN) and (NB) and corresponding weights W BN= S(B,N) and weight W NB =S(N,B).
[0080] See also Figure 1 , edges (CN) and (NC) and corresponding weights W CN =S(C,N) and weight W NC =S(N,C).
[0081] See also Figure 1 , for each node v in the directed graph, assign N binary variables x v,i ,variable x v,i The subscript value range of v = 1, 2, ..., N and i = 1, 2, ..., N. The variable x v,i =1 means that node v (DNA fragment v) appears at the i-th position of the so-called path (the path represents the DNA fragment sequence). Since a node (DNA fragment) can only appear at one position in the path (DNA fragment sequence), there is constraint 1:
[0082] See also Figure 1 Graphs are a powerful framework in data structures and algorithms. Graphs can be used to represent almost all types of structures or systems, from transportation networks to communication networks, from chess games to optimal process solutions, from task allocation to interpersonal interaction networks. In the world of graph theory, clear and accurate basic concepts are necessary premises and foundations. There are many concepts in graph theory, and vertices and edges are the core contents of graph theory.
[0083] See also Figure 1 At present, the development of quantum computers is gradually becoming mature and large-scale. For example, simulation systems with quantum computing functions are constructed based on traditional computers, providing development paths and tools for quantum algorithms. Existing quantum simulation systems are mainly deployed on supercomputers and cloud computing platforms. Quantum computers have exponential computing acceleration compared to traditional computers. The main purpose of this application is to seek a method based on quantum annealing of the Ising machine that not only solves the Ising problem, but also takes into account the reproduction of the complete sequence of the entire DNA.
[0084] See also Figure 1 , the directed edge (uv) is assigned a weight W uv=S(u,v). For example, the graph neural network G = (V,E). The assembly order between the DNA fragments that can be directly sequenced and the DNA fragments is mapped to the Ising Hamiltonian. If the mapping has a solution, the assembly result is obtained, which will be explained in detail below. For example, S(u,v) can be a known function that the user can freely select, define or preset, such as an overlap score function, which is used to evaluate the degree of overlap between the tail end of DNA fragment u and the head end of DNA fragment v. The greater the overlap, the smaller S(u,v). If u and v do not overlap at all, S(u,v) is very large.
[0085] See also Figure 2 , constructing a directed graph of DNA fragments includes the following steps S201-S206.
[0086] See also Figure 2 In step S201, the DNA to be sequenced is copied into multiple copies.
[0087] See also Figure 2 , in step S202, each DNA is broken into multiple DNA fragments at random positions.
[0088] See also Figure 2 In step S203, from the aforementioned DNA fragments, fragments with a length suitable for direct sequencing are selected and nucleotide sequencing is also required.
[0089] See also Figure 2 , in step S204, the DNA fragment that has completed nucleotide sequencing is taken as a node of the graph.
[0090] See also Figure 2 In step S205, a directed edge (uv) is assigned to each ordered node pair (u, v); directed edges need to be assigned weights such as Figure 1 The directed edge (uv) shown is assigned a weight of W uv =S(u,v).
[0091] See also Figure 2 In step S206, according to the nodes v, u, etc. and the directed edges (uv), the edge weights W uv A directed graph G=(V, E) is constructed together. The graph defined in steps S201-S206 is a directed graph.
[0092] See also Figure 3 In view of this, the main purpose of this application is to provide a DNA sequence assembly method based on Ising machine quantum annealing, taking advantage of the rapid evolution of Ising machine quantum annealing to quickly process a large amount of NDA sample information. In order to solve the above technical problems, this application adopts the following technical solutions S101-S104.
[0093] See also Figure 3, in step S101 , a directed graph of DNA fragments is constructed.
[0094] See also Figure 3 In step S102, the Ising Hamiltonian H is constructed according to the directed graph. ising .
[0095] See also Figure 3 In step S103, the Ising Hamiltonian H ising Substitute into the Ising machine quantum annealing evolution.
[0096] See also Figure 3 In step S104, the complete sequence of the entire DNA is reproduced according to the quantum annealing evolution result.
[0097] See also Figure 3 In step S101, the directed graph of DNA fragments is constructed as follows: multiple copies of the DNA to be sequenced are copied; each copy of the DNA is broken into multiple DNA fragments at random positions; a fragment with a length suitable for direct sequencing is selected from the DNA fragments, and nucleotide sequencing is performed; the aforementioned DNA fragments that have completed nucleotide sequencing are used as a node of the graph; each ordered node pair (u, v) is assigned a directed edge (uv). According to the node v, the directed edge (uv) and the edge weight W uv Together we construct a directed graph G = (V, E).
[0098] See also Figure 3 , where the Ising Hamiltonian H ising Produced by the following formula:
[0099]
[0100] The above technical solution has the following beneficial effects:
[0101] Based on the proposed DNA sequence assembly method based on Ising machine quantum annealing, a huge amount of DNA sample fragments can be first generated by shotgun sequencing, and then the DNA sample fragments can be constructed into a directed graph. The Hamiltonian is constructed according to the directed graph and the Hamiltonian parameters are brought into the fast evolution advantage of Ising machine quantum annealing to achieve rapid assembly of DNA sequences.
[0102] See also Figure 1 ,The mathematical model of the DNA fragment sequence group problem is equivalent to a Hamiltonian cycle problem.
[0103] See also Figure 1 , about the Hamiltonian cycle problem and the Hamiltonian path problem. Given a graph, starting from a certain node and moving along the edge, traversing every node in the graph without repeatedly arriving at any node, and requiring the sum of the weights of all edges in the path to be the smallest, can be equivalent to the Hamiltonian path problem.
[0104] See also Figure 1 The Hamiltonian cycle problem adds a requirement that the path must eventually return to the starting point. In fact, this application equates the Hamiltonian path problem with a Hamiltonian cycle problem.
[0105] See also Figure 1 , the sequence assembly problem of DNA fragments is equivalent to finding a closed loop with the minimum weight sum in the graph, which is also the Hamiltonian cycle problem. If the overlap score function S(u,v) between (u,v) is very small, it means that the overlap between the tail of u and the beginning of v is very large, that is, u and v are (very likely) adjacent fragments with some overlap in the complete DNA sequence. If a path with the minimum weight sum is found in the directed graph, then the corresponding DNA fragments can be arranged in the order of the path to fully reproduce the nucleotide sequence structure of DNA (with the greatest confidence).
[0106] See also Figure 1 That is, this application transforms the DNA fragment assembly problem into the problem of finding a path with the minimum weight in a directed graph - the Hamiltonian path problem.
[0107] See also Figure 1 Based on the content introduced in this article, the main topic involves quantum computing or quantum processing. Quantum computing or quantum processing allows operations to be performed on quantum devices, and the design of its Hamiltonian can at least meet the following goals: Ising Hamiltonian operations include various annealing and evolution processes such as quantum annealing or simulated annealing.
[0108] See also Figure 1 , the conventional one-piece Ising Hamiltonian can be described as:
[0109]
[0110] Among them J ij Representing the i-th spin x in the Ising Hamiltonian i and the jth spin x j coupling strength.
[0111] The result x of each spin i It is composed of binary values -1 and 1. The goal of solving the Ising problem is to minimize the Ising Hamiltonian and obtain x under the minimum Hamiltonian condition. i The corresponding value is 1 or -1.
[0112] Since this article is quantum related, the relevant content about quantum devices and quantum data is as follows:
[0113] The "quantum device" mentioned herein includes known quantum computing devices and quantum chips, etc., and quantum hardware can also be used to replace the term quantum device. Typical "quantum devices" include but are not limited to: quantum computers, quantum information processing systems or quantum cryptography systems, quantum simulators, and all kinds of devices, equipment and machines for processing quantum data.
[0114] The "quantum data" described herein includes information or data carried, stored or stored by a quantum system, and the smallest non-trivial system is a quantum bit, that is, a system that defines a unit of quantum information. It should be understood that the term "quantum bit" includes all quantum systems that can be appropriately approximated as a two-level system in the corresponding context. Such quantum systems generally include, for example, typical atoms, electrons, photons, ions or superconducting quantum bits, etc.
[0115] See also Figure 1 , Graph Neural Network G = (V, E) is a set theory definition method, which can be summarized as a graph is a set of vertices and edges. V is the aforementioned vertex (Vertex) and E is the aforementioned edge (Edge). Another way to express the interference graph in this application is the graph neural network, so the interference graph belongs to the graph neural network.
[0116] As this article is quantum related, the relevant content about quantum machines and quantum data is as follows:
[0117] The term "quantum machine" in this article includes known quantum computing devices and quantum chips, etc., and quantum hardware can also be used to replace quantum devices. Typical "quantum machines" include but are not limited to: quantum computers, quantum information processing systems or quantum cryptography systems, quantum simulators, and all kinds of devices, equipment and machines that process quantum data.
[0118] The most typical commercial application of quantum annealing is the quantum annealing machine, such as D-Wave, a Canadian quantum computer company. The principle of D-Wave's commercially sold quantum computer is to use a tiny current loop made of metal niobium to form a quantum bit, realize the quantum annealing phenomenon, and imitate the effect of storing a large amount of numerical values in bit data in quantum computing.
[0119] It is worth noting that in commercial applications, quantum annealing can effectively solve optimization problems by using superposition states to search for various possibilities, effectively meeting the current needs for improving efficiency and accelerating actual work plans.
[0120] So far, quantum annealing has built a number of early applications in various fields such as logistics, artificial intelligence, materials science, drug discovery, network security, fault detection, and financial modeling. Currently, the commonly used annealing algorithms are divided into simulated annealing and quantum annealing, and quantum annealing is superior.
[0121] Annealing is essentially a metal heat treatment process that slowly heats the metal to a certain temperature, keeps it for a sufficient time, and then cools it at an appropriate rate. Taking semiconductors as an example, annealing is required after ion implantation, because when impurity ions are injected into the semiconductor, the high-energy incident ions will collide with the atoms on the semiconductor lattice, causing the lattice atoms to shift, and annealing can restore the crystal structure and eliminate defects. Actual annealing solves the problem of hardware process instability during the material development process, while simulated annealing and quantum annealing solve the problem of non-optimal solutions for mathematical calculations such as combinatorial optimization.
[0122] Quantum annealing is a form of adiabatic quantum computing (AQC). Informally, the adiabatic theorem states that if a quantum mechanical system starts in the ground state of some Hamiltonian, and changes the Hamiltonian slowly enough, the system will end up in the ground state of the final Hamiltonian. If the initial Hamiltonian is set to a Hamiltonian with a known ground state, and the final Hamiltonian is set to the problem Hamiltonian, where the ground state represents the solution to the desired optimization problem, calculations using this theorem should yield the expected results. The annealing timescale (the expected time required for a single run to reach a solution) is bounded by the inverse of the smallest energy gap between the ground state and the first excited state encountered during the adiabatic evolution.
[0123] See also Figure 1 , after getting the graph, we start to construct a new Hamiltonian. The graph G = (V, E) has N nodes in total, V can represent the set of all nodes, E represents the set of all directed edges, and (uv) represents the directed edge from node u to node v, and the weight on the edge is W uv =S(u,v). This is the basic structure of a directed graph.
[0124] See also Figure 1 , for each DNA fragment or node v in the directed graph, assign N binary variables x v,i , the subscript value range of the variable is v = 1, 2, ..., N, i = 1, 2, ..., N. Usually N is a positive integer.
[0125] See also Figure 1 , it is worth noting that x v,i =1 means that node v (DNA fragment v) appears at the i-th position in the path (i.e., DNA fragment sequence), because a node (DNA fragment) can only appear at one position in the path (DNA fragment sequence), set constraint 1: This corresponds to the following penalty function:
[0126]
[0127] Under this constraint, A>0. The penalty function means that if the constraint is violated, the value of the penalty function will increase and the characteristic of the physical evolution of the Ising machine is to find and stabilize at the lowest energy ground state. Therefore, the penalty function in the Hamiltonian ensures that the Ising machine will not evolve to a situation where the constraint is violated. And because only one node (DNA fragment) can be placed at each position of the path (DNA fragment sequence), constraint 2 is set. Corresponding to the following penalty function:
[0128]
[0129] In addition, the total weight on the path is required to be minimal, corresponding to a penalty function:
[0130]
[0131] Under this constraint, B>0. So the Ising Hamiltonian of the traveling salesman problem is constructed based on the graph G.
[0132]
[0133] See also Figure 1 , it is worth noting that x u,i =1 means that node u (DNA fragment u) appears at the i-th position in the path (i.e., DNA fragment sequence). This is because a node (DNA fragment) can only appear at one position in the path (DNA fragment sequence), as explained above. u,i+1 =1 represents that node v (DNA fragment v) appears at the i+1th position in the path (ie, the DNA fragment sequence).
[0134] In the Ising Hamiltonian, A>B>0. A is the default coefficient of the first term and B is the default coefficient of the second term.
[0135] It is allowed to only require A>B>0, which means that the constraints cannot be violated in order to pursue a smaller weight. After all, satisfying the constraints is the prerequisite of the problem. Since the Ising Hamiltonian coefficient is enlarged or reduced by several times without affecting the final ground state, as long as the condition A>B>0 is met, A and B can be selected with high flexibility. Through calculation, the Ising Hamiltonian constructed based on graph G can be replaced by the following two-body Ising Hamiltonian in abbreviated standard form:
[0136]
[0137] When quantum annealing evolution is finished, the output result is the position of each node in the loop, that is, the position of each DNA fragment in the assembly sequence. The complete sequence of the entire DNA is reproduced according to the assembly sequence of the DNA fragment. In quantum annealing, J is usually ij and h iInput the Ising machine to start the Ising machine quantum annealing evolution.
[0138] See also Figure 1 , which can be satisfied in this application, when "finding a path with the minimum weight sum in a directed graph - Hamiltonian path problem" can always be simply converted: converted into "finding a closed loop with the minimum weight sum in a graph - Hamiltonian cycle problem", for example, a "node 0" can be added to the graph. Node 0 can be interconnected with all other nodes by two directed edges, but the weights of these directed edges are all 0. Therefore, a path with the minimum weight sum only needs to connect the path starting point, the path end point and node 0 to form a loop, which is defined in this application as a closed loop with the minimum weight sum in a directed graph. The zero node is represented by "node 0" in the graph.
[0139] See also Figure 1 , in the zero-node example, the weight of the directed edge from node A to node zero is W A0 = 0 and the weight W of the directed edge from zero node to node A 0A =0=W A0 .
[0140] See also Figure 1 , in the zero-node example, the weight of the directed edge from node B to the zero-node is W B0 = 0 and the weight W of the directed edge from zero node to node B 0B =0=W B0 .
[0141] See also Figure 1 , in the zero-node example, the weight of the directed edge from node C to the zero-node is W C0 = 0 and the weight W of the directed edge from zero node to node C 0C =0=W C0 .
[0142] See also Figure 1 , in the zero-node example, the weight of the directed edge from node D to the zero-node is W D0 = 0 and the weight W of the directed edge from zero node to node D 0D =0=W D0 .
[0143] See also Figure 1 , in the zero-node example, the weight of the directed edge from node N to node zero is W N0 = 0 and the weight W of the directed edge from zero node to node N 0N =0=W N0 .
[0144] See also Figure 1In an optional embodiment, a zero node that does not represent any DNA fragment is added to the directed graph and the zero node is interconnected with all other nodes by directed edges. The weights of the directed edges between the zero node and all other nodes are set to zero. The zero node is connected to the node representing the starting point of the path and the node representing the end point of the path to form a closed loop that describes the minimum path.
[0145] See also Figure 1 In an optional embodiment, annealing of the Ising Hamiltonian is used to find a path with the smallest sum of weight values in a directed graph, and the corresponding DNA fragments are arranged in the order of the smallest path. The main purpose and function is to fully reproduce the nucleotide sequence structure of the DNA.
[0146] See also Figure 1 The DNA sequence assembly method based on Ising machine quantum annealing, for example, obtains a large number of ordered DNA fragments through the whole genome shotgun method, constructs the ordered DNA fragments into a directed graph, constructs the parameters of Ising Hamiltonian based on the directed graph and introduces Ising machine quantum annealing. The result of Ising quantum annealing evolution is the position of each node in the loop, which is actually the position of each DNA fragment in the assembly order. The complete sequence of the entire DNA is reproduced according to the assembly sequence of the DNA fragments. Quantum annealing and simulated annealing are optional options.
[0147] The above description and the accompanying drawings provide typical embodiments of the specific structures of the specific embodiments. The above application content provides existing preferred embodiments, but these contents are not intended to be limiting. After reading the above description, various changes and modifications will undoubtedly be obvious to those skilled in the art. Therefore, the attached claims should be regarded as covering all changes and modifications to the true intent and scope of the present invention. Any and all equivalent scopes and contents within the scope of the claims should be considered to belong to the intent and scope of the present invention.
Claims
1. A DNA sequence assembly method, characterized in that: include: Establishing a directed graph of the DNA fragments, constructing an Ising Hamiltonian according to the directed graph, which is used to find a path with the smallest sum of weight values in the directed graph during annealing, and reproducing the complete sequence of the entire DNA from the annealing evolution result of the Ising Hamiltonian; Assigning a directed edge to each ordered pair of nodes in the directed graph; A weight value is assigned to each of the directed edges, and the weight value is used to evaluate the degree of overlap between two DNA fragments represented by a pair of nodes at both ends of the directed edge.
2. The method according to claim 1, characterized in that: Establishing the directed graph includes: duplicating multiple copies of the DNA to be sequenced, breaking each copy of the DNA into multiple DNA fragments at random positions and performing nucleotide sequencing, and treating the DNA fragments that have completed nucleotide sequencing as nodes of the directed graph.
3. The method according to claim 1, characterized in that: The smaller the weight value, the greater the overlap, and the larger the weight value, the lower the overlap.
4. The method according to claim 1, characterized in that: The annealing of the Ising Hamiltonian is used to find a path with the smallest sum of weight values in the directed graph, and the corresponding DNA fragments are arranged in the order of the smallest path to completely reproduce the nucleotide sequence structure of the DNA.
5. The method according to claim 4, characterized in that: A zero node that does not represent any DNA fragment is added to the directed graph. The zero node is interconnected with all other nodes by directed edges. The weights of the directed edges between the zero node and all other nodes are all zero. The zero node is connected with the node representing the starting point of the path and the node representing the end point of the path to form a closed loop to describe the minimum path.
6. A DNA sequence assembly method, characterized in that: include: The DNA to be sequenced is replicated multiple times, each of which is broken into multiple DNA fragments at random positions and subjected to nucleotide sequencing. The DNA fragments that have completed nucleotide sequencing are regarded as nodes of a directed graph; An Ising Hamiltonian is constructed according to the directed graph, which is used to find a path with the smallest sum of weight values in the directed graph during annealing, and the DNA fragments are arranged in the order of the smallest path to reproduce the nucleotide sequence structure of the DNA; Assigning a directed edge to each ordered pair of nodes in the directed graph; A weight value is assigned to each of the directed edges, and the weight value is used to evaluate the degree of overlap between two DNA fragments represented by a pair of nodes at both ends of the directed edge.
7. The method according to claim 6, characterized in that: A zero node that does not represent any DNA fragment is added to the directed graph. The zero node is interconnected with all other nodes by directed edges. The weights of the directed edges between the zero node and all other nodes are all zero. The zero node is connected with the node representing the starting point of the path and the node representing the end point of the path to form a closed loop for describing the minimum path.
8. A DNA sequence assembly method, characterized in that: The following steps are involved: S1. construct a directed graph of DNA fragments, and assign a directed edge to each ordered pair of nodes in the directed graph; Each of the directed edges is assigned a weight value, and the weight value is used to evaluate the degree of overlap between two DNA fragments represented by a pair of nodes at both ends of the directed edge; S2. constructing an Ising Hamiltonian according to the directed graph, which is used to find a path with the smallest sum of weight values in the directed graph during annealing; S3, performing quantum annealing evolution on the Ising Hamiltonian by an Ising machine; S4. Reproduce the complete sequence of the entire DNA according to the quantum annealing evolution result.
9. The method according to claim 8, characterized in that Step S1 includes: Make multiple copies of the DNA to be sequenced; Each DNA fragment is broken into multiple DNA fragments at random positions; Selecting fragments of a length suitable for direct sequencing from the DNA fragments and performing nucleotide sequencing; The DNA fragment that has completed nucleotide sequencing is regarded as a node in the graph; Assign a directed edge to each ordered pair of nodes.
