slideAnalyses(DNAbin, sppVector, width, interval = 1,
distMeasures = TRUE, treeMeasures = FALSE)sppVector).plot.slidWin.plot.slidWin.plot.slidWin.Tree-based measures include the following:
proportion of species that are monophyletic,
proportion of clades that are identical between the neighbour joining tree calculated for the window and the tree calculated for the full dataset,
and the latter with method="shallow".
Tree-based measures are a lot more time-intensive than distance measures. When dealing with lots of taxa and short windows, this part of the function can take hours.
Both distance and tree measures are calculated from a K2P distance matrix created from the data with the option pairwise.deletion = TRUE. When sequences with missing data are compared with other sequences, a NA distance results. These are ignored in the calculation of slideAnalyses distance metrics. However, the tree measures cannot cope with this missing data, and so no result is returned for windows where some sequences solely contain missing data.
dist.dna, plot.slidWin, rankSlidWin, slideNucDiag.data(dolomedes)
doloDist <- dist.dna(dolomedes)
doloSpp <- substr(dimnames(dolomedes)[[1]], 1, 5)
slideAnalyses(dolomedes, doloSpp, 200, interval=10, treeMeasures=TRUE)Run the code above in your browser using DataLab