ms 8 1 -t 8 -I 2 3 5 -ma x 8.0 16.0 x -n 1 0.5 -n 2 0.25 -en $T1 1 1.0 -ej $T1 2 1
tail -> Simulate Model B
Use the migration matrix:
-ma x 8.0 0.0 x
The final output will look like:
M T1 pi ss D thetaH H 0 0.605 2.07 6 -0.48 1.35 0.71 0 0.034 18.75 40 1.15 17.53 1.21 1 0.045 8.32 24 -0.53 5.67 2.64 : : : :
#!/usr/bin/perl -w for ($i = 0; $i < 10; $i++) { $num = rand(5); print "repetion $i: $num\n"; }In this loop, $i goes from 0 to 9.
Instead of setting the migration rate to a pre-fixed value, modify the program to estimate the migration rate (in addition to divergence time). In other words, you need to draw the migration from a random distribution.