The Genetic Basis of Epidemics in Agriculture