Calculate a similarity(distance) matrix for individuals on the proportion of shared alleles
This script calculates a individual based distance matrix. It uses an C++ implementation, so package Rcpp needs to be installed and it is therefore really fast (once it has compiled the function after the first run).
gl.propShared(x)
x |
– name of the genlight containing the SNP genotypes [required] |
Bernd Gruber (Post to https://groups.google.com/d/forum/dartr)
#takes some time at the first run of the function... ## Not run: res <- gl.propShared(bandicoot.gl) res[1:5,1:7] #show only a small part of the matrix ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.