coal: Simulate and visualize a coalescent process

Description Usage Arguments Examples

View source: R/coal.R

Description

A function that provides a simple starting off point to simulate a coalescent process.

Usage

1
coal(length, number, muscale, reps, prnt)

Arguments

length

Length of sequence to simulate.

number

Number of starting lineages.

muscale

Mutation rate, scaled by 4Neu.

reps

Number of replicates to run.

prnt

Whether to print calculation output to the terminal (prnt=1), or not (prnt=0).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#assign genotype counts
length=250

number=8

muscale=6.25 # theta = 4Neu = 25, theta/4 = 6.25

reps=100

prnt=0

#run function
coal(length, number, muscale, reps, prnt)

popgenr documentation built on Feb. 25, 2021, 5:10 p.m.

Related to coal in popgenr...