ANGSD: Analysis of next generation Sequencing Data
Latest tar.gz version is (0.938/0.939 on github), see Change_log for changes, and download it here.
RealSFS: Difference between revisions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
Program defaults to use the EM algorithm for the optimisation, the BFGS method can used by supplying BFGS as the first argument after ./emOptim2 | Program defaults to use the EM algorithm for the optimisation, the BFGS method can used by supplying BFGS as the first argument after ./emOptim2 | ||
The emOptim2 program will read in a block of the genome (from the .saf) file, and for this region it will estimate the SFS. | |||
The size of the block can be choosen using -nSites argument, otherwise it will try to read in the entire saf file. | |||
If you have .saf file larger than -nSites (you can check the number of sites in the .saf.pos file), then the program will loop over the genome out output the results. | |||
So each line in your Whit.saf.ml, is an SFS for a region. | |||
=Output= | =Output= |
Revision as of 13:21, 7 February 2014
This program will estimate the SFS based on a .saf file generated from the ./angsd [options] -doSaf .
Brief overview
./emOptim2 afile.saf nChr [-start FNAME -P nThreads -tole tole -maxIter -nSites ] nChr is the number of chromosomes. (twice the number of diploid invididuals)
Program defaults to use the EM algorithm for the optimisation, the BFGS method can used by supplying BFGS as the first argument after ./emOptim2
The emOptim2 program will read in a block of the genome (from the .saf) file, and for this region it will estimate the SFS.
The size of the block can be choosen using -nSites argument, otherwise it will try to read in the entire saf file.
If you have .saf file larger than -nSites (you can check the number of sites in the .saf.pos file), then the program will loop over the genome out output the results. So each line in your Whit.saf.ml, is an SFS for a region.
Output
Main results are printed to the stdout. Values are in logspace.
NB
Use as many sites as possible, for more reliable estimates.