ehhsR: A function to calculate EHHs (site Extended Haplotype...

Description Usage Arguments Value Author(s) Examples

View source: R/ehhsR.R

Description

A function to calculate EHHs (site Extended Haplotype Homozygosity) given a focal site and a haplotype matrix.

Usage

1
ehhsR(hapmatrix, site)

Arguments

hapmatrix

A haplotype matrix with ones (ancestral) and twos (derived).

site

A specific site.

Value

EHH (Extended Haplotype Homozygosity).

Author(s)

Fei Xiang (xf3087@gmail.com)

Examples

1
2
3
exmtx=matrix(sample(2,80,replace=T),ncol=10,nrow=8)
ehhsR(exmtx,2)
ehhsR(exmtx,4)

sdwfrost/popseq documentation built on May 29, 2019, 4:23 p.m.