expected time to the MRCA of 2 alleles 2 N
Expected number of segregating sites:
ms sampleSize numSimulations -t theta ms 4 2 -t 5.0
The output looks like:
ms 4 2 -t 5 7923 57589 4894 // segsites: 8 positions: 0.0323 0.0415 0.0706 0.1730 0.2127 0.3199 0.6417 0.8121 10001011 10001110 10011011 01100000 // segsites: 8 positions: 0.1010 0.1347 0.2711 0.3833 0.4321 0.8748 0.9091 0.9095 00000011 11111100 00000011 00000011
The simulation occurs in two steps: 1st, genealogy is created and 2nd, mutations are sprinkled on top of the genealogy. This option specifies to do only the first step, and print out the gene trees in Newick format.
ms 4 2 -T
The output is:
ms 4 2 -T 27531 45558 8825 // (3:0.129,(1:0.089,(2:0.012,4:0.012):0.077):0.040); // ((1:0.026,3:0.026):0.521,(2:0.532,4:0.532):0.015);
The unit of branch lengths is 4 (current pop size).
ms 4 2 -T | grep '(' > trees seq-gen -mHKY -l 40 -s .2 < trees > seqs
Explanation of options:
scale: Seq-gen considers that the number of expected substitution in a branch is given by the product of the branch length and the “scale” value.