This program is designed to perform phylogenetic analyses of sequence divergence and diversity. It first runs PHMYL to make an estimate of the maximum likelihood phylogeny, then runs PAUP to determine the most recent common ancestor (MRCA). After inputting the MRCA, the script runs PHMYL and PAUP again to get the distance matrix from which the genetic distances are parsed, and calculates the divergence and diversity.
Input
Outgroup file: a list containing only one field which lists all the names of the outgroup sequences.
Ingroup file: a tab delimited table containing two fields. The first column contains the defined groups (grouped by sample time, or compartments, e.g.). The second column contains the names of sequences that belongs to those defined groups.
How to run
Download the program to your local computer, and set it as executable by typing the following command in your working directory:
chmod +x DiverAnalysis.pl
It is recommended that you make a subdirectory to hold input and output files for each run, because there will be a number of files created after running the program.
In the subdirectory, type following command:
perl ../DiverAnalysis.pl SequenceFile OutgroupFile IngroupFile