Code for SNPest - A probabilistic graphical model for estimating genotypes