Description Usage Arguments Value Note Examples
View source: R/gwscaR_popgen.R
calculate observed heterozygosity
1 |
vcf.row |
A row of a vcf file, used in conjunction with apply |
pop.list |
A list of population strings to search for to subset vcf (pop names must be in individual ID names) |
Observed heterozygosity
proportion of diploid genotypes in the sample that are heterozygotes (Hohenlohe et al 2010)
1 2 3 | vcf.file<-system.file("extdata", "example.vcf.txt",package = "gwscaR")
vcf<-parse.vcf(vcf.file)
all.het<-apply(vcf,1,calc.het)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.