Learn R Programming

jaatha (version 2.7.0)

dm.createDemographicModel: Create a basic demographic model

Description

This function creates a basic empty demographic model, which is returned. Features like mutation, pop.source splits and migration can be added afterwards.

Usage

dm.createDemographicModel(sample.sizes, loci.num, seq.length = 1000)

Arguments

sample.sizes
Number of haploid individuals/chromosomes that are sampled. If your model consists of multiple populations, this needs to be a vector containing the sample sizes from each population.
loci.num
Number of loci that will be simulated
seq.length
(Average) number of bases for each locus

Value

  • The demographic model

Examples

Run this code
dm <- dm.createDemographicModel(sample.sizes=c(25,25), loci.num=100)
dm <- dm.addSpeciationEvent(dm,0.01,5)
dm <- dm.addMutation(dm,1,20)
dm

Run the code above in your browser using DataLab