View source: R/makeHaplotypes.R
hPed2Ped | R Documentation |
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.
hPed2Ped(hPed)
hPed |
The haplotype pedigree from which the pedigree is build. |
A data.frame
.
SampleHaplotype
, buildhPedigree
example(buildhPedigree) ped <- hPed2Ped(hPedigree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.