Genetics of resistance and parasitism