write.struct | R Documentation |
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")
dat |
a genotype dataframe |
ilab |
an (optional) column with individual labels |
pop |
an (optional) column with population identifiers |
MARKERNAMES |
whether to add a row with marker names. If TRUE, takes the loci names from dat |
MISSING |
The code for missing alleles |
fname |
a string containing the file name (default to "dat.str") |
a text file in the structure format
Jerome Goudet jerome.goudet@unil.ch
Pritchard JK etal. 2000. Inference of population structure using multilocus genotype data. Genetics 155:945-959
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.