site.pattern: Site patterns

Description Usage Arguments Value Author(s) See Also Examples

Description

The function returns site patterns.

Usage

1

Arguments

seq

DNA sequences with rows representing taxa and columns representing sites

Value

The function returns a matrix. Each row in the matrix represents a site pattern and the last number at each row is the frequency of the site pattern appeared in the DNA sequences.

Author(s)

Liang Liu lliu@uga.edu

See Also

mrca.2nodes, mrca.nodes

Examples

1
2
3
4
5
6
seq<- matrix("A",nrow=4,ncol=5)
seq[1,]<-c("A","A","G","C","C")
seq[2,]<-c("A","G","G","C","C")
seq[3,]<-c("T","A","G","C","C")
seq[4,]<-c("A","A","G","T","T")
site.pattern(seq)

bomeara/phybase documentation built on May 12, 2019, 11:35 p.m.