Description Usage Arguments Details Value
View source: R/seqarray_process_popgen.R
Compute heterozygosity by sample
1 | getHeterozygosityBySample(gdsfile)
|
gdsfile |
a |
Follows the method outlined in Manske et al. 2012. Briefly, for each sample, the reference and and alternate allele frequencies are computed as the proportion of reads covering each allele. Then heterozygosity at a SNP is 1 - (raf^2 + aaf^2)
a numeric matrix of size l by n where l is the number of samples and n is the number of SNPs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.