Unraveling the genetics of disease using structured probabilistic models