hPed2Ped {HaploSim}R Documentation

Transform a haplotype pedigree into a pedigree.

Description

Transforms a haplotype pedigree into a pedigree. Individuals in a haplotype pedigree are identified through meiosis. The number of rows of the pedigree equals the number of unique combinations of haplotypes plus the number of haplotypes which did not 'participate' in a meiosis event. The latter haplotypes form individuals with only one haplotype and thus only one parent. Row number of the pedigree identifies individuals. The pedigree has four columns. Columns 3 and 4 identify the haplotypes of the individual. Columns 1 and 2 identify parental individuals of the individuals by their row number in the pedigree.

Usage

hPed2Ped(hPed)

Arguments

hPed

The haplotype pedigree from which the pedigree is build.

Value

A data.frame.

See Also

SampleHaplotype, buildhPedigree

Examples

example(buildhPedigree)
ped <- hPed2Ped(hPedigree)

[Package HaploSim version 1.8.4.2 Index]