View source: R/write_structure.R
write_structure | R Documentation |
Write a structure file from a tidy data frame Used internally in radiator and assigner and might be of interest for users.
write_structure(data, pop.levels = NULL, filename = NULL, ...)
data |
A tidy data frame object in the global environment or
a tidy data frame in wide or long format in the working directory.
How to get a tidy data frame ?
Look into radiator |
pop.levels |
(optional, string) This refers to the levels in a factor. In this
case, the id of the pop.
Use this argument to have the pop ordered your way instead of the default
alphabetical or numerical order. e.g. |
filename |
(optional) The file name prefix for the structure file
written to the working directory. With default: |
... |
other parameters passed to the function. |
A structure file is saved to the working directory.
Thierry Gosselin thierrygosselin@icloud.com
Pritchard JK, Stephens M, Donnelly P. (2000) Inference of population structure using multilocus genotype data. Genetics. Genetics Society of America. 155: 945–959.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.