check.parents: Relatedness check between two individuals

View source: R/check.parents.R

check.parentsR 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,
  avoid.mating.parent = FALSE,
  still.check = FALSE
)

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)

avoid.mating.parent

Set to TRUE to avoid matings of an individual to its parents

still.check

Internal parameter (avoid.mating.parent check)

Value

logical with TRUE if relatedness does not exceed 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))

MoBPS documentation built on Nov. 5, 2025, 6:26 p.m.

Related to check.parents in MoBPS...