-
The pairwise genetic distance between specimens is generated with R ape package
dist.dna(a, as.matrix = TRUE)
-
The average distance between groups is the arithmetic mean of all pairwise distances between two groups in the inter-group comparisons.
git clone https://github.com/linzhi2013/group_genetic_distance
cd group_genetic_distance
pip install .
python3 group_genetic_distance/group_dist.py
Guanliang Meng
If you use the scripts in your publications, or "steal" the codes, I must be one of the co-authors!