Learn R Programming

⚠️There's a newer version (0.71) of this package.Take me there.

dartR.sim (version 0.70)

Computer Simulations of 'SNP' Data

Description

Allows to simulate SNP data using genlight objects. For example, it is straight forward to simulate a simple drift scenario with exchange of individuals between two populations or create a new genlight object based on allele frequencies of an existing genlight object.

Copy Link

Version

Install

install.packages('dartR.sim')

Monthly Downloads

455

Version

0.70

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Jose L. Mijangos

Last Published

November 20th, 2023

Functions in dartR.sim (0.70)

gl.diagnostics.sim

Comparing simulations against theoretical expectations
gl.sim.WF.run

Runs Wright-Fisher simulations
gl.sim.emigration

Simulates emigration between populations
gl.sim.create_dispersal

Creates a dispersal file as input for the function gl.sim.WF.run
interactive_sim_run

Shiny app for the input of the simulations variables
zzz

Setting up the package
gl.sim.mutate

Simulates mutations within a genlight object
gl.sim.ind

Simulates individuals based on allele frequencies
gl.sim.offspring

Simulates offspring based on alleles provided by parents
gl.sim.WF.table

Creates the reference table for running gl.sim.WF.run
interactive_reference

Shiny app for the input of the reference table for the simulations