write.struct: Write structure file

View source: R/writefstat.R

write.structR Documentation

Write structure file

Description

Write a genotype data set to a file in the structure format

Usage

write.struct(dat,ilab=NULL,pop=NULL,MARKERNAMES=FALSE,MISSING=-9,fname="dat.str")

Arguments

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")

Value

a text file in the structure format

Author(s)

Jerome Goudet jerome.goudet@unil.ch

References

Pritchard JK etal. 2000. Inference of population structure using multilocus genotype data. Genetics 155:945-959


hierfstat documentation built on May 6, 2022, 1:05 a.m.