par_to_config: Extract information from a par file

Description Usage Arguments Value

View source: R/par_to_config.R

Description

A function extracting information from a par file and put it into a configuration data frame. Note that because we only consider one historical expansion event, the par file format is semi-fixed, and a template par file is included in the package for using as a template.

Usage

1
par_to_config(bayessc_par_file, species, nloci, gen = NA)

Arguments

bayessc_par_file

A character string providing the path to the .par file

species

A character vector containing the species names

nloci

A integer. The number of loci to simulate for each species

gen

A vector of integers containing the generation time for each species. If it is of length 1, function will assume the same generation time for all species. If it is NA(Default), assuming one generation per time unit.

Value

A configuration data frame


huatengh/CoExpansionValidation documentation built on Nov. 19, 2021, 11:07 a.m.