Discovering the genetic determinants of complex diseases