Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nexusDist

Write a distance table to a file in nexus format


Description

Write a distance table to a file in nexus format.

Usage

nexusDist(distMatrix, outfilename)

Arguments

distMatrix

a square matrix giving a distance table, with rows and columns labeled by taxon names

outfilename

the name of an output file

Examples

gtrees=read.tree(file=system.file("extdata","dataGeneTreeSample",package="MSCquartets"))
tnames=taxonNames(gtrees)
QT=quartetTable(gtrees,tnames[1:6])
RQT=quartetTableResolved(QT)
DQT=quartetTableDominant(RQT)
Dist=quartetDist(DQT)
nexusDist(Dist,outfile = file.path(tempdir(), "NANUQdist"))

MSCquartets

Analyzing Gene Tree Quartets under the Multi-Species Coalescent

v1.1.0
MIT + file LICENSE
Authors
Elizabeth Allman [aut], Hector Banos [aut], Jonathan Mitchell [aut], John Rhodes [aut, cre] (<https://orcid.org/0000-0001-9921-1091>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.