Learn R Programming

hsphase (version 1.2.3)

hss: Half-sib Family Splitter

Description

Splits the dataset into half-sib family groups based on a pedigree.

Usage

hss(pedigree, genotype, check = TRUE )

Arguments

pedigree
Matrix the pedigree matrix should contain at least two columns, the first column with the half-sib IDs and the second column with the sires IDs
genotype
Matrix A genotype matrix with SNP ordered by mapping position in the columns. Data should be numeric. Use 0, 1 and 2 respectively for AA, AB and BB. Use 9 for missing data
check
logical check the genotype file for the possible errors

Value

  • Returns a list of numeric matrices, each matrix is a half-sib family.

Details

Only half-sib groups that have more than 3 individuals will be returned.

Examples

Run this code
# Please run demo(hsphase)

Run the code above in your browser using DataLab