Last chance! 50% off unlimited learning
Sale ends in
powered by
Calculate nucleotide diversity for set of haplotypes.
nucleotideDiversity(x, bases = c("a", "c", "g", "t"), simplify = TRUE)
a set of sequences or a '>gtypes object with sequences.
nucleotides to consider when calculating diversity.
if TRUE and only one loci exists, return a vector, otherwise, a list of vectors with one element per locus will be returned.
TRUE
Vector of nucleotide diversity by site.
# NOT RUN { data(dloop.g) nd <- nucleotideDiversity(dloop.g) quantile(nd) # }
Run the code above in your browser using DataLab