next up previous
Next: Perl Process management Up: coalsim Previous: coalsim

Subsections

Coalescent

Concept

Coalescent Simulation

Exercises

  1. Create a subroutine, which calculates the Watterson's coefficient for a given sample size, m.

  2. Create a short perl script which extracts the number of segregating sites from the output of ms (from lines: segsites: 8 etc) and estimates the $ \theta$ for each simulation. Then calculate the average of the $ \theta$ from 1 million simulations. Confirm that the Watterson's estimater of $\theta = S_{obs}
/ a_m$ is pretty good.


next up previous
Next: Perl Process management Up: coalsim Previous: coalsim
Naoki Takebayashi 2011-11-09