Control method and control device for high-throughput biosynthesis ink-jet printing
By extracting data from DNA base sequence files and converting it into a two-dimensional array to generate a monochrome bitmap, the problem that DNA base sequence files cannot be directly used for inkjet printing in existing technologies is solved, achieving efficient and accurate inkjet printing control and improving the efficiency and precision of high-throughput biosynthesis.
Patent Information
- Application Number
- CN202511029194.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-25
- Publication Date
- 2025-11-11
AI Technical Summary
In existing technologies, DNA base sequence files cannot be directly used for inkjet printing. The conversion process suffers from problems such as unclear data extraction logic, inaccurate base position mapping, and insufficient precision in multi-printer collaborative printing, resulting in low efficiency and high error rate in high-throughput biosynthesis.
By extracting base data from DNA base sequence files to form a one-dimensional raw array, and then converting it into a two-dimensional array for visualization, a single base array is created to generate a monochrome bitmap. Combined with preset printing parameters and printhead mapping relationships, precise and efficient printing control is achieved.
It improves the accuracy and efficiency of high-throughput biosynthesis inkjet printing, solves the problem that sequence files cannot be directly used for printing and the position mapping error during the conversion process, and ensures the precise matching of each base with the printhead.
Smart Images

Figure CN120932731A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of synthetic biology, and in particular to a control method and control device for high-throughput biosynthesis inkjet printing. Background Technology
[0002] In the field of biosynthesis, especially in DNA synthesis, the precise control of the sequence of bases (A, T, C, G) is required to synthesize the target sequence. Traditional synthesis methods rely on manual operation or low-throughput equipment, resulting in low efficiency, high sequence error rates, and difficulty in adapting to large-scale synthesis needs.
[0003] With the development of high-throughput biosynthesis technology, inkjet printing technology has shown significant advantages due to its precise ejection, high resolution, and parallel operation capabilities. When applied to biosynthesis, the file storing the base sequence needs to be converted into image instructions that the printing device can recognize—that is, establishing a correspondence between specific inks and specific bases, and the printhead ejects the corresponding ink according to the pixel position in the image to complete the physical synthesis of the sequence.
[0004] Currently, the conversion of sequence files to printed images and the control of printing have many technical limitations: First, the original sequence files cannot be directly used for printing, and existing conversion methods lack standardized analytical logic, often leading to incorrect base position mapping due to chaotic extraction methods; Second, multiple bases are stored mixed in the sequence files, and existing technologies struggle to accurately separate individual bases and generate corresponding images, easily causing interference between printing signals of different bases; Third, the conversion process lacks a standardized array construction mechanism, resulting in poor compatibility between the generated images and the printing equipment's size and nozzle correspondence, requiring repeated manual adjustments; Fourth, the lack of a visual verification step makes it impossible to intuitively confirm the correspondence between bases and image elements, making it difficult to detect conversion errors in a timely manner, ultimately leading to low DNA synthesis efficiency and high error rates, severely restricting the large-scale application of high-throughput biosynthesis.
[0005] Therefore, there is an urgent need for a technical solution that can achieve accurate parsing, efficient conversion, and reliable printing control of sequence files. Summary of the Invention
[0006] Therefore, the technical problem to be solved by the present invention is to overcome the fact that DNA base sequence files cannot be directly used for inkjet printing in high-throughput biosynthesis, and that existing conversion processes have problems such as unclear data extraction logic, inaccurate base position mapping, and insufficient precision in multi-printer collaborative printing.
[0007] To address the aforementioned technical problems, this invention provides a control method and device for high-throughput biosynthesis inkjet printing, achieving precise and efficient conversion and execution from sequence files to printing instructions. The control method for high-throughput biosynthesis inkjet printing includes the following steps:
[0008] S1: Extract base data sequentially from the obtained DNA base sequence file until all base data has been extracted, forming a one-dimensional raw array;
[0009] S2: Based on the preset printing width, the one-dimensional original array is converted into a two-dimensional array, and the two-dimensional array is visualized by assigning corresponding colors to different types of bases to obtain a base distribution array map. The row and column structure of the base distribution array map matches the preset printing width.
[0010] S3: Based on the one-dimensional original array and its row and column structure corresponding to the base distribution array diagram, establish empty arrays that correspond to different types of bases and have the same dimension as the one-dimensional original array. Traverse each element in the one-dimensional original array and assign values to the corresponding bases at the corresponding positions in each empty array to obtain multiple single base arrays.
[0011] S4: Convert the plurality of single base arrays into two-dimensional arrays according to the preset printing width, and then convert each two-dimensional array into a corresponding monochrome bitmap;
[0012] S5: Based on the correspondence between bases and printhead devices, send each monochrome bitmap to the corresponding printhead device and control the printhead device to perform the printing operation.
[0013] In one embodiment of the present invention, in S1, the method for forming a one-dimensional original array includes:
[0014] Base data is extracted from the DNA base sequence file in column order until all base data is extracted, forming a one-dimensional original array. The dimension of the one-dimensional original array is equal to the total number of bases in the verified DNA base sequence file, and each element includes a base and its index position in the original sequence file.
[0015] In one embodiment of the present invention, in S2, converting the one-dimensional original array into a two-dimensional array according to a preset printing width includes: extracting a number of bases matching the preset printing width each time to form columns of the two-dimensional array, thereby gradually generating the two-dimensional array.
[0016] In one embodiment of the present invention, in S3, obtaining a plurality of single base arrays includes:
[0017] By sequentially traversing each element in the one-dimensional original array, a value of "1" is assigned to the same index position of each empty array according to the corresponding type of base, and a value of "0" is assigned to the other positions, resulting in multiple single base arrays. The element positions of each single base array correspond one-to-one with the positions of the corresponding bases in the base distribution array diagram.
[0018] In one embodiment of the present invention, in step S4, converting the plurality of single base arrays into two-dimensional arrays according to the preset printing width, and then converting each two-dimensional array into a corresponding monochrome bitmap includes:
[0019] The single base array is extracted according to a preset printing width, and the corresponding number of elements are extracted to form a row and column structure of a two-dimensional array.
[0020] The positions of the two-dimensional array that are assigned a value of "1" are recorded as valid pixels, and the positions that are assigned a value of "0" are recorded as invalid pixels, thus generating a monochrome bitmap. Each element in the monochrome bitmap contains the sorting position of the base in the original sequence, and the position of the element is consistent with the position of the corresponding base in the base distribution array.
[0021] The generated monochrome bitmap is optimized, including noise removal, edge smoothing, and size calibration.
[0022] In one embodiment of the present invention, the noise removal includes:
[0023] When converting a one-dimensional original array into a two-dimensional array, if the array length is not an integer multiple of the preset printing width, null values are added at the end. In a single base array, the elements in the null value region are all invalid pixels.
[0024] Traverse all pixels within the padded area, identify valid pixels, and if any valid pixel's neighboring pixels are all invalid pixels, then determine that the pixel is an isolated valid pixel caused by the padded value, i.e., noise; change the detected isolated valid pixel to an invalid pixel.
[0025] In one embodiment of the present invention, the edge smoothing includes:
[0026] Traverse all valid pixels with a value of "1" in the monochrome bitmap, and mark the edge position of the valid pixels, i.e. the boundary area between valid and invalid pixels, by checking whether there are invalid pixels with a value of "0" in their neighboring pixels;
[0027] For the marked valid edge pixels, different grayscale values are assigned according to the number of adjacent invalid pixels. The grayscale edge pixel values are then converted into halftone parameters that the printing device can recognize, so that a gradual transition is formed between valid and invalid pixels in the edge area, eliminating jagged edges caused by pixel abrupt changes.
[0028] In one embodiment of the present invention, the size calibration includes:
[0029] Based on the preset print resolution R, according to the formula Convert the pixel size of a monochrome bitmap to obtain the horizontal and vertical physical lengths of the corresponding monochrome bitmap; P represents the pixel size, and L represents the physical size;
[0030] The calculated physical dimensions are matched and verified with the effective printing area of the printing device to ensure that the physical dimensions of the converted monochrome bitmap are within the printable range of the device; if they are outside the range, the user is prompted to adjust the preset printing resolution or printing width parameters until the physical dimensions of the bitmap are compatible with the printing device.
[0031] In one embodiment of the present invention, step S5, sending each monochrome bitmap to the corresponding print head, includes:
[0032] Based on the preset mapping relationship between nozzles and bases, each monochrome bitmap is sent to the corresponding nozzle control module.
[0033] After receiving the monochrome bitmap, the printhead control module returns a checksum. If the checksum matches the checksum from the sender, the reception is confirmed as successful, and the corresponding printhead is driven to perform the printing operation; otherwise, it is resent.
[0034] In one embodiment of the present invention, S5, the method for controlling the printhead device to perform the printing operation further includes:
[0035] Before printing, the position of each printhead is calibrated to ensure that the printing positions of different printheads are precisely aligned.
[0036] Trigger the synchronous printing command to control each printhead to spray synchronously at a preset speed;
[0037] The system monitors the ink level and jet pressure in real time during the printing process, and stops printing and triggers an alarm if any abnormality occurs.
[0038] In one embodiment of the present invention, S1 further includes a preprocessing and verification step for the DNA base sequence file before extracting the base data: checking whether the DNA base sequence file contains only the base characters A, T, C, and G; if other characters are present, the corresponding error position is marked and the user is prompted to correct it.
[0039] In one embodiment of the present invention, the preprocessing and verification of the DNA base sequence file further includes: verifying whether the length of each line of the DNA base sequence file is consistent; if they are inconsistent, the file is truncated according to the shortest line length or the user is prompted to unify the sequence length.
[0040] In one embodiment of the present invention, the control method further includes an exception handling step: when the printing process is interrupted, it supports continuing printing from the point of interruption.
[0041] In one embodiment of the present invention, the control method further includes a log recording step: recording the verification results of the DNA base sequence file, sequence data conversion parameters, monochrome bitmap generation information, printing process parameters, and abnormal information.
[0042] Based on the same inventive concept, the present invention also provides a control device, which includes: a data structuring unit, a data splitting and image conversion unit, and an execution unit; wherein,
[0043] The data structuring unit is configured to: extract base data from the acquired DNA base sequence file until all base data has been extracted, forming a one-dimensional raw array;
[0044] According to the preset printing parameters, the one-dimensional original array is converted into a two-dimensional array, and the two-dimensional array is visualized by assigning corresponding colors to different bases to obtain a base distribution array map. The row and column structure of the base distribution array map matches the preset printing width.
[0045] The data splitting and image conversion unit is configured to: based on the one-dimensional original array and row and column structure corresponding to the base distribution array map, establish empty arrays that correspond to different types of bases and have the same dimension as the one-dimensional original array; traverse each element in the one-dimensional original array; assign values to the corresponding bases at the corresponding positions of the corresponding base arrays; and obtain multiple single base arrays.
[0046] The plurality of single base arrays are converted into two-dimensional arrays according to the preset printing parameters, and then each two-dimensional array is converted into a corresponding monochrome bitmap;
[0047] The execution unit is configured to: send each monochrome bitmap to the corresponding print head device according to the correspondence between bases and print head devices, and control the print head device to perform printing operations.
[0048] In one embodiment of the present invention, the control device further includes an editing unit, which is configured to provide a user interface for a user to edit and modify printing parameters, including printing width, printing ink dosage, mapping relationship between bases and colors, and mapping relationship between printhead and bases.
[0049] The technical solution of the present invention has the following advantages compared with the prior art:
[0050] This invention extracts base data column by column to form a raw array and converts it into a visual array, thus realizing an intuitive presentation of DNA base sequences. It establishes a single base array and generates a monochrome bitmap containing the sorted positions, ensuring accurate matching of each base with the corresponding printhead. Combined with the adjustment of preset printing parameters, bitmap optimization processing, and synchronous control and monitoring of the printing process, it effectively improves the accuracy, efficiency, and reliability of high-throughput biosynthesis inkjet printing, and solves problems such as the inability of sequence files to be directly used for printing and the position mapping errors that easily occur during the conversion process. Attached Figure Description
[0051] To make the content of this invention easier to understand, the invention will be further described in detail below with reference to specific embodiments and accompanying drawings, wherein...
[0052] Figure 1 This is a schematic flowchart of a high-throughput biosynthesis inkjet printing control method provided in an embodiment of the present invention;
[0053] Figure 2 This is a schematic diagram of the structure of a control device provided in an embodiment of the present invention;
[0054] Explanation of reference numerals in the accompanying drawings: 100, data structuring unit; 200, data splitting and image conversion unit; 300, execution unit; 400, editing unit. Detailed Implementation
[0055] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, so that those skilled in the art can better understand and implement the present invention. However, the embodiments described are not intended to limit the present invention.
[0056] Example 1:
[0057] Reference Figure 1 This invention provides a control method for high-throughput biosynthesis inkjet printing, specifically including the following steps:
[0058] S1: Extract base data sequentially from DNA base sequence files in formats such as txt and fasta until all base data has been extracted, forming a one-dimensional raw array;
[0059] S2: Based on the preset printing width, the one-dimensional original array is converted into a two-dimensional array, and the two-dimensional array is visualized by assigning corresponding colors to different types of bases to obtain a base distribution array map. The row and column structure of the base distribution array map matches the preset printing width.
[0060] S3: Based on the one-dimensional original array and its row and column structure corresponding to the base distribution array diagram, establish empty arrays that correspond to different types of bases and have the same dimension as the one-dimensional original array. Traverse each element in the one-dimensional original array and assign values to the corresponding bases at the corresponding positions in each empty array to obtain multiple single base arrays.
[0061] S4: Convert the plurality of single base arrays into two-dimensional arrays according to the preset printing width, and then convert each two-dimensional array into a corresponding monochrome bitmap;
[0062] S5: Based on the correspondence between bases and printhead devices, send each monochrome bitmap to the corresponding printhead device and control the printhead device to perform the printing operation.
[0063] Furthermore, in this embodiment, the method for forming a one-dimensional original array in S1 includes:
[0064] Based on the obtained DNA base sequence file, ensure that it contains only four bases: A, T, C, and G, and that the length of each line of sequence is consistent. The total number of lines M and the number of bases N in each line of the file are obtained, and the total number of bases is M×N.
[0065] Since each line in the DNA base sequence file represents a reaction base sequence, base data is extracted from the DNA base sequence file column by column. Starting from column 1, the bases at corresponding positions in each row are extracted sequentially: column 1 extracts the first base of row 1, the first base of row 2, ..., the first base of row M; column 2 extracts the second base of row 1, the second base of row 2, ..., the second base of row M, and so on, until all N columns are extracted. The extracted bases are then stored sequentially in a one-dimensional array with a length of M×N. Simultaneously, each element is appended with its index position in the original sequence file, for example, in the format "row number-column number", such as the base index of row 3, column 5 being "3-5", forming a one-dimensional original array containing base characters and original position information.
[0066] Further, in S2, converting the one-dimensional original array into a two-dimensional array according to the preset printing width includes:
[0067] According to the user-set preset printing width W (in pixels), the one-dimensional original array is split, and W consecutive bases are extracted from the one-dimensional original array each time. If there are fewer than W remaining elements, all remaining elements are extracted as a column of the two-dimensional array.
[0068] Each extracted element is used sequentially as the first column, second column, and so on, of the two-dimensional array until all elements of the original one-dimensional array have been extracted, ultimately forming an array with W rows (or, if the last column is less than W, the actual number of remaining elements) and L columns. The two-dimensional array has a row and column structure that strictly matches the preset printing width. This is for rounding up.
[0069] Specifically, in S3, the steps for obtaining multiple single-base arrays include:
[0070] First, initialize empty arrays. Based on the dimension (length) of the original one-dimensional array, create four empty arrays corresponding to the four bases A, T, C, and G respectively. The initial elements of the arrays are all "0", and the index positions of each array correspond to the element positions of the original one-dimensional array and the base distribution array diagram.
[0071] Next, traverse the original array, read each element in the one-dimensional original array in index order, and determine the base type (A, T, C or G) corresponding to the element.
[0072] Next, the assignment operation is performed. If the current element is the base "A", then the value "1" is assigned at the same index position in the A array, and the corresponding index position in the T, C, and G arrays remains "0". If the element is "T", then the value "1" is assigned at the same index position in the T array, and the corresponding positions in the other arrays remain "0". The assignment logic for the C and G bases is the same.
[0073] Finally, after the traversal is completed, four single base arrays are obtained. The index position of "1" in each array corresponds to the position of that base in the original array, and they correspond one-to-one with the row and column positions of the corresponding bases in the base distribution array diagram.
[0074] Further, in S4, converting the plurality of single base arrays into two-dimensional arrays according to the preset printing width, and then converting each two-dimensional array into a corresponding monochrome bitmap includes:
[0075] For each single base array (A, T, C, G), extract the corresponding number of elements according to the preset print width. For example, if the preset print width is 100, extract 100 elements at a time as one column of the two-dimensional array. Continue extracting until all elements in the array are allocated, forming a row and column structure that matches the preset print width, ensuring that the row and column distribution of the array matches the base distribution array. Figure 1 To;
[0076] For the transformed two-dimensional array, positions with a value of "1" are marked as valid pixels, and positions with a value of "0" are marked as invalid pixels, thus generating a monochrome bitmap. Simultaneously, each valid pixel in the monochrome bitmap is embedded with its sorting position in the original sequence (i.e., the index of the base in the one-dimensional original array), ensuring a one-to-one correspondence between the position of each element in the monochrome bitmap and the position of the corresponding base in the base distribution array.
[0077] The generated monochrome bitmap is optimized, including:
[0078] 1) Remove noise from the generated monochrome bitmap, including the following steps:
[0079] When converting a one-dimensional original array into a two-dimensional array, if the array length is not an integer multiple of the preset printing width, null values (denoted as "N") are added at the end. In a single base array, the elements in the null value region are all "0", which are invalid pixels.
[0080] Traverse all pixels within the padded area and identify valid pixels. If any valid pixel's adjacent pixels are all invalid pixels, then the pixel is determined to be an isolated valid pixel caused by the padded value, i.e., noise. Change the detected isolated valid pixels to invalid pixels to ensure that there are no redundant valid pixels within the padded area, thus avoiding base sequence errors caused by noise during printing.
[0081] 2) Smooth the edges of the generated monochrome bitmap, including the following steps:
[0082] Traverse all valid pixels with a value of "1" in the monochrome bitmap, and mark the edge position of the valid pixels, i.e. the boundary area between valid and invalid pixels, by checking whether there are invalid pixels with a value of "0" in its adjacent pixels (up, down, left, right, and diagonal in 8 directions);
[0083] For the marked valid edge pixels, different gray values (not intermediate values of "1" or "0") are assigned according to the number of adjacent invalid pixels. For example, edge pixels adjacent to 1 invalid pixel are assigned a gray value of 0.75, and those adjacent to 2 invalid pixels are assigned a gray value of 0.5, thus simulating the pixel transition effect.
[0084] The edge pixel values after grayscale processing are converted into halftone parameters that the printing device can recognize (such as adjusting the ink dosage or dot size ejected by the printhead), so that a gradual transition is formed between the effective pixels and invalid pixels in the edge area, eliminating jagged edges caused by pixel abrupt changes, and ultimately achieving smoothing of the monochrome bitmap edges, improving the edge accuracy of the base sequence after printing.
[0085] 3) Perform size calibration on the generated monochrome bitmap, including the following steps:
[0086] Extract the print resolution R (unit: DPI, i.e., pixels per inch, such as 300 DPI) preset by the user through configuration file or visual interface. This parameter represents the number of pixels that the printing device can display per inch and is the core basis for the conversion between pixel size and physical size.
[0087] The pixel dimensions of the generated monochrome bitmap are counted, namely the number of horizontal pixels (columns) and the number of vertical pixels (rows), to determine the total pixel size of the bitmap (e.g., 1000 pixels horizontally and 800 pixels vertically).
[0088] Based on the print resolution R, according to the formula Convert the pixel size of a monochrome bitmap to obtain the horizontal and vertical physical lengths of the corresponding monochrome bitmap; P represents the pixel size, and L represents the physical size;
[0089] The calculated physical dimensions are matched and verified with the effective printing area of the printing device to ensure that the physical dimensions of the converted monochrome bitmap are within the printable range of the device. If they are outside the range, the user is prompted to adjust the preset printing resolution or printing width parameters until the bitmap physical dimensions are adapted to the printing device, thus achieving a precise correspondence between the bitmap pixel dimensions and the printed physical dimensions.
[0090] Furthermore, in this embodiment, in step S5, sending each monochrome bitmap to the corresponding printhead includes:
[0091] According to the preset mapping relationship between nozzles and bases (e.g., A base corresponds to nozzle 1, T base corresponds to nozzle 2, C base corresponds to nozzle 3, and G base corresponds to nozzle 4), the sending end performs MD5 encryption on the monochrome bitmap data to generate a check code, and then sends the bitmap data and check code together to the corresponding nozzle control module.
[0092] After receiving the monochrome bitmap, the printhead control module recalculates the MD5 checksum of the bitmap data and compares it with the received checksum. If the checksums match, it returns a "successful reception" signal, triggering the printhead to prepare for printing; if they do not match, the receiver returns a "verification failed" signal, and the sender retransmits the data (by default, it retries 3 times; if it still fails, an alarm is triggered).
[0093] Specifically, in S5, the method for controlling the printhead device to perform printing operations also includes:
[0094] Before printing, each printhead is calibrated to ensure that the printing positions of different printheads are accurately aligned. This includes scanning a reference calibration plate containing preset positioning marks using the optical sensor mounted on the printhead to obtain the offset between the current physical position and the theoretical position of each printhead. Based on the offset, compensation parameters are automatically generated to adjust the printing coordinates of each printhead, ensuring that the printing position alignment error of different printheads is ≤0.01mm.
[0095] A synchronous trigger command is sent to all printhead control modules. The command includes, but is not limited to, parameters such as preset jet speed and jet frequency. After receiving the command, each printhead control module synchronously starts the drive circuit and controls the printhead to jet the corresponding ink according to the parameters, so as to ensure that the printing positions of different bases are accurately matched in space at the same time.
[0096] The system uses level and pressure sensors to monitor the ink level (threshold set to 10%, warning when below the threshold) and jet pressure (normal range 0.5-1.0 MPa, alarm when outside the range) of each printhead in real time during printing. If an abnormality is detected (such as pressure suddenly rising to 1.5 MPa or ink level less than 5%), the system immediately sends a "stop printing" command, and all printheads stop jetting. At the same time, an audible and visual alarm is triggered, the abnormality type is displayed on the operation interface (such as "pressure abnormality of printhead 1"), and the time and location of the abnormality are recorded in the log.
[0097] Furthermore, in S1, before extracting the base data, a step of preprocessing and verifying the DNA base sequence file is included, including:
[0098] 1) Base character verification: Scan each base character in the DNA base sequence file line by line to determine whether it is A, T, C, or G. If case is not distinguished, it will be automatically converted to uppercase. If other characters are detected, the line number and column number of the character will be marked and the user will be prompted to correct it.
[0099] 2) Sequence length verification: Count the number of bases in each line of the DNA base sequence file and generate a list of line lengths; compare the lengths of all lines, and if there are differences, truncate the excessively long lines by default according to the shortest line length; or provide a user selection interface to allow manual input of the target length for uniform adjustment, such as padding or truncation, to ensure that the sequence lengths of all lines are consistent before proceeding to the data extraction stage.
[0100] In addition, the high-throughput biosynthesis inkjet printing control method provided by the present invention also includes an anomaly handling step: during the printing process, the current printing progress is recorded in real time, marked by the pixel index of the monochrome bitmap or the position of the base in the original sequence (such as "the 1000th base has been printed"), and the breakpoint information (including the current printhead status and the coordinates of the printed area) is stored in a temporary file or database.
[0101] If printing is interrupted due to power failure, equipment failure, or other reasons, the system will automatically detect the breakpoint log file after restarting. After the user confirms that printing will continue, the system will load the breakpoint information, locate the interruption position, adjust the printhead to the corresponding physical coordinates, call the monochrome bitmap data of the unprinted part, and continue the printing operation from the breakpoint to avoid reprinting the completed area.
[0102] Furthermore, the method for controlling high-throughput biosynthesis inkjet printing also includes a logging step: recording the verification results of the DNA base sequence file, sequence data conversion parameters, monochrome bitmap generation information, printing process parameters, and abnormal information.
[0103] The verification results include: the position of illegal characters in the record file, the correction method, the line length difference, and the processing result; the sequence data conversion parameters include: preset print width, resolution, the mapping relationship between bases and colors / printers, and bitmap optimization parameters; the monochrome bitmap generation information includes: the size of the monochrome bitmap, the number of effective pixels, and the generation time; the printing process parameters include print speed, jet pressure, calibration compensation values for each printhead, and total printing time; the anomaly information includes the time of anomaly occurrence, the anomaly type (such as excessive pressure or insufficient ink), the handling measures, and the results.
[0104] The log records are named with timestamps and stored in a structured format (such as CSV or JSON), supporting retrieval by time, file name, and other dimensions. Users can set the storage period for log records according to their needs. Log records exceeding the specified storage period can be manually exported and deleted or automatically cleaned up by the system to ensure reasonable utilization of storage resources.
[0105] Example 2:
[0106] Based on the same inventive concept as Embodiment 1, the present invention also provides a control device for implementing the steps of the high-throughput biosynthesis inkjet printing control method described in Embodiment 1. For example... Figure 2 As shown, the control device includes: a data structuring unit 100, a data splitting and image conversion unit 200, and an execution unit 300; wherein,
[0107] The data structuring unit 100 is configured to: extract base data from the acquired DNA base sequence file until all base data has been extracted, forming a one-dimensional raw array;
[0108] According to the preset printing parameters, the one-dimensional original array is converted into a two-dimensional array, and the two-dimensional array is visualized by assigning corresponding colors to different bases to obtain a base distribution array map. The row and column structure of the base distribution array map matches the preset printing width.
[0109] The data splitting and image conversion unit 200 is configured to: based on the one-dimensional original array and row and column structure corresponding to the base distribution array map, establish empty arrays that correspond to different types of bases and have the same dimension as the one-dimensional original array; traverse each element in the one-dimensional original array; assign values to the corresponding bases at the corresponding positions of the corresponding base arrays; and obtain multiple single base arrays.
[0110] The plurality of single base arrays are converted into two-dimensional arrays according to the preset printing parameters, and then each two-dimensional array is converted into a corresponding monochrome bitmap;
[0111] The execution unit 300 is configured to: send each monochrome bitmap to the corresponding print head device according to the correspondence between bases and print head devices, and control the print head device to perform printing operations.
[0112] Furthermore, in this embodiment, the control device further includes an editing unit 400, which is configured to provide a user interface for users to edit and modify printing parameters, including printing width, printing ink dosage, mapping relationship between bases and colors, and mapping relationship between printhead and bases.
[0113] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0114] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0115] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0116] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0117] Obviously, the above embodiments are merely illustrative examples for clear explanation and are not intended to limit the implementation. Those skilled in the art will recognize that other variations or modifications can be made based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations here. However, obvious variations or modifications derived therefrom are still within the scope of protection of this invention.
Claims
1. A control method for high-throughput biosynthesis inkjet printing, characterized in that, Includes the following steps: S1: Extract base data sequentially from the obtained DNA base sequence file until all base data has been extracted, forming a one-dimensional raw array; S2: Based on the preset printing width, the one-dimensional original array is converted into a two-dimensional array, and the two-dimensional array is visualized by assigning corresponding colors to different types of bases to obtain a base distribution array map. The row and column structure of the base distribution array map matches the preset printing width. S3: Based on the one-dimensional original array and its row and column structure corresponding to the base distribution array diagram, establish empty arrays that correspond to different types of bases and have the same dimension as the one-dimensional original array. Traverse each element in the one-dimensional original array and assign values to the corresponding bases at the corresponding positions in each empty array to obtain multiple single base arrays. S4: Convert the plurality of single base arrays into two-dimensional arrays according to the preset printing width, and then convert each two-dimensional array into a corresponding monochrome bitmap; S5: Based on the correspondence between bases and printhead devices, send each monochrome bitmap to the corresponding printhead device and control the printhead device to perform the printing operation.
2. The control method for high-throughput biosynthesis inkjet printing according to claim 1, characterized in that, In S1, the methods for forming a one-dimensional primitive array include: Base data is extracted from the DNA base sequence file in column order until all base data is extracted, forming a one-dimensional original array. The dimension of the one-dimensional original array is equal to the total number of bases in the verified DNA base sequence file, and each element includes a base and its index position in the original sequence file.
3. The control method for high-throughput biosynthesis inkjet printing according to claim 1, characterized in that, In S2, converting the one-dimensional original array into a two-dimensional array according to the preset printing width includes: extracting a number of bases matching the preset printing width each time to form columns of the two-dimensional array, thereby gradually generating the two-dimensional array.
4. The control method for high-throughput biosynthesis inkjet printing according to claim 1, characterized in that, In S3, multiple single-base arrays are obtained, including: By sequentially traversing each element in the one-dimensional original array, a value of "1" is assigned to the same index position of each empty array according to the base of the corresponding type, and a value of "0" is assigned to the other positions, resulting in multiple single base arrays. The element positions of each single base array correspond one-to-one with the positions of the corresponding bases in the base distribution array diagram.
5. The method for controlling high-throughput biosynthesis inkjet printing according to claim 1, characterized in that, In step S4, the plurality of single base arrays are converted into two-dimensional arrays according to the preset printing width, and then each two-dimensional array is converted into a corresponding monochrome bitmap, including: The single base array is extracted according to a preset printing width, and the corresponding number of elements are extracted to form a row and column structure of a two-dimensional array. The positions of the two-dimensional array that are assigned a value of "1" are recorded as valid pixels, and the positions that are assigned a value of "0" are recorded as invalid pixels, thus generating a monochrome bitmap. Each element in the monochrome bitmap contains the sorting position of the base in the original sequence, and the position of the element is consistent with the position of the corresponding base in the base distribution array. The generated monochrome bitmap is optimized, including noise removal, edge smoothing, and size calibration.
6. The control method for high-throughput biosynthesis inkjet printing according to claim 5, characterized in that, The noise removal includes: When converting a one-dimensional original array into a two-dimensional array, if the array length is not an integer multiple of the preset printing width, null values are added at the end. In a single base array, the elements in the null value region are all invalid pixels. Traverse all pixels within the padded area, identify valid pixels, and if any valid pixel's neighboring pixels are all invalid pixels, then determine that the pixel is an isolated valid pixel caused by the padded value, i.e., noise; change the detected isolated valid pixel to an invalid pixel.
7. The control method for high-throughput biosynthesis inkjet printing according to claim 5, characterized in that, The edge smoothing includes: Traverse all valid pixels with a value of "1" in the monochrome bitmap, and mark the edge position of the valid pixels, i.e. the boundary area between valid and invalid pixels, by checking whether there are invalid pixels with a value of "0" in their neighboring pixels. For the marked valid edge pixels, different grayscale values are assigned according to the number of adjacent invalid pixels. The grayscale edge pixel values are then converted into halftone parameters that the printing device can recognize, so that a gradual transition is formed between valid and invalid pixels in the edge area, eliminating jagged edges caused by pixel abrupt changes.
8. The control method for high-throughput biosynthesis inkjet printing according to claim 5, characterized in that, The size calibration includes: Based on the preset print resolution R, according to the formula Convert the pixel size of a monochrome bitmap to obtain the horizontal and vertical physical lengths of the corresponding monochrome bitmap; P represents the pixel size, and L represents the physical size; The calculated physical dimensions are matched and verified with the effective printing area of the printing device to ensure that the physical dimensions of the converted monochrome bitmap are within the printable range of the device; if they are outside the range, the user is prompted to adjust the preset printing resolution or printing width parameters until the physical dimensions of the bitmap are compatible with the printing device.
9. The control method for high-throughput biosynthesis inkjet printing according to claim 1, characterized in that, In S5, sending each monochrome bitmap to the corresponding print head includes: Based on the preset mapping relationship between nozzles and bases, each monochrome bitmap is sent to the corresponding nozzle control module. After receiving the monochrome bitmap, the printhead control module returns a checksum. If the checksum matches the checksum from the sender, the reception is confirmed as successful, and the corresponding printhead is driven to perform the printing operation; otherwise, it is resent.
10. The method for controlling high-throughput biosynthesis inkjet printing according to claim 1, characterized in that, In S5, the method for controlling the printhead device to perform printing operations also includes: Before printing, the position of each printhead is calibrated to ensure that the printing positions of different printheads are precisely aligned. Trigger the synchronous printing command to control each printhead to spray synchronously at a preset speed; The system monitors the ink level and jet pressure in real time during the printing process, and stops printing and triggers an alarm if any abnormality occurs.
11. The control method for high-throughput biosynthesis inkjet printing according to claim 1, characterized in that, In step S1, before extracting the base data, a preprocessing and verification step is also included for the DNA base sequence file: checking whether the DNA base sequence file contains only the base characters A, T, C, and G. If other characters are present, the corresponding error position is marked and the user is prompted to correct it.
12. The method for controlling high-throughput biosynthesis inkjet printing according to claim 11, characterized in that, The preprocessing and verification of the DNA base sequence file also includes: verifying whether the length of each line of the DNA base sequence file is consistent. If they are inconsistent, the file is truncated to the shortest line length or the user is prompted to unify the sequence length.
13. The method for controlling high-throughput biosynthesis inkjet printing according to claim 1, characterized in that, The control method also includes an exception handling step: when the printing process is interrupted, it supports continuing printing from the point of interruption.
14. The control method for high-throughput biosynthesis inkjet printing according to claim 1, characterized in that, The control method further includes a log recording step: recording the verification results of the DNA base sequence file, sequence data conversion parameters, monochrome bitmap generation information, printing process parameters, and abnormal information.
15. A control device for applying the method according to any one of claims 1 to 14, characterized in that, include: The data structuring unit is configured to extract base data from the acquired DNA base sequence file until all base data has been extracted, forming a one-dimensional raw array; According to the preset printing parameters, the one-dimensional original array is converted into a two-dimensional array, and the two-dimensional array is visualized by assigning corresponding colors to different bases to obtain a base distribution array map. The row and column structure of the base distribution array map matches the preset printing width. The data splitting and image conversion unit is configured to: based on the one-dimensional original array and row and column structure corresponding to the base distribution array map, establish empty arrays that correspond to different types of bases and have the same dimension as the one-dimensional original array; traverse each element in the one-dimensional original array; assign values to the corresponding bases at the corresponding positions in each corresponding base array; and obtain multiple single base arrays. The plurality of single base arrays are converted into two-dimensional arrays according to the preset printing parameters, and then each two-dimensional array is converted into a corresponding monochrome bitmap; The execution unit is configured to send each monochrome bitmap to the corresponding print head device according to the correspondence between bases and print head devices, and control the print head device to perform printing operations.
16. The control device according to claim 15, characterized in that, The control device also includes an editing unit, which is configured to provide a user interface for users to edit and modify printing parameters, including printing width, printing ink dosage, the mapping relationship between bases and colors, and the mapping relationship between printheads and bases.
Citation Information
Cited By
An adaptive printing data generation method and device for a DNA inkjet printing device
CN122387397A