check.parents: Relatedness check between two individuals

Description Usage Arguments Value Examples

View source: R/check.parents.R

Description

Internal function to check the relatedness between two individuals

Usage

1
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

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

MoBPS documentation built on Nov. 9, 2021, 5:08 p.m.

Related to check.parents in MoBPS...