Learn R Programming

chopsticks (version 1.36.0)

ibsDist: Distance matrix based on identity by state (IBS)

Description

Expresses a matrix of IBS counts (see ibsCount) as a distance matrix. The distance between two samples is returned as the proportion of allele comparisons which are not IBS.

Usage

ibsDist(counts)

Arguments

counts
A matrix of IBS counts as produced by the function ibsCount

Value

An object of class "dist" (see dist)

See Also

ibsCount, dist

Examples

Run this code
data(testdata)
ibs <- ibsCount(Xchromosome)
distance <- ibsDist(ibs)

Run the code above in your browser using DataLab