Imagine there are two populations X and Y, and for each population you have the genotypes of each individual in that population (e.g. Aa, AA, aa, etc.), but for multiple loci (e.g. AABb).
How could one calculate the gene flow between population X and population Y?
An answer would ideally recommend either or:
- An R/Python/C++ library, or any other software tool
- the breakdown of the maths I would be much obliged.