Sequencing image acquisition method, acquisition device, terminal and readable storage medium
By acquiring images on a microfluidic chip and calculating offsets to adjust the acquisition position, the problem of loss of effective area caused by image mismatch is solved, and accurate acquisition of high-throughput sequences is achieved.
Patent Information
- Application Number
- CN202210665788.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-14
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2042-06-14
AI Technical Summary
Because microfluidic chips rotate, translate, and scale in different cycles, images acquired by image acquisition devices at the same location cannot match, resulting in a serious loss of the effective area.
By acquiring images at the initial position, calculating the offset, and adjusting the acquisition position, it is ensured that the image acquisition device can match the initial image in the current loop. The image acquisition device is then used to acquire sequencing images at the calculated acquisition position.
It improves image matching accuracy, reduces the loss of effective regions due to image mismatch, and achieves accurate acquisition of high-throughput sequences.
Smart Images

Figure CN115206426B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the field of high-throughput gene sequencing technology, and particularly relates to a sequencing image acquisition method, an acquisition device, a terminal and a readable storage medium. BACKGROUND
[0002] The high-throughput gene sequencing method is an important method for researching nucleic acids at present. In this method, nucleic acid molecules well labeled with fluorescence and other required reagents are reacted in a microfluidic chip for sequencing under suitable conditions. Then, the fluorescence label is excited by laser, and an image acquisition device is used to acquire the fluorescence label, and an image processing algorithm is used to obtain the sequence of the nucleic acid.
[0003] Generally, the size of the microfluidic chip is large, so that the microscope cannot obtain a complete chip image through one acquisition action. Therefore, the microfluidic chip needs to be divided into sizes that can be acquired by the microscope, and the microscope needs to be controlled to move in the horizontal direction to complete the image acquisition of the microfluidic chip. Finally, a base sequence is obtained based on the acquired images. Since high-throughput sequences are required, the above processing process needs to be executed in cycles to obtain high-throughput sequences.
[0004] However, the microfluidic chip rotates, translates and scales in different cycles, so that the images acquired by the image acquisition device at the same acquisition position cannot be matched, resulting in a serious loss of effective areas. SUMMARY
[0005] Therefore, the present application provides a sequencing image acquisition method, an acquisition device, a terminal and a readable storage medium, which can reduce the loss of effective areas caused by image mismatching.
[0006] A first aspect of the embodiment of the present application provides a sequencing image acquisition method, comprising:
[0007] acquiring a first image at a first initial position and a second image at a second initial position by an image acquisition device, the first image containing a first mark on a microfluidic chip, and the second image containing a second mark on the microfluidic chip;
[0008] obtaining an offset of the microfluidic chip in the current cycle according to a first coordinate of the first mark in the first image, a second coordinate of the second mark in the second image, a first initial coordinate and a second initial coordinate, the first initial coordinate being a coordinate of the first mark in a first initial image acquired by the image acquisition device at the first initial position before the current cycle, and the second initial coordinate being a coordinate of the second mark in a second initial image acquired by the image acquisition device at the second initial position before the current cycle.
[0009] Based on the initial position of the image acquisition device and the offset, the acquisition position of the image acquisition device in the current loop is calculated. The initial position is a position preset when the image acquisition device acquires sequencing images at various positions on the microfluidic chip. The initial position includes the first initial position and the second initial position.
[0010] The image acquisition device acquires sequencing images of the microfluidic chip currently in circulation at the acquisition location.
[0011] In another implementation of the first aspect, the offset includes a first offset and a second offset, wherein the first offset is the offset of the first image relative to the first initial image, and the second offset is the offset of the second image relative to the second initial image;
[0012] The step of calculating the current acquisition position of the image acquisition device based on its initial position and the offset includes:
[0013] Based on the first offset and the first initial position, the first acquisition position is obtained, and based on the second offset and the second initial position, the second acquisition position is obtained.
[0014] Based on the first acquisition position, the second acquisition position, the first initial position, and the second initial position, the acquisition position of the image acquisition device in the current cycle is calculated, wherein the acquisition position includes the first acquisition position and the second acquisition position.
[0015] In another implementation of the first aspect, calculating the acquisition position of the image acquisition device in the current cycle based on the first acquisition position, the second acquisition position, the first initial position, and the second initial position includes:
[0016] Calculate the scaling ratio based on the first acquisition position, the second acquisition position, the first initial position, and the second initial position;
[0017] Calculate the rotation matrix based on the first acquisition position, the second acquisition position, the first initial position, and the second initial position;
[0018] The acquisition position of the image acquisition device in the current cycle is calculated based on the scaling ratio and the rotation matrix.
[0019] In another implementation of the first aspect, calculating the scaling ratio using the first acquisition position, the second acquisition position, the first initial position, and the second initial position includes:
[0020] pass Calculate the scaling factor, where (x M y M (x) represents the coordinates of the first initial position. N y N (x) represents the coordinates of the second initial position. M ′,y M (x') represents the coordinates of the first acquisition location, where (x') is the coordinate of the first acquisition location. N ′,y N ′) represents the coordinates of the second acquisition location.
[0021] In another implementation of the first aspect, calculating the rotation matrix using the first acquisition position, the second acquisition position, the first initial position, and the second initial position includes:
[0022] pass Calculate the first vector;
[0023] pass Calculate the second vector;
[0024] The rotation matrix is calculated based on the first vector and the second vector.
[0025] In another implementation of the first aspect, calculating the rotation matrix based on the first vector and the second vector includes:
[0026] pass Calculate the angle between the first vector and the second vector;
[0027] pass Calculate the rotation matrix.
[0028] In another implementation of the first aspect, calculating the acquisition position of the image acquisition device in the current cycle based on the scaling ratio and the rotation matrix includes:
[0029] The acquisition position of the image acquisition device in the current loop is calculated by Q′=KR(θ)(QM)+M′, where Q represents the initial position of the image acquisition device, Q′ represents the acquisition position, M represents the first initial position, and M′ represents the first acquisition position.
[0030] A second aspect of this application provides a data acquisition device, including:
[0031] The first acquisition module is used to acquire a first image at a first initial position and a second image at a second initial position through an image acquisition device. The first image contains a first mark on the microfluidic chip, and the second image contains a second mark on the microfluidic chip.
[0032] The offset correction module is used to obtain the offset of the microfluidic chip in the current cycle based on the first coordinate of the first mark in the first image, the second coordinate of the second mark in the second image, the first initial coordinate, and the second initial coordinate. The first initial coordinate is the coordinate of the first mark in the first initial image acquired by the image acquisition device at the first initial position before the current cycle, and the second initial coordinate is the coordinate of the second mark in the second initial image acquired by the image acquisition device at the second initial position before the current cycle.
[0033] The acquisition position module is used to calculate the acquisition position of the image acquisition device in the current loop based on the initial position of the image acquisition device and the offset. The initial position is a position preset when the image acquisition device acquires sequencing images at various positions on the microfluidic chip. The initial position includes the first initial position and the second initial position.
[0034] The second acquisition module is used to acquire sequencing images of the microfluidic chip currently in circulation at the acquisition location via the image acquisition device.
[0035] A third aspect of this application provides a terminal, including a processor configured to run a computer program stored in a memory to implement the method as described in any one of the first aspects above.
[0036] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when run on a processor, implements the method as described in any one of the first aspects above.
[0037] The first aspect of this application provides a sequencing image acquisition method, which includes: acquiring a first image at a first initial position and acquiring a second image at a second initial position using an image acquisition device, wherein the first image contains a first marker on a microfluidic chip and the second image contains a second marker on the microfluidic chip; obtaining the offset of the microfluidic chip in the current cycle based on the first coordinates of the first marker in the first image, the second coordinates of the second marker in the second image, the first initial coordinates, and the second initial coordinates, wherein the first initial coordinates are the coordinates of the first marker in the first initial image acquired by the image acquisition device at the first initial position before the current cycle, and the second initial coordinates are the coordinates of the second marker in the second initial image acquired by the image acquisition device at the second initial position before the current cycle; calculating the acquisition position of the image acquisition device in the current cycle based on the initial position and the offset, wherein the initial position is a pre-set position when the image acquisition device acquires sequencing images at various positions on the microfluidic chip, and the initial position includes the first initial position and the second initial position; and acquiring the sequencing image of the microfluidic chip in the current cycle at the acquisition position using the image acquisition device.
[0038] As can be seen, in this application, when acquiring the sequencing image of the current cycle through the image acquisition device, it is first necessary to obtain the offset of the image acquired in the current cycle relative to the initial image based on the image acquired in the current cycle and the initial image, and then calculate the acquisition position of the image acquisition device in the current cycle based on the offset. Thus, the sequencing image of the current cycle is acquired by the image acquisition device at the calculated acquisition position. In this way, the sequencing image acquired in the current cycle can be better matched with the initial image, thereby improving the loss of effective region caused by image mismatch. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings, without exceeding the scope of protection claimed by this application.
[0040] Figure 1 This diagram illustrates a flowchart of a sequencing image acquisition method provided in an embodiment of this application.
[0041] Figure 2 This illustration shows a schematic diagram of a sequencing image acquisition process provided in an embodiment of this application;
[0042] Figure 3 This illustration shows a flowchart of a sequencing image acquisition method according to another embodiment of this application;
[0043] Figure 4This illustration shows a flowchart of a sequencing image acquisition method according to another embodiment of this application;
[0044] Figure 5 This illustration shows a flowchart of a sequencing image acquisition method according to another embodiment of this application;
[0045] Figure 6 This illustration shows a flowchart of a sequencing image acquisition method according to another embodiment of this application;
[0046] Figure 7 This diagram illustrates the structural composition of a data acquisition device according to an embodiment of this application.
[0047] Figure 8 This diagram illustrates the structural composition of a terminal provided in an embodiment of this application. Detailed Implementation
[0048] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0049] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0050] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of exemplary embodiments and may not be to scale. The modules or processes shown in the drawings are not necessarily essential for implementing this application and therefore should not be used to limit the scope of protection of this application.
[0051] The microfluidic chip used for gene sequencing in this application is relatively large, while the acquisition area of the image acquisition device (e.g., a microscope) is limited. Therefore, the image acquisition device cannot obtain a complete image of the microfluidic chip in a single acquisition operation. Thus, the chip image to be acquired needs to be divided into portions that the image acquisition device can capture, and the device is controlled to acquire images of the microfluidic chip at various locations through two-dimensional horizontal movement. Finally, based on the microfluidic chip images acquired at each acquisition location, a base sequence is obtained. Because high-throughput sequencing is required, the image acquisition device needs to repeatedly perform the above acquisition process to obtain sequences from the acquired microfluidic chip images.
[0052] Ideally, the images acquired by the image acquisition device at the same acquisition position in different cycles should completely overlap to maximize the acquisition of effective data. However, in reality, due to the rotation, translation, and scaling of the microfluidic chip in different cycles, the actual images acquired by the image acquisition device at the same acquisition position each time cannot match well, resulting in a significant loss of effective data area.
[0053] See Figure 1 Figure 1 is a flowchart illustrating a sequencing image acquisition method provided in an embodiment of this application. As shown in the figure, the sequencing image acquisition method includes the following steps:
[0054] S11, a first image is acquired at a first initial position by an image acquisition device, and a second image is acquired at a second initial position. The first image contains a first mark on the microfluidic chip, and the second image contains a second mark on the microfluidic chip.
[0055] In this embodiment of the application, it is necessary to preset an initial position for the image acquisition device. Therefore, it can be understood that the initial position is the initial acquisition position when the image acquisition device acquires sequencing images of various positions on the microfluidic chip.
[0056] The initial position includes a first initial position and a second initial position. See, for example, [link to example]. Figure 2-1 Assuming the microfluidic chip is divided into 4*13 image sizes, the first initial position can be the initial acquisition position when the image acquisition device acquires the sequencing image at the Mth position on the microfluidic chip, and the second initial position can be the initial acquisition position when the image acquisition device acquires the sequencing image at the Nth position on the microfluidic chip.
[0057] As an example, see Figure 2-2 This is the initial image acquired by the image acquisition device at a preset initial position before the current loop.
[0058] For ease of description, the image acquired by the image acquisition device at the first initial position in the current loop is defined as the first image, the image acquired by the image acquisition device at the second initial position is defined as the second image, the mark in the first image is defined as the first mark, and the mark in the second image is defined as the second mark.
[0059] Wherein, the first marker is a feature point in the first image (e.g., a fluorescent marker), and the second marker is a feature point in the second image (e.g., a fluorescent marker).
[0060] S12, based on the first coordinate of the first mark in the first image, the second coordinate of the second mark in the second image, the first initial coordinate, and the second initial coordinate, the offset of the current circulating microfluidic chip is obtained.
[0061] In this embodiment of the application, the first coordinate is the coordinate of the first mark in the first image; the second coordinate is the coordinate of the second mark in the second image.
[0062] As an example, see Figure 2-2 The first initial coordinates are the coordinates of the first mark in the first initial image acquired by the image acquisition device at the first initial position before the current loop, and the second initial coordinates are the coordinates of the second mark in the second initial image acquired by the image acquisition device at the second initial position before the current loop.
[0063] By comparing the first coordinate with the first initial coordinate, the first offset of the first image relative to the first initial image can be obtained. By comparing the second coordinate with the second initial coordinate, the second offset of the second image relative to the second initial image can be obtained.
[0064] S13, calculate the acquisition position of the current cyclic image acquisition device based on the initial position and offset of the image acquisition device.
[0065] In this embodiment, by adding an offset to the initial position of the image acquisition device, the acquisition position of the current looping image acquisition device can be obtained. This allows the image acquired by the image acquisition device at the acquisition position in the current loop to match the initial image acquired at the initial position better, thereby reducing the serious loss of the effective area caused by image mismatch.
[0066] As an example, see Figure 2-3 , which refers to the various acquisition positions of the image acquisition device in the current loop, including the first acquisition position M′ and the second acquisition position N′.
[0067] S14: Sequencing images of the current circulating microfluidic chip are acquired at the acquisition location using an image acquisition device.
[0068] In this embodiment of the application, after obtaining the acquisition position of the image acquisition device, the sequencing image of the current circulating microfluidic chip can be acquired at the acquisition position by the image acquisition device, and then a base sequence can be obtained based on the sequencing image.
[0069] As an example, see Figure 2-3 This refers to the sequencing images acquired by the image acquisition device at various acquisition locations during the current loop.
[0070] See Figure 3 In another embodiment of this application, calculating the acquisition position of the current cyclic image acquisition device based on the initial position and offset of the image acquisition device includes:
[0071] S31, based on the first offset and the first initial position, the first acquisition position is obtained, and based on the second offset and the second initial position, the second acquisition position is obtained.
[0072] As an example, see Figure 2 Assume the coordinates of the first initial position are (x... M y M The first offset is Therefore, in the current loop, the first acquisition position when the image acquisition device acquires the sequencing image at the first initial position on the microfluidic chip is...
[0073] As an example, suppose the coordinates of the second initial position are (x... N y N The second offset is Therefore, in the current loop, the second acquisition position when the image acquisition device acquires the sequencing image at the second initial position on the microfluidic chip is...
[0074] As an example, see Figure 2-3 , where M′ is the first acquisition position when the image acquisition device acquires the sequencing image at the first initial position and N′ is the second acquisition position when the image acquisition device acquires the sequencing image at the second initial position in the current loop.
[0075] For ease of description, the acquisition position of the image acquisition device when acquiring the sequencing image at the first initial position in the current loop, obtained based on the first offset and the coordinates of the first initial position, is defined as the first acquisition position, and the acquisition position of the image acquisition device when acquiring the sequencing image at the second initial position in the current loop, obtained based on the second offset and the coordinates of the second initial position, is defined as the second acquisition position.
[0076] S32, calculate the current acquisition position of the loop image acquisition device based on the first acquisition position, the second acquisition position, the first initial position and the second initial position, the acquisition position includes the first acquisition position and the second acquisition position.
[0077] In this embodiment of the application, after obtaining the first acquisition position and the second acquisition position, the acquisition position of the image acquisition device when acquiring sequencing images at other initial positions in the current loop can be calculated based on the coordinates of the first acquisition position, the coordinates of the second acquisition position, the coordinates of the first initial position, and the coordinates of the second initial position. This is because, in S31, the acquisition position of the image acquisition device when acquiring sequencing images at the first initial position in the current loop is already obtained as the first acquisition position, and the acquisition position of the image acquisition device when acquiring sequencing images at the second initial position in the current loop is obtained as the second acquisition position.
[0078] The process of obtaining the acquisition position of the image acquisition device when acquiring sequencing images at other initial positions besides the first and second initial positions in the current loop can be described in detail below.
[0079] See Figure 4 In another embodiment of this application, calculating the acquisition position of the current cyclic image acquisition device based on the first acquisition position, the second acquisition position, the first initial position, and the second initial position includes:
[0080] S41, calculate the scaling ratio based on the first acquisition position, the second acquisition position, the first initial position, and the second initial position.
[0081] As an example, suppose the coordinates of the first acquisition location are (x... M ′,y M The coordinates of the second acquisition position are (x'), N ′,y N The coordinates of the first initial position are (x'). M y M The coordinates of the second initial position are (x...). N y N So, scaling ratio
[0082] S42, calculate the rotation matrix based on the first acquisition position, the second acquisition position, the first initial position, and the second initial position.
[0083] See Figure 5 In another embodiment of this application, the rotation matrix is calculated using the first acquisition position, the second acquisition position, the first initial position, and the second initial position, including:
[0084] S51, via Calculate the first vector.
[0085] In this embodiment of the application, (x) M y M (x) represents the coordinates of the first initial position. N y N ) represents the coordinates of the second initial position.
[0086] For ease of description, the vector obtained based on the first initial position and the second initial position will be defined as the first vector.
[0087] S52, via Calculate the second vector.
[0088] In this embodiment of the application, (x) M ′,y M (x') represents the coordinates of the first initial position, (x') N ′,y N ′) represents the coordinates of the second initial position.
[0089] For ease of description, the vector obtained based on the first and second acquisition positions will be defined as the second vector.
[0090] S53, Calculate the rotation matrix based on the first vector and the second vector.
[0091] See Figure 6 In another embodiment of this application, calculating the rotation matrix based on the first vector and the second vector includes:
[0092] S61, via Calculate the angle between the first vector and the second vector.
[0093] S62, via Calculate the rotation matrix.
[0094] In another embodiment of this application, calculating the acquisition position of the current loop image acquisition device based on the scaling ratio and rotation matrix includes:
[0095] The acquisition position of the current cyclic image acquisition device is calculated by Q′=KR(θ)(QM)+M′, where Q represents the initial position of the image acquisition device, Q′ represents the acquisition position, M represents the first initial position, and M′ represents the first acquisition position.
[0096] In this embodiment of the application, the acquisition position of the image acquisition device when acquiring sequencing images at other initial positions besides the sequencing images at the first initial position and the sequencing images at the second initial position can be obtained by the above formula.
[0097] It should be noted that the reason for calculating according to the above method is that, under normal circumstances, after combining translation, rotation and scaling, the deviation of the image acquisition device's acquisition position from the initial position will generally not exceed one-third of the field of view of the image acquisition device, and scaling generally has a very small effect.
[0098] In addition, it should be noted that, see Figure 2 The image acquisition device needs to acquire images at 4*13 locations in each loop. However, calculating the offset is a time-consuming process, and performing this calculation at every location would increase the time cost. Therefore, in this application, the first and second acquisition positions of the image acquisition device in the current loop are calculated only at two locations. The first and second acquisition positions, the first initial position, and the second initial position are then used to estimate the acquisition position of the image acquisition device when acquiring sequencing images at other initial positions in the current loop, thereby greatly saving time.
[0099] See Figure 7 , Figure 7 This diagram illustrates the structural composition of a data acquisition device according to an embodiment of this application. For ease of explanation, only the parts relevant to the embodiment of this application are shown. The data acquisition device 7 includes:
[0100] The first acquisition module 710 is used to acquire a first image at a first initial position and a second image at a second initial position through an image acquisition device. The first image contains a first mark on the microfluidic chip, and the second image contains a second mark on the microfluidic chip.
[0101] The correction module 720 is used to obtain the offset of the microfluidic chip in the current cycle based on the first coordinate of the first mark in the first image, the second coordinate of the second mark in the second image, the first initial coordinate, and the second initial coordinate. The first initial coordinate is the coordinate of the first mark in the first initial image acquired by the image acquisition device at the first initial position before the current cycle, and the second initial coordinate is the coordinate of the second mark in the second initial image acquired by the image acquisition device at the second initial position before the current cycle.
[0102] The acquisition position module 730 is used to calculate the acquisition position of the current cyclic image acquisition device based on the initial position and offset of the image acquisition device. The initial position is the position preset when the image acquisition device acquires sequencing images at various positions on the microfluidic chip. The initial position includes a first initial position and a second initial position.
[0103] The second acquisition module 740 is used to acquire sequencing images of the current circulating microfluidic chip at the acquisition location via an image acquisition device.
[0104] Preferably, the offset includes a first offset and a second offset, where the first offset is the offset of the first image relative to the first initial image, and the second offset is the offset of the second image relative to the second initial image.
[0105] In another embodiment of this application, the location acquisition module 730 is further configured to:
[0106] The first acquisition position is obtained based on the first offset and the first initial position, and the second acquisition position is obtained based on the second offset and the second initial position.
[0107] Based on the first acquisition position, the second acquisition position, the first initial position, and the second initial position, the acquisition position of the current cyclic image acquisition device is calculated, and the acquisition position includes the first acquisition position and the second acquisition position.
[0108] In another embodiment of this application, the location acquisition module 730 is further configured to:
[0109] Calculate the scaling ratio based on the first acquisition position, the second acquisition position, the first initial position, and the second initial position;
[0110] Calculate the rotation matrix based on the first acquisition position, the second acquisition position, the first initial position, and the second initial position;
[0111] Calculate the acquisition position of the current cyclic image acquisition device based on the scaling ratio and rotation matrix.
[0112] In another embodiment of this application, the location acquisition module 730 is further configured to:
[0113] pass Calculate the scaling factor, where (x M y M (x) represents the coordinates of the first initial position. N y N (x) represents the coordinates of the second initial position. M ′,y M (x') represents the coordinates of the first acquisition position, (x'') represents the coordinates of the first acquisition position. N ′,y N ′) represents the coordinates of the second acquisition position.
[0114] In another embodiment of this application, the location acquisition module 730 is further configured to:
[0115] pass Calculate the first vector;
[0116] pass Calculate the second vector;
[0117] Calculate the rotation matrix based on the first and second vectors.
[0118] In another embodiment of this application, the location acquisition module 730 is further configured to:
[0119] pass Calculate the angle between the first vector and the second vector;
[0120] pass Calculate the rotation matrix.
[0121] In another embodiment of this application, the location acquisition module 730 is further configured to:
[0122] The acquisition position of the current cyclic image acquisition device is calculated by Q′=KR(θ)(QM)+M′, where Q represents the initial position of the image acquisition device, Q′ represents the acquisition position, M represents the first initial position, and M′ represents the first acquisition position.
[0123] It should be noted that the execution process and information interaction between the above-mentioned devices / modules are based on the same concept as the sequencing image acquisition method provided in the embodiments of this application. For details on its specific functions and the resulting technical effects, please refer to the method embodiment section, which will not be repeated here.
[0124] See Figure 8 This is a schematic block diagram of a terminal provided in an embodiment of this application. The terminal 8 in this embodiment includes:
[0125] One or more processors 810, a memory 820, and a computer program 830 stored in the memory 820 and executable on the processor 810. When the processor 810 executes the computer program 830, it implements the steps in the various method embodiments described above, for example... Figure 1 Steps S11 to S14 are shown.
[0126] For example, the computer program 830 may be divided into one or more modules, which are stored in the memory 820 and executed by the processor 810 to complete the one or more modules of this application. These modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 830 in the terminal 8.
[0127] The terminal includes, but is not limited to, a processor 810 and a memory 820. Those skilled in the art will understand that... Figure 8 This is merely an example of terminal 8 and does not constitute a limitation on terminal 8. It may include more or fewer components than shown, or combine certain components, or different components. For example, terminal 8 may also include input devices, output devices, network access devices, buses, etc.
[0128] The processor 810 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0129] The memory 820 can be an internal storage unit of the terminal 8, such as a hard disk or memory of the terminal 8. The memory 820 can also be an external storage device of the terminal 8, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the terminal 8. Furthermore, the memory 820 can include both internal storage units and external storage devices of the terminal 8. The memory 820 is used to store the computer program and other programs and data required by the terminal 8. The memory 820 can also be used to temporarily store data that has been output or will be output.
[0130] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0131] Those skilled in the art will recognize that the exception handling method steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0132] Another embodiment of this application provides a computer-readable storage medium storing a computer program that, when run on a processor, implements any of the sequencing image acquisition methods provided in the embodiments of this application.
[0133] If the sequencing image acquisition method provided in this application is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by one or more processors, it can implement the steps of the various method embodiments described above.
[0134] Similarly, as a computer program product, when the computer program product is run on a terminal, it enables the terminal to implement the steps in the above-described method embodiments.
[0135] The computer program includes computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0136] It should be noted that the content contained in the computer-readable storage medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable storage medium does not include electrical carrier signals and telecommunication signals.
[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A sequencing image acquisition method, characterized by, The method comprises: acquiring a first image at a first initial position and a second image at a second initial position by an image acquisition device, the first image containing a first mark on a microfluidic chip, and the second image containing a second mark on the microfluidic chip; obtaining an offset of the microfluidic chip in a current cycle according to a first coordinate of the first mark in the first image, a second coordinate of the second mark in the second image, a first initial coordinate, and a second initial coordinate, the first initial coordinate being a coordinate of the first mark in a first initial image acquired by the image acquisition device at the first initial position before the current cycle, and the second initial coordinate being a coordinate of the second mark in a second initial image acquired by the image acquisition device at the second initial position before the current cycle; obtaining a first acquisition position according to the first offset and the first initial position, and obtaining a second acquisition position according to the second offset and the second initial position; calculating a scaling ratio according to the first acquisition position, the second acquisition position, the first initial position, and the second initial position; calculating a rotation matrix according to the first acquisition position, the second acquisition position, the first initial position, and the second initial position; calculating an acquisition position of the image acquisition device in the current cycle according to the scaling ratio and the rotation matrix; wherein the initial position is a position pre-set when the image acquisition device acquires sequencing images of each position on the microfluidic chip, the initial position comprises the first initial position and the second initial position, the offset comprises the first offset and the second offset, the first offset is an offset of the first image relative to the first initial image, the second offset is an offset of the second image relative to the second initial image, and the acquisition position comprises the first acquisition position and the second acquisition position; acquiring a sequencing image of the microfluidic chip in the current cycle by the image acquisition device at the acquisition position; The method comprises the following steps: calculating a current acquisition position of the image acquisition device in a current cycle according to the scaling ratio and the rotation matrix, comprising: indicating an initial position of the image acquisition device, indicating the acquisition position, indicating the first initial position, indicating the first acquisition position, K indicating the scaling ratio, R ( θ ) indicating the rotation matrix.
2. The method of claim 1, wherein, The calculating of the scaling ratio according to the first acquisition position, the second acquisition position, the first initial position, and the second initial position comprises: By calculating the scaling ratio, wherein, is a coordinate of the first initial position, is a coordinate of the second initial position, is a coordinate of the first acquisition position, is a coordinate of the second acquisition position.
3. The method of claim 2, wherein, The calculating of the rotation matrix according to the first acquisition position, the second acquisition position, the first initial position, and the second initial position comprises: By computing a first vector; By computing a second vector; The calculating of the rotation matrix according to the first vector and the second vector comprises:
4. The method of claim 3, wherein, The method comprises: By calculating an angle between the first vector and the second vector; By calculating the rotation matrix.
5. A collection device characterized by, a first acquisition module, configured to acquire a first image at a first initial position and a second image at a second initial position by an image acquisition device, the first image containing a first mark on a microfluidic chip, and the second image containing a second mark on the microfluidic chip; The correction module is configured to obtain an offset of the microfluidic chip in the current cycle according to the first coordinates of the first marker in the first image, the second coordinates of the second marker in the second image, first initial coordinates, and second initial coordinates, the first initial coordinates being coordinates of the first marker in a first initial image collected by the image acquisition device at the first initial position before the current cycle, and the second initial coordinates being coordinates of the second marker in a second initial image collected by the image acquisition device at the second initial position before the current cycle; The acquisition position obtaining module is configured to obtain a first acquisition position according to the first offset and the first initial position, and obtain a second acquisition position according to the second offset and the second initial position; The scaling ratio is calculated according to the first acquisition position, the second acquisition position, the first initial position, and the second initial position; The rotation matrix is calculated according to the first acquisition position, the second acquisition position, the first initial position, and the second initial position; The acquisition position of the image acquisition device in the current cycle is calculated according to the scaling ratio and the rotation matrix; wherein the initial position is a position pre-set when the image acquisition device collects sequencing images of each position on the microfluidic chip, the initial position includes the first initial position and the second initial position, the offset includes the first offset and the second offset, the first offset is an offset of the first image relative to the first initial image, the second offset is an offset of the second image relative to the second initial image, and the acquisition position includes the first acquisition position and the second acquisition position; The second acquisition module is configured to collect, by the image acquisition device, a sequencing image of the microfluidic chip in the current cycle at the acquisition position. The acquisition position obtaining module is further configured to: calculate the acquisition position of the image acquisition device in the current cycle by , wherein represents an initial position of the image acquisition device, represents the acquisition position, represents the first initial position, represents the first acquisition position, K represents the scaling ratio, R ( θ ) represents the rotation matrix.
6. A terminal, characterized by comprising: comprises a processor configured to run a computer program stored in a memory to implement the method of any one of claims 1 to 4. The computer program is stored in the computer readable storage medium and is configured to implement the method of any one of claims 1 to 4 when run on the processor.
7. A computer readable storage medium characterized in that,
Citation Information
Patent Citations
Image registration method and device, computer device and storage medium
CN109754396A
Biochip positioning method, gene sequencer and system and storage medium
CN110310334A