variableSites: Variable Sites

Description Usage Arguments Value Author(s) See Also Examples

View source: R/variableSites.R

Description

Identify variable sites among sequences.

Usage

1
variableSites(x, bases = c("a", "c", "g", "t", "-"), simplify = TRUE)

Arguments

x

a gtypes object with sequences, a DNAbin object, or a list of sequences.

bases

character vector of bases to consider.

simplify

if there is a single locus, return result in a simplified form? If FALSE a list will be returned wth one element per locus.

Value

A list with:

site

a DNAbin object composed of variable sites.

site.freqs

a matrix of base pair frequencies by site.

Author(s)

Eric Archer eric.archer@noaa.gov

See Also

fixedSites

Examples

1
2
3

strataG documentation built on Feb. 28, 2020, 9:07 a.m.