runEBVsim: Run EBV Simulations

Description Usage Arguments Details Value Author(s)

View source: R/runEBVsim.R

Description

Run a set of scenarios and replicates to generate genotypes.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
runEBVsim(
  label,
  scenarios,
  num.rep,
  google.drive.id = NULL,
  delete.fsc.files = TRUE,
  use.wd = FALSE,
  num.cores = 1,
  fsc.exec = "fsc26"
)

Arguments

label

label used for output files and folders for the run.

scenarios

data.frame where each row provides different parameters for each scenario. See Details for more information on its structure.

num.rep

number of replicates to run for each scenario.

google.drive.id

id of root Google Drive to save run to.

delete.fsc.files

delete fastsimcoal files when the run is complete?

use.wd

use the working directory to save fastsimcoal files? If FALSE (default), a temporary folder is used, which is deleted when the R session is closed.

num.cores

number of cores to use. Each replciate is allocated to a separate core. If set to 1, then progress is output to the console.

fsc.exec

name of fastsimcoal executable.

Details

The scenarios data.frame must have the following columns:

num.pops number of populations.
Ne effective population size of each population.
num.samples number of samples to use.
mig.rate migration rate.
mig.type type of migration matrix: "island" or "stepping.stone".
dvgnc.time divergence time of populations.
rmetasim.ngen number of generations to run rmetasim for.

Value

vector of folders where scenario data and replicates were written.

Author(s)

Eric Archer eric.archer@noaa.gov


EricArcher/ebvSim documentation built on April 9, 2020, 3:39 p.m.