Dear everyone,
I'm getting stuck to export a genlight object to Dart format file.
I used dart2genlight to import Dartseq data into R and converted it to a genlight object (gl <-gl.read.dart)
Then, I used gl.sim.ind and gl.sim.offspring to simulate new individuals and offsprings.
I want to export a genlight object with new individuals to Dart data. Could you please guide me on how to convert genlight2dart? The output files will be used to convert to Cervus 3.0.7 input files
Many thanks. I really appreciate your help
Because
google groups doesn't allow to send executable files, the attached file
has a ".txt" extension. To use this function please save it to your
working directory and change the extension of the file to ".R". Then in
the command line of R type:
> source(“gl2genepop.R”)
> gl2genepop(your_data.gl, outpath = getwd())
The above command will save the file with the name genepop.txt in your working directory.
Please let us know whether it worked for you.