Across roughly 400,000 public samples of genetic material, researchers found more than a billion matches that link viruses with the microbes they may infect. The clues came from tiny DNA fragments held in microbial immune systems—records of past encounters that can help map an invisible arms race across the planet.

Microbes such as bacteria and archaea live in complex communities, where viruses can kill them or sometimes give them new abilities. Many of these viruses have been found through DNA sequencing but have never been grown in a lab. Without a living virus to study, it can be hard to tell which microbe it infects. That missing link matters because viruses shape how microbial communities work, and could one day help scientists change them for useful purposes.

Researchers at the U.S. Department of Energy Joint Genome Institute, or JGI, created a bioinformatics toolkit called SpacerExtractor to help make those connections. It searches for CRISPR spacers: short pieces of DNA that microbes keep as part of a natural defense system. These fragments act like a record of viruses and other mobile genetic elements a microbe has encountered. When a spacer matches a virus’s genetic code, it points to a microbe whose defenses have recognized that virus.

The team built a planet-wide database of CRISPR spacers from about 400,000 publicly available metagenomes, collections of genetic material from mixed communities of organisms. It contains more than 100 times as much CRISPR data as earlier databases. Moving and processing so much information was made possible by the Energy Sciences Network, a high-speed research network run by Berkeley Lab. ESnet links more than 40 Department of Energy research sites and 140 research and commercial networks.

The analysis produced more than one billion spacer-to-virus matches. The researchers found that viral infections often led to sustained CRISPR targeting, with spacers sometimes matching across an entire viral genome. Some parts of a virus’s genetic code are harder to change, so they may remain vulnerable to microbial defenses. About 10% of the targeting, however, did not fit that pattern and was not linked to changes in the virus genome, suggesting that some virus-microbe interactions work in a different way.

The spacers also offered a view of change over time. Microbial genomes tended to remain mostly stable, while their CRISPR spacers were rapidly replaced, as expected of a defense system that must respond to new threats. A smaller number of spacers remained unusually similar across places and times, likely because they help defend against common, abundant viruses. CRISPR systems are found in about 40% of bacterial genomes and 85% of archaeal genomes.

By making it easier to predict which viruses can enter which microbial cells, SpacerExtractor could support future research into ways to guide microbiomes. The work backs the Department of Energy’s Biological and Environmental Research program and contributes tools to the NIH Common Fund Human Virome Program. For now, the database gives scientists a much larger map of who may be fighting whom—and a way to ask sharper questions about the microbes that shape life around us.