Description Usage Arguments Value Author(s) Examples
View source: R/nucleotideDiversity.R
Calculate nucleotide diversity for set of haplotypes.
1 | nucleotideDiversity(x, bases = c("a", "c", "g", "t"), simplify = TRUE)
|
x |
a set of sequences or a gtypes object with sequences. |
bases |
nucleotides to consider when calculating diversity. |
simplify |
if |
Vector of nucleotide diversity by site.
Eric Archer eric.archer@noaa.gov
1 2 3 4 | data(dloop.g)
nd <- nucleotideDiversity(dloop.g)
quantile(nd)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.