get.data.structure: Read the observed data to get the simulation parameters; base...

View source: R/get.data.structure.R

get.data.structureR Documentation

Read the observed data to get the simulation parameters; base pairs and number of individuals per population.

Description

Read the observed data to get the simulation parameters; base pairs and number of individuals per population.

Usage

get.data.structure(model, path.to.fasta, pop.assign, sanger = F)

Arguments

model

A model object generated with main.menu function.

path.to.fasta

path to the fasta alignments directory.

pop.assign

a two column data frame with poppulation assignemt of individuals. First column must have the samples name, the secound column the population in numbers, 1 for pop1, 2 for pop2 etc.

sanger

logical. If TRUE the inheritance scalar and mutation rates set up in the main.menu are kept. If FALSE the mutation rate is propagated to all loci. Defaut is FALSE.

Value

Model object with updated gene parameters.

Author(s)

Marcelo Gehara


gehara/PipeMaster documentation built on April 19, 2024, 8:14 a.m.