Learn R Programming

MoBPS (version 1.13.1)

check.parents: 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
)

Value

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

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)

Examples

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

Run the code above in your browser using DataLab