Write a genepopedit object from a tidy data frame or GDS file/object.
Why not use genepopedit::genepop_flatten
?
genepopedit requires a specific type of genepop, so if you don't want to manipulate your genepop file, radiator is an alternative.
radiator follows guidelines highlighted here: genepop format, but the 3 functions in radiator that reads genepop files:
the underlying module: tidy_genepop
imports a larger variety of genepop alternatives, similarly to
adegenet read.genepop
function, only faster.
write_genepopedit(data)
(4 options) A file or object generated by radiator:
tidy data
Genomic Data Structure (GDS)
How to get GDS and tidy data ?
Look into tidy_genomic_data
,
read_vcf
or
tidy_vcf
.
A genepopedit object in the global environment.
Stanley RRE, Jeffery NW, Wringe BF, DiBacco C, Bradbury IR (2017) genepopedit: a simple and flexible tool for manipulating multilocus molecular data in R. Molecular Ecology Resources, 17, 12-18.