Functions for the Bayesian analysis of GWAS data