Write a genotype data set to a file in the structure format
write.struct(dat,ilab=NULL,pop=NULL,MARKERNAMES=FALSE,MISSING=-9,fname="dat.str")
a genotype dataframe
an (optional) column with individual labels
an (optional) column with population identifiers
whether to add a row with marker names. If TRUE, takes the loci names from dat
The code for missing alleles
a string containing the file name (default to "dat.str")
a text file in the structure format
Pritchard JK etal. 2000. Inference of population structure using multilocus genotype data. Genetics 155:945-959