mutatePlan: Evolute mating plan to reduce relatedness

View source: R/mutatePlan.R

mutatePlanR Documentation

Evolute mating plan to reduce relatedness

Description

Evolute mating plan to reduce relatedness

Usage

mutatePlan(
  initialPlan,
  data,
  K,
  rate = 10,
  memory.mutation = 3,
  tries = 1000,
  perc.reduce.Y = 0,
  n.cross = 100,
  max.cross = 4,
  min.cross = 2,
  max.cross.to.search = 1e+05,
  culling.pairwise.k = 0.0675
)

Arguments

initialPlan

initial plan to begin to mutate

data

data frame with possible crosses to filter out

K

relationship matrix

rate

mutation rate (how many lines to substitute)

memory.mutation

after how many successes to reset the mutation memory

tries

maximum number of attempts to mutate

perc.reduce.Y

fraction allowed to reduce Y during mutation

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.

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.