Added function to calculate MAF from dosages