Learn R Programming

dartR.sim (version 0.71)

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.71

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Jose L. Mijangos

Last Published

November 15th, 2025

Functions in dartR.sim (0.71)

gl.sim.WF.table

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

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

Simulates offspring based on alleles provided by parents
gl.sim.ind

Simulates individuals based on allele frequencies
interactive_reference

Shiny app for the input of the reference table for the simulations
gl.sim.emigration

Simulates emigration between populations
gl.report.nall

Report allelic retention and simulate a rarefaction curve
gl.sim.WF.run

Runs Wright-Fisher simulations
gl.sim.Neconst

Simulate a population with constant mutation rate
gl.diagnostics.sim

Comparing simulations against theoretical expectations
gl.sim.mutate

Simulates mutations within a genlight object
gl.sim.ind.af

Simulate diploid genotypes from per-population allele frequencies
interactive_sim_run

Shiny app for the input of the simulations variables
zzz

Setting up the package