options(digits=4)
data(tetragonula)
tnb <-
coord2dist(coordmatrix=tetragonula.coord[83:120,],cut=50,file.format="decimal2",neighbors=TRUE)
ta <- alleleconvert(strmatrix=tetragonula[83:120,])
tai <- alleleinit(allelematrix=ta,neighborhood=tnb$nblist)
tetracoms <-
c(rep(1:3,each=3),4,5,rep(6:11,each=2),12,rep(13:19,each=2))
phipt(tai,tetracoms,4,6)
tdip <- diploidcomlist(tai,tetracoms,diploid=TRUE)
cfchord(tdip[[4]],tdip[[6]])
shared.problist(tdip[[4]],tdip[[6]])
Run the code above in your browser using DataLab