A sequencing and analysis system for accelerating base recognition and a base recognition device

By introducing the base calling architecture in the cache into the sequencer and activating cache resources for base calling calculations, the gap between base calling throughput and sequencing throughput and energy efficiency issues in genetic analysis are solved, achieving high throughput and high efficiency. Energy-efficient base calling.

CN118053495BActive Publication Date: 2024-09-13CHINA SCI & TECH WESTERN RES INST OF COMPUTING TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410180906.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-18
Publication Date
2024-09-13
Estimated Expiration
2044-02-18

AI Technical Summary

Technical Problem

In the existing technology, there is a large gap between the throughput of the base calling process and the sequencing throughput in genetic analysis, and the energy efficiency is low, making it difficult to achieve high throughput and energy-efficient base calling.

Method used

By introducing the base recognition architecture in the cache into the sequencer, using the base recognition controller and the cache slice array to perform base recognition calculations, the corresponding cache resources are activated in acceleration mode to perform the base recognition operation, reducing the CPU load and Improve computing efficiency.

Benefits of technology

It achieves high-throughput base identification, can handle the sequencing throughput of 15 sequencers, and has advantages in energy efficiency, reducing power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118053495B
    Figure CN118053495B
Patent Text Reader

Abstract

The present invention discloses a sequencing and analysis system and a base recognition device for accelerating base recognition, which belongs to the field of biological gene data processing and is used to achieve high-throughput and energy-efficient base recognition. The present invention uses a CPU to control a flow cell to sequence an input genome; the flow cell sequences the genome into an electrical signal and writes it into a DRAM; the CPU obtains the electrical signal in the DRAM and uses a base recognition architecture in a cache to perform base recognition. The architecture includes a base recognition controller and a base recognition cache. The base recognition controller receives and parses instructions from the CPU core. When the instruction indicates to execute an accelerated mode, the corresponding cache array in the base recognition cache is selected according to a preconfigured partition table to perform base recognition calculations. The present invention achieves calculation acceleration of base recognition by enhancing the cache of the CPU in the sequencer. By introducing a cache, the bottleneck operation is unloaded to the cache operation, and the sequencing throughput of 15 sequencers can be assumed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of biological gene data processing and computer system structure design, in particular to a novel sequencing and analysis system for accelerating base recognition, and a base recognition device configured with the system. Background Art

[0002] Gene sequencing is the foundation of gene research. It refers to the technology of directly obtaining the deoxyribonucleic acid (DNA) sequence or ribonucleic acid (RNA) sequence in organisms through biotechnology. The most promising sequencing technology at present is the third-generation sequencing technology. The third-generation sequencing technology directly passes the DNA sequence through a nanopore (called a flow hole). Different base sequences will generate electric currents of different intensities. The base sequence to be sequenced can be obtained by identifying the electric current. Gene analysis refers to the analysis process of assembling and identifying the sequence obtained by sequencing, and finally obtaining its biological meaning. The key point of gene analysis is to translate the signal obtained by the sequencer into five bases: A, C, G, T and N. This process is called base recognition. Base recognition is the main bottleneck of gene analysis technology. Although a large number of gene analysis architectures have been proposed by academia and industry to accelerate base recognition, the throughput of gene analysis is still far behind the throughput of gene sequencing. The throughput gap is a key problem in gene analysis and occupies a very important position in the research of gene analysis acceleration.

[0003] Figure 1 The traditional sequencing system and base recognition pipeline are shown, which is mainly divided into three steps: the first step is that the CPU core uses MinKNOW software to control the flow cell to start sequencing; the second step is that the flow cell converts the input genome sequence into electrical signals and writes them to DRAM; the third step is that the CPU transmits the electrical signals to a remote server (such as NVIDIA A100 GPU) to complete the base recognition process. This solution has low energy efficiency and is far from edge genome analysis.

[0004] The standard throughput of a sequencer is 2,050,000 signals per second. If only throughput is considered, there are currently some base recognition tools such as Bonito that can achieve this throughput, but they are very computationally intensive. For example, Bonito requires a high-end NVIDIA A100 GPU to reach 4,300,000 signals per second, with a power consumption of up to 250 watts. The current baseline throughput of sequencers is 34,167 signals per second per watt. When the energy efficiency of base recognition is taken into account, there is a gap of 1 to 3 orders of magnitude between the throughput of base recognition tools and sequencers. In addition, mainstream accelerators such as Helix, which is introduced in "Helix: Algorithm / Architecture Co-design for Accelerating Nanopore Genome Base-calling" (Q. Lou et al.), are also two orders of magnitude behind the baseline throughput of sequencers. This means that the design of base recognition accelerators must not only have high throughput, but also have advantages in energy consumption. This is the only way to make mobile sequencing possible.

