powered by
This function writes genotype information into a binary PED (BED) filed used in plink. For more details about this format see http://zzz.bwh.harvard.edu/plink/binary.shtml.
write_bed(x,n,p,bed_file)
integer, number of individuals.
integer, number of SNPs.
integer vector that contains the genotypic information coded as 0,1,2 and 3 (see details below). The information must be in snp major order. The vector should be of dimension n*p with the snps stacked.
output binary file with genotype information.
Gustavo de los Campos, Paulino Perez Rodriguez,
The vector contains integer codes:
if (FALSE) { library(BGLR) demo(write_bed) }
Run the code above in your browser using DataLab