sstacks_setup: batch setup sstacks For each set samples (processed with...

View source: R/stacks.R

sstacks_setupR Documentation

batch setup sstacks For each set samples (processed with ustacks and cstacks) and a population map, this function creates a bash job file to run sstacks. The output of this function is a character string vector with paths to bash job files, which can be piped to the function 'rsbatch' to submit the jobs.

Description

batch setup sstacks

For each set samples (processed with ustacks and cstacks) and a population map, this function creates a bash job file to run sstacks. The output of this function is a character string vector with paths to bash job files, which can be piped to the function 'rsbatch' to submit the jobs.

Usage

sstacks_setup(save.in, popmap = NULL, p = 16, sstacks.path = NULL)

Arguments

save.in

Character string with directory where output directories and files should be saved. This should be the same as the value used for the 'save.in' argument of ustacks_setup.

popmap

Character string to population map. Default NULL, in which case all individuals in 'save.in' are assigned to the same 'population'.

p

Number of threads to use for job parallization. Default 16.

sstacks.path

Character string with path to the sstacks executable. Default NULL, in which case the path is derived from the default setting, which can be set with config_miscwrappers('<path/to/sstacks>').

Value

Character string vector with the paths to bash job files.


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