View source: R/allocate.mate.H.R
allocate.mate.H | R Documentation |
This function generates a mating list for a set of parents. The mating list can be generated i) to minimise the average inbreeding coefficient (F) of families generated or ii) according to assortative mating principles. Inputs include a list of parents and a relationship matrix (H) including these parents.
allocate.mate.H(H, parents, max_F = 1, method = "min_F")
H |
is square additive genetic relationship matrix with individual idenifiers as rownames and colnames. |
parents |
data frame with the following columns (class in parentheses):
|
max_F |
is the maxiumum inbreeding coefficient allowed in the offspring of parents (numeric between 0 and 1) |
method |
either 'min_F' (to minimise the average inbreeding in offspring) or 'assortative' (to apply assortative mating) (character) |
'summary' is a data frame containing a summary of all possible families generated from matings between male parents:
'SELECTED' N represents unselected families, Y represents selected families (i.e. mate allocations to be generated) and All represents all possible families.
'COUNT_FAMS' count of families.
MEAN_EBV' mean of family EBVs.
'SD_EBV' standard deviation of family EBVs.
'MIN_EBV' minimum of family EBVs.
'MIN_EBV' maximum of family EBVs.
MEAN_EBV' mean of family inbreeding coefficients (F).
'SD_EBV' standard deviation of family inbreeding coefficients (F).
'MIN_EBV' minimum of family inbreeding coefficients (F).
'MIN_EBV' maximum of family inbreeding coefficients (F).
'all_families' is a data frame containing details of all possible families able to be generated from matings between parents:
'SIRE' male parent.
'DAM' female parent.
'F' inbreeding coefficient of family members (i.e. the 'family F').
'EBV' mean of parent EBVs (i.e. the 'family EBV').
'SELECTED' N represents an unselected family (i.e. family is not to be generated), Y represents a selected family (i.e. mate allocated - family to be generated).
'optimal_families' is a data frame containing details of mate allocations (i.e.families to be generated from matings between male parents):
'SIRE' male parent.
'DAM' female parent.
'F' inbreeding coefficient of family members (i.e. the 'family F').
'EBV' mean of parent EBVs (i.e. the 'family EBV').
#Retrieve example data
H <- AllocateMate::H
parents <- AllocateMate::parents
output <- allocate.mate.H(H, parents, max_F = 0.02, method = "min_F")
output$summary
head(output$all_families)
head(output$optimal_families)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.