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 ([email protected])

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 Aug. 4, 2017, 7:21 p.m.