Description Usage Arguments Value Author(s) References See Also Examples
View source: R/sim2structure.R
The function sim2structure
converts a hybridsim object into a Structure 2.3 input file.
1 | sim2structure(x,filename)
|
x |
a |
filename |
a character string indicating the name of the output file |
a Structure input file
F. Balao fbalao@us.es, J.L. García-Castaño
Falush, D., M. Stephens, J.K. Pritchard. 2007. Inference of population structure using multilocus genotype data: dominant markers and null alleles.Molecular Ecology Notes 7: 574-578.
Pritchard, J.K., M. Stephens, P. Donnelly. 2000. Inference of population structure using multilocus genotype data. Genetics 155: 945-959.
sim2arlequin
sim2bayescan
sim2introgress
sim2newhybrids
sim2popgene
1 2 3 4 5 | ## simulate F1 hybrids
F1hybrids<-hybridsim(Nmarker=30,Na=30,Nb=100,Nf1=30, type="neutral", hybrid="F1")
## convert to STRUCTURE input file
sim2structure(F1hybrids,filename="F1hybrids_Structure.txt")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.