Learn R Programming

hsphase (version 1.2.3)

readGenotype: Read and Check the Genotype File

Description

This function reads and checks genotype files.

Usage

readGenotype(genotypePath, separatorGenotype = " ", check = TRUE)

Arguments

genotypePath
character genotype path (animals (rows) and SNP (columns), SNP should be coded as 0, 1 and 2 for respectively AA, AB and BB. Use 9 for missing data. please refer to vignette for more information)
separatorGenotype
character separator character for genotype
check
logical check the genotype file for possible errors

Value

  • Returns the genotype matrix.

Examples

Run this code
# A comprehensive demo and example dataset is available from
# http://www-personal.une.edu.au/~cgondro2/hsphase.html

Run the code above in your browser using DataLab