refinePlan: Devolute mating plan to reduce relatedness

View source: R/refinePlan.R

refinePlanR Documentation

Devolute mating plan to reduce relatedness

Description

Devolute mating plan to reduce relatedness

Usage

refinePlan(
  data,
  plan,
  K,
  n.cross = 50,
  max.cross = 4,
  min.cross = 2,
  culling.pairwise.k = 0.25,
  max.attempts = 100
)

Arguments

data

data frame with possible crosses to filter out

plan

current mating plan

K

relationship matrix

n.cross

number of crosses in the mating plan

max.cross

maximum number of crosses per individual in the plan

min.cross

minimum number of crosses per individual in the plan

culling.pairwise.k

don't allow crosses with more than this threshold of relatedness. Default is 0.25.

max.attempts

maximum number of attempts to improve the plan

Value

A list with a data frame with the attempts and a data frame with the improved mating plan

Author(s)

Rodrigo R Amadeu, rramadeu@gmail.com


rramadeu/SimpleMating documentation built on Jan. 30, 2023, 7:29 p.m.