getProbandPedigree: Gets pedigree to ancestors of provided group leaving...

View source: R/getProbandPedigree.R

getProbandPedigreeR Documentation

Gets pedigree to ancestors of provided group leaving uninformative ancestors.

Description

Filters a pedigree down to only the ancestors of the provided group, removing unnecessary individuals from the studbook. This version builds the pedigree back in time starting from a group of probands. This will include all ancestors of the probands, even ones that might be uninformative.

Usage

getProbandPedigree(probands, ped)

Arguments

probands

a character vector with the list of animals whose ancestors should be included in the final pedigree.

ped

datatable that is the Pedigree. It contains pedigree information. The fields sire and dam are required.

Value

A reduced pedigree.

Examples

library(nprcgenekeepr)
ped <- nprcgenekeepr::pedWithGenotype
ids <- nprcgenekeepr::qcBreeders
sires <- getPotentialSires(ids, minAge = 1, ped)
head(getProbandPedigree(probands = sires, ped = ped))

rmsharp/nprcmanager documentation built on Feb. 2, 2025, 12:45 a.m.