Docsity

Quantitative Phylogenetics Assignment 4: Model Selection in Maximum Likelihood, Assignments of Entomology

Toggle sidebar
bg1
Quantitative Phylogenetics -Assignment 4 (15 Feb 2008)
Model Selection in Maximum Likelihood:
These instructions are written for a command version of Paup (any platform), but they are
easily applied in the Classic version of PAUP (or you can type them at the command line
of this version too).
Modified Phyllotine dataset: the phyllotyne dataset contains protein-coding, rDNA and
tRNA genes. We will focus only on some of the protein-coding genes today. Rather than
deleting these genes from the dataset manually, we can define sets of characters
(CHARSETS) that we can exclude (EXCLUDE) later. This is already done in the input
file, but you may want to look at it to see how it is done.
We have also defined codon positions with the CHARSETS command. These will be
used later to state site-specific substitution rates (RATES and SITERATES).
We have defined the outgroup (OUTGROUP) from the beginning so we don’t have to do
it later. (the outgroup is irrelevant for today’s exercise because we will deal with an
unrooted tree only)
1. Execute the Phyllotines3 dataset
a. The log should tell you that it has moved two taxa to the outgroup and that
it has excluded 1164 characters (corresponding to 12S and tRNA genes
and one protein-coding gene). The number of characters included should
be 972.
2. Now open and execute the file modelblockPAUPb10
a. It will start inferring the likelihood scores and parameter values for 56
different models on one tree. It will create an output file (model.scores)
that will be the input file for Modeltest
3. Once it is done, don’t close Paup, and type the following commands (the first will
tell it the likelihood settings which should correspond to GTR plus site-specific
rates; one for each codon type):
a. lset nst=6 rmatrix=esti mate basefreq=estimate rates=sitespec siterates=partition:by_codon
b. lscores 1
4. You should obtain the likelihood scores and parameter values for this model
(copy and paste this info to another file and save it)
5. Now, find the best-fit model of the 56 in the model.scores file, according to the
hLTR, AIC, corrected AIC (AICc) and BIC. These are implemented in Modeltest.
To run Modeltest, you have two options, use the Web based server
http://darwin.uvigo.es/
6. The input file is model.scores. Chose among the AIC, AICc and BIC. It will by
automatically do the hLRT with any of these options.
7. AICc and BIC requires the sample size. We will assume n=972 (the number of
character sites)
pf2

Partial preview of the text

Download Quantitative Phylogenetics Assignment 4: Model Selection in Maximum Likelihood and more Assignments Entomology in PDF only on Docsity!

Quantitative Phylogenetics - Assignment 4 (15 Feb 2008) Model Selection in Maximum Likelihood: These instructions are written for a command version of Paup (any platform), but they are easily applied in the Classic version of PAUP (or you can type them at the command line of this version too). Modified Phyllotine dataset: the phyllotyne dataset contains protein-coding, rDNA and tRNA genes. We will focus only on some of the protein-coding genes today. Rather than deleting these genes from the dataset manually, we can define sets of characters (CHARSETS) that we can exclude (EXCLUDE) later. This is already done in the input file, but you may want to look at it to see how it is done. We have also defined codon positions with the CHARSETS command. These will be used later to state site-specific substitution rates (RATES and SITERATES). We have defined the outgroup (OUTGROUP) from the beginning so we don’t have to do it later. (the outgroup is irrelevant for today’s exercise because we will deal with an unrooted tree only)

  1. Execute the Phyllotines3 dataset a. The log should tell you that it has moved two taxa to the outgroup and that it has excluded 1164 characters (corresponding to 12S and tRNA genes and one protein-coding gene). The number of characters included should be 972.
  2. Now open and execute the file modelblockPAUPb a. It will start inferring the likelihood scores and parameter values for 56 different models on one tree. It will create an output file (model.scores) that will be the input file for Modeltest
  3. Once it is done, don’t close Paup, and type the following commands (the first will tell it the likelihood settings which should correspond to GTR plus site-specific rates; one for each codon type): a. lset nst=6 rmatrix=estimate basefreq=estimate rates=sitespec siterates=partition:by_codon b. lscores 1
  4. You should obtain the likelihood scores and parameter values for this model (copy and paste this info to another file and save it)
  5. Now, find the best-fit model of the 56 in the model.scores file, according to the hLTR, AIC, corrected AIC (AICc) and BIC. These are implemented in Modeltest. To run Modeltest, you have two options, use the Web based server http://darwin.uvigo.es/
  6. The input file is model.scores. Chose among the AIC, AICc and BIC. It will by automatically do the hLRT with any of these options.
  7. AICc and BIC requires the sample size. We will assume n=972 (the number of character sites)
  1. Select the option of “Count branch lengths as parameters” and enter the number of taxa (14). The reason we do this is because when we estimated the likelihood of each of the 56 models, we also estimated the branch lengths. - Report the best-fit model from each approach including the likelihood score and the parameter values
  2. Modeltest does not perform analyses on any models other than the 56 in the GTR family. You now need to perform the LRT, on the GTR + SS model. The formulas are given in the lecture notes and below. For the LTR test, compare GTR (8 parameters) vs. GTR + SS (10 parameters). You can get the GTR score from the model.scores file. For the LRT, the first one is nested within the second one. The difference in parameters will be your degrees of freedom for the chi- square test. Report the log-likelihoods, the observed chi-square and p-value (you can use the CHIDIST command in Excel for this), and decide which model you would use if you had to chose between these two.
  3. Now calculate AIC and BIC for this new model (GTR + SS) and rank it among the others based on AIC and BIC separately. Report its rank and the next best model (i.e., right above it). Among 56 GTR models and the GTR + SS model, which one would you chose and why?
  4. EXTRA CREDIT (5/100 extra points of the whole semester homework/assignment grade; use Posada and Buckley 2004 as a reference): Based on the results of AIC:
    • How many models are supported by the phyllotines data and what is your criterion for this?
    • Identify one parameter that is common to all of these models
    • Identify one parameter that is also common to the best six models
    • List the six most important and the two least important parameters and explain your rationale Formulas LRT compare to a chi-square distribution and determine p-value (d.f.= difference in number of parameters). l 1 is likelihood of the more complex model; l 0 is likelihood of the simpler model AIC: the smaller, the better. Li is likelihood of model i , ki is number of parameters in model i****. (You can check your calculations by comparing your AIC for GTR with that of Modeltest). AIC = − 2 + 2 K BIC: the smaller, the better. Li is likelihood of model i , ki is number of parameters in model i , and n is the sample size; we will assume is the number of characters which should be 972. (You can check your calculations by comparing your BIC for GTR with that of Modeltest) BIC = − 2 + K log n