Hierarchical Bayesian networks applied to association genetics