Genome sequencing is transforming epidemiology by allowing scientists to read a pathogen's genetic code as a biological record of where it came from and how it spread.