Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

write.struct

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

Estimation and Tests of Hierarchical F-Statistics

v0.5-10
GPL (>= 2)
Authors
Jerome Goudet [aut, cre], Thibaut Jombart [aut], Zhian N. Kamvar [ctb], Eric Archer [ctb], Olivier Hardy [ctb]
Initial release
2021-11-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.