Description Usage Arguments Details Value
Calculate pairwise pi between two diploid individuals
1 | calcPWP(ind1, ind2, L)
|
ind1 |
A genotype vector for a single diploid individual for which the ith element gives the frequency of the counted allele in that individual at the ith locus. |
ind2 |
A genotype vector for a single diploid individual for which the ith element gives the frequency of the counted allele in that individual at the ith locus. |
L |
The number of loci genotyped in both individuals 1 and 2. |
The genotype data should consist of 0,0.5,1
with missing data indicated with NA
.
If the genotype vectors ind1
and ind2
consist only of polymorphic loci, and L
is the
number of co-genotyped polymorphic loci,
this function will return pairwise pi at
polymorphic sites, which may not be
comparable across datasets.
An estimate of pairwise pi between individuals 1 and 2.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.