gghead: Append genetic groups to the pedigree

View source: R/gghead.R

ggheadR Documentation

Append genetic groups to the pedigree

Description

This function appends parents that are not available in the first column of the pedigree, to the head of the pedigree, and sorts it. Given a pedigree with all missing parents replaced with the corresponding genetic groups, this functions appends genetic groups to the head of the pedigree.

Usage

gghead(ped)

Arguments

ped

: data.frame with integer columns corresponding to ID, SIRE, DAM. Missing value is 0.

Details

Consider this simple pedigree:

3 0 0

4 3 0

6 4 5

5 0 0

First, unknown parents are replaced with the corresponding genetic groups.

Please note that unknown parent IDs should be smaller than progeny IDs.

3 1 2

4 3 2

6 4 5

5 1 2

Then, gghead is applied to this pedigree (see the example).

Value

Processed pedigree data.frame

Examples

ped = data.frame(ID=c(3,4,6,5), SIRE=c(1,3,4,1), DAM=c(2,2,5,2))
gghead(ped)


ggroups documentation built on March 28, 2022, 1:06 a.m.