complete_ped_links: Function to complete pedigree links

View source: R/pedigree_fix_fuctions.R

complete_ped_linksR Documentation

Description

This fills in missing pedigree links in a random fashion using plausable individuals. It for individuals with missing sires or dams it selects a parent that could have been alive within a suitable time period

Usage

complete_ped_links(
  pedigree,
  founders,
  rep_years_sire = c(2, 10),
  rep_years_dam = c(2, 10),
  cohorts = NULL
)

Arguments

pedigree

A data frame or matrix. A pedigree with ID, Sire and Dam, Sex columns

founders

A vector of founder IDs matching those in the pedigree

rep_years_sire

vector. A vector of length 2, the first value is the time until a male is reproductively active and the second value the time a male is no longer reproductively active. Default: c(2,10)

rep_years_dam

vector. A vector of length 2, the first value is the time until a female is reproductively active and the second value the time a female is no longer reproductively active. Default: c(2,10)

cohorts

An optional vector, the same length of the pedigree containing cohort information which can be provided if there is not a cohort column in the pedigree

Examples


###

simplydch/GeneDrop documentation built on July 8, 2024, 8:17 p.m.