How DNA Storage Works: Encoding Data in Molecules

DNA storage treats DNA as a recording medium. Instead of magnetic or electrical marks, a computer file is saved as a string of the molecule’s chemical letters. In principle, a single gram of DNA could hold hundreds of millions of terabytes.1PubMed Central. Probing the physical limits of reliable DNA data retrieval The hard part is not packing the data in but writing and reading the molecules quickly, cheaply, and without mistakes. For now, it is being developed as a deep archive for data that must last centuries, not as a replacement for the drive in your laptop.

How Digital Files Become DNA Letters

DNA is a chain of four chemical units, called nucleotides or bases, usually written A, C, G and T. That makes the translation fairly natural. The simplest code assigns two bits to each letter, for example 00 as A, 01 as C, 10 as G and 11 as T. So each DNA letter can carry at most 2 bits of information.1PubMed Central. Probing the physical limits of reliable DNA data retrieval Some experimental codes use mixtures of letters to make 15 symbols, which roughly halves the DNA needed for the same file.2PubMed Central. High information capacity DNA-based data storage with augmented encoding characters using degenerate bases

Take the capital letter H. In standard computer code it is eight bits, 01001000. Split those into four pairs (01, 00, 10, 00) and swap each pair for its letter, and you get C, A, G, A. One keyboard character becomes four DNA letters.

Not every sequence is safe to write. Long runs of the same letter, like AAAAAA, cause mistakes when DNA is written and read.3bioRxiv. Highly Robust DNA Data Storage Based on Controllable GC Content and homopolymer of 64-Element Coded Tables Strands also work best when about half their letters are G or C.3bioRxiv. Highly Robust DNA Data Storage Based on Controllable GC Content and homopolymer of 64-Element Coded Tables So encoding software is designed to keep G and C near 50% and avoid repeating any letter more than about twice in a row.3bioRxiv. Highly Robust DNA Data Storage Based on Controllable GC Content and homopolymer of 64-Element Coded Tables

That is why the process is not a simple lookup of letters. Many systems use a different lookup for each position, or one that changes with the previous letters, specifically so unsafe patterns can be avoided. A common fix for a bad run is to switch to a different letter choice at that spot. The decoder knows to reverse the switch, so the original bits come back exactly. Because the mapping is just a rule agreed in software, the DNA itself carries no hint of how to read it. Anyone reading the archive later needs the code’s instructions stored or documented separately.

DNA can only be built reliably in short pieces, so a file is split across many strands of roughly 150 letters.4Nature Biotechnology. Random access in large-scale DNA data storage Each strand carries an address telling where its piece belongs in the file.4Nature Biotechnology. Random access in large-scale DNA data storage Millions of strands float together in one tube with no fixed order, much like the pages of a torn-up book, and without page numbers they could not be put back in sequence. The address does use up some letters that could otherwise carry data. Strands from the same file also share a common tag that works like a file name.4Nature Biotechnology. Random access in large-scale DNA data storage

How the DNA Is Actually Built

Writing DNA usually uses a chemical cycle that adds one chosen letter at a time to a strand anchored on a surface.5PubMed Central. Emerging Approaches to DNA Data Storage: Challenges and Prospects Every addition is a repeated cycle: attach the new letter, block it so only one is added, then wash and unblock the end so the next letter can go on. No cycle works perfectly, so a few strands miss a letter at each step, and the longer the strand, the more of them fall short. That is why strands stay short.

The method scales well. Companies can build millions of different short strands in one batch, and one project made over 13 million unique strands.4Nature Biotechnology. Random access in large-scale DNA data storage The catch is that it uses dry chemical solvents that produce toxic waste.5PubMed Central. Emerging Approaches to DNA Data Storage: Challenges and Prospects

In practice, researchers send a digital list of sequences to a DNA-making company or machine and get back a tiny tube, often holding a barely visible dried film of DNA. Each design is present as many identical copies, not just one molecule.

An alternative copies how cells work, using an enzyme to add letters in water.5PubMed Central. Emerging Approaches to DNA Data Storage: Challenges and Prospects One enzyme method adds a single letter in about 10 to 20 seconds.5PubMed Central. Emerging Approaches to DNA Data Storage: Challenges and Prospects So far, though, enzyme methods have stored only hundreds of bits, against billions with chemical synthesis.5PubMed Central. Emerging Approaches to DNA Data Storage: Challenges and Prospects Enzyme-made DNA appears to have a much smaller environmental footprint than chemically made DNA.6PubMed Central. Architecting Datacenters for Sustainability: Greener Data Storage using Synthetic DNA

Writing is the bottleneck of the whole system. Adding letters one by one is slow compared with writing magnetic bits, and each step costs reagents, so longer files cost more.

