Simulate a Sample of Genes Using the Coalescent

Simulate a sample of genes.

1 | ```
sim.inference.model(number.of.sampled.demes,sample.sizes,M,pi)
``` |

`number.of.sampled.demes` |
number of demes sampled |

`sample.sizes` |
number of genes sampled in each deme |

`M` |
twice the product of effective size of each deme and migration rate |

`pi` |
vector of allele A frequencies at each locus from the migrant pool |

Simulate a sample of genes, using a diffusion approximation for the probability of gene counts within each deme.

a ‘sample’ object

1 2 3 4 | ```
## This is to simulate a sample of genes.
sample <- sim.inference.model(number.of.sampled.demes = 10,sample.sizes = 50,M = 2,pi = runif(2))
sample
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.