nexusDist: Write a distance table to a file in nexus format

Description Usage Arguments Examples

View source: R/NANUQ.R

Description

Write a distance table to a file in nexus format.

Usage

1
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

1
2
3
4
5
6
7
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 documentation built on Jan. 8, 2021, 2:10 a.m.