It is also imperfect. Wrongly added or missing letters occur in under 1% of positions.7PubMed Central. Highly Accurate Sequence- and Position-Independent Error Profiling of DNA Synthesis and Sequencing Even a small error rate means many strands in a large file contain a mistake.

How the Data Is Read Back

Reading DNA uses the same machines that read genes in medical and research labs. Pocket-sized nanopore sequencers read DNA as it threads through a tiny hole, but make more reading errors than larger lab machines.82021 IEEE International Conference on Image Processing (ICIP). Decoding Of Nanopore-Sequenced Synthetic DNA Storing Digital Images Images stored in a sealed capsule for two years were still read back using such a device.82021 IEEE International Conference on Image Processing (ICIP). Decoding Of Nanopore-Sequenced Synthetic DNA Storing Digital Images Its higher error rate means the stored data needs stronger error correction or more reads of each strand. A small sample of the DNA is taken, so the archive is not used up, and the wanted file’s strands are copied many times to make them easy to read.

The sequencer returns a huge pile of short letter strings, or reads, in no useful order. Reads can be noisy, and some strands are read many times while others are read only a few times or not at all. Software groups reads by address, votes on the right letters, and rebuilds the bits.

Reading many copies is what makes this work. Each strand is read several times over, so a random mistake in one read is outvoted by correct reads. One scheme recovered files perfectly from about 10 reads per strand.

Because all files share one tube, you rarely want to read everything. Systems copy only the strands carrying a chosen file’s tag, a process like a search.4Nature Biotechnology. Random access in large-scale DNA data storage In one test, 48 separate small files were pulled from a mix of over 3,000 in a single step.4Nature Biotechnology. Random access in large-scale DNA data storage Another approach uses the gene-editing tool CRISPR to cut out chosen files, tested on 25 files among 1.6 million strands.9PubMed Central. Random access and semantic search in DNA data storage enabled by Cas9 and machine-guided design

How Errors Get Caught and Fixed

DNA errors come as a wrong letter, an extra letter, or a missing letter.10PubMed Central. HEDGES error-correcting code for DNA storage corrects indels and allows sequence constraints Extra and missing letters make up more than half of errors.10PubMed Central. HEDGES error-correcting code for DNA storage corrects indels and allows sequence constraints A missing letter is worse than a wrong one. A wrong letter changes one small piece of data, but a missing letter shifts every following letter out of place, scrambling the rest of the strand unless the code can realign it. Many codes can only fix wrong letters, so newer codes target missing and extra ones too.10PubMed Central. HEDGES error-correcting code for DNA storage corrects indels and allows sequence constraints Recent schemes can fix several errors within a single strand.11Briefings in Bioinformatics. Multiple errors correction for position-limited DNA sequences with GC balance and no homopolymer for DNA-based data storage

The protection comes from spare information. Systems add error-correcting codes, the same families used in CDs and phone networks, such as Reed-Solomon and fountain codes.12The Error Correction Zoo. DNA storage code A scratched CD still plays because spare data fills the gap.

Within a strand, the encoder works out extra letters from the data and stores them with it. On reading, the decoder repeats the calculation and compares. When the results disagree, the mismatch pattern points to which letters are likely wrong, so they can be corrected rather than only flagged. There is a limit: if too many letters in a strand are damaged, the code can only declare the strand lost. That is when protection across strands takes over. Fountain codes make extra strands so the file can be rebuilt even if some strands are lost.13PubMed Central. Data recovery methods for DNA storage based on fountain codes

It works well. One scheme recovered text with no errors despite a 0.3% error rate.3bioRxiv. Highly Robust DNA Data Storage Based on Controllable GC Content and homopolymer of 64-Element Coded Tables But this protection costs space, raising storage costs by roughly 10 to 100%.14Persistence Market Research. DNA-based Data Storage Platform Market Size Analysis, 2033

How Much DNA Can Hold and How Long It Lasts

The theoretical limit is about 455 exabytes, or 455 million terabytes, per gram.1PubMed Central. Probing the physical limits of reliable DNA data retrieval It assumes every letter carries data and ignores copies, addresses and checking letters, none of which a real archive can skip. Real archives hold many copies of each strand so reading is reliable, which uses up much of that capacity. Even after these losses, the real density remains far above hard drives or tape. One chip compartment of 4 by 2 millimetres held DNA equal to about 9.5 terabytes.15PubMed. Integrated Microfluidic DNA Storage Platform with Automated Sample Handling and Physical Data Partitioning

Durability depends on what breaks DNA down. Water slowly snaps letters off DNA’s backbone, leaving gaps.16PubMed Central. An Overview of Chemical Processes That Damage Cellular DNA: Spontaneous Hydrolysis, Alkylation, and Reactions with Radicals Drying DNA does not stop this chemistry, it only slows it.17PubMed. Hydrolysis of DNA and its molecular components in the dry state So keeping DNA dry, cool and away from oxygen is the key to longevity.

Wrapping DNA in tiny glass beads mimics how DNA survives in fossils.18PubMed. Reversible DNA encapsulation in silica to produce ROS-resistant and heat-resistant synthetic DNA ‘fossils’ Ancient DNA recovered from bones shows the molecule can survive extremely long. After 30 minutes at 100 °C, 80% of glass-sealed DNA survived versus 0.05% of unprotected dry DNA.19PubMed Central. DNA stability: a central design consideration for DNA data storage systems Sealed DNA is estimated to last 20 to 90 years at room temperature, about 2,000 years at around 9 °C, and over 2 million years frozen at −18 °C.19PubMed Central. DNA stability: a central design consideration for DNA data storage systems

Compare that with storage people already use. Hard drives and tape typically need replacing every decade or so, and old formats become unreadable when the hardware disappears. DNA readers are likely to remain available because medicine depends on reading DNA.

Why You Can’t Buy a DNA Drive Yet

Cost is the barrier. Chemically writing DNA has been estimated at about $3,500 per megabyte.20Wyss Institute. DNA Data Storage A newer method that assembles data from premade DNA blocks, like movable type, brings this to about $122 per megabyte.21PubMed Central. Cost‐Effective DNA Storage System with DNA Movable Type Tape archives still cost a tiny fraction of that per stored gigabyte. DNA’s cost comes mostly from the writing, since storage is cheap once the DNA is made.

Automated machines now handle writing, storing and reading DNA end to end on a benchtop.22PubMed Central. Demonstration of End-to-End Automation of DNA Data Storage One benchtop system combines enzyme writing and reading in a single device.23PubMed Central. DNA-DISK: Automated end-to-end data storage via enzymatic single-nucleotide DNA synthesis and sequencing on digital microfluidics Likely first users are national archives, medical records and government repositories rather than home users.14Persistence Market Research. DNA-based Data Storage Platform Market Size Analysis, 2033

DNA suits files you keep but seldom open, like records or film archives. Reading takes hours or days, not milliseconds, so it would sit behind cloud services, not inside phones. Wider use would need writing to become much faster and cheaper, enzyme methods to scale from bits to billions of bits, and reading and retrieval to be fully automated.

There is an environmental case too. Hard drives use the most energy and water of common archives, mainly to keep spinning and cool.6PubMed Central. Architecting Datacenters for Sustainability: Greener Data Storage using Synthetic DNA DNA needs no power to keep it stored once it is made.

Storing Data Inside Living Cells

Researchers have used CRISPR to write images and a short movie into the DNA of living bacteria.24PubMed Central. CRISPR-Cas encoding of a digital movie into the genomes of a population of living bacteria CRISPR can add short pieces of DNA to a cell’s genome at a chosen place, so researchers feed it pieces that carry data. In these experiments the data went in a piece at a time and was read later by sequencing the cells’ DNA. It becomes part of the cell’s own genome, so it passes to later generations.

Bacteria can also be engineered to record pieces of DNA they encounter, creating a molecular log.25PubMed Central. Molecular recordings by directed CRISPR spacer acquisition Data has been inserted into human cells and stayed intact through extended cell growth.26Nature Communications. DNA CODEC: compressed obfuscated DNA encoding in cells for secure in vivo data storage

This differs from DNA in a tube, which just sits still. Cell DNA is copied and can change. One experimental “living disk” packs data-carrying bacteria into tiny beads, each holding one file.27PubMed Central. Thermo-Responsive Living Microspheroids Enable a Regenerative Living Disk-Drive System for DNA Data Storage Cells copy the data every time they divide, which could renew an archive. But each copy risks new mutations, which is why codes must tolerate them.26Nature Communications. DNA CODEC: compressed obfuscated DNA encoding in cells for secure in vivo data storage For now it is mainly a research tool, for example for recording events inside cells.

Could Stored Data Accidentally Make Something Harmful

Data DNA is a sequence of letters picked by a code, so random encoded data could by chance resemble a stretch of a harmful gene.28PubMed Central. Exploring potential biosafety implications in DNA information storage A short match is not a gene, because genes are long and organised in specific ways. Archive DNA is also short, dried and sealed, not inside a living organism, and making a working gene requires long, specific sequences.

Still, experts recommend checking encoded sequences against gene databases before making them.28PubMed Central. Exploring potential biosafety implications in DNA information storage Screening looks for matches to known harmful sequences so any that are found can be redesigned. One company builds data only from pre-checked DNA blocks designed with built-in “stop” signals so they cannot produce proteins.29IBBIS. How Biomemory Uses Commec for Screening DNA Data Storage Sequences