[0005] In summary, genetic analysis at the current stage requires a new type of high-throughput, energy-efficient sequencing and analysis system to accelerate base recognition. Summary of the invention

[0006] The object of the present invention is to provide a sequencing and analysis system and a base recognition device for accelerating base recognition to achieve high-throughput and energy-efficient base recognition in order to address all or part of the above-mentioned problems.

[0007] The technical solution adopted by the present invention is as follows:

[0008] A sequencing and analysis system for accelerating base recognition, comprising a flow cell, a DRAM and a CPU; the CPU controls the flow cell to sequence an input genome; the flow cell sequences the genome into an electrical signal and writes it into the DRAM; the CPU acquires the electrical signal in the DRAM and performs base recognition using a base recognition architecture in a high-speed cache in the CPU; wherein,

[0009] The in-cache base recognition architecture includes a base recognition controller and a base recognition cache; the base recognition controller receives and parses instructions from the CPU core, and when the instruction indicates to execute an accelerated mode, selects a corresponding cache array in the base recognition cache to perform base recognition calculations according to a preconfigured partition table.

[0010] Furthermore, the base recognition cache includes a cache slice array, and for each cache slice in the cache slice array, an indication mark is configured in its slice table to indicate the type of instruction executed by the cache slice.

[0011] Furthermore, by pre-executing a test task on the cache slice array, the indicator identification type configured for each cache slice in the cache slice array is determined according to the time proportion of the key operator in each cache slice when executing the test task.

[0012] Furthermore, the cache slice array includes cache slices arranged in order of 0 to 7, wherein cache slices 0 to 3 are configured with first-type indication marks to execute instructions of the encoding part, cache slices 4 to 5 are configured with second-type indication marks to execute instructions of the beam search, and cache slices 6 to 7 are configured with third-type indication marks to execute instructions of character conversion.

[0013] Furthermore, the cache slice includes multiple cache resources, and an activation flag is configured in the slice table of the cache slice. In the acceleration mode, the activation flag indicates to activate the cache resources of those pre-configured ways to perform base recognition calculations.

[0014] Furthermore, the 0th to 17th cache resources in the cache slice are configured to perform base recognition calculations in acceleration mode and to perform normal CPU operation in non-acceleration mode, and the 18th to 19th cache resources are configured to always perform normal CPU operation.

[0015] Furthermore, each cache resource includes multiple cache areas, and each cache area includes multiple cache arrays; the base recognition controller uses a cyclic finite state machine configured for each cache area to control the cache array in each cache area.

[0016] Furthermore, the base recognition controller is configured as follows:

[0017] According to the instructions of the CPU core, the acceleration mode is activated to activate the corresponding cache resources in each cache slice to prepare for performing base recognition calculations; and

[0018] Write the time proportion of key operators into the shard table of each cache slice.

[0019] Furthermore, the base recognition controller is configured with a first type interface, a second type interface and a third type interface; the operating mode is selected and the partition table is configured through the first type interface; data is sent or received through the second type interface; and key operators are called through the third type interface.

[0020] The present invention also provides a base recognition device, on which the above-mentioned sequencing and analysis system for accelerating base recognition is configured.

[0021] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0022] 1. Most of the current accelerators do not fully accelerate the bottleneck operation of base recognition, resulting in a lower throughput than the sequencer throughput. Even the latest SquiggleFilter technology is only applicable to virus sequences and cannot directly accelerate base recognition. The acceleration system proposed in this invention fully accelerates base recognition and can bear the sequencing throughput of 15 sequencers according to tests.

[0023] 2. The present invention accelerates the calculation of base recognition by enhancing the cache of the CPU in the sequencer, and offloads the bottleneck operation to the cache operation by introducing the cache. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The present invention will now be described by way of example with reference to the accompanying drawings, in which:

[0025] Figure 1 This is a schematic diagram of the structure of a traditional sequencing and analysis system.

