Hello, I'm wondering whether someone knows of an efficient way to extract intraspecific (within-species) and interspecific (between-species) genetic distances for each species returned by ape::dist.dna() to be able to calculate the DNA barcode gap.
It seems extracting the entire object as a matrix is a step in the right direction. Consider the following example: library(ape) library(spider) data(anoteropsis) # sample dataset anoDist <- dist.dna(anoteropsis, model = "raw", pairwise.deletion = FALSE, as.matrix = TRUE) # compute p-distances Any ideas? [[alternative HTML version deleted]] _______________________________________________ R-sig-phylo mailing list - R-sig-phylo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-phylo Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/