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

Description Usage Arguments Value Examples

View source: R/getProbandPedigree.R

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

1
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

1
2
3
4
5
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 April 24, 2021, 3:13 p.m.