R package to deal with pedigrees.
upcoming updates: * pedStats() - A function for more in depth description of a pedigree. * getBdate() - Estimates a birth date for animals without that record in the pedigree. * getFounder() - Calculates the effective number of founders for a pedigree.
For now, PedyR package has the following functions:
Checks for the (most common) errors in pedigrees, such as duplicated ids, sire and dams with the same ids, etc...
Calculates the inbreeding coefficient [1] for each individual in the pedigree.
Calculates the generation of each individual in the pedigree.
A function to order a pedigree using the Kahn's topological sorting algorithm [2].
Calculates the effective population size for a given pedigree using methods discribed in [3].
id = c(1,2,3,4,5,6,7,8,9,10)
sire = c(0,0,1,1,3,5,5,5,7,7)
dam = c(0,0,2,2,2,4,4,6,6,8)
ped = as.data.frame(cbind(id,sire,dam))
checkPed(ped)
ped$F = getF(ped)
ped$Gen = getGen(ped)
Please feel free to submit new ideas, code corrections or pull requests to us.
This project is licensed under the MIT License.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.