changed ratio method to use the homozygous and heterozygous snp data directly