pi.dosage | R Documentation |
Estimates nucleotide diversity π= ∑_l 2 p_ l(1-p_l) 2n/(2n-1) from a dosage matrix
pi.dosage(dos,L=NULL)
dos |
a ni X nl dosage matrix containing the number of derived/alternate alleles each individual carries at each SNP |
L |
the length of the sequence |
if L=NULL
(default), returns the sum over SNPs of nucleotide diversity;
otherwise return the average nucleotide diversity per nucleotide given the length L
of the sequence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.