hPed2Ped: Transform a haplotype pedigree into a pedigree.

View source: R/makeHaplotypes.R

hPed2PedR 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)

HaploSim documentation built on Aug. 14, 2022, 1:06 a.m.

Related to hPed2Ped in HaploSim...