In Bayesian inference:
: posterior probability.
: prior probability.
: likelihood.
Let's say the divergence occured 0.7 coalescent unit ago (28000 generations), and model B was the real model.
ms 8 1 -t 8 -I 2 3 5 -ma x 8.0 0.0 x -n 1 0.5 -n 2 0.25 -en 0.7 1 1.0 -ej 0.7 2 1 | sample_stats | ./cleanSampleStats.pl > obsYou can use the script which you created to clean up the sample_stats output. If you haven't made it, here is my version of cleanSampleStats.pl.
nohup ./msDrive.pl > sim.out &
#$ -N Naoki_Sim #$ -S /bin/bash #$ -cwd PATH=$SGE_O_PATH ./msDrive.pl > sim.out
Notes:
In this case, I used ./msDrive.pl. Make sure to submit
the job in a directory where msDrive.pl is stored. In
other words, the current working directory (cwd) where you submit the
job will be the cwd of the batch job.
Don't use ampersand (&
), which indicates running a
process in the background, within submit.sh.
$ qsub submit.sh Your job 18363 ("Naoki_Sim") has been submitted
$ qstat job-ID prior name user state submit/start at queue slots ja-task-ID ----------------------------------------------------------------------------------------------------------------- 18363 0.55500 Naoki_Sim naoki r 11/07/2011 17:58:06 all.q@tux01.cluster 1
$ qdel 18363 naoki has registered the job 18363 for deletionYou'll need to specify the job-ID (find it with qstat).
reg -p sim.out -d obs -P 2 -S 5 -t 0.001 -b output -L
The two columns corresponds to the two parameters (model and T).
To do this, you can try many different parameters to create the fake data, and check how well the estimated parameters matches with the real parameter values for each fake data.
msSS.pl -h