Description Usage Arguments Value Examples
This calculates expected heterozygosities from a list of allele frequencies.
1 | calc.exp.het(af)
|
af |
is a list of allele frequencies. |
ht |
The expected heterozygosity under Hardy-Weinberg expectations. This is a single numerical value. |
1 2 3 4 | #create a random sample of genotypes
genotypes<-sample(c("0101","0102","0202"),50,replace=TRUE)
af<-calc.allele.freq(genotypes)
hs<-calc.exp.het(af)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.