Learn R Programming

hsphase (version 1.2.3)

rpoh: Reconstruct Pedigree Based on Matrix of Opposing Homozygotes

Description

Reconstructs a half-sib pedigree based on a matrix of opposing homozygotes

Usage

rpoh(genotypeMatrix, oh, forwardVectorSize = 30,excludeFP = TRUE, nsap = 3,
maxRec = 15, intercept = 26.3415, coefficient = 77.3171, snpNooh, method)

Arguments

genotypeMatrix
Matrix genotype of one chromosome (data should be numeric. Use 0, 1 and 2 for respectively AA, AB and BB. Use 9 for missing data).
oh
Integer Opposing homozygotes matrix (Output of ohg)
forwardVectorSize
Integer number of heterozygous sites used to validate recombination events or check for genotyping errors
excludeFP
logical excludes SNPs that may cause heterozygous sites in the sire due to genotyping errors or map errors
nsap
Integer number of SNP per block to validate recombinations
maxRec
Integer maximum number of expected recombinations per individual
intercept
Integer Intercept of fitted model
coefficient
Integer coefficient of fitted model
snpNooh
Integer number of SNPs used to create oh matrix (this number must be divided by 1000)
method
Character pedigree reconstruction method

Value

  • Returns a data frame with two columns, the first column is animals' ID and the second column are sire identifiers (randomly generated).

Details

This function calls the bmh and recombinations functions to count the number of recombinations in each half-sib group.

See Also

bmh and recombinations

Examples

Run this code
# Please run demo(hsphase)

Run the code above in your browser using DataLab