Biology graduate student Tong Zhang has spent the last two years learning the intricacies of how bacteria protect themselves.