Statistics are those that will hopefully be useful for describing pedigrees to be used in quantitative genetic analyses of natural populations. This module will be most useful when cohort affinities for all individuals can be provided. All outputs are produced in a numerical form as well as in graphical summaries.
pedigreeStats(Ped, cohorts = NULL, dat = NULL,
retain='informative', graphicalReport = "y",
includeA=TRUE,lowMem=FALSE,grContrast=FALSE)
A pedigree
(Optional) Cohort affinities for members of the pedigree
(Optional) Available data based upon which the pedigree can be pruned for just informative individuals
The default value ('informative') results in pedigree being pruned to only those indivduals who's records contribute to estimation of quantitative genetic parameters with respect to the available data specified in dat
. Otherwise, specifying a value of 'ancestors' will result in the inclusion of all ancestors of phenotyped individuals.
Controls whether or not grphical output is produced.
If TRUE, additive genetic relatedness matrix is returned.
If TRUE, then stats based on calculation of A are not performed.
If TRUE, then uglier shades of red and blue are used to denote male and female statistics in graphical reports, but these colours provide better contrast in greyscale.
Total number of maternities defined by the pedigree.
Total number of paternities defined by the pedigree.
Total number of pair-wise full sib relationships defined by the pedigree.
Total number of pair-wise maternal sib relationships defined by the pedigree. To get the number of maternal half sibs, subtract totalFullSibs.
Total number of pair-wise paternal sib relationships defined by the pedigree. To get the number of paternal half sibs, subtract totalFullSibs.
Total number of maternal grandmothers defined by the pedigree.
Total number of maternal grandfathers defined by the pedigree.
Total number of paternal grandmothers defined by the pedigree.
Total number of paternal grandfathers defined by the pedigree.
The pedidigree pedth, i.e. maximum number of ancestral generations, for each individual.
Individual inbreeding coefficients
Sibship size of each individual appearing the the dam column of the pedigree.
Sibship size of each individual appearing the the sire column of the pedigree.
Proportion of pair-wise relatedness values less than values ranging from 0 to 1.
Discretized distribution of relatedness.
Returns the pedigree.
(Optional) Numer of individuals belonging to each cohort.
(Optional) Number of assigned maternities by offspring cohort.
(Optional) Number of assigned paternities by offspring cohort.
(Optional) Number of pair-wise full sib relationships by cohort - note the sum of these need not be equal to totalFullSibs in pedigrees of long-lived organisms.
(Optional) Number of pair-wise maternal sib relationships by cohort - note the sum of these need not be equal to totalMaternalSibs in pedigrees of long-lived organisms.
(Optional) Number of pair-wise paternal sib relationships by cohort - note the sum of these need not be equal to totalPaternalSibs in pedigrees of long-lived organisms.
(Optional) Numbers of maternal grandmother assignments by offspring cohort.
(Optional) Numbers of maternal grandmother assignments by offspring cohort.
(Optional) Numbers of paternal grandfather assignments by offspring cohort.
(Optional) Numbers of paternal grandfather assignments by offspring cohort.
(Optional) Distributions of pedigree depth by cohort.
(Optional) Mean relatedness among cohorts.
(Optional) Returns cohort designations.
Graphical summaries of a number of these summary statistics are printed to the console when codegraphicalReports=='y'.
Morrissey, M.B, and A.J. Wilson, 2009. pedantics, an R package for pedigree-based genetic simulation, and pedigree manipulation, characterisation, and viewing. Molecular Ecology Resources.
# NOT RUN {
# }
# NOT RUN {
data(gryphons)
pedigree<-gryphons[,1:3]
gryphonsPedigreeSummary<-pedigreeStats(pedigree,
cohorts=gryphons$cohort,graphicalReport='n')
gryphonsPedigreeSummary$totalMaternities
gryphonsPedigreeSummary$totalPaternities
gryphonsPedigreeSummary$maternitiesByCohort
gryphonsPedigreeSummary$paternitiesByCohort
# }
Run the code above in your browser using DataLab