View source: R/write_faststructure.R
write_faststructure | R Documentation |
Write a faststructure file from a tidy data frame. For biallelic dataset only. Used internally in radiator and assigner and might be of interest for users.
write_faststructure(
data,
plink.bed = FALSE,
pop.levels = NULL,
filename = NULL,
...
)
data |
(4 options) A file or object generated by radiator:
How to get GDS and tidy data ?
Look into |
plink.bed |
To export in plink BED format. This will write 3 files:
|
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 faststructure file
written to the working directory. With default: |
... |
other parameters passed to the function. |
A faststructure file is saved to the working directory.
Thierry Gosselin thierrygosselin@icloud.com
Raj A, Stephens M, Pritchard JK (2014) fastSTRUCTURE: Variational Inference of Population Structure in Large SNP Datasets. Genetics, 197, 573-589.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.