[0026] Figure 2 Schematic diagram of a novel sequencing and analysis system according to an example of the present invention.

[0027] Figure 3 Schematic diagram of an in-cache base recognition architecture according to an example of the present invention. DETAILED DESCRIPTION

[0028] All features disclosed in this specification, or steps in all methods or processes disclosed, except mutually exclusive features and / or steps, can be combined in any manner.

[0029] Any feature disclosed in this specification (including any additional claims and abstract), unless otherwise stated, may be replaced by other alternative features that are equivalent or have similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.

[0030] Through the study of processor design, the present invention found that CPU is a widely used computing resource in sequencers, and base calling models are generally lightweight. In addition, a large amount of work has proved that cache can be used as a computing resource, which can provide large-scale parallelism and low-latency operations. The present invention realizes the computational acceleration of base recognition by enhancing the cache of the CPU in the sequencer, and proposes a high-speed in-cache base recognition architecture, using which sequencing and base recognition can be completed in the sequencer.

[0031] Example 1

[0032] A sequencing and analysis system that accelerates base calling, such as Figure 2As shown, the system includes a flow cell, a DRAM and a CPU, and the CPU includes a CPU core and a CPU cache. Similarly, in the embodiment of the present invention, the sequencing and analysis of genes still includes three main processes: the CPU controls the flow cell to sequence the input genome; the flow cell sequences the genome into electrical signals and writes them into the DRAM; the CPU obtains the electrical signals in the DRAM and uses the base recognition architecture in the cache of the CPU to perform base recognition. Finally, the recognition results can also be passed to subsequent steps for processing.

[0033] like Figure 3 As shown in (a), the base recognition architecture in the cache includes a base recognition controller and a base recognition cache. The base recognition cache modifies the entire cache column at the bottom level of the lowest level cache in a conventional sequencer and is responsible for accelerating the execution of specific operators, that is, for specific base recognition. The base recognition controller receives and parses the instructions of the CPU core and performs control operations according to the instructions of the instructions. Specifically, when the instructions indicate the execution acceleration mode, the base recognition controller selects the corresponding cache array in the base recognition cache to perform the base recognition calculation according to the preconfigured partition table.

[0034] The so-called partition table is configuration data for the division of labor among cache resources in the base recognition cache, indicating which resources are responsible for processing which part of the work.

[0035] Specifically, the base call cache contains an array of cache slices, such as Figure 3 As shown in (b), the cache slice array is a cache slice sequence formed by arranging multiple (usually 8) cache slices in sequence in the horizontal and vertical directions, and each cache slice has the same structure. Figure 3 (c) is an example of the construction of a cache slice.

[0036] The cache slice is configured with a shard table, which indicates the specific division of labor of each part of the cache resource. In some embodiments, an indicator is configured in the shard table, which is used to indicate the type of instruction that the cache slice can execute. Different indicator types indicate different instruction types, which are pre-configured before base recognition. The indicator type configured for each cache slice in the cache slice array can be determined by pre-executing a task (called a test task) on the cache slice array, and according to the time proportion of the key operators in each cache slice when executing the test task, the indicator type configured for each cache slice in the cache slice array can be determined. After determining the indicator type, it can be configured in the shard table of each cache slice. The purpose of configuring the indicator is to limit the operations that can be performed by each cache slice to simplify the system. For example, a first type of indicator can be configured for cache slices 0 to 3 to execute the instructions of the encoding part, a second type of indicator can be configured for cache slices 4 to 5 to execute the instructions of the beam search, and a third type of indicator can be configured for cache slices 6 to 7 to execute the instructions of the character conversion. In addition, other types of configurations may be performed on the indicator marks of each cache slice. Since all cache arrays support all operations within the cache, changing the type division method will not affect the execution of the base recognition operation.

[0037] like Figure 3 (c) shows the division inside a cache slice. A cache slice is divided into 20 cache resources, some of which are used to perform base recognition calculations in the acceleration mode. In some embodiments, the cache resources of which ways are used to perform base recognition calculations are configured in the shard table of the cache slice, and activated by configuring the activation flag. That is, the cache resources of these ways are managed by the activation flag, or enabled. When not activated by the activation flag, the cache resources of these ways are used for the normal operation of the CPU system. When activated by the activation flag, the cache resources of these ways are used to perform base recognition calculations. The activation flag is activated when the base recognition controller receives an instruction to run the acceleration mode. In some embodiments, the 0th to 17th cache resources in the cache slice are configured to perform base recognition calculations in the acceleration mode and to perform normal CPU operation in the non-acceleration mode, and the 18th to 19th cache resources are configured to always perform normal CPU operation. Combined with the operation of the CPU system, it is: in acceleration mode, the 0th to 17th cache resources in the cache slice are used to perform base recognition calculations, and the 18th to 19th are used for the normal operation of the CPU system; in CPU mode (i.e. non-acceleration mode), the 0th to 19th are all used for the normal operation of the CPU system.

[0038] As mentioned above, the base recognition controller switches the operation mode (acceleration mode or CPU mode) according to the instructions of the CPU core, that is, the base recognition controller activates the acceleration mode according to the instructions of the CPU core, and correspondingly, the activation flag in the shard table of each cache slice is activated to the acceleration mode to activate the cache resources configured in each cache slice (such as the 0th to 17th cache resources in the above embodiment) to prepare for the execution of base recognition calculations. In addition, the base recognition controller also writes the time proportion of the key operator into the shard table of each cache slice.

[0039] The above-mentioned acceleration mode activation, weight pre-configuration, and writing of key operator time ratio are all preparatory operations before base recognition. The acceleration mode activation determines whether the CPU accelerates base recognition. The pre-configured weights are necessary input data for the encoding process and participate in the neural network calculations of the encoding process. There are three main types of key operators: operators such as multiplication and addition included in the neural network calculations of the encoding process, and the beam search operators and character conversion operators included in the decoding process. These three operators constitute the complete process of base recognition, so they are called key operators. The purpose of configuring the key operator time ratio is to reduce the design complexity of the base recognition controller. By limiting the executable partitions of each key operator, the base recognition controller does not need to perform a complex operator mapping process. These three operations are called the pre-execution control flow run by the base recognition controller. In addition, the base recognition controller also runs the execution control flow, which is the main part of its running operation, including:

[0040] Responsible for decoding, allocating and executing all computing instructions of the CPU core. The so-called allocation refers to resource allocation, that is, selecting an idle cache array according to the partition table to complete specific calculations, and "execution" refers to the specific control flow in the calculation process.

[0041] In addition, to simplify programming and reduce computational delays, such as Figure 3 As shown in (d), in some embodiments, the base recognition controller is configured with a cyclic finite state machine for each cache area. In addition, the base recognition controller also includes an instruction fetch and decode module, an operator analysis module, a partition table, and a partition selection module, wherein the instruction fetch and decode module is used to complete the value fetching and decoding of the instructions received by the CPU, the operator analysis module analyzes the specific name of the operator after decoding, the partition table stores the executable cache interval of the key operator, the partition selection module combines the partition table and the operator analysis module to allocate an executable calculation cache for each operator, and the cyclic finite state machine controls the calculation cache to complete all operations of a given operator. Figure 3(e) shows the organization of cache resources in the 0th way. As can be seen from the figure, each cache resource contains multiple cache areas, each cache area contains multiple cache arrays, and all calculation operations of base recognition will eventually be offloaded to the cache array for calculation. A cyclic finite state machine is implemented for each cache area to support the control of the micro-operations of the cache array. All cyclic finite state machines have the same implementation logic and support the control of all calculation operations in the cache array.

[0042] In addition, a software library is designed for the system to coordinate the execution between the CPU core and the base recognition cache. The system executes the acceleration process of base recognition by calling the corresponding functions in the software library. As shown in Table 1, the system provides a Python-style application program interface (API) that can be flexibly integrated with existing machine learning frameworks. The API can be divided into three types, namely preparation (corresponding to the first type of interface), data transfer (corresponding to the second type of interface), and calculation (corresponding to the third type of interface). The preparation application interface is used to select the system's operating mode, deploy weight data into the cache, and configure the partition table; the data transfer application interface is used to send input data and receive base call output; the calculation application interface is used to offload key operators that are called multiple times in the base call.

[0043] Table 1 is a software application program interface according to an example of the present invention.

[0044]

[0045] In addition, in the embodiment of the present invention, DNN+NeuroSim is still used to load common neural network operators for use by the corresponding API. In addition, in some embodiments, a neural cache can also be used to implement element operations in the base recognition cache.

[0046] The process of base recognition by the CPU core in collaboration with the base recognition cache includes:

[0047] 1. Set the CPU to cache mode using the preparation instruction set_mode().

[0048] 2. Receive the sequencing current signal obtained from the nanopore sequencer and perform small batch sequencing process.

[0049] 3. Use the set_region() command to write the time percentage of key operators into the partition table.

[0050] 4. Use the preparation instruction set_mode() to activate the CPU into acceleration mode, and use weight_deploy() to configure the weights into the cache.

[0051] 5. Use the transmission instruction input_send() to send the input data to the cache, and then start the calculation process, which includes encoding neural network, decoding beam search, decoding character conversion and other calculations.

[0052] 6. Use the transmission instruction get_result() to obtain the calculation result of base recognition.

[0053] Example 2

[0054] This embodiment discloses a base recognition device, which is configured with the sequencing and analysis system for accelerating base recognition in Example 1, that is, the hardware and required software library of the system are configured. Specifically, the CPU core or the base recognition controller calls the software package in the software library to execute the preparation, transmission or calculation process.

[0055] The present invention is not limited to the above-mentioned specific embodiments, but extends to any new features or any new combination disclosed in this specification, as well as any new method or process steps or any new combination disclosed.

Claims

1. A sequencing and analysis system for accelerating base recognition, comprising a flow cell, a DRAM and a CPU; characterized in that: The CPU controls the flow cell to sequence the input genome; the flow cell sequences the genome into electrical signals and writes them into the DRAM; the CPU obtains the electrical signals in the DRAM and performs base recognition using the base recognition architecture in the cache of the CPU; wherein, The cache-based base recognition architecture includes a base recognition controller and a base recognition cache; the base recognition controller receives and parses instructions from the CPU core, and when the instructions indicate execution of an accelerated mode, selects a corresponding cache array in the base recognition cache to perform base recognition calculations according to a preconfigured partition table; The base recognition cache includes a cache slice array, and for each cache slice in the cache slice array, an indication mark is configured in its slice table to indicate the type of instruction executed by the cache slice; The cache slice array includes cache slices arranged in order of 0 to 7, wherein cache slices 0 to 3 are configured with first-type indication marks to execute instructions of the encoding part, cache slices 4 to 5 are configured with second-type indication marks to execute instructions of the beam search, and cache slices 6 to 7 are configured with third-type indication marks to execute instructions of character conversion; The cache slice includes multiple cache resources. An activation flag is configured in the slice table of the cache slice. In the acceleration mode, the activation flag indicates to activate the cache resources of those pre-configured ways to perform base recognition calculations.

2. The sequencing and analysis system for accelerating base recognition according to claim 1, characterized in that: By pre-executing a test task on the cache slice array, the indicator identification type configured for each cache slice in the cache slice array is determined according to the time proportion of the key operator in each cache slice when executing the test task.

3. The sequencing and analysis system for accelerating base recognition according to claim 1, characterized in that: The 0th to 17th cache resources in the cache slice are configured to perform base recognition calculations in accelerated mode and to perform normal CPU operation in non-accelerated mode, and the 18th to 19th cache resources are configured to always perform normal CPU operation.

4. The sequencing and analysis system for accelerating base recognition according to claim 3, characterized in that: Each cache resource includes multiple cache areas, and each cache area includes multiple cache arrays; the base recognition controller uses a cyclic finite state machine configured for each cache area to control the cache array in each cache area.

5. The sequencing and analysis system for accelerating base recognition according to claim 1, wherein: The base recognition controller is configured to: According to the instructions of the CPU core, the acceleration mode is activated to activate the corresponding cache resources in each cache slice to prepare for performing base recognition calculations; and Write the time proportion of key operators into the shard table of each cache slice.

6. The sequencing and analysis system for accelerating base recognition according to claim 5, characterized in that: The base recognition controller is configured with a first-class interface, a second-class interface and a third-class interface; the operation mode is selected and the partition table is configured through the first-class interface; data is sent or received through the second-class interface; and key operators are called through the third-class interface.

7. A base recognition device, characterized in that: The base recognition device is equipped with a sequencing and analysis system for accelerating base recognition as described in any one of claims 1-6.