Reads a genotype file and optionally checks it for common formatting/data issues.
readGenotype(genotypePath, separatorGenotype = " ", check = TRUE)A genotype matrix.
character. Path to the genotype file (animals in rows and SNPs in columns).
SNPs should be coded as 0, 1, 2 for AA, AB, BB. Use 9 for missing data.
Please refer to the vignette for more information.
character. Field separator used in the genotype file.
logical. If TRUE, check the genotype file for possible errors.