Genome-wide identification of susceptibility alleles for viral infections through a population genetics approach