Ml mapping From: Olga Zhaxybayeva and J Peter Gogarten BMC Genomics 2002, 3:4 Olga Zhaxybayeva and J Peter Gogarten BMC Genomics 2002, 3:4.

Slides:



Advertisements
Similar presentations
Phylip PHYLIP (the PHYLogeny Inference Package) is a package of programs for inferring phylogenies (evolutionary trees). PHYLIP is the most widely-distributed.
Advertisements

Quick Lesson on dN/dS Neutral Selection Codon Degeneracy Synonymous vs. Non-synonymous dN/dS ratios Why Selection? The Problem.
 -GLOBIN MUTATIONS AND SICKLE CELL DISORDER (SCD) - RESTRICTION FRAGMENT LENGTH POLYMORPHISMS (RFLP)
ATG GAG GAA GAA GAT GAA GAG ATC TTA TCG TCT TCC GAT TGC GAC GAT TCC AGC GAT AGT TAC AAG GAT GAT TCT CAA GAT TCT GAA GGA GAA AAC GAT AAC CCT GAG TGC GAA.
Supplementary Fig.1: oligonucleotide primer sequences.
Maximum Likelihood. Likelihood The likelihood is the probability of the data given the model.
Bioinformatics Finding signals and motifs in DNA and proteins Expectation Maximization Algorithm MEME The Gibbs sampler Lecture 10.
Molecular Evolution Revised 29/12/06
CENTER FOR BIOLOGICAL SEQUENCE ANALYSIS Model Selection Anders Gorm Pedersen Molecular Evolution Group Center for Biological Sequence Analysis Technical.
MCB 5472 The Queue, Phylogenetic Reconstruction and Selection Peter Gogarten Office: BSP 404 phone: ,
Input and output. What’s in PHYLIP Programs in PHYLIP allow to do parsimony, distance matrix, and likelihood methods, including bootstrapping and consensus.
The gradualist point of view (review) Evolution occurs within populations where the fittest organisms have a selective advantage. Over time the advantages.
MCB 371/372 positive selection 4/25/05 Peter Gogarten Office: BSP 404 phone: ,
Phylip PHYLIP (the PHYLogeny Inference Package) is a package of programs for inferring phylogenies (evolutionary trees). PHYLIP is the most widely-distributed.
Lecture 23: Tues., Dec. 2 Today: Thursday:
The gradualist point of view Evolution occurs within populations where the fittest organisms have a selective advantage. Over time the advantages genes.
MCB 372 Phylogenetic reconstruction Peter Gogarten Office: BSP 404 phone: ,
Review Phylip (PAUP*) (treeview/clustal/muscle) PHYML PUZZLE MrBayes.
Other ways to detect positive selection Selective sweeps -> fewer alleles present in population (see contributions from Archaic Humans for example) Repeated.
MCB 372 Positive, and purifying selection. Neutral theory Peter Gogarten Office: BSP 404 phone: ,
Course overview Tuesday lecture –Those not presenting turn in short review of a paper using the method being discussed Thursday computer lab –Turn in short.
Maximum Likelihood Flips usage of probability function A typical calculation: P(h|n,p) = C(h, n) * p h * (1-p) (n-h) The implied question: Given p of success.
The gradualist point of view Evolution occurs within populations where the fittest organisms have a selective advantage. Over time the advantages genes.
Phylogenetic reconstruction - How
MCB 5472 Types of Selection Peter Gogarten Office: BSP 404 phone: ,
Neutral mutations Neither advantageous nor disadvantageous Invisible to selection (no selection) Frequency subject to ‘drift’ in the population Random.
Positive selection A new allele (mutant) confers some increase in the fitness of the organism Selection acts to favour this allele Also called adaptive.
Trees – what might they mean? Calculating a tree is comparatively easy, figuring out what it might mean is much more difficult. If this is the probable.
CENTER FOR BIOLOGICAL SEQUENCE ANALYSIS Probabilistic modeling and molecular phylogeny Anders Gorm Pedersen Molecular Evolution Group Center for Biological.
Linear and generalised linear models
What is it good for? Gene duplication events can provide an outgroup that allows rooting a molecular phylogeny. Most famously this principle was applied.
CENTER FOR BIOLOGICAL SEQUENCE ANALYSIS Probabilistic modeling and molecular phylogeny Anders Gorm Pedersen Molecular Evolution Group Center for Biological.
CENTER FOR BIOLOGICAL SEQUENCE ANALYSIS Model Selection Anders Gorm Pedersen Molecular Evolution Group Center for Biological Sequence Analysis Technical.
GENE MUTATIONS aka point mutations. DNA sequence ↓ mRNA sequence ↓ Polypeptide Gene mutations which affect only one gene Transcription Translation © 2010.
1 Advances in Statistics Or, what you might find if you picked up a current issue of a Biological Journal.
Phylogeny Estimation: Traditional and Bayesian Approaches Molecular Evolution, 2003
MCB5472 Computer methods in molecular evolution Lecture 4/14/2014.
BINF6201/8201 Molecular phylogenetic methods
Input for the Bayesian Phylogenetic Workflow All Input values could be loaded as text file or typing directly. Only for the multifasta file is advised.
14 Elements of Nonparametric Statistics
More on translation. How DNA codes proteins The primary structure of each protein (the sequence of amino acids in the polypeptide chains that make up.
ATPase dataset -> nj in figtree. ATPase dataset -> muscle -> phyml (with ASRV)– re-rooted.
Bioinformatics 2011 Molecular Evolution Revised 29/12/06.
1 Methods of Experimental Particle Physics Alexei Safonov Lecture #23.
Supplemental Table S1 For Site Directed Mutagenesis and cloning of constructs P9GF:5’ GAC GCT ACT TCA CTA TAG ATA GGA AGT TCA TTT C 3’ P9GR:5’ GAA ATG.
Lecture 10, CS5671 Neural Network Applications Problems Input transformation Network Architectures Assessing Performance.
Comp. Genomics Recitation 3 The statistics of database searching.
Lab3: Bayesian phylogenetic Inference and MCMC Department of Bioinformatics & Biostatistics, SJTU.
SP5 - Neuroinformatics SynapsesSA Tutorial Computational Intelligence Group Technical University of Madrid.
Estimating evolutionary parameters for Neisseria meningitidis Based on the Czech MLST dataset.
MCB5472 Computer methods in molecular evolution Slides for comp lab 4/2/2014.
Ben Stöver WS 2012/2013 Ancestral state reconstruction Molecular Phylogenetics – exercise.
N=50 s=0.150 replicates s>0 Time till fixation on average: t av = (2/s) ln (2N) generations (also true for mutations with negative “s” ! discuss among.
Bayes’ Theorem Reverend Thomas Bayes ( ) Posterior Probability represents the degree to which we believe a given model accurately describes the.
CENTER FOR BIOLOGICAL SEQUENCE ANALYSIS Probabilistic modeling and molecular phylogeny Anders Gorm Pedersen Molecular Evolution Group Center for Biological.
Bayes’ Theorem Reverend Thomas Bayes ( ) Posterior Probability represents the degree to which we believe a given model accurately describes the.
Bootstrap ? See herehere. Maximum Likelihood and Model Choice The maximum Likelihood Ratio Test (LRT) allows to compare two nested models given a dataset.Likelihood.
Phylogenetic reconstruction, probability mapping, types of selection. Peter Gogarten Office: BSP 404 phone: ,
Phylip PHYLIP (the PHYLogeny Inference Package) is a package of programs for inferring phylogenies (evolutionary trees). PHYLIP is the most widely-distributed.
Phylogenetic reconstruction - How Distance analyses calculate pairwise distances (different distance measures, correction for multiple hits, correction.
LBA ProtPars. LBA Prot Dist no Gamma and no alignment.
BINARY LOGISTIC REGRESSION
IMa2(Isolation with Migration)
Modelling Proteomes.
GENE MUTATIONS aka point mutations © 2016 Paul Billiet ODWS.
More on translation.
Bayesian inference with MrBayes Molecular Phylogenetics – exercise
DN/dS.
Reverend Thomas Bayes ( )
Presentation transcript:

ml mapping From: Olga Zhaxybayeva and J Peter Gogarten BMC Genomics 2002, 3:4 Olga Zhaxybayeva and J Peter Gogarten BMC Genomics 2002, 3:4

Bayesian Posterior Probability Mapping with MrBayes (Huelsenbeck and Ronquist, 2001) Alternative Approaches to Estimate Posterior Probabilities Problem: Strimmer’s formula Solution: Exploration of the tree space by sampling trees using a biased random walk (Implemented in MrBayes program) Trees with higher likelihoods will be sampled more often pipi NiNi N total,where N i - number of sampled trees of topology i, i=1,2,3 N total – total number of sampled trees (has to be large) pi=pi= LiLi L 1 +L 2 +L 3 only considers 3 trees (those that maximize the likelihood for the three topologies)

Figure generated using MCRobot program (Paul Lewis, 2001) Illustration of a biased random walk

sites versus branches You can determine omega for the whole dataset; however, usually not all sites in a sequence are under selection all the time. PAML (and other programs) allow to either determine omega for each site over the whole tree,, or determine omega for each branch for the whole sequence,. It would be great to do both, i.e., conclude codon 176 in the vacuolar ATPases was under positive selection during the evolution of modern humans – alas, a single site does not provide sufficient statistics ….

PAML – codeml – branch model dS -treedN -tree

sites model in MrBayes begin mrbayes; set autoclose=yes; lset nst=2 rates=gamma nucmodel=codon omegavar=Ny98; mcmcp samplefreq=500 printfreq=500; mcmc ngen=500000; sump burnin=50; sumt burnin=50; end; The MrBayes block in a nexus file might look something like this:

MrBayes analyzing the *.nex.p file 1.The easiest is to load the file into excel (if your alignment is too long, you need to load the data into separate spreadsheets – see here execise 2 item 2 for more info)here 2.plot LogL to determine which samples to ignore 3.for each codon calculate the the average probability (from the samples you do not ignore) that the codon belongs to the group of codons with omega>1. 4.plot this quantity using a bar graph.

plot LogL to determine which samples to ignore the same after rescaling the y-axis

for each codon calculate the the average probability enter formula copy paste formula plot row

To determine credibility interval for a parameter (here omega<1): Select values for the parameter, sampled after the burning. Copy paste to a new spreadsheet,

Sort values according to size, Discard top and bottom 2.5% Remainder gives 95% credibility interval.

If you do this for your own data, run the procedure first for only generations (takes about 30 minutes) to check that everthing works as expected, then run the program overnight for at least generations. Especially, if you have a large dataset, do the latter twice and compare the results for consistency. ( I prefer two runs over generations each over one run over a million generations.) MrBayes on bbcxrv1 The preferred way to run mrbayes is to use the command line: >mb Do example on threonlyRS

PAML – codeml – sites model the paml package contains several distinct programs for nucleotides (baseml) protein coding sequences and amino acid sequences (codeml) and to simulate sequences evolution. The input file needs to be in phylip format. By default it assumes a sequential format (e.g. here).here If the sequences are interleaved, you need to add an “I” to the first line, as in these example headers: I human goat-cow rabbit rat marsupial 1 GTG CTG TCT CCT GCC GAC AAG ACC AAC GTC AAG GCC GCC TGG GGC AAG GTT GGC GCG CAC G.C T....T GC A C..T A..... A.T AA... A.C... AGC C... G.A.AT.....A A..... AA. TG......G... A....T.GC..T.....C..G GA...T T C....G..A... AT......T.....G..A.GC GCT GGC GAG TAT GGT GCG GAG GCC CTG GAG AGG ATG TTC CTG TCC TTC CCC ACC ACC AAG.....A.CT.....C..A.....T AG G C..C G T.. GG G...T..A.....C.A A C GCT G C..T.CC..C.CA..T..A..T..T.CC..A.CC.....C T.....A 6 467I gi| MSDNDTIVAQ ATPPGRGGVG ILRISGFKAR EVAETVLGKL gi| MSTTDTIVAQ ATPPGRGGVG ILRVSGRAAS EVAHAVLGKL gi| MALIQSCSGN TMTTDTIVAQ ATAPGRGGVG IIRVSGPLAA HVAQTVTGRT gi| M QAATETIVAI ATAQGRGGVG IVRVSGPLAG QMAVAVSGRQ gi| MN--- -ALPSTIVAI ATAAGTGGIG IVRLSGPQSV QIAAALGIAG gi| MSQRS TKMGDTIAAI ATASGAAGIG IIRLSGSLIK TIATGLGMTT PKPRYADYLP FKDADGSVLD QGIALWFPGP NSFTGEDVLE LQGHGGPVIL PKPRYADYLP FKDVDGSTLD QGIALYFPGP NSFTGEDVLE LQGHGGPVIL LRPRYAEYLP FTDEDGQQLD QGIALFFPNP HSFTGEDVLE LQGHGGPVVM LKARHAHYGP FLDAGGQVID EGLSLYFPGP NSFTGEDVLE LQGHGGPVVL LQSRHARYAR FRDAQGEVID DGIAVWFPAP HSFTGEEVVE LQGHGSPVLL LRPRYAHYTR FLDVQDEVID DGLALWFPAP HSFTGEDVLE LQGHGSPLLL

PAML – codeml – sites model (cont.) the program is invoked by typing codeml followed by the name of a control file that tells the program what to do. paml can be used to find the maximum likelihood tree, however, the program is rather slow. Phyml is a better choice to find the tree, which then can be used as a user tree. An example for a codeml.ctl file is codeml.hv1.sites.ctlcodeml.hv1.sites.ctl This file directs codeml to run three different models: one with an omega fixed at 1, a second where each site can be either have an omega between 0 and 1, or an omega of 1, and third a model that uses three omegas as described before for MrBayes. The output is written into a file called Hv1.sites.codeml_out (as directed by the control file).Hv1.sites.codeml_out Point out log likelihoods and estimated parameter line (kappa and omegas) Additional useful information is in the rst file generated by the codemlrst Discuss overall result.

PAML – codeml – branch model For the same dataset to estimate the dN/dS ratios for individual branches, you could use this file codeml.hv1.branches.ctl as control file.codeml.hv1.branches.ctl The output is written, as directed by the control file, into a file called Hv1.branch.codeml_out Hv1.branch.codeml_out A good way to check for episodes with plenty of non-synonymous substitutions is to compare the dn and ds trees. Also, it might be a good idea to repeat the analyses on parts of the sequence (using the same tree). In this case the sequences encode a family of spider toxins that include the mature toxin, a propeptide and a signal sequence (see here for more information).here Bottom line: one needs plenty of sequences to detect positive selection.

where to get help read the manuals and help files check out the discussion boards at else there is a new program on the block called hy-phy (=hypothesis testing using phylogenetics).hy-phy The easiest is probably to run the analyses on the authors datamonkey.datamonkey

hy-phy Results of an anaylsis using the SLAC approach more output might still be herehere

Hy-Phy - Hypothesis Testing using Phylogenies. Using Batchfiles or GUI Information at Selected analyses also can be performed online at

Example testing for dN/dS in two partitions of the data -- John’s dataset Set up two partitions, define model for each, optimize likelihood

Example testing for dN/dS in two partitions of the data -- John’s dataset The dN/dS ratios for the two partitions are different. Save Likelihood Function then select as alternative

Example testing for dN/dS in two partitions of the data -- John’s dataset Set up null hypothesis, i.e.: The two dN/dS are equal (to do, select both rows and then click the define as equal button on top)

Example testing for dN/dS in two partitions of the data -- John’s dataset

Nam e and save as Null- hyp.

Example testing for dN/dS in two partitions of the data -- John’s dataset After selecting LRT (= Likelihood Ratio test), the console displays the result, i.e., the beginning and end of the sequence alignment have significantly different dN/dS ratios.

Example testing for dN/dS in two partitions of the data –John’s dataset Alternatively, especially if the the two models are not nested, one can set up two different windows with the same dataset: Model 1 Model 2

Example testing for dN/dS in two partitions of the data --John’s dataset Simulation under model 2, evalutation under model 1, calculate LR Compare real LR to distribution from simulated LR values. The result might look something like this or this

Green - Type A tyrRS Red - Type B tyrRS Blue - Both types of tyrRS 16S rRNA phylogeny colored according to tyrRS type Under the assumption that both types were present in the bacterial ancestor and explaining the observed distribution only through gene loss: 133 taxa and 58 gene loss events, 34 losses of type A, 23 of type B Andam, Williams, Gogarten 2010 PNAS

LGT3State Method Generated 1000 bootstrap trees under loss-only model Real data under HGT model Simulated under "loss-only" model; likelihood under HGT model

ori