calcAvgPwDiffBtwHaplos: Pi

View source: R/quantgen.R

calcAvgPwDiffBtwHaplosR Documentation

Pi

Description

Calculate the average number of differences between pairs of sequences, named pi in the population genetics literature (Tajima, 1983; Wakeley, 2008).

Usage

calcAvgPwDiffBtwHaplos(haplos.chr)

Arguments

haplos.chr

matrix of 0's and 1's with haplotypes in rows and sites in columns

Value

numeric(1)

Author(s)

Timothee Flutre


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.