sumstats: Function to calculate the number of haplotypes, number of...

View source: R/Functions.R

sumstatsR Documentation

Function to calculate the number of haplotypes, number of segregating sites, haplotype diversity, and pi of a matrix of sequences

Description

Function to calculate the number of haplotypes, number of segregating sites, haplotype diversity, and pi of a matrix of sequences

Usage

sumstats(x, nsites = NULL)

Arguments

x

Object of class DNAbin or a matrix of multiple sequence alignment where rows are sequences and columns are nucleotide positions

nsites

Optional integer specifying the total number of nucleotide sites in the loci examined


trevorjwilli/fscSS documentation built on Jan. 11, 2023, 7:45 a.m.