minimalPattern: Minimal IBD pattern

View source: R/multiPersonIBD.R

minimalPatternR Documentation

Minimal IBD pattern

Description

Compute the minimal form of given multiperson IBD pattern.

Usage

minimalPattern(x)

Arguments

x

An integer vector of even length.

Value

An integer vector of the same length as x.

Examples

v = c(1,2,2,3)
stopifnot(identical(minimalPattern(v), c(1,2,1,3)))


magnusdv/ribd documentation built on March 29, 2024, 5:20 a.m.