pis: Number of parsimony-informative sites

Description Usage Arguments Value Author(s) See Also Examples

Description

This function returns the number of potentially-informative(parsimony-informative) sites in DNA sequence alignment

Usage

1
pis(x, abs = TRUE, use.ambiguities = FALSE)

Arguments

x

object of class DNAbin

abs

logical, should the absolute or the relative number number be returned

use.ambiguities

logical, currently only FALSE is implemented, which means that IUPAC ambiguity symbols will be treated as missing information (N)

Value

numeric (the number or percentage of potentially-informative nucleotide sites)

Author(s)

Christoph Heibl

See Also

homogen.base.freq

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# example data:
# -------------
data(woodmouse)	

# number of potentially-informative sites:
# ----------------------------------------
pis(woodmouse, abs = TRUE)
	
# proportion of potentially-informative sites:
# --------------------------------------------
pis(woodmouse, abs = FALSE)

fmichonneau/phyloch documentation built on May 16, 2019, 1:45 p.m.