Extract data into a genlight object
slim_extract_genlight(x, ...)
slimr_results
object containing data generated by r_output
using outputFull()
in SLiM
Arguments passed to or from other methods.
A genlight
object
if(slim_is_avail()) {
test_sim <- slim_script(
slim_block_init_minimal(mutation_rate = 1e-6),
slim_block_add_subpops(1, 100),
slim_block(1, 20, late(), {
r_output(sim.outputFull(), "out", do_every = 10)
})
) %>%
slim_run()
if(require("adegenet", quietly = TRUE)) {
plot(slim_extract_genlight(test_sim$output_data))
}
}
#>
#>
#> Simulation finished with exit status: 0
#>
#> Success!
#>
#> /// adegenet 2.1.10 is loaded ////////////
#>
#> > overview: '?adegenet'
#> > tutorials/doc/questions: 'adegenetWeb()'
#> > bug reports/feature requests: adegenetIssues()
#>