check.parents {MoBPS}R Documentation

Relatedness check between two individuals

Description

Internal function to check the relatedness between two individuals

Usage

check.parents(population, info.father, info.mother, max.rel = 2)

Arguments

population

Population list

info.father

position of the first parent in the dataset

info.mother

position of the second parent in the dataset

max.rel

maximal allowed relationship (default: 2, alt: 1 no full-sibs, 0 no half-sibs)

Value

logical with TRUE if relatedness does not excced max.rel / FALSE otherwise.

Examples

data(ex_pop)
check.parents(ex_pop, info.father=c(4,1,1,1), info.mother=c(4,2,1,1))

[Package MoBPS version 1.6.64 Index]