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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/structure.R

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

1
ibsDist(counts)

Arguments

counts

A matrix of IBS counts as produced by the function ibsCount

Value

An object of class "dist" (see dist)

Author(s)

David Clayton [email protected]

See Also

ibsCount, dist

Examples

1
2
3
data(testdata)
ibs <- ibsCount(Xchromosome)
distance <- ibsDist(ibs)

Example output

Loading required package: survival
Loading required package: Matrix

snpStats documentation built on Nov. 17, 2017, 9:07 a.m.