Hi @Kevin Blighr. I am not quite sure about your solution. For instance if I take only the first and second row from the first column which are allele counts for alleles A and a at locus X1 in the first population then I would calculate allele frequency like this for allele A in population 1
frequency of allele A at locus X1 in population 1 =Number of copies of allele A in population/Total number of A/a gene copies in population
. This will be equal to 1 for allele A and 0 for allele a. In addition missing genotypes should be accounted as well!