variableSites: Variable Sites
Description
Identify variable sites among sequences.Usage
variableSites(x, bases = c("a", "c", "g", "t", "-"))
Arguments
x
a gtypes object with sequences,
a DNAbin
object, or a list of sequences. bases
character vector of bases to consider.
Value
- A list with: ll{
site
a a DNAbin
object composed
of variable sites.
site.freqs
a matrix of base pair frequencies by site.
}
Examples
Run this codedata(dolph.haps)
variableSites(dolph.haps)
Run the code above in your browser using DataLab