View source: R/pedigree_fix_fuctions.R
fix_pedigree | R Documentation |
This function checks the pedigree for potentential problems in structure it reorganises the individuals if neccessary and renames columns to ensure the pedigree is in the correct format for gene-dropping. Sex and Cohort can be included as columns in the pedigree or provided as seperate vectors. It adds in any individuals that are missing and checks sex coding is correct and consistent. It returns the pedigree as a matrix
fix_pedigree(pedigree, sex = TRUE, cohort = TRUE)
pedigree |
A dataframe or matrix. A pedigree with ID, Sire and Dam columns. |
sex |
logical or vector. TRUE if sex column is included in pedigree, otherwise a vector containing the sex of each individual. Defaults to TRUE |
cohort |
logical or vector. TRUE if cohort column is included in pedigree, otherwise a vector containing the cohort of each individual. Defaults to TRUE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.