write_gsi_sim | R Documentation |
Write a gsi_sim file from a data frame (wide or long/tidy). Used internally in assigner and radiator and might be of interest for users.
write_gsi_sim(
data,
pop.levels = NULL,
pop.labels = NULL,
strata = NULL,
filename = "gsi_sim.unname.txt"
)
data |
A tidy genomic data set in the working directory tidy formats.
How to get a tidy data frame ?
Look for radiator |
pop.levels |
(option, 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. |
pop.labels |
(optional, string) Use this argument to rename/relabel
your pop or combine your pop. e.g. To combine |
strata |
(optional) A tab delimited file with 2 columns with header:
|
filename |
The name of the file written to the working directory. |
A gsi_sim input file is saved to the working directory.
Thierry Gosselin thierrygosselin@icloud.com
Anderson, Eric C., Robin S. Waples, and Steven T. Kalinowski. (2008) An improved method for predicting the accuracy of genetic stock identification. Canadian Journal of Fisheries and Aquatic Sciences 65, 7:1475-1486.
Anderson, E. C. (2010) Assessing the power of informative subsets of loci for population assignment: standard methods are upwardly biased. Molecular ecology resources 10, 4:701-710.
/hrefhttps://github.com/eriqande/gsi_simgsi_sim and /hrefhttps://github.com/eriqande/rubiasrubias: genetic stock identification (GSI) in the tidyverse.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.