********************************************************************************
INDELible V1.03 by Will Fletcher : Simulation began at: Fri Jun 12 01:59:44 2020
********************************************************************************

  Actual Insertion : Deletion Ratio  1.0 : 0.0	(Total indel rate = 1)
  Actual Indel : Substitution Ratio  0.0833333 : 0.916667	(Total event rate = 1)
  Actual average insertion length    1
  Actual average deletion length     -nan
  Number of insertion events         1
  Number of deletion events          0
  Number of substitution events      11

  * Block 1 was completed in 0.000323 seconds.

********************************************************************************


  Actual Insertion : Deletion Ratio  0.5 : 0.5	(Total indel rate = 1)
  Actual Indel : Substitution Ratio  0.0909091 : 0.909091	(Total event rate = 1)
  Actual average insertion length    1
  Actual average deletion length     1
  Number of insertion events         1
  Number of deletion events          1
  Number of substitution events      20

  * Block 2 was completed in 0.000255 seconds.

********************************************************************************


  Actual Insertion : Deletion Ratio  0.272727 : 0.727273	(Total indel rate = 1)
  Actual Indel : Substitution Ratio  0.392857 : 0.607143	(Total event rate = 1)
  Actual average insertion length    2
  Actual average deletion length     3.125
  Number of insertion events         3
  Number of deletion events          8
  Number of substitution events      17

  * Block 3 was completed in 0.000302 seconds.

********************************************************************************


  Actual Insertion : Deletion Ratio  1.0 : 0.0	(Total indel rate = 1)
  Actual Indel : Substitution Ratio  0.04 : 0.96	(Total event rate = 1)
  Actual average insertion length    2
  Actual average deletion length     -nan
  Number of insertion events         1
  Number of deletion events          0
  Number of substitution events      24

  * Block 4 was completed in 0.000255 seconds.

********************************************************************************

  * Simulation completed. Whole batch took: 0.001926 seconds.

INDELible V1.03 Simulations completed at: Fri Jun 12 01:59:44 2020

********************************************************************************


 Original Control File 

-----------------------


/////////////////////////////////////////////////////////////////////////////////////
//                                                                                 //
//  INDELible V1.03 control file - indels.txt                                      //
//                                                                                 //
//      Adding indels to a nucleotide, amino-acid or codon substitution model      //
//                                                                                 //
/////////////////////////////////////////////////////////////////////////////////////



[TYPE] AMINOACID 2            //  amino-acid simulation using algorithm from method 2

[SETTINGS]
  [randomseed] 1568746 // seed for random generator so outputs can be checked

[MODEL] mymodel1              // this is identical to mymodel2
  [submodel]     WAG          
  [insertmodel]  POW 1.7 500  // Power law insertion length distribution (a=1.7, M=500)
  [deletemodel]  POW 1.7 500  // Power law deletion length distribution (a=1.7, M=500)
  [insertrate]   0.1          // insertion rate = 0.1 relative to substitution rate of 1
  [deleterate]   0.1          // deletion rate = 0.1 relative to substitution rate of 1


[MODEL] mymodel2              // this is identical to mymodel1
  [submodel]     WAG          
  [indelmodel]   POW  1.7 500 // Power law insertion/deletion length distribution (a=1.7)
  [indelrate]    0.1          // insertion rate = deletion rate = 0.1
                              // relative to average substitution rate of 1.   
 				
					
[MODEL] mymodel3              // insertion/deletion lengths and rates can be different.
  [submodel]     WAG          
  [insertmodel]  NB  0.2 4    // Pascal insertion length distribution (q=0.2, r=4)
  [deletemodel]  LAV 1.8 500  // Lavalette deletion length distribution (a=1.8, M=500)
  [insertrate]   0.1          // insertion rate = 0.1 relative to substitution rate of 1
  [deleterate]   0.2          // deletion rate = 0.2 relative to substitution rate of 1
			
						
[MODEL] mymodel4              // insertion/deletion lengths and rates can be different.
  [submodel]     JTT          
  [insertmodel]  NB  0.4 1    // Geometric insertion length distribution (q=0.4, r=1)
  [insertrate]   0.1          // insertion rate = 0.1 relative to substitution rate of 1
                              // deletion rate = 0 relative to substitution rate of 1



[TREE] t1  (A:0.1,B:0.1);             


[PARTITIONS] Pname1 [t1 mymodel1 20] // tree t1, model mymodel1, root length 20
[PARTITIONS] Pname2 [t1 mymodel2 20] // tree t1, model mymodel2, root length 20
[PARTITIONS] Pname3 [t1 mymodel3 20] // tree t1, model mymodel3, root length 20
[PARTITIONS] Pname4 [t1 mymodel4 20] // tree t1, model mymodel4, root length 20

[EVOLVE]     Pname1 5 outputname1     // 5 replicates generated from partition Pname1
             Pname2 5 outputname2     // 5 replicates generated from partition Pname2
             Pname3 5 outputname3     // 5 replicates generated from partition Pname3
             Pname4 5 outputname4     // 5 replicates generated from partition Pname4


/////////////////////////////////////////////////////////////////////////////////////

/*
   New commands that are relevant to insertions and deletions (indels) are:

   [insertrate] 
   Sets the rate of insertion relative to an average substitution rate of 1.
   
   [deleterate] 
   Sets the rate of insertion relative to an average substitution rate of 1.
   
   [indelrate] 
   Sets the rate of insertion AND deletion to be equal. It is equivalent 
   to specifying [insertrate] and [deleterate] to have the same value.
   
   If [insertrate] & [indelrate] are not specified then rate of insertion is zero.
   If [deleterate] & [indelrate] are not specified then rate of deletion is zero.

   [insertmodel]
   Works the same as [indelmodel] but only sets the insertion length distribution.

   [deletemodel]
   Works the same as [indelmodel] but only sets the deletion length distribution.

   [indelmodel]
   This sets the insertion and deletion length distributions at the same time. 
   It is equivalent to specifying the commands [insertmodel] and [deletemodel] 
   to have the same value.  Options for this command are:
   
   (1)  [indelmodel]  NB   q  r               //  Negative Binomial Distribution
   (2a) [indelmodel]  POW  a                  //  Zipfian Distribution 
   (2b) [indelmodel]  POW  a  M               //  Zipfian Distribution 
   (3)  [indelmodel]  LAV  a  M               //  Lavalette Distribution
   (4)  [indelmodel]  USER mylengthmodel.txt  //  User-Defined Distribution

   (1)  This specifies a Pascal (negative binomial) distribution where q is a 
        decimal (0<=q<=1) and r is an integer (r>0).

   (2a) This specifies a Zipfian (power law) distribution where a is a decimal (a>1).

   (2b) This also specifies a Zipfian distribution where a is a decimal (a>1).
        However with this format indels longer than length M are not permitted.
        This format is highly recommended for small values of a because 
        of the fat-tailed shape of the resulting distribution.

   (3)  This specifies a Lavalette distribution where a is a decimal (a>1) and M is 
        an integer (M>1) representing the maximum indel length.

   (4)  This specifies a user-defined indel length model. The file mylengthmodel.txt 
        should be in the same directory as the INDELible executable and contain a 
        list of relative frequencies (in order of increasing indel length) 
        separated by white space, like this.
*/