readGenotype: Read and Check the Genotype File

View source: R/hss.R

readGenotypeR Documentation

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.

Note

Please refer to vignette for more information.

Examples

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

hsphase documentation built on May 29, 2024, 2:20 a.m.