fastsimcoalsims_Par: fastsimcoalsims_Par Function to run fastsimcoalsims in...

View source: R/run_delimitR.R

fastsimcoalsims_ParR Documentation

fastsimcoalsims_Par Function to run fastsimcoalsims in parallel. This is modified from Paul Hime's function of the same name. Implemented in the function rundelimitR. Simulates the site frequency spectrum for a set of input models each defined by their .est and .tpl files.

Description

fastsimcoalsims_Par

Function to run fastsimcoalsims in parallel. This is modified from Paul Hime's function of the same name. Implemented in the function rundelimitR. Simulates the site frequency spectrum for a set of input models each defined by their .est and .tpl files.

Usage

fastsimcoalsims_Par(
  prefix,
  pathtofsc,
  nreps = 10000,
  wd = getwd(),
  ncores = 2,
  run.parallel = T
)

Arguments

prefix

Prefix used for .tpl and .est model files

pathtofsc

Path to the fastsimcoal2 executable

nreps

Number of replicate runs to do for each model. Default is 10000.

wd

Working directory. Default is to use the current working directory.

ncores

Number of cores to use

run.parallel

If simulations on different models should also be run in parallel. Default is TRUE. In some cases running in parallel causes weird issues and in such cases try changing this to FALSE.

Value

NULL. Results are written to working directory.

Examples


run_delimitR(vcf="PATH/TO/VCF",traitsfile="PATH/TO/TRAITSFILE")

JeffWeinell/misc.wrappers documentation built on Sept. 20, 2023, 12:42 p.m.