Methods, devices and systems for storing information in molecules
By dividing bit groups and determining corresponding molecular modules in molecular storage technology, compositions are generated to store information, which solves the problems of low coding efficiency, slow writing speed and high cost in the existing technology, and achieves more efficient information storage .
Patent Information
- Application Number
- CN202280064870.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-08-17
- Filing Date
- 2022-09-20
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-09-20
AI Technical Summary
Existing molecular storage technology has deficiencies in coding efficiency, writing speed and cost, making it difficult to effectively integrate with computer systems, and lacks suitable solutions to improve storage density and reliability.
By dividing the information to be stored into bit groups, and determining the corresponding molecular module according to the address and content of the bit group, a composition is generated to store the information, and base conversion and preset relationships are used to optimize the use of molecular modules and reduce the required The number of molecular modules improves coding efficiency and writing speed and reduces costs.
It achieves higher coding efficiency, improves writing speed, and reduces the cost of molecular storage. By optimizing the use of molecular modules, it solves the problems of low storage density and high cost in traditional molecular storage technology.
Smart Images

Figure CN118056206B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese Patent Application No. 202210988065.6, filed on August 17, 2022, entitled “Methods, Devices, and Systems for Storing Information in Molecules,” the disclosure of which is incorporated herein by reference in its entirety. Technical Field
[0003] The present disclosure relates to the field of storage technology, and in particular to a method, device and system for storing information in molecules. Background Art
[0004] With the rapid development of information technology, people's demand for data storage is also increasing rapidly. Traditional data storage media include hard disks, flash memory, magnetic tapes, optical disks, etc., which have problems such as low storage density, short storage time, and high energy consumption. In order to achieve higher storage density and more reliable storage effect, information can now be stored in molecules. Summary of the invention
[0005] In the related art, there is still a lack of a suitable solution for storing information in molecules that can be integrated with computer systems in terms of coding efficiency, writing speed and cost. Therefore, there is a need to improve the existing molecular storage technology.
[0006] Therefore, the embodiments of the present disclosure propose the following solutions.
[0007] According to one aspect of an embodiment of the present disclosure, a method for storing information in a molecule is provided, comprising:
[0008] Acquire information to be stored, wherein the information to be stored has one or more bit groups, the position of each bit group in the information to be stored is represented by a first address, the value of each bit group is represented by a first content, and each bit group has one or more bits;
[0009] determining a molecule module corresponding to at least one of the one or more bit groups, wherein the molecule module comprises a first molecule module, and the first molecule module is configured to represent both a first address and a first content of the corresponding bit group; and
[0010] A composition is generated based on the determined molecular modules, so that the composition corresponds to the information to be stored.
[0011] In some embodiments, obtaining the information to be stored includes:
[0012] Separating the initial information to be stored to generate one or more segments of information to be stored, wherein the number of bits of each segment of information to be stored is smaller than the number of bits of the initial information to be stored, and the number of bits of each segment of information to be stored is equal to or different from each other; or
[0013] Multiple segments of initial information to be stored are merged to generate information to be stored, wherein the number of bits of the information to be stored is greater than the number of bits of each segment of initial information to be stored.
[0014] In some embodiments, determining a molecule module corresponding to at least one of the one or more bit groups comprises:
[0015] A first molecule module corresponding to each of the one or more bit groups is determined.
[0016] In some embodiments, the information to be stored has multiple bit groups, and the values of the multiple bit groups include at least two first contents.
[0017] Determining a molecule module corresponding to at least one of the one or more bit groups includes:
[0018] It is determined that a bit group whose value is a first content does not correspond to any molecular module, and a first molecular module corresponding to at least one bit group among other bit groups whose values are other first contents is determined.
[0019] In some embodiments, determining a molecule module corresponding to at least one of the one or more bit groups comprises:
[0020] determining whether a second bit group among the one or more bit groups satisfies a preset relationship with the first bit group, wherein a first address of the second bit group is different from a first address of the first bit group; and
[0021] When the second bit group satisfies the preset relationship with the first bit group, a molecular module corresponding to the second bit group is determined, wherein the molecular module includes a second molecular module, and the second molecular module is configured to represent the preset relationship between the corresponding second bit group and the first bit group.
[0022] In some embodiments, the second molecular module includes at least one of the following:
[0023] The stroke increment module, wherein the first preset number a 1 The corresponding stroke increment module is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: there are continuous a 1 second bit groups, and the first content of each second bit group is the same as the first content of the first bit group, a 1 is a positive integer;
[0024] The stroke multiple module, wherein the second preset number a 2 The corresponding stroke multiple module is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: there are continuous (a 2 -1) second bit groups, and the first content of each second bit group is the same as the first content of the first bit group, a 2 is a positive integer greater than 1;
[0025] The stroke flip module, wherein the third preset number a 3 The corresponding stroke flip module is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: each bit in the first bit group and the second bit group has only two values of 0 or 1, the second bit group has only two bits with different values, and there are continuous a 3 The first digit of the second digit group is different from the last digit of the first digit group. 3 is a positive integer;
[0026] a trip repetition module, wherein the trip repetition module is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: the first content of the second bit group is the same as the first content of the first bit group;
[0027] The bit increment module, wherein the fourth preset number a 4 The corresponding bit increment module is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: the second bit group has only one bit, and there are continuous a bits immediately after the first bit group. 4 The second bit group, and the value of the second bit group is the same as the value of the last bit of the first bit group, a 4 is a positive integer; and
[0028] A bit reduction module, wherein the fifth preset number a 5 The corresponding bit reduction module is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: the first bit group is a continuous bit from the back to the front. 5 The ones digit is determined as the second digit group, and the second digit group in the first digit group is removed, a 5 is a positive integer and a 5 Less than or equal to the total number of digits in the first group.
[0029] In some embodiments, determining a molecule module corresponding to at least one of the one or more bit groups comprises:
[0030] Converting at least part of the information to be stored from a first base to a binary base;
[0031] dividing at least part of the converted information to be stored into one or more bit groups; and
[0032] A molecule module corresponding to at least one bit group among the one or more bit groups obtained after the conversion is determined.
[0033] In some embodiments, the first system is binary, the binary system is decimal, and converting at least part of the information to be stored from the first system to the binary system comprises:
[0034] According to x i+1 =2x i +b i+1 Perform an iterative calculation to determine at least part of the information to be stored in decimal, where x 0 is the preset initial value, b i+1 is the value of the i+1 bit from left to right in the at least part of the binary information to be stored, i is an integer greater than or equal to 0, and when i+1 is equal to the total number of bits of the at least part of the binary information to be stored, the corresponding x i+1 The at least part of the information to be stored is in decimal.
[0035] In some embodiments, the first system is binary, the binary system is decimal, and converting at least part of the information to be stored from the first system to the binary system comprises:
[0036] according to Calculate the at least part of the information to be stored in decimal, wherein a n is the value of the n+1th bit in the at least part of the binary information to be stored, and i+1 is the total number of bits of the at least part of the binary information to be stored.
[0037] In some embodiments, the first system is binary, the binary system is an integer multiple of binary, and converting at least part of the information to be stored from the first system to the binary system includes:
[0038] Determining whether it is necessary to fill in the at least part of the information to be stored at a preset position according to the total number of bits of the binary number and the at least part of the information to be stored;
[0039] If so, padding the at least part of the information to be stored according to the binary number to obtain target information to be stored;
[0040] If not, directly taking the at least part of the information to be stored as the target information to be stored;
[0041] Dividing at least part of the binary information to be stored into one or more segments of sub-information according to the binary number, wherein the number of bits of each segment of sub-information is an integer multiple of the binary number with respect to the binary number;
[0042] Each piece of binary sub-information is converted into a corresponding value of the second binary state to generate the at least part of the second binary information to be stored.
[0043] In some embodiments, the determined relative positions of the molecular modules in the composition are consistent with the relative positions of the corresponding bit groups in the information to be stored.
[0044] In some embodiments, generating a composition based on the determined molecular module so that the composition corresponds to the information to be stored comprises:
[0045] Acquire unit modules corresponding to the determined molecular modules, wherein each molecular module is synthesized from one or more unit modules; and
[0046] The obtained unit modules are synthesized to generate the combination corresponding to the information to be stored.
[0047] In some embodiments, the determined molecular module comprises at least one of a DNA fragment and an RNA fragment, the unit module comprises a nucleotide,
[0048] Synthesizing the obtained unit modules to generate the composition corresponding to the information to be stored includes:
[0049] The composition is synthesized directly starting from the obtained nucleotides, wherein at least some fragments of the composition are consistent with the determined molecular module.
[0050] In some embodiments, generating a composition based on the determined molecular module so that the composition corresponds to the information to be stored comprises:
[0051] forming terminal connections corresponding to a preset sequence at the connection ends of the determined molecular modules; and
[0052] The molecular modules formed with corresponding terminal portions are mixed to produce a composition corresponding to the information to be stored.
[0053] In some embodiments, the molecular fragment serving as the terminal portion is a part of the corresponding molecular module; or
[0054] The molecular fragments serving as terminal parts are added to the corresponding molecular modules after the molecular modules are determined.
[0055] In some embodiments, mixing the molecular modules with corresponding terminal portions to produce a composition corresponding to the information to be stored comprises at least one of the following:
[0056] Using a ligase to combine the determined molecular modules in the predetermined order;
[0057] Combining the determined molecular modules in the preset order using connectors disposed at ends of the molecular modules; and
[0058] The polymerase chain reaction is used to combine the determined molecular modules in the predetermined order.
[0059] In some embodiments, the molecular module includes at least one of deoxyribonucleic acid, ribonucleic acid, non-natural nucleotides, modified nucleotides, artificially synthesized nucleotides, peptides, organic polymers, organic small molecules, carbon nanomaterials, inorganic substances, and spaced molecular fragments.
[0060] In some embodiments, at least one of sequence distribution, sequence length, secondary structure, crystalline or amorphous nature, and morphological morphology of the molecular modules is used to distinguish between the various molecular modules.
[0061] In some embodiments, the edit distance between different molecular modules is greater than or equal to a preset distance threshold.
[0062] According to another aspect of the embodiments of the present disclosure, a method for storing information in a molecule is also provided, comprising:
[0063] Acquire information to be stored, wherein the information to be stored has one or more bit groups, the position of each bit group in the information to be stored is represented by a first address, the value of each bit group is represented by a first content, and each bit group has one or more bits;
[0064] Determining one or more target bit groups according to the distribution of each first content in the information to be stored;
[0065] determining a molecule module corresponding to each of the one or more target bit groups, wherein the molecule module includes a third molecule module, and the third molecule module is configured to represent a first address of the corresponding target bit group; and
[0066] A composition is generated based on the determined molecular modules, so that the composition corresponds to the information to be stored.
[0067] In some embodiments, obtaining the information to be stored includes:
[0068] Separating the initial information to be stored to generate one or more segments of information to be stored, wherein the number of bits of each segment of information to be stored is smaller than the number of bits of the initial information to be stored, and the number of bits of each segment of information to be stored is equal to or different from each other; or
[0069] Multiple segments of initial information to be stored are merged to generate information to be stored, wherein the number of bits of the information to be stored is greater than the number of bits of each segment of initial information to be stored.
[0070] In some embodiments, according to the distribution of each first content in the information to be stored, determining one or more target bit groups includes:
[0071] Counting the occurrence frequency of each first content in the information to be stored, and determining a highest frequency content with the highest occurrence frequency; and
[0072] The bit group whose value is not the highest frequency content is determined as the target bit group.
[0073] In some embodiments, the third molecular module includes one or more sub-molecular modules.
[0074] Determining a molecule module corresponding to each of the one or more target bit groups comprises:
[0075] Divide the first address of the target bit group into one or more address bit groups, the position of each address bit group in the first address of the target bit group is represented by the second address, the value of each address bit group is represented by the second content, and each address bit group has one or more bits;
[0076] Determining a sub-molecule module corresponding to at least one of the one or more address bit groups, wherein the sub-molecule module includes a first sub-molecule module, and the first sub-molecule module is configured to represent both a second address and a second content of the corresponding address bit group; and
[0077] A third molecular module is determined based on a combination of the determined sub-molecular modules.
[0078] In some embodiments, determining a sub-molecule module corresponding to at least one of the one or more address bit groups comprises:
[0079] determining whether a second address bit group among the one or more address bit groups satisfies a preset relationship with the first address bit group, wherein a second address of the second address bit group is different from a second address of the first address bit group; and
[0080] When a preset relationship is satisfied between the second address bit group and the first address bit group, a sub-molecule module corresponding to the second address bit group is determined, wherein the sub-molecule module includes a second sub-molecule module, and the second sub-molecule module is configured to represent the preset relationship between the corresponding second address bit group and the first address bit group.
[0081] In some embodiments, the second sub-molecule module comprises:
[0082] The stroke increment module, wherein the sixth preset number a 6 The corresponding stroke increment module is configured to indicate that the second address bit group of the second bit group and the first address bit group of the first bit group satisfy the following preset relationship: the first address bit group and a 6 The sum is the second address bit group, and the first content of the second bit group is the same as the first content of the first bit group.
[0083] In some embodiments, the molecule module further includes a fourth molecule module, and the fourth molecule module is configured to represent the first content of the corresponding target bit group.
[0084] In some embodiments, determining a molecule module corresponding to each of the one or more target bit groups comprises:
[0085] Converting at least part of the information to be stored from a first base to a binary base;
[0086] dividing at least part of the converted information to be stored into one or more bit groups; and
[0087] A molecule module corresponding to at least one bit group among the one or more bit groups obtained after the conversion is determined.
[0088] In some embodiments, the first system is binary, the binary system is decimal, and converting at least part of the information to be stored from the first system to the binary system comprises:
[0089] According to x i+1 =2x i +b i+1 Perform an iterative calculation to determine at least part of the information to be stored in decimal, where x 0 is the preset initial value, b i+1 is the value of the i+1 bit from left to right in the at least part of the binary information to be stored, i is an integer greater than or equal to 0, and when i+1 is equal to the total number of bits of the at least part of the binary information to be stored, the corresponding x i+1 The at least part of the information to be stored is in decimal.
[0090] In some embodiments, the first system is binary, the binary system is decimal, and converting at least part of the information to be stored from the first system to the binary system comprises:
[0091] according to Calculate the at least part of the information to be stored in decimal, wherein a n is the value of the n+1th bit in the at least part of the binary information to be stored, and i+1 is the total number of bits of the at least part of the binary information to be stored.
[0092] In some embodiments, the first system is binary, the binary system is an integer multiple of binary, and converting at least part of the information to be stored from the first system to the binary system includes:
[0093] Determining whether it is necessary to fill in the at least part of the information to be stored at a preset position according to the total number of bits of the binary number and the at least part of the information to be stored;
[0094] If so, padding the at least part of the information to be stored according to the binary number to obtain target information to be stored;
[0095] If not, directly taking the at least part of the information to be stored as the target information to be stored;
[0096] Dividing at least part of the binary information to be stored into one or more segments of sub-information according to the binary number, wherein the number of bits of each segment of sub-information is an integer multiple of the binary number with respect to the binary number;
[0097] Each piece of binary sub-information is converted into a corresponding value of the second binary state to generate the at least part of the second binary information to be stored.
[0098] In some embodiments, the determined relative positions of the molecular modules in the composition are consistent with the relative positions of the corresponding bit groups in the information to be stored.
[0099] In some embodiments, generating a composition based on the determined molecular module so that the composition corresponds to the information to be stored comprises:
[0100] Acquire unit modules corresponding to the determined molecular modules, wherein each molecular module is synthesized from one or more unit modules; and
[0101] The obtained unit modules are synthesized to generate the combination corresponding to the information to be stored.
[0102] In some embodiments, the determined molecular module comprises at least one of a DNA fragment and an RNA fragment, the unit module comprises a nucleotide,
[0103] Synthesizing the obtained unit modules to generate the composition corresponding to the information to be stored includes:
[0104] The composition is synthesized directly starting from the obtained nucleotides, wherein at least some fragments of the composition are consistent with the determined molecular module.
[0105] In some embodiments, generating a composition based on the determined molecular module so that the composition corresponds to the information to be stored comprises:
[0106] forming terminal connections corresponding to a preset sequence at the connection ends of the determined molecular modules; and
[0107] The molecular modules formed with corresponding terminal portions are mixed to produce a composition corresponding to the information to be stored.
[0108] In some embodiments, the molecular fragment serving as the terminal portion is a part of the corresponding molecular module; or
[0109] The molecular fragments serving as terminal parts are added to the corresponding molecular modules after the molecular modules are determined.
[0110] In some embodiments, mixing the molecular modules with corresponding terminal portions to produce a composition corresponding to the information to be stored comprises at least one of the following:
[0111] Using a ligase to combine the determined molecular modules in the predetermined order;
[0112] Combining the determined molecular modules in the preset order using connectors disposed at ends of the molecular modules; and
[0113] The polymerase chain reaction is used to combine the determined molecular modules in the predetermined order.
[0114] In some embodiments, the molecular module includes at least one of deoxyribonucleic acid, ribonucleic acid, non-natural nucleotides, modified nucleotides, artificially synthesized nucleotides, peptides, organic polymers, organic small molecules, carbon nanomaterials, inorganic substances, and spaced molecular fragments.
[0115] In some embodiments, at least one of sequence distribution, sequence length, secondary structure, crystalline or amorphous nature, and morphological morphology of the molecular modules is used to distinguish the various molecular modules.
[0116] In some embodiments, the edit distance between different molecular modules is greater than or equal to a preset distance threshold.
[0117] According to another aspect of the embodiments of the present disclosure, there is provided a device for storing information in a molecule, comprising:
[0118] a memory having instructions stored therein; and
[0119] A processor coupled to the memory implements the method for storing information in a molecule as described above when the instructions are executed by the processor.
[0120] According to another aspect of the embodiments of the present disclosure, a system for storing information in a molecule is provided, comprising:
[0121] an acquisition unit, configured to acquire information to be stored, wherein the information to be stored has one or more bit groups, the position of each bit group in the information to be stored is represented by a first address, the value of each bit group is represented by a first content, and each bit group has one or more bits;
[0122] an encoding unit configured to determine a molecule module corresponding to at least one of the one or more bit groups, wherein the molecule module comprises a first molecule module, and the first molecule module is configured to represent both a first address and a first content of the corresponding bit group; and
[0123] The writer unit is configured to generate a composition based on the determined molecular modules so that the composition corresponds to the information to be stored.
[0124] According to another aspect of the present disclosure, a system for storing information in a molecule is provided, comprising:
[0125] an acquisition unit, configured to acquire information to be stored, wherein the information to be stored has one or more bit groups, the position of each bit group in the information to be stored is represented by a first address, the value of each bit group is represented by a first content, and each bit group has one or more bits;
[0126] an encoding unit configured to determine one or more target bit groups according to the distribution of each first content in the information to be stored; and determine a molecular module corresponding to each target bit group in the one or more target bit groups, wherein the molecular module includes a third molecular module, and the third molecular module is configured to represent a first address of the corresponding target bit group; and
[0127] The writer unit is configured to generate a composition based on the determined molecular modules so that the composition corresponds to the information to be stored.
[0128] According to another aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which instructions are stored. When the instructions are executed by a processor, the method for storing information in a molecule as described above is implemented.
[0129] According to yet another aspect of the embodiments of the present disclosure, a computer program product is provided. The computer program product includes instructions. When the instructions are executed by a processor, the method for storing information in a molecule as described above is implemented.
[0130] In the disclosed embodiments, by converting the mapping relationship between the information to be stored and the molecular module into the mapping relationship between the data set extracted according to the information to be stored and the molecular module, the direct correspondence between the binary information to be stored and the molecular module in the current molecular storage coding is changed, and the representation of part of the information can be compressed or omitted according to the characteristics of the information to be stored, or one molecular module can be used to represent multiple types of information instead of just a single type of information, thereby achieving a large-scale reduction in the required molecular modules, improving the coding efficiency, improving the writing speed, and reducing the cost of molecular storage.
[0131] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0132] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0133] Figure 1 is a flow chart of a method for storing information in a molecule according to an exemplary embodiment of the present disclosure;
[0134] FIG. 2( a ) is a schematic diagram of a first molecular module according to a specific example of the present disclosure and a schematic diagram of using the first molecular module to represent information “1010” to be stored;
[0135] FIG2( b ) is a schematic diagram of a first molecular module in another specific example according to the present disclosure;
[0136] FIG3( a) is a schematic diagram of a second molecular module according to some specific examples of the present disclosure;
[0137] FIG3( b ) is a schematic diagram of using a second molecular module to represent a portion of information “101110” to be stored according to some specific examples of the present disclosure;
[0138] FIG3( c ) is a schematic diagram of using a second molecular module to represent information “10101” to be stored according to a specific example of the present disclosure;
[0139] FIG4( a ) is a schematic diagram showing a portion of information “0111001110” to be stored using a second molecular module according to a specific example of the present disclosure;
[0140] FIG4( b ) is a schematic diagram of using a second molecular module to represent a portion of information “01110011110” to be stored according to a specific example of the present disclosure;
[0141] FIG4( c ) is a schematic diagram showing a portion of information “011100110” to be stored using a second molecular module according to a specific example of the present disclosure;
[0142] Figure 5 is a flow chart of a method for storing information in a molecule according to another exemplary embodiment of the present disclosure;
[0143] FIG6( a ) is a schematic diagram of information to be stored according to a specific example of the present disclosure;
[0144] FIG6( b ) is a schematic diagram showing the information to be stored in FIG6( a ) by using a third molecular module;
[0145] FIG. 7( a ) is a schematic diagram of a second sub-molecule module according to a specific example of the present disclosure;
[0146] FIG. 7( b ) is a schematic diagram of using a second sub-molecule module to represent information “0110010001” to be stored according to a specific example of the present disclosure;
[0147] FIG. 7( c ) is a schematic diagram of using a second sub-molecule module to represent information “0111010001” to be stored according to a specific example of the present disclosure;
[0148] FIG8( a ) is a schematic diagram showing information to be stored “1001101010” before conversion according to a specific example of the present disclosure;
[0149] FIG8( b ) is a schematic diagram showing information to be stored “1001101010” after conversion according to a specific example of the present disclosure;
[0150] Fig. 9 A schematic diagram of a combined molecular module according to a first specific example of the present disclosure is shown;
[0151] Fig.10 shows a schematic diagram of a combined molecular module according to a second specific example of the present disclosure;
[0152] Fig.11 shows a schematic diagram of a combined molecular module according to a third specific example of the present disclosure;
[0153] Fig.12 shows a schematic diagram of a combined molecular module according to a fourth specific example of the present disclosure;
[0154] Fig.13 shows a schematic diagram of a combined molecular module according to a fifth specific example of the present disclosure;
[0155] Fig.14 shows a schematic diagram of a combined molecular module according to a fifth specific example of the present disclosure;
[0156] Fig.15 shows a schematic diagram of a combined molecular module according to a sixth specific example of the present disclosure;
[0157] Fig.16 A schematic diagram showing a method of generating a composition by a chemical method or an enzymatic method according to a specific example of the present disclosure is shown;
[0158] Fig.17 is a schematic diagram of a device for storing information in a molecule according to an exemplary embodiment of the present disclosure;
[0159] Fig.18 is a schematic diagram of a system for storing information in molecules according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0160] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.
[0161] Unless specifically stated otherwise, the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure.
[0162] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0163] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0164] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0165] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0166] In addition, in the description of the present disclosure, the terms "first", "second", "third", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance and order. Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that such operations be performed in the particular order shown or in a sequential order, or requiring that all illustrated operations be performed to achieve the desired results. In some cases, multitasking and parallel processing can be advantageous.
[0167] In molecular storage technology, for each bit in the information to be stored, different molecular modules can be used to represent its position and value, and these molecular modules can be synthesized or combined to represent the complete information to be stored. It is understandable that as the number of bits of information to be stored increases, the types and number of molecular modules required will also increase significantly, which will result in the consumption of a large number of molecular modules for information storage, and the speed of writing information into the molecules generated by the combination of molecular modules will also be very slow, which will lead to a significant increase in various costs of molecular storage.
[0168] In order to solve the above problems, the present disclosure proposes a method for storing information in molecules. In an exemplary embodiment of the present disclosure, Figure 1 and Figure 5 As shown, methods for storing information in molecules may include:
[0169] Step S100, obtaining information to be stored.
[0170] In production and life, there may be various forms of information, such as text information, picture information, audio information or video information. In order to facilitate the storage of such information, they can first be converted into information in binary coded form using information technology. In the following text, unless otherwise specified, the technical solution of the present disclosure will be described in detail by taking the information to be stored as binary information as an example. However, it can be understood that, according to needs, the information to be stored may also be in other bases, which is not limited here.
[0171] In addition, in some embodiments, the initial information to be stored may be processed in advance to simplify the subsequent storage steps. For example, a longer segment of the initial information to be stored may be pre-divided into multiple shorter segments of the information to be stored. In a specific example, the initial information to be stored may be separated by a fixed-length separation method, that is, the number of bits of each segment of the information to be stored obtained by separation is equal to each other. Alternatively, in another specific example, the initial information to be stored may be separated by a variable-length separation method, that is, each segment of the information to be stored may have a different number of bits.
[0172] In some embodiments, some initial information to be stored may be pre-merged, so that multiple segments of initial information to be stored may be represented by fewer compositions. For example, for multiple segments of initial information to be stored, a corresponding number of compositions are generally required to represent these initial information to be stored. Although the structure of each composition may be relatively simple, it may also lead to a decrease in efficiency. In order to solve the above problem, multiple segments of initial information to be stored may be merged into one segment of information to be stored, and a composition may be used to represent the information to be stored. In this way, even if the structure of the composition may become more complex, the time required to synthesize one composition is often shorter than the time required to synthesize multiple compositions, thereby helping to improve efficiency. It is understandable that multiple segments of initial information to be stored may be synthesized in various ways as needed, as long as the initial information to be stored can be uniquely derived from the final composition.
[0173] Here, the information to be stored may have one or more bit groups, and each bit group may have one or more bits. The position of each bit group in the information to be stored may be represented by a first address, and the value of each bit group may be represented by a first content. In some embodiments, the total number of bits of each bit group divided in the information to be stored may be equal to each other. In other embodiments, as required, the total number of bits of each bit group divided in the information to be stored may also be unequal.
[0174] For example, taking the binary information "1010" as the information to be stored, this information to be stored can be divided into four bit groups, each bit group has only one bit, and the first address of each bit group from left to right can be represented as "0", "1", "2" and "3" respectively (in this article, unless otherwise specified, the positions will be numbered starting from "0"), and accordingly, the first content of each bit group is "1", "0", "1" and "0" respectively; or, this information to be stored can be divided into two bit groups, each bit group has two bits, and the first address of each bit group from left to right can be represented as "0" and "1", respectively, and the first content of each bit group is "10" and "10" respectively; or, this information to be stored can be divided into one bit group, this bit group has four bits, and the first address of this bit group can be represented as "0", and the first content of this bit group is "1010". In some embodiments, the specific method of dividing the bit groups can be determined according to the characteristics of the information to be stored and the types of molecular modules that can be used, so as to improve the coding efficiency of molecular storage, reduce the required molecular modules, speed up writing and reduce storage costs.
[0175] return Figure 1 In an exemplary embodiment of the present disclosure, the method for storing information in a molecule may further include:
[0176] Step S210 , determining a molecular module corresponding to at least one bit group among the one or more bit groups.
[0177] Among them, the molecular module may include a first molecular module, and the first molecular module may be configured to represent both the first address and the first content of the corresponding bit group. In this way, by using the same molecular module to represent both the first address and the first content of a corresponding bit group, compared with using two different molecular modules to represent the first address and the first content of the bit group, the number of molecular modules required to represent a bit group can be effectively reduced, thereby reducing the number of molecular modules required to represent the entire information to be stored. Each bit group here may have only one bit, as described in the specific example below. However, it can be understood that each bit group may also have two or more bits, and the corresponding molecular modules are used to represent the bit groups with various first contents and first addresses, which are not limited here.
[0178] In a specific example, various molecular modules corresponding to the first contents and first addresses of various bits in binary information are listed in the table of FIG. 2(a), in which different molecular modules are represented by graphics with different shapes or fills (i.e., in this article, unless otherwise specified, as long as one of the attributes of the shapes and fills of two graphics used to represent molecular modules is different, the two molecular modules are different). In the table, m represents the first content of each bit group (bit), and its value can be 0 or 1; n represents the first address of each bit group (bit), for example, n represents that the corresponding bit group (bit) is the bit numbered n from left to right in the information to be stored, or the 2 in the binary information. n Bit.
[0179] Based on the table in FIG. 2( a ), when the binary information to be stored is “1010”, the first address in the table can be selected as “2 0 " bit and the first content is "1", indicating that the first address is "2 1 " bit and the first content is "0", indicating that the first address is "2 2 " and the first content "1" and the first address "2 3 " bit and the first content is "0", these molecular modules are connected in a certain order (for example, according to the arrangement order of each bit group (bit) in the information to be stored), so that "1010" is stored in the corresponding molecules, as shown in the figure below the table in Figure 2(a).
[0180] In another specific example, a molecular module corresponding to each bit in the decimal information can also be set. When the information to be stored is decimal information or the information to be stored is converted into decimal information, it can be represented by the molecular module shown in Figure 2(b). In the table, m represents the first content of each bit group (bit), and its value can be 0 to 9; n represents the first address of each bit group (bit), for example, n represents that the corresponding bit group (bit) is the bit numbered n from left to right in the decimal information, or the 10th bit in the decimal information. n Bit. A similar method as described above with reference to FIG. 2(a) can be used to determine the molecular module corresponding to each bit in the decimal information, and the determined molecular modules can be combined to store the information in the molecule, which will not be described in detail here. Compared with the binary-based correspondence shown in FIG. 2(a), the decimal-based correspondence shown in FIG. 2(b) may use fewer molecular modules to represent the information to be stored. For example, from 10 0 Up to 10 9 bits, a total of 100 molecular modules can be used to represent up to 10 10 bits of information, or about 1 gigabyte (GB) of information.
[0181] It is understandable that in some other embodiments, a corresponding molecular module library can be established to use the calling and combination of molecular modules to represent any k-ary information (∑m*k n ), similar to that described above, wherein m represents the first content of each bit, and n represents the first address of each bit in the information to be stored.
[0182] In some embodiments, determining a molecule module corresponding to at least one of the one or more bit groups may include determining a first molecule module corresponding to each of the one or more bit groups.
[0183] In this case, in the molecule used to represent the information to be stored, the number of molecule modules and the number of bit groups (bits) divided in the information to be stored can be consistent. For example, in the molecule corresponding to the information to be stored "1010" shown in Figure 2 (a), each bit group (bit) has its corresponding molecule module combined in the entire molecule.
[0184] However, considering that under normal circumstances, the information to be stored may have multiple bit groups, and the values of the multiple bit groups may include at least two first contents, if the first address and the first content of each bit group need to be represented by a corresponding molecular module, the number of required molecular modules may still be large. In order to further reduce the number of required molecular modules, in other embodiments, determining the molecular module corresponding to at least one bit group in the one or more bit groups may include: determining that a bit group having a value of one first content does not correspond to any molecular module, and determining a first molecular module corresponding to at least one bit group in other bit groups having values of other first contents.
[0185] In other words, one of the multiple different first contents can be represented by default, that is, the first content does not correspond to any molecular module, and the first molecular module is used to represent at least one bit group having other first contents. When restoring the information stored in the molecule, the corresponding bit group having the first content that was defaulted during storage can be supplemented to restore the entire information to be stored.
[0186] In a specific example, in the case of binary information, only the bit group (bit) with the first content of "0" can be represented, while the bit group (bit) with the first content of "1" can be omitted; or only the bit group (bit) with the first content of "1" can be represented, while the bit group (bit) with the first content of "0" can be omitted. For example, the bit group (bit) with which first content is to be defaulted can be determined based on the frequency of occurrence of the first content "0" and "1". In some embodiments, the bit group (bit) with the first content having a higher frequency of occurrence can be omitted to reduce the number of molecular modules in the molecule used to represent the information to be stored.
[0187] In another specific example, in the case of decimal information, the bit group (bit) with the first content of "0" can be defaulted, and the bit groups (bits) with the first content of "1" to "9" can be represented by corresponding molecular modules. Similarly, the bit group (bit) with which first content is to be defaulted can be determined based on the frequency of occurrence of various first contents, for example, the bit group (bit) with the first content with the highest frequency of occurrence can be defaulted to reduce the number of molecular modules in the molecule used to represent the information to be stored. It should be noted that when there are two or more first contents with the highest frequency of occurrence, one of them can be selected as the default.
[0188] Considering that in practical applications, the information to be stored often has more bit groups (bits), if each molecular module corresponding to the bit group (bit) is directly combined together, the molecules obtained after assembly are often very large. Therefore, the corresponding bit groups can also be represented according to certain specific relationships between different bit groups to further reduce the number of molecular modules in the molecules used to represent the information to be stored, improve the writing speed, and reduce the storage cost. In some embodiments, determining the molecular module corresponding to at least one bit group in one or more bit groups may include: determining whether a preset relationship is satisfied between a second bit group in one or more bit groups and a first bit group, wherein the first address of the second bit group is different from the first address of the first bit group; and in the case where the preset relationship is satisfied between the second bit group and the first bit group, determining the molecular module corresponding to the second bit group, wherein the molecular module includes a second molecular module, and the second molecular module is configured to represent the preset relationship between the corresponding second bit group and the first bit group.
[0189] Different preset relationships and corresponding molecular modules can be set according to actual needs, and are not limited here. The following will be described by taking several preset relationships and corresponding second molecular modules as examples.
[0190] In some embodiments, the second molecular module may include a stroke increment module. 1 The corresponding stroke increment module is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: there are continuous a 1 second bit groups, and the first content of each second bit group is the same as the first content of the first bit group, a 1 Is a positive integer.
[0191] As shown in FIG3(a), the second column in the table lists the stroke increment modules corresponding to various first preset numbers (as listed in the first column in the table). In a specific example, assuming that the information to be stored is "101110", if a molecular module is used to represent both the first address and the first content of a bit, then a total of three molecular modules are required to represent the bits numbered 3 to 5 from left to right in the information to be stored "101110", as shown in the first representation at the top in FIG3(b). However, considering that the first content of the bits numbered 3 to 5 from left to right in the information to be stored "101110" is all "1", then the stroke increment module corresponding to the first preset number "2" shown in FIG3(a) can be used to represent the consecutive two bits after the bit numbered "3" at the first address, as shown in the second representation in the middle in FIG3(b). The stroke increment module corresponding to the first preset number "2" can be connected after the molecular module representing the bit with the first address number "3" in the information to be stored "101110", to indicate that there are two consecutive bits with the same first content as the first content of this bit immediately after the bit. In the above specific example, each bit group has only one bit, but it can be understood that the stroke increment module can also be used in a bit group with two or more bits, indicating that there are two consecutive bits immediately after the first bit group. 1 second bit groups, and the first content of each second bit group is the same as the first content of the first bit group, except that the first content here is formed by two or more bits.
[0192] In some embodiments, the second molecular module may include a stroke multiple module, wherein the second preset number a 2 The corresponding stroke multiple module is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: there are continuous (a 2 -1) second bit groups, and the first content of each second bit group is the same as the first content of the first bit group, a 2 is a positive integer greater than 1.
[0193] As shown in FIG. 3(a), the third column in the table lists the stroke multiple modules corresponding to various second preset numbers (as listed in the first column in the table). In a specific example, assuming that the information to be stored is "101110", considering that the first contents of the bits with the first address numbers 3 to 5 from left to right of the information to be stored "101110" are all "1", the stroke multiple module corresponding to the second preset number "3" shown in FIG. 3(a) can also be used to represent it, as shown in the third representation at the bottom as shown in FIG. 3(b). Among them, the stroke multiple module corresponding to the second preset number "3" can be connected to the molecular module representing the bit with the first address number "3" and the first content "1" in the information to be stored "101110", so as to indicate that immediately after this bit, there are continuous "3-1=2" bits with the same first content as the first content of this bit, or in other words, in the information to be stored, the first content with the first address number "3" will be repeated 3 times (including this bit itself). Similarly, in the above specific example, each bit group has only one bit, but it is understood that the run multiple module can also be used in bit groups with two or more bits, indicating that there are continuous (a 2 -1) second bit groups, and the first content of each second bit group is the same as the first content of the first bit group, except that the first content here is formed by two or more bits.
[0194] In some embodiments, the second molecular module may include a stroke flip module, wherein the third preset number a 3 The corresponding stroke flip module is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: each bit in the first bit group and the second bit group has only two values of 0 or 1, the second bit group has only two bits with different values, and there are continuous a 3 The first digit of the second digit group is different from the last digit of the first digit group. 3 Is a positive integer.
[0195] As shown in FIG3(a), the fourth column in the table lists the travel flip modules corresponding to various third preset numbers (as listed in the first column in the table). In a specific example, as shown in FIG3(c), assuming that the information to be stored is "10101", that is, immediately after the bit with the first address number "0" of the information to be stored, there are two consecutive second bit groups, wherein the value of the first bit in the second bit group is different from the value of the last bit of the previous bit group, and the values of the two bits in the second bit group are different, so the travel flip module corresponding to the third preset number "2" in FIG3(a) can be connected after the first molecular module representing the bit with the first address number "0" and the first content "1" to represent the information to be stored "10101".
[0196] In some embodiments, the second molecular module may include a run repetition module, wherein the run repetition module is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: the first content of the second bit group is the same as the first content of the first bit group.
[0197] In a specific example, as shown in FIG4(a), it is assumed that the information to be stored is "0111001110". Here, the first address bits 1 to 3 in the information to be stored are all "1", and the first content of these three bits can be represented by a combination of a molecular module representing that the first address is "1" and the first content is "1" and a stroke multiple module corresponding to the second preset number "3" in FIG3(a). In addition, the first content of the bits whose first addresses are 6 to 8 is also "1", which is the same as the first content of the bits whose first addresses are 1 to 3. At this time, the combination of a molecular module representing that the first address is 6 (used to indicate the starting position of repetition) and a stroke repetition module can be used to represent the bits whose first addresses are 6 to 8 of the information to be stored.
[0198] It is understandable that in different embodiments, different stroke repetition modules may be used to indicate the repetition of the first content of different bits or bit groups. In addition, the position of the repeated bit or bit group indicated by the stroke repetition module in the information to be stored may be in front of the bit or bit group represented by the stroke repetition module, or may be behind the bit or bit group represented by the stroke repetition module. In addition, the stroke repetition module may indicate the repetition of various types of molecular modules, for example, it may indicate not only the repetition of the first molecular module indicating both the first address and the first content of the bit or bit group, but also the repetition of the second molecular module indicating the preset relationship between different bit groups, and may also indicate the repetition of other types of molecular modules that may exist, etc., without limitation here. In addition, the bit group represented by the stroke repetition module may have only one bit, or may have multiple bits, without limitation here.
[0199] In some embodiments, the second molecular module may include a bit-increase module and / or a bit-decrease module. Here, the bit-increase module and / or the bit-decrease module may be used in combination with other molecular modules such as a stroke repetition module.
[0200] Among them, with the fourth preset number a 4 The corresponding bit increment module is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: the second bit group has only one bit, and there are continuous a bits immediately after the first bit group. 4 The second bit group, and the value of the second bit group is the same as the value of the last bit of the first bit group, a 4 Is a positive integer.
[0201] In a specific example, as shown in FIG4(b), assuming that the information to be stored is "01110011110", the first contents of the bits with first addresses 1 to 3 are all "1", and the first contents of the bits with first addresses 6 to 9 are also all "1". For the four bits with first addresses 6 to 9, based on FIG4(a), a bit increase module corresponding to the fourth preset number "1" can be added after the stroke repetition module, indicating that the last bit of the previous bit group is increased by one more bit.
[0202] In addition, with the fifth preset number a 5 The corresponding bit reduction module is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: the first bit group is a continuous bit from the back to the front. 5 The ones digit is determined as the second digit group, and the second digit group in the first digit group is removed, a 5 is a positive integer and a 5 Less than or equal to the total number of digits in the first group.
[0203] In a specific example, as shown in FIG4(c), assuming that the information to be stored is "011100110", compared with the information to be stored in FIG4(a) being "0111001110", the bit with the first address "8" is removed. Therefore, based on FIG4(a), a bit reduction module corresponding to the fifth preset number "1" can be added after the stroke repetition module, indicating that the last bit of the previous first bit group is removed.
[0204] In some embodiments, the information to be stored may be converted into a base system as needed, and a molecular module corresponding to at least one of the bit groups may be determined based on the converted information to be stored. Specifically, determining the molecular module corresponding to at least one of the one or more bit groups may include: converting at least part of the information to be stored from a first base system to a binary base system; dividing at least part of the converted information to be stored into one or more bit groups; and determining the molecular module corresponding to at least one of the one or more bit groups obtained after the conversion. For example, the binary information to be stored may be converted into a decimal base system, etc., to reduce the required molecular modules.
[0205] In a specific example, the conversion between the first base and the binary base can be performed based on a common base conversion method. Here, the first base or the binary base can be binary, octal, decimal, hexadecimal, sexagenary, or hundred bases.
[0206] Specifically, if the first system is binary and the binary system is decimal, converting at least part of the information to be stored from the first system to the binary system may include: Calculate at least part of the information to be stored in decimal, where a nis the value of the n+1th bit in at least part of the binary information to be stored, and i+1 is the total number of bits of at least part of the binary information to be stored.
[0207] For example, for a piece of binary information to be stored x(b)=a i a i-1 …a 1 a 0 , we can use x(d)=2 0 *a 0 +2 1 *a 1 +…+2 i-1 *a i-1 +2 i *a o To convert it into the decimal information to be stored x(d). For example, using the above method, the binary information to be stored "1001101010" can be converted into the decimal "618".
[0208] In other embodiments, if the first system is binary and the binary system is an integer multiple of binary, converting at least part of the information to be stored from the first system to the binary system may include: determining whether it is necessary to pad at least part of the information to be stored at a preset position based on the total number of bits of the binary system and at least part of the information to be stored; if so, padding at least part of the information to be stored based on the binary system to obtain target information to be stored; if not, directly using at least part of the information to be stored as the target information to be stored; dividing at least part of the binary information to be stored into one or more sub-information segments according to the binary system, wherein the number of bits of each sub-information segment is an integer multiple of the binary system with respect to the binary system; and converting each segment of the binary sub-information into a corresponding value of the binary system to generate at least part of the binary information to be stored.
[0209] For example, assuming that the first system is binary and the second system is octal, then for a piece of binary information to be stored x(b)=a i a i-1 …a 1 a 0, if the number of bits i+1 is an integer multiple of 3, x(b) can be directly divided into several sub-information segments, each of which is three bits. Or if the number of bits i+1 is not an integer multiple of 3, the corresponding number of bits can be added at the head, tail or middle preset position of the binary information to be stored x(b), so that the number of bits of the binary information to be stored after the addition is an integer multiple of 3, and then the information to be stored after the addition is divided into several sub-information segments, each of which is three bits. Then, each sub-information segment is converted into a corresponding value from 0 to 7, so that the binary information to be stored is converted into the octal information to be stored x(o). For example, by using the above method, by adding two bits of "0" to the head of the binary information to be stored "1001101010", it can be converted into the octal "1152".
[0210] Assuming the first system is binary and the second system is hexadecimal, then for a piece of binary information to be stored x(b)=a i a i-1 …a 1 a 0 , if the number of bits i+1 is an integer multiple of 4, then x(b) can be directly divided into several sub-information segments, each of which is four bits. Or if the number of bits i+1 is not an integer multiple of 4, then the corresponding number of bits can be added at the head, tail or middle preset position of the binary information to be stored x(b), so that the number of bits of the binary information to be stored after the addition is an integer multiple of 4, and then the information to be stored after the addition is divided into several sub-information segments, each of which is four bits. Then, each sub-information segment is converted into a corresponding value from 0 to g, so that the binary information to be stored is converted into the hexadecimal information to be stored x(h). For example, in the above manner, by adding two bits "0" to the head of the binary information to be stored "1001101010", it can be converted into the hexadecimal "26a".
[0211] Similarly, for the binary information to be stored "1001101010", it can also be converted into the sixty-four-digit information to be stored "({9}{42}) 64 " or the information to be stored in 100-digit format "({6}{18}) 100 "wait.
[0212] In another specific example, other conversion methods can also be used to convert between different bases. For example, the information to be stored can be converted based on a one-to-one conversion relationship to reduce the number of molecular modules required in the storage process. In some embodiments, a linear conversion method can be used to perform base conversion. For example, an iterative calculation can be performed according to the following formula to convert at least a portion of the information to be stored from binary to other bases:
[0213] x i+1 =ax i +b i+1 ,
[0214] Where a is the preset conversion coefficient, x 0 is a preset initial value, which can be determined as needed. In a specific example, the preset conversion coefficient a=2, the preset initial value x 0 =1, so that the final converted x i+1 As small as possible to save the number of molecular modules required for storage. i+1 is the value of the i+1 bit from left to right in the binary information (as mentioned above, i starts from 0 and increases, and i is an integer). When i+1 is equal to the total number of bits of binary information to be stored, the corresponding x i+1 is the information to be stored in the target system. In a specific example, the target system may be decimal, or, after the binary information to be stored is converted into decimal based on the above formula, the information to be stored may be further converted into other systems based on the conversion relationship between decimal and other systems. In addition, the preset conversion coefficient and / or the preset initial value in the above formula may be changed as needed, and is not limited here.
[0215] For example, when the binary information to be stored "1001101010" is converted into decimal, when the preset conversion coefficient is a=2, the specific process is as follows:
[0216] x 1 =2x 0 +b 1 =3,
[0217] x 2 =2x 1 +b 2 =6,
[0218] x 3 =2x 2 +b 3 =12,
[0219] x 4 =2x 3 +b 4 =25,
[0220] x 5 =2x 4 +b 5 =51,
[0221] x 6 =2x 5 +b 6 =102,
[0222] x 7 =2x 6 +b 7 =205,
[0223] x 8 =2x 7 +b 8 =410,
[0224] x 9 =2x 8 +b 9 =821,
[0225] x 10 =2x 9 +b 10 =1642.
[0226] That is, by adopting the above iterative calculation method, the binary information to be stored "1001101010" is converted into the decimal "1642". Then, the method described above can be used to determine one or more molecular modules corresponding to each bit group in "1642", which will not be repeated here.
[0227] In addition, when restoring the stored decimal information, it can be implemented according to the restoration method corresponding to the conversion method. For example, based on the above conversion method, when restoring "1642", it can be carried out according to the following process:
[0228] (x 9 , b 10 )=([x 10 / a],x 10 mod a) = (821, 0),
[0229] (x 8 , b 9 )=([x 9 / a],x 9 mod a)=(410,1,
[0230] (x 7 , b 8 )=([x 8 / a],x 8 mod a)=(205,0),
[0231] (x 6 , b 7 )=([x 7 / a],x 7 mod a)=(102,1),
[0232] (x 5 , b6 )=([x 6 / a],x 6 mod a)=(51,0),
[0233] (x 4 , b 5 )=([x 5 / a],x 5 mod a)=(25,1),
[0234] (x 3 , b 4 )=([x 4 / a],x 4 mod a)=(12,1),
[0235] (x 2 , b 3 )=([x 3 / a],x 3 mod a)=(6,0),
[0236] (x 1 , b 2 )=([x 2 / a],x 2 mod a)=(3,0),
[0237] (x 0 , b 1 )=([x 1 / a],x 1 mod a)=(1,1),
[0238] Finally, the restored binary information is "1001101010".
[0239] It is understandable that in some other embodiments, other methods can be used to convert between bases, as long as the information to be stored before and after the conversion is one-to-one corresponding, and no limitation is made here. In addition, the conversion of bases is not limited to between binary and decimal, but the bases before and after the conversion can be determined as needed.
[0240] In another exemplary embodiment of the present disclosure, Figure 5 As shown, methods for storing information in molecules may include:
[0241] Step S221: determine one or more target bit groups according to the distribution of each first content in the information to be stored.
[0242] In a specific example, determining one or more target bit groups based on the distribution of each first content in the information to be stored may include: counting the frequency of occurrence of each first content in the information to be stored, and determining a highest frequency content with the highest frequency of occurrence; and determining a bit group whose value is not the highest frequency content as a target bit group.
[0243] In this way, bit groups with first contents with a low frequency of occurrence can be used as target bit groups as much as possible, and these target bit groups are represented by corresponding molecular modules in subsequent steps, thereby saving molecular modules consumed in the process of storing information, and also helping to increase the speed of writing the information to be stored into the molecule, thereby reducing the cost of molecular storage. It should be noted that if there are two different first contents in the information to be stored, and their frequencies of occurrence are the highest, then the bit group with only one of the first contents is selected as the default bit group (that is, not corresponding to any molecular module), and the bit group with the remaining first content and other bit groups with first contents with a lower frequency of occurrence are used as target bit groups, and these target bit groups are represented by corresponding molecular modules in subsequent steps.
[0244] return Figure 5 , the method for storing information in a molecule may further comprise:
[0245] Step S222 : determining a molecule module corresponding to each target bit group in the one or more target bit groups, wherein the molecule module includes a third molecule module, and the third molecule module is configured to represent a first address of the corresponding target bit group.
[0246] In some embodiments, the third molecular module may be composed of one or more molecular modules. For example, in a specific example, each first address may be regarded as a "to be stored information", and based on the following example, Figure 1 The method described above determines one or more molecular modules corresponding to the first address, and determines a combination of the one or more molecular modules as a third molecular module.
[0247] Specifically, the third molecular module used to represent the first address of the target bit group may include one or more first sub-molecular modules, and determining the molecular module corresponding to each target bit group in the one or more target bit groups may include: dividing the first address of the target bit group into one or more address bit groups, the position of each address bit group in the first address of the target bit group is represented by the second address, the value of each address bit group is represented by the second content, and each address bit group has one or more bits; determining a sub-molecular module corresponding to at least one address bit group in the one or more address bit groups, wherein the sub-molecular module includes a first sub-molecular module, and the first sub-molecular module is configured to represent both the second address and the second content of the corresponding address bit group; and determining the third molecular module based on the combination of the determined sub-molecular modules. When a first address is regarded as a "to be stored information", the first sub-molecular module can be regarded as equivalent to Figure 1 In addition, it can be understood that when representing the first address, the corresponding molecular module can also be determined based on the preset relationship between different address bit groups in the first address, that is, the various "second molecular modules" described above can also be used to represent the first address.
[0248] In a specific example, assuming that the information to be stored is as shown in FIG6(a), the bit group (bit) with the first content "1" with the lowest frequency of occurrence can be selected as the target bit group, and the first address of the target bit group can be saved. Here, the first addresses to be saved include "4", "5371" and "10 9 ". As shown in FIG6(b), the various molecular modules shown in FIG2(b) can be used to represent the three addresses to form three corresponding molecular module chains. Furthermore, since there are only two different first contents, as long as the first address of the bit group of one of the first contents is determined, the first address of the bit of the other first content can be determined, so it is not necessary to set a molecular module corresponding to any of the first contents.
[0249] In addition, in some embodiments, if the occurrence frequencies of "0" and "1" in the information to be stored are both 50%, then the bit group with the first content of "0" can be used as the target bit group, and its first address can be saved. Alternatively, the bit group with the first content of "1" can be used as the target bit group, and its first address can be saved.
[0250] It is understandable that if the occurrence frequencies of "0" and "1" in the information to be stored are both 50%, then the number of molecular modules saved by determining the target bit group based on the first content being one of "0" and "1" and storing the first address of the target bit group will be limited. Although the occurrence frequencies of "0" and "1" are the same, considering that the probability of the occurrence frequencies of various combinations of "0" and "1" being the same at the same time is low, it can be considered that each bit group contains two or more bits to find the bit group with a lower occurrence frequency, thereby reducing the number of required molecular modules as much as possible.
[0251] For example, in the binary information to be stored "100110001110", the frequencies of occurrence of "0" and "1" are the same, both 50%, but the frequencies of occurrence of the bit group "10", the bit group "01", the bit group "00" and the bit group "11" are not all the same, but are 50%, 16.67%, 16.67% and 16.67% respectively. At this time, the bit groups with the first contents of "01", "00" and "11" can be determined as target bit groups, and the first addresses of these target bit groups are stored. At the same time, since there are four different first contents, it is also necessary to set molecular modules corresponding to at least three first contents to distinguish different first contents. Here, the molecular module can also include a fourth molecular module, and the fourth molecular module can be configured to represent the first content of the corresponding target bit group. For example, the fourth molecular module representing the first content "01", "00" and "11" can be connected to at least one of the front end, middle end and end of the molecular module representing the first address.
[0252] In this way, by dividing the information to be stored into multiple bit groups, counting the frequency of occurrence of each bit group to determine the target bit group, and determining the molecular module corresponding to the target bit group, the consumption of molecular modules can be further reduced, the speed of writing the information to be stored into the molecule can be increased, and the cost can be reduced. Among them, the specific division method of the bit groups in the information to be stored can be determined according to factors such as the characteristics of the information to be stored, so as to reduce the required molecular modules as much as possible.
[0253] In addition, in some embodiments, after the target bit group is determined, some conversions can be performed on the first address of the target bit group to reduce the maximum value of the first address to be represented. For example, for a total of 16 bits of information to be stored "1001110000110110", the first addresses of the bits with a value of "1" from left to right are "0", "3", "4", "5", "10", "11", "13", "14" respectively, and the middle address of the 16 bits of information to be stored is "16 / 2=8", then the above first address sequence can be rewritten as "0", "3", "4", "5", "6", "5", "3", "2", that is, for the first address less than the middle address "8", its value remains unchanged, and for the first address greater than the middle address "8", its value is converted into the difference between the number of bits and the first address, so that the maximum value of the converted first address is 8, thereby reducing the number of numerator modules required to represent all possible first addresses. Furthermore, the idea of circular segmentation can be adopted to perform similar operations as above on the first address sequence A: "0", "3", "4", "5" and the first address sequence B: "10", "11", "13", "14", so that the possible maximum first address value is further converted to "16 / 4=4". After the conversion, a total of four first address sequences can be obtained, namely A1: "0", "3", "4", A2: "8-5=3", B1: "8-6=2", "8-5=3" and B2: "3", "2".
[0254] Further, in some embodiments, determining a sub-molecule module corresponding to at least one address bit group among one or more address bit groups may include: determining whether a preset relationship is satisfied between a second address bit group among one or more address bit groups and a first address bit group, wherein the second address of the second address bit group is different from the second address of the first address bit group; and in the case where the preset relationship is satisfied between the second address bit group and the first address bit group, determining a sub-molecule module corresponding to the second address bit group, wherein the sub-molecule module includes a second sub-molecule module, and the second sub-molecule module is configured to represent the preset relationship between the corresponding second address bit group and the first address bit group.
[0255] In some embodiments, as described above, if a first address is regarded as a "to-be-stored information", then the "second sub-molecule module" here is equivalent to the "second molecule module" described above.
[0256] In addition, in some embodiments, the second sub-molecule module may include a stroke increment module, wherein the sixth preset number a 6 The corresponding stroke increment module is configured to indicate that the second address bit group of the second bit group and the first address bit group of the first bit group satisfy the following preset relationship: the first address bit group and a 6The sum is the second address bit group, and the first content of the second bit group is the same as the first content of the first bit group.
[0257] In a specific example, Figure 7(a) shows a schematic diagram of various stroke increment modules, wherein the first column represents the sixth preset number, the second column represents the increment of the second bit group relative to the first bit group, the third column represents the increment of the third bit group relative to the second bit group, and the fourth column represents the increment of the fourth bit group relative to the third bit group. As shown in FIG7(b), assuming that the information to be stored is "0110010001", the bit group with the first content "1" is determined as the target bit group, then the first address of the first target bit group is "1", the first address of the second target bit group is the first address of the first target bit group plus "1", the first address of the third target bit group is the first address of the second target bit group plus "3", and the first address of the fourth target bit group is the first address of the third target bit group plus "4". Therefore, the information to be stored "0110010001" can be represented by a combination of the molecular module representing the first target bit group, the molecular module representing the second target bit group with a first address increment of "1" in FIG7(a), the molecular module representing the third target bit group with a first address increment of "3", and the molecular module representing the fourth target bit group with a first address increment of "4", as shown in FIG7(b).
[0258] It is understandable that the various molecular modules described herein can be used in combination, as shown in Figure 7(c). Alternatively, different molecular modules can be used to represent the same piece of information to be stored as required, as shown in Figure 3(b).
[0259] In some embodiments, the corresponding information to be stored may also be represented in combination with the first address of at least one target bit group and the base conversion of the information to be stored. Determining the molecular module corresponding to each target bit group in the one or more target bit groups may include: converting at least part of the information to be stored from a first base to a binary base; dividing at least part of the converted information to be stored into one or more bit groups; and determining the molecular module corresponding to at least one bit group in the one or more bit groups obtained after the conversion.
[0260] In a specific example, as shown in FIG8(a) and FIG8(b), it is assumed that a portion of the information to be stored is "1001101010" (from the first address 100 to 109). In a storage method shown in FIG8(a), the first addresses "100", "103", "104", "106" and "108" of the bits with the first content "1" in the information to be stored can be represented by five molecular module chains respectively. In a storage method shown in FIG8(b), the portion of the information to be stored can be first converted into decimal, and then the starting position (first address) "100" of the portion of the information to be stored and the decimal number obtained after the conversion are stored to reduce the required molecular modules.
[0261] Further, in some embodiments, for information to be stored having a large number of bit groups (bits), it can also be divided into several sub-information. For each sub-information, the corresponding molecular module can be determined by the method described above, or in other words, each sub-information can be regarded as a "to be stored information", and the molecular module corresponding to this "to be stored information" can be determined in the manner described above. Further, a specific molecular module can be added to represent the molecular address of each sub-information in the entire information to be stored to distinguish different sub-information. For example, 1024 molecular addresses can be used to divide 1TB of information to be stored into multiple sub-information of 1 GB each, and each sub-information can be represented by the molecular module described above (in a specific example, such as the molecular module shown in Figure 2 (b)), and then combined with the added molecular module for representing the molecular address of each sub-information, so as to determine the molecule corresponding to the entire information to be stored.
[0262] In some embodiments, a reference code may also be set, for example, the 1001st, 1002nd and 1003th bits of the information to be stored may be referenced to the 1000th bit and represented as the 1st, 2nd and 3rd bits, respectively. In this way, when molecular modules are used for storage, the molecular module representing the reference code "1000" may be combined with the molecular modules representing the 1st, 2nd and 3rd bits, respectively, to represent the corresponding information to be stored, thereby further reducing the amount of molecular modules used, increasing the writing speed, and reducing the cost.
[0263] return Figure 1 and Figure 5 , the method for storing information in a molecule may further comprise:
[0264] Step S300: generating a composition based on the determined molecular modules, so that the composition corresponds to the information to be stored.
[0265] In some embodiments, the determined molecular modules can be directly obtained and combined in a preset order. In other embodiments, considering that the molecular modules can be synthesized from more basic unit modules (for example, a DNA fragment as a molecular module can be synthesized from one or more nucleotides as unit modules), and the types of unit modules themselves can usually be fewer, and the acquisition, transportation and storage of such unit modules may be more convenient, it is also possible to obtain unit modules corresponding to the various determined molecular modules, rather than directly obtaining the molecular modules themselves, and synthesizing from the unit modules to generate a composition corresponding to the information to be stored. Among them, the relative position of the determined molecular modules in the composition can be consistent with the relative position of the corresponding bit group in the information to be stored.
[0266] In the embodiments of the present disclosure, the molecular modules may include at least one of deoxyribonucleic acid (DNA), ribonucleic acid (RNA), non-natural nucleotides, modified nucleotides, artificially synthesized nucleotides, peptides, organic polymers, organic small molecules, carbon nanomaterials, inorganic substances, and molecular fragments arranged at intervals. When storing information, it involves the combination of different molecular modules, and these molecular modules can be combined together in the form of covalent bonds, ionic bonds, hydrogen bonds, intermolecular forces, hydrophobic forces, base complementary pairing, etc.
[0267] Among the above molecules, the properties of DNA (deoxyribonucleic acid) molecules are more suitable as molecular modules for molecular storage. First, the storage density of DNA molecules can theoretically reach 106 to 107 times that of traditional storage media; second, DNA molecules have very strict base pairing principles; third, DNA molecules are also very stable and can be preserved for more than a thousand years under dry and low-temperature conditions.
[0268] Therefore, DNA molecules can be preferably used to store information to reduce the cost of data storage operation and maintenance by orders of magnitude. In addition, DNA storage also has great advantages over traditional storage methods in terms of carbon emissions and energy consumption, data security, portability, etc.
[0269] In some embodiments, at least one of the sequence distribution, sequence length, secondary structure, crystalline or amorphous properties, and morphology of the molecular module can be used to distinguish. For example, different sequences, different lengths, or different secondary structures of DNA, RNA, peptides, and organic polymers can be used to represent different values of different contents. In addition, different chemical forms, physical properties, crystalline or amorphous properties, and morphology of DNA, RNA, peptides, organic polymers, organic small molecules, carbon nanomaterials, and inorganic substances can also be used to represent different values of different contents.
[0270] Furthermore, the composition obtained by combining the molecular modules can be a mixture or a compound. For example, the composition can include a variety of different DNA chains, which can respectively represent one or more information fragments to be stored in the information to be stored, and they are mixed together to represent the complete information to be stored. Alternatively, the DNA chains representing various information fragments to be stored can be further synthesized into longer DNA chains to represent the complete information to be stored in the form of compounds. Alternatively, the synthesis can be started from more basic nucleotides to produce DNA chains corresponding to the information to be stored.
[0271] It should be understood that in order to enable different molecular modules to be connected to each other in a preset order, in some embodiments, when selecting molecular modules, molecular modules with corresponding terminal parts can be selected, that is, the molecular fragments serving as terminal parts are part of the corresponding molecular modules, so as to achieve sequential connection of different molecular modules.
[0272] In other embodiments, combining the determined molecular modules in a preset order so that the composition corresponds to the information to be stored may include: forming terminal connections corresponding to the preset order at the connection ends of the determined molecular modules; and mixing the molecular modules formed with the corresponding terminal connections to produce a composition corresponding to the information to be stored. That is, the molecular fragments as terminal connections are added to the corresponding molecular modules after the determination of the molecular modules.
[0273] For example, during the combination process, different terminal parts can be added to the tail of the molecular module so that it can be connected to other molecular modules respectively to form a correct molecular chain.
[0274] In a specific example, a single-stranded or double-stranded DNA can be used as a molecular module. DNA is composed of bases, deoxyribose and phosphate, wherein the bases include adenine (A), guanine (G), thymine (T) and cytosine (C). Accordingly, the terminal portion of the DNA molecular module can include a sticky end.
[0275] When assembling various DNAs, such as Fig. 9 As shown, ligase can be used to combine multiple DNA strands in a predetermined order. Alternatively, Fig.10 As shown, a linker disposed at the end of a DNA chain can be used to sequentially combine multiple DNA chains under the action of a ligase. Alternatively, as Fig.11 and Fig.12 As shown, polymerase chain reaction (PCR) can be used to combine the determined DNA in a predetermined order. Fig.11 In the PCR method shown, the determined multiple DNA chains are used as templates, and the DNA chain containing the corresponding sequence at the connecting ends of the two DNA chains to be connected is amplified. Fig.12 In the PCR method shown, the DNA strands to be joined can be directly amplified.
[0276] In another specific example, RNA can be used as a molecular module. Among them, RNA is composed of phosphate, ribose and bases, and the bases of RNA mainly include A (adenine), G (guanine), C (cytosine), and U (uracil). Accordingly, the terminal portion of the RNA molecular module can include a corresponding functional group.
[0277] like Fig.13 As shown, the multiple RNA chains determined can be combined in a preset order by using the adapter sequence set at the end of the RNA chain and the linker sequence of the DNA under the action of the ligase.
[0278] In another specific example, peptides can be used as molecular modules. The amino group of an amino acid and the carboxyl group of another amino acid can condense into a peptide, and the amide group formed is called a peptide bond in protein chemistry. Amino acids are the smallest molecules and proteins are the largest. Two or more amino acids are dehydrated and condensed to form several peptide bonds to form a peptide chain. Multiple peptide chains are folded in multiple stages to form a protein molecule. Proteins are sometimes also called "polypeptides." Accordingly, the terminal portion of the peptide molecular module can include corresponding functional groups. The determined peptides can be connected under the action of a catalyst to represent at least a portion of the information to be stored. For example Fig.14 As shown, the determined peptides can be linked under the action of a catalyst to represent at least a portion of the information to be stored.
[0279] In addition, as described above, different secondary structures of molecular modules can be used to represent different values corresponding to different target contents. Fig.15 In the two specific examples shown, molecular modules with different secondary structures can be linked together under the action of ligase.
[0280] In some embodiments, as described above, synthesis can also be performed starting from unit modules for composing molecular modules instead of starting from molecular modules. For example, when the composition is DNA or RNA and the corresponding molecular modules are DNA fragments or RNA fragments, after the molecular modules are determined according to the information to be stored, the nucleotides with corresponding bases required to compose these molecular modules can be further determined according to the determined molecular modules, and these nucleotides can be obtained (for example, by preparing or purchasing the corresponding nucleotides), and then the composition representing the information to be stored can be synthesized directly from the nucleotides by using methods such as chemical methods or enzymatic methods, such as Fig.16As shown. In this process, individual molecular modules may not actually be generated, but the final composition is directly generated from the unit modules. In the chemical method, column synthesis or chip synthesis based on the phosphoramidite principle can be used, including photochemical deprotection synthesis, electrochemical synthesis, microdroplet method, etc. In the enzymatic method, the corresponding enzyme can be used as a catalyst to promote the synthesis.
[0281] In addition, in order to facilitate reading of the stored information and avoid interference with the read information caused by individual errors in the combination of molecular modules, the edit distance between different molecular modules can be greater than or equal to a preset distance threshold. The edit distance refers to the number of operation steps required to convert from one molecular module to another. For example, when the molecular module is a DNA chain including 10 bases, the edit distance between the molecular modules "ATCGTAGCCA" and "TTCGTAGCCA" is 1, and the edit distance between the molecular modules "ATCGTAGCCA" and "TAGCATCGGT" is 10. In order to facilitate reading, when designing molecular modules, you can only select multiple molecular modules whose edit distances between each other are greater than or equal to the preset distance threshold.
[0282] In this way, during the process of reading information, even if errors occur in individual bases or other fragments in the molecular module, as long as it can be determined that the edit distance is less than the preset distance threshold, the read molecular module can still be mapped to a specific code, thereby improving the fault tolerance of molecular storage.
[0283] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0284] Fig.17 Schematic diagram of a device for storing information in a molecule according to an exemplary embodiment of the present disclosure. The device 900 may include a memory 901 and a processor 902 coupled to the memory 901, and the processor 902 is configured to execute the method for storing information in a molecule as described above based on instructions stored in the memory 901.
[0285] The memory 901 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.
[0286] The device 900 for storing information in molecules may also include an input / output interface 903, a network interface 904, a storage interface 905, etc. These interfaces 903, 904, 905, and the memory 901 and the processor 902 may be connected, for example, via a bus 906. The input / output interface 903 provides a connection interface for input / output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 904 provides a connection interface for various networked devices. The storage interface 905 provides a connection interface for external storage devices such as SD cards and USB flash drives.
[0287] Fig.18 is a schematic diagram of a system for storing information in a molecule according to an exemplary embodiment of the present disclosure. The system may include an acquisition unit 810, an encoding unit 820, and a writer unit 830. The acquisition unit 810 may be configured to acquire information to be stored, wherein the information to be stored has one or more bit groups, the position of each bit group in the information to be stored is represented by a first address, the value of each bit group is represented by a first content, and each bit group has one or more bits. In some embodiments, the encoding unit 820 may be configured to determine a molecule module corresponding to at least one bit group in the one or more bit groups, wherein the molecule module includes a first molecule module, and the first molecule module is configured to represent both the first address and the first content of the corresponding bit group. In other embodiments, the encoding unit 820 may be configured to determine one or more target bit groups according to the distribution of each first content in the information to be stored; and determine a molecule module corresponding to each target bit group in the one or more target bit groups, wherein the molecule module includes a third molecule module, and the third molecule module is configured to represent the first address of the corresponding target bit group. Fig.18 As shown, the encoding unit 820 may further include a processor 821 and a memory 822 to implement corresponding encoding. The writer unit 830 may be configured to generate a composition based on the determined molecular module so that the composition corresponds to the information to be stored.
[0288] The embodiment of the present disclosure also provides a computer-readable storage medium having instructions stored thereon, which, when executed by a processor, implements the method for storing information in a molecule as described above.
[0289] Similarly, the computer-readable storage medium in the embodiments of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. It should be noted that the computer-readable storage medium described herein is intended to include but is not limited to these and any other suitable types of memory.
[0290] The embodiment of the present disclosure also provides a computer program product, including instructions, which implement the method for storing information in a molecule as described above when the computer program instructions are executed by a processor.
[0291] Instructions can be any set of instructions to be executed directly by one or more processors, such as machine code, or any set of instructions to be executed indirectly, such as a script. The terms "instructions", "applications", "processes", "steps" and "programs" herein are used interchangeably herein. Instructions can be stored in an object code format for direct processing by one or more processors, or stored as a script or collection of independent source code modules in any other computer language, including on-demand interpretation or pre-compiled. The functions, methods and routines of instructions are explained in more detail in other parts of this article.
[0292] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present disclosure. It should be understood that the functions specified in one or more processes in the flowchart and / or one or more blocks in the block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions specified in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0293] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0294] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0295] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0296] So far, various embodiments of the present disclosure have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.
[0297] Although some specific embodiments of the present disclosure have been described in detail by way of examples, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified or some technical features may be replaced by equivalents without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A method for storing information in a molecule, comprising: Acquire information to be stored, wherein the information to be stored has one or more bit groups, the position of each bit group in the information to be stored is represented by a first address, the value of each bit group is represented by a first content, and each bit group has one or more bits; Determining a molecular module corresponding to at least one of the one or more bit groups, wherein the molecular module includes a first molecular module, the first molecular module is configured to represent both a first address and a first content of the corresponding bit group, and determining the molecular module corresponding to at least one of the one or more bit groups includes: converting at least a portion of the information to be stored from a first base to a binary base to reduce the number of required molecular modules, dividing at least a portion of the information to be stored after the conversion into one or more bit groups, and determining a molecular module corresponding to at least one of the one or more bit groups obtained after the conversion; and A composition is generated based on the determined molecular modules, so that the composition corresponds to the information to be stored.
2. The method according to claim 1, wherein: Obtaining the information to be stored includes: Separating the initial information to be stored to generate one or more segments of information to be stored, wherein the number of bits of each segment of information to be stored is smaller than the number of bits of the initial information to be stored, and the number of bits of each segment of information to be stored is equal to or different from each other; or Multiple segments of initial information to be stored are merged to generate information to be stored, wherein the number of bits of the information to be stored is greater than the number of bits of each segment of initial information to be stored.
3. The method according to claim 1, wherein: Determining a molecule module corresponding to at least one of the one or more bit groups includes: A first molecule module corresponding to each of the one or more bit groups is determined.
4. The method according to claim 1, wherein: The information to be stored has a plurality of bit groups, and the values of the plurality of bit groups include at least two first contents, Determining a molecule module corresponding to at least one of the one or more bit groups includes: It is determined that a bit group whose value is a first content does not correspond to any molecular module, and a first molecular module corresponding to at least one bit group among other bit groups whose values are other first contents is determined.
5. The method according to claim 1, wherein: Determining a molecule module corresponding to at least one of the one or more bit groups includes: determining whether a second bit group among the one or more bit groups satisfies a preset relationship with the first bit group, wherein a first address of the second bit group is different from a first address of the first bit group; and When the second bit group satisfies the preset relationship with the first bit group, a molecular module corresponding to the second bit group is determined, wherein the molecular module includes a second molecular module, and the second molecular module is configured to represent the preset relationship between the corresponding second bit group and the first bit group.
6. The method according to claim 5, wherein: The second molecular module includes at least one of the following: A stroke increment module, wherein the stroke increment module corresponding to the first preset number a1 is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: there are a1 consecutive second bit groups immediately after the first bit group, and the first content of each second bit group is the same as the first content of the first bit group, and a1 is a positive integer; A run multiple module, wherein the run multiple module corresponding to the second preset number a2 is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: there are (a2-1) consecutive second bit groups immediately following the first bit group, and the first content of each second bit group is the same as the first content of the first bit group, and a2 is a positive integer greater than 1; A stroke flip module, wherein the stroke flip module corresponding to the third preset number a3 is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: each bit in the first bit group and the second bit group has only two values of 0 or 1, the second bit group has only two bits with different values, there are a3 consecutive second bit groups immediately after the first bit group, and the first bit of the second bit group has a different value from the last bit of the first bit group, and a3 is a positive integer; a trip repetition module, wherein the trip repetition module is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: the first content of the second bit group is the same as the first content of the first bit group; The bit-increasing module, wherein the bit-increasing module corresponding to the fourth preset number a4 is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: the second bit group has only one bit, there are a4 consecutive second bit groups immediately after the first bit group, and the value of the second bit group is the same as the value of the last bit of the first bit group, and a4 is a positive integer; and A bit subtraction module, wherein the bit subtraction module corresponding to the fifth preset number a5 is configured to indicate that the second bit group and the first bit group satisfy the following preset relationship: a5 consecutive bits from the back to the front of the first bit group are determined as the second bit group, and the second bit group in the first bit group is removed, a5 is a positive integer and a5 is less than or equal to the total number of bits of the first bit group.
7. The method according to claim 1, wherein: The first system is binary, the binary system is decimal, and converting at least part of the information to be stored from the first system to the binary system comprises: According to x i+1 =2x i +b i+1 Perform iterative calculation to determine at least part of the information to be stored in decimal, wherein x0 is a preset initial value, b i+1 is the value of the i+1 bit from left to right in the at least part of the binary information to be stored, i is an integer greater than or equal to 0, and when i+1 is equal to the total number of bits of the at least part of the binary information to be stored, the corresponding x i+1 The at least part of the information to be stored is in decimal.
8. The method according to claim 1, wherein: The first system is binary, the binary system is decimal, and converting at least part of the information to be stored from the first system to the binary system comprises: according to Calculate at least part of the information to be stored in decimal, wherein: is the value of the n+1th bit in the at least part of the binary information to be stored, and i+1 is the total number of bits of the at least part of the binary information to be stored.
9. The method according to claim 1, wherein: The first system is binary, the binary system is an integer multiple of binary, and converting at least part of the information to be stored from the first system to the binary system comprises: Determining whether it is necessary to fill in the at least part of the information to be stored at a preset position according to the total number of bits of the binary number and the at least part of the information to be stored; If so, padding the at least part of the information to be stored according to the binary number to obtain target information to be stored; If not, directly taking the at least part of the information to be stored as the target information to be stored; Dividing at least part of the binary information to be stored into one or more segments of sub-information according to the binary number, wherein the number of bits of each segment of sub-information is an integer multiple of the binary number with respect to the binary number; Each piece of binary sub-information is converted into a corresponding value of the second binary state to generate the at least part of the second binary information to be stored.
10. The method according to claim 1, wherein: The determined relative positions of the molecular modules in the composite material are consistent with the relative positions of the corresponding bit groups in the information to be stored.
11. The method according to claim 1, wherein: Generating a composition based on the determined molecular module so that the composition corresponds to the information to be stored comprises: Acquire unit modules corresponding to the determined molecular modules, wherein each molecular module is synthesized from one or more unit modules; and The obtained unit modules are synthesized to generate the combination corresponding to the information to be stored.
12. The method according to claim 11, wherein: The determined molecular module includes at least one of a DNA fragment and an RNA fragment, and the unit module includes nucleotides. Synthesizing the obtained unit modules to generate the composition corresponding to the information to be stored includes: The composition is synthesized directly starting from the obtained nucleotides, wherein at least some fragments of the composition are consistent with the determined molecular module.
13. The method according to claim 1, wherein: Generating a composition based on the determined molecular module so that the composition corresponds to the information to be stored comprises: forming terminal connections corresponding to a preset sequence at the connection ends of the determined molecular modules; and The molecular modules formed with corresponding terminal portions are mixed to produce a composition corresponding to the information to be stored.
14. The method according to claim 13, wherein: The molecular fragment as the terminal portion is a part of the corresponding molecular module; or The molecular fragments serving as terminal parts are added to the corresponding molecular modules after the molecular modules are determined.
15. The method according to claim 13, wherein: Mixing the molecular modules with corresponding terminal parts to produce a composition corresponding to the information to be stored includes at least one of the following: Using a ligase to combine the determined molecular modules in the predetermined order; Combining the determined molecular modules in the preset order using connectors disposed at ends of the molecular modules; and The polymerase chain reaction is used to combine the determined molecular modules in the predetermined order.
16. The method according to claim 1, wherein: The molecular module includes at least one of deoxyribonucleic acid, ribonucleic acid, non-natural nucleotides, modified nucleotides, artificially synthesized nucleotides, peptides, organic polymers, organic small molecules, carbon nanomaterials, inorganic substances, and molecular fragments arranged at intervals.
17. The method according to claim 1, wherein: At least one of the sequence distribution, sequence length, secondary structure, crystalline or amorphous nature and morphological form of the molecular modules is used to distinguish the various molecular modules.
18. The method according to claim 1, wherein: The edit distance between different molecular modules is greater than or equal to a preset distance threshold.
19. A method for storing information in a molecule, comprising: Acquire information to be stored, wherein the information to be stored has one or more bit groups, the position of each bit group in the information to be stored is represented by a first address, the value of each bit group is represented by a first content, and each bit group has one or more bits; Determine one or more target bit groups according to the distribution of each first content in the information to be stored; Determining a molecular module corresponding to each of the one or more target bit groups, wherein the molecular module includes a third molecular module, and the third molecular module is configured to represent a first address of the corresponding target bit group, and determining the molecular module corresponding to each of the one or more target bit groups includes: converting at least a portion of the information to be stored from a first base to a binary base to reduce the number of required molecular modules, dividing at least a portion of the information to be stored after the conversion into one or more bit groups, and determining a molecular module corresponding to at least one bit group of the one or more bit groups obtained after the conversion; and A composition is generated based on the determined molecular modules, so that the composition corresponds to the information to be stored.
20. The method according to claim 19, wherein: Obtaining the information to be stored includes: Separating the initial information to be stored to generate one or more segments of information to be stored, wherein the number of bits of each segment of information to be stored is smaller than the number of bits of the initial information to be stored, and the number of bits of each segment of information to be stored is equal to or different from each other; or Multiple segments of initial information to be stored are merged to generate information to be stored, wherein the number of bits of the information to be stored is greater than the number of bits of each segment of initial information to be stored.
21. The method according to claim 19, wherein: Determining one or more target bit groups according to the distribution of each first content in the information to be stored includes: Counting the occurrence frequency of each first content in the information to be stored, and determining a highest frequency content with the highest occurrence frequency; and The bit group whose value is not the highest frequency content is determined as the target bit group.
22. The method according to claim 19, wherein: The third molecular module includes one or more sub-molecular modules, Determining a molecule module corresponding to each of the one or more target bit groups comprises: Divide the first address of the target bit group into one or more address bit groups, the position of each address bit group in the first address of the target bit group is represented by the second address, the value of each address bit group is represented by the second content, and each address bit group has one or more bits; Determining a sub-molecule module corresponding to at least one of the one or more address bit groups, wherein the sub-molecule module includes a first sub-molecule module, and the first sub-molecule module is configured to represent both a second address and a second content of the corresponding address bit group; and A third molecular module is determined based on a combination of the determined sub-molecular modules.
23. The method according to claim 22, wherein: Determining a sub-molecule module corresponding to at least one address bit group of the one or more address bit groups includes: determining whether a second address bit group among the one or more address bit groups satisfies a preset relationship with the first address bit group, wherein a second address of the second address bit group is different from a second address of the first address bit group; and When a preset relationship is satisfied between the second address bit group and the first address bit group, a sub-molecule module corresponding to the second address bit group is determined, wherein the sub-molecule module includes a second sub-molecule module, and the second sub-molecule module is configured to represent the preset relationship between the corresponding second address bit group and the first address bit group.
24. The method according to claim 23, wherein: The second sub-molecule module includes: A stroke increment module, wherein the stroke increment module corresponding to the sixth preset number a6 is configured to indicate that the second address bit group of the second bit group and the first address bit group of the first bit group satisfy the following preset relationship: the sum of the first address bit group and a6 is the second address bit group, and the first content of the second bit group is the same as the first content of the first bit group.
25. The method of claim 19, wherein: The molecule module further includes a fourth molecule module, and the fourth molecule module is configured to represent the first content of the corresponding target bit group.
26. The method of claim 19, wherein: The first system is binary, the binary system is decimal, and converting at least part of the information to be stored from the first system to the binary system comprises: According to x i+1 =2x i +b i+1 Perform iterative calculation to determine at least part of the information to be stored in decimal, wherein x0 is a preset initial value, b i+1 is the value of the i+1 bit from left to right in the at least part of the binary information to be stored, i is an integer greater than or equal to 0, and when i+1 is equal to the total number of bits of the at least part of the binary information to be stored, the corresponding x i+1 The at least part of the information to be stored is in decimal.
27. The method of claim 19, wherein: The first system is binary, the binary system is decimal, and converting at least part of the information to be stored from the first system to the binary system comprises: according to Calculate at least part of the information to be stored in decimal, wherein: is the value of the n+1th bit in the at least part of the binary information to be stored, and i+1 is the total number of bits of the at least part of the binary information to be stored.
28. The method of claim 19, wherein: The first system is binary, the binary system is an integer multiple of binary, and converting at least part of the information to be stored from the first system to the binary system comprises: Determining whether it is necessary to fill in the at least part of the information to be stored at a preset position according to the total number of bits of the binary number and the at least part of the information to be stored; If so, padding the at least part of the information to be stored according to the binary number to obtain target information to be stored; If not, directly taking the at least part of the information to be stored as the target information to be stored; Dividing at least part of the binary information to be stored into one or more segments of sub-information according to the binary number, wherein the number of bits of each segment of sub-information is an integer multiple of the binary number with respect to the binary number; Each piece of binary sub-information is converted into a corresponding value of the second binary state to generate the at least part of the second binary information to be stored.
29. The method according to claim 19, wherein: The determined relative positions of the molecular modules in the composite material are consistent with the relative positions of the corresponding bit groups in the information to be stored.
30. The method of claim 19, wherein: Generating a composition based on the determined molecular module so that the composition corresponds to the information to be stored comprises: Acquire unit modules corresponding to the determined molecular modules, wherein each molecular module is synthesized from one or more unit modules; and The obtained unit modules are synthesized to generate the combination corresponding to the information to be stored.
31. The method according to claim 30, wherein: The determined molecular module includes at least one of a DNA fragment and an RNA fragment, and the unit module includes nucleotides. Synthesizing the obtained unit modules to generate the composition corresponding to the information to be stored includes: The composition is synthesized directly starting from the obtained nucleotides, wherein at least some fragments of the composition are consistent with the determined molecular module.
32. The method of claim 19, wherein: Generating a composition based on the determined molecular module so that the composition corresponds to the information to be stored comprises: forming terminal connections corresponding to a preset sequence at the connection ends of the determined molecular modules; and The molecular modules formed with corresponding terminal portions are mixed to produce a composition corresponding to the information to be stored.
33. The method of claim 32, wherein: The molecular fragment as the terminal portion is a part of the corresponding molecular module; or The molecular fragments serving as terminal parts are added to the corresponding molecular modules after the molecular modules are determined.
34. The method of claim 32, wherein: Mixing the molecular modules with corresponding terminal parts to produce a composition corresponding to the information to be stored includes at least one of the following: Using a ligase to combine the determined molecular modules in the predetermined order; Combining the determined molecular modules in the preset order using connectors disposed at ends of the molecular modules; and The polymerase chain reaction is used to combine the determined molecular modules in the predetermined order.
35. The method of claim 19, wherein: The molecular module includes at least one of deoxyribonucleic acid, ribonucleic acid, non-natural nucleotides, modified nucleotides, artificially synthesized nucleotides, peptides, organic polymers, organic small molecules, carbon nanomaterials, inorganic substances, and molecular fragments arranged at intervals.
36. The method of claim 19, wherein: At least one of the sequence distribution, sequence length, secondary structure, crystalline or amorphous nature and morphological form of the molecular modules is used to distinguish the various molecular modules.
37. The method of claim 19, wherein: The edit distance between different molecular modules is greater than or equal to a preset distance threshold.
38. A device for storing information in a molecule, comprising: A memory, wherein instructions are stored in the memory; as well as A processor coupled to the memory implements the method according to any one of claims 1-37 when the instructions are executed by the processor.
39. A system for storing information in molecules, comprising: an acquisition unit, configured to acquire information to be stored, wherein the information to be stored has one or more bit groups, the position of each bit group in the information to be stored is represented by a first address, the value of each bit group is represented by a first content, and each bit group has one or more bits; an encoding unit configured to determine a molecular module corresponding to at least one of the one or more bit groups, wherein the molecular module includes a first molecular module, the first molecular module is configured to represent both a first address and a first content of the corresponding bit group, and determining the molecular module corresponding to at least one of the one or more bit groups comprises: converting at least part of the information to be stored from a first base to a binary base to reduce the number of required molecular modules, dividing at least part of the information to be stored after the conversion into one or more bit groups, and determining the molecular module corresponding to at least one of the one or more bit groups obtained after the conversion; and The writer unit is configured to generate a composition based on the determined molecular modules so that the composition corresponds to the information to be stored.
40. A system for storing information in molecules, comprising: an acquisition unit, configured to acquire information to be stored, wherein the information to be stored has one or more bit groups, the position of each bit group in the information to be stored is represented by a first address, the value of each bit group is represented by a first content, and each bit group has one or more bits; The encoding unit is configured to determine one or more target bit groups according to the distribution of each first content in the information to be stored; and determine a molecular module corresponding to each of the one or more target bit groups, wherein the molecular module includes a third molecular module, and the third molecular module is configured to represent the first address of the corresponding target bit group, and determining the molecular module corresponding to each of the one or more target bit groups includes: converting at least part of the information to be stored from a first base to a binary base to reduce the number of molecular modules required, dividing at least part of the converted information to be stored into one or more bit groups, and determining a molecular module corresponding to at least one of the one or more bit groups obtained after the conversion; and The writer unit is configured to generate a composition based on the determined molecular modules so that the composition corresponds to the information to be stored.
41. A computer-readable storage medium having instructions stored thereon, which, when executed by a processor, implement the method according to any one of claims 1-37.
42. A computer program product comprising instructions which, when executed by a processor, implement the method according to any one of claims 1 to 37.
