Post date: Mar 13, 2020 10:15:19 PM
Calculating genetic distances:
Combination of plots here.
1 - Nei's distance:
# Attention!! Here I only have one value for each locus, I do not have two alleles, or three
# Thus it is slightly modified from original version of Nei's d
# The idea here is to treat the data in columns - matrix multiplication will be less computationally
# expensive.
The formula I used is the following.
I am surprised because the distances I obtain are not bounded between 0 and 1! Did I make a mistake?