fixedSites: Fixed Sites

View source: R/fixedSites.R

fixedSitesR Documentation

Fixed Sites

Description

Identify fixed sites among sequences.

Usage

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

Arguments

x

a gtypes object with sequences, a list of sequences, or a consensus sequence. Sequences must be aligned.

bases

a character vector of valid 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 vector of fixed sites. Element names are site positions in the original sequence.

Author(s)

Eric Archer <eric.archer@noaa.gov>

See Also

variableSites

Examples

data(dolph.haps)

fixedSites(dolph.haps)


EricArcher/strataG documentation built on Feb. 12, 2023, 4:11 a.m.