The discovery sheds light on how certain bacteria -- including strains that cause food poisoning and anthrax -- form spores for survival.