# define the new chromosomes 'Z' and 'W'
snpgdsOption(Z=27L, W=28L)
# open an example dataset (HapMap)
genofile <- snpgdsOpen(snpgdsExampleFileName())
snpgdsOption(genofile)
# close the genotype file
snpgdsClose(genofile)
Run the code above in your browser using DataLab