devolutePlan: Devolute mating plan to reduce relatedness

View source: R/devolutePlan.R

devolutePlanR Documentation

Devolute mating plan to reduce relatedness

Description

Devolute mating plan to reduce relatedness

Usage

devolutePlan(
  data,
  K,
  n.cross = 200,
  max.cross = 4,
  min.cross = 2,
  max.cross.to.search = 1e+05,
  culling.pairwise.k = 0.25,
  n.threads = 1,
  n.steps = 200,
  min.target.k = NULL
)

Arguments

data

data frame with possible crosses to filter out

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

max.cross.to.search

maximum number of rows in the input to search for the solution

culling.pairwise.k

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

n.threads

number of threads to run in parallel

n.steps

number of steps in the evolution

min.target.k

if target K is lower than this threshold, the algorithm stops.

Value

A list with a data frame with the steps and a data frame with the mating plan at the last iteration

Author(s)

Rodrigo R Amadeu, rramadeu@gmail.com


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