pedBreedComp | R Documentation |
Computes for every individual the genetic contribution from native founders and from other breeds according to the pedigree.
pedBreedComp(Pedig, thisBreed)
Pedig |
Data frame containing the pedigree with the first 3 columns being |
thisBreed |
Name of the breed of interest as denoted in column |
For every individual the genetic contribution from native founders and from other breeds is computed. It is the fraction of genes that originate from the respective breed.
Data frame with one row for each individual and the following columns
Indiv |
IDs of the individuals |
native |
Native Contribution: The genetic contribution from native founders. |
... |
Genetic contributions from other breeds, one column for each breed. The columns are ordered, so that the most influential breeds come first. |
Robin Wellmann
data(ExamplePed)
Pedig <- prePed(ExamplePed, thisBreed="Hinterwaelder", lastNative=1970)
cont <- pedBreedComp(Pedig, thisBreed="Hinterwaelder")
cont[1000:1010,2:5]
contByYear <- conttac(cont, Pedig$Born, use=Pedig$Breed=="Hinterwaelder", mincont=0.04, long=FALSE)
round(contByYear,2)
barplot(contByYear,ylim=c(0,1), col=1:10, ylab="genetic contribution",
legend=TRUE, args.legend=list(x="bottomleft",cex=0.6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.