<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title>FastTree 2 – Approximately Maximum-Likelihood Trees for Large Alignments</title>
        <author>Morgan N. Price</author>
        <author>Paramvir S. Dehal</author>
        <author>Adam P. Arkin</author>
      </titleStmt>
      <publicationStmt>
        <p>Tag layer of the DHSS Meta-Tagging Project. The article text is reproduced from the
           staged copy named in sourceDesc and is not altered; the tags are held separately in
           standOff so that overlapping and nested spans are preserved.</p>
      </publicationStmt>
      <sourceDesc>
        <bibl>
          <title>FastTree 2 – Approximately Maximum-Likelihood Trees for Large Alignments</title>
          <date>2010</date>
          <publisher>PLoS ONE</publisher>
          <idno type="DOI">10.1371/journal.pone.0009490</idno>
          
          <idno type="record">price2010-fasttree-approximately-maximum-likelihood-trees</idno>
          <note type="staged-file">price2010-fasttree-approximately-maximum-likelihood-trees.txt, the project's staged copy</note>
          <note type="text-sha1">be30497547109b963bb737c01ecf0be63f52bf6b</note>
          <note type="rights">cc-by</note>
        </bibl>
      </sourceDesc>
    </fileDesc>
    <profileDesc>
      <textClass><keywords><term>bioinformatics</term></keywords></textClass>
      <particDesc>
        <person xml:id="paper"><p>the paper's own words</p></person>
        <person xml:id="tagger"><p>the tag layer; a sentence written by the tagger about the
          paper, always anchored to a quotation but not itself a quotation</p></person>
      </particDesc>
    </profileDesc>
    <revisionDesc>
      <change when="2026-10-06"
              who="build_paper_edition.py">182 spans located by searching the stored text for the quote's exact words, allowing any whitespace between them</change>
    </revisionDesc>
  </teiHeader>
  <standOff>
    <spanGrp type="tags">
      <span xml:id="t0" from="#a3" to="#a4" type="object_of_study" ana="#object_of_study" resp="#paper">scalable approximately maximum-likelihood phylogenetic inference for very large DNA and protein sequence alignments</span>
      <span xml:id="t1" from="#a13" to="#a14" type="research_question" ana="#research_question" resp="#paper">whether restricted tree-search heuristics can retain phylogenetic accuracy while making maximum-likelihood-scale inference practical for hundreds of thousands of sequences</span>
      <span xml:id="t2" from="#a1" to="#a2" type="contribution" ana="#contribution" resp="#paper">FastTree 2, its minimum-evolution SPR and maximum-likelihood NNI pipeline, CAT rate approximation, local support procedure, and comparative accuracy/scalability evaluation</span>
      <span xml:id="t3" from="#a13" to="#a14" type="claim_type" ana="#claim_type" resp="#paper">method</span>
      <span xml:id="t4" from="#a26" to="#a27" type="phenomenon" ana="#phenomenon" resp="#paper">the computational accuracy, likelihood, speed, memory use, and support reliability of large-scale phylogenetic tree inference</span>
      <span xml:id="t5" from="#a13" to="#a14" type="method" ana="#method" resp="#paper">system-or-tool-building<term>system-or-tool-building</term></span>
      <span xml:id="t6" from="#a13" to="#a14" type="mechanisms" ana="#mechanisms[0]" resp="#tagger" cert="0.95">A fast distance-based topology initializes the later refinement phases.<term>neighbor-joining starting tree</term></span>
      <span xml:id="t7" from="#a13" to="#a14" type="mechanisms" ana="#mechanisms[1]" resp="#tagger" cert="0.95">Local node swaps refine the initial topology under total branch length.<term>minimum-evolution NNIs</term></span>
      <span xml:id="t8" from="#a68" to="#a69" type="mechanisms" ana="#mechanisms[2]" resp="#tagger" cert="0.95">Two bounded rounds examine short regrafts first and greedily extend promising moves.<term>linear SPRs</term></span>
      <span xml:id="t9" from="#a13" to="#a14" type="mechanisms" ana="#mechanisms[3]" resp="#tagger" cert="0.95">Local rearrangements accept likelihood-improving topologies after branch optimization.<term>maximum-likelihood NNIs</term></span>
      <span xml:id="t10" from="#a16" to="#a17" type="mechanisms" ana="#mechanisms[4]" resp="#tagger" cert="0.95">Each site selects one of 20 estimated rates instead of summing across gamma categories.<term>CAT approximation</term></span>
      <span xml:id="t11" from="#a13" to="#a15" type="mechanisms" ana="#mechanisms[5]" resp="#tagger" cert="0.95">Limits on moves and optimization preserve predictable scaling.<term>search-space heuristics</term></span>
      <span xml:id="t12" from="#a9" to="#a10" type="mechanisms" ana="#mechanisms[6]" resp="#tagger" cert="0.95">Profile storage replaces a full pairwise-distance matrix and lowers memory demand.<term>profiles of subtrees</term></span>
      <span xml:id="t13" from="#a72" to="#a73" type="mechanisms" ana="#mechanisms[7]" resp="#tagger" cert="0.95">Internal-node state probabilities support likelihood evaluation and local topology changes.<term>posterior distributions</term></span>
      <span xml:id="t14" from="#a76" to="#a77" type="mechanisms" ana="#mechanisms[8]" resp="#tagger" cert="0.95">A path-local representation of the rest of the tree permits temporary rerooting around the current node.<term>up-posterior</term></span>
      <span xml:id="t15" from="#a88" to="#a89" type="mechanisms" ana="#mechanisms[9]" resp="#tagger" cert="0.95">Unchanged subtrees are omitted after two unproductive recent rounds.<term>subtree skipping</term></span>
      <span xml:id="t16" from="#a90" to="#a91" type="mechanisms" ana="#mechanisms[10]" resp="#tagger" cert="0.95">A well-supported current quartet bypasses optimization of unlikely alternate NNIs.<term>star topology test</term></span>
      <span xml:id="t17" from="#a82" to="#a83" type="mechanisms" ana="#mechanisms[11]" resp="#tagger" cert="0.95">A peaked gamma prior regularizes per-site rate-category selection.<term>Bayesian approach</term></span>
      <span xml:id="t18" from="#a92" to="#a93" type="mechanisms" ana="#mechanisms[12]" resp="#tagger" cert="0.95">One thousand site-likelihood bootstrap replicates estimate split confidence.<term>SH test</term></span>
      <span xml:id="t19" from="#a96" to="#a97" type="mechanisms" ana="#mechanisms[13]" resp="#tagger" cert="0.95">Multiplication by the transition eigen-matrix reduces per-site likelihood-computation cost.<term>rotated form</term></span>
      <span xml:id="t20" from="#a98" to="#a99" type="mechanisms" ana="#mechanisms[14]" resp="#tagger" cert="0.95">Vector operations process four single-precision values per instruction.<term>SSE2 instructions</term></span>
      <span xml:id="t21" from="#a100" to="#a101" type="mechanisms" ana="#mechanisms[15]" resp="#tagger" cert="0.95">One-dimensional interval halving optimizes model and branch parameters in repeated turns.<term>Brent&#x27;s method</term></span>
      <span xml:id="t22" from="#a18" to="#a19" type="limitations" ana="#limitations[0]" resp="#tagger" cert="0.95">FastTree 2 is not guaranteed to reach a locally optimal likelihood in tree space.</span>
      <span xml:id="t23" from="#a22" to="#a23" type="limitations" ana="#limitations[1]" resp="#tagger" cert="0.95">FastTree 2 is less accurate than methods conducting maximum-likelihood SPR searches.</span>
      <span xml:id="t24" from="#a38" to="#a39" type="limitations" ana="#limitations[2]" resp="#tagger" cert="0.95">The CAT approximation can be insufficient when precise branch lengths are essential.</span>
      <span xml:id="t25" from="#a38" to="#a39" type="limitations" ana="#limitations[3]" resp="#tagger" cert="0.95">Four-category gamma approximations can also give inaccurate branch lengths for large alignments.</span>
      <span xml:id="t26" from="#a40" to="#a41" type="limitations" ana="#limitations[4]" resp="#tagger" cert="0.95">FastTree local support distinguished correct from incorrect splits slightly less well than PhyML.</span>
      <span xml:id="t27" from="#a48" to="#a49" type="limitations" ana="#limitations[5]" resp="#tagger" cert="0.95">Likelihood comparisons on genuine alignments favor the more intensive RAxML search.</span>
      <span xml:id="t28" from="#a60" to="#a61" type="limitations" ana="#limitations[6]" resp="#tagger" cert="0.95">Minimum-evolution initialization quality varied between COG and 16S data, and its biological meaning was unclear.</span>
      <span xml:id="t29" from="#a62" to="#a63" type="limitations" ana="#limitations[7]" resp="#tagger" cert="0.95">Neighbor joining becomes the computational bottleneck as alignments approach millions of sequences.</span>
      <span xml:id="t30" from="#a64" to="#a65" type="limitations" ana="#limitations[8]" resp="#tagger" cert="0.95">Profile alignment may be inaccurate for diverse protein families even though it works well for structurally conserved 16S RNA.</span>
      <span xml:id="t31" from="#a66" to="#a67" type="limitations" ana="#limitations[9]" resp="#tagger" cert="0.95">The reliability of extremely large trees remains difficult to assess because methods disagree while few differences are bootstrap-supported.</span>
      <span xml:id="t32" from="#a66" to="#a67" type="limitations" ana="#limitations[10]" resp="#tagger" cert="0.95">Local support values may be upward biased because they do not examine every alternate topology.</span>
      <span xml:id="t33" from="#a70" to="#a71" type="limitations" ana="#limitations[11]" resp="#tagger" cert="0.95">The FastTree SPR length-change formula is approximate because log-corrected profile distances do not cancel exactly.</span>
      <span xml:id="t34" from="#a28" to="#a29" type="controls" ana="#controls[0]" resp="#tagger" cert="0.95">simulated alignments with known true trees, varying site rates, and realistic gaps<note>eliminates: reliance on likelihood alone when true topology is unknown · outcome: held</note></span>
      <span xml:id="t35" from="#a34" to="#a35" type="controls" ana="#controls[1]" resp="#tagger" cert="0.95">PhyML initialized with FastTree&#x27;s minimum-evolution tree<note>eliminates: confounding of NNI implementation with starting-tree quality · outcome: held</note></span>
      <span xml:id="t36" from="#a36" to="#a37" type="controls" ana="#controls[2]" resp="#tagger" cert="0.95">PhyML re-optimization of FastTree topologies under the comparison rate model<note>eliminates: attributing branch-length differences solely to topology · outcome: held</note></span>
      <span xml:id="t37" from="#a42" to="#a43" type="controls" ana="#controls[3]" resp="#tagger" cert="0.95">FastME starting trees plus exhaustive NNIs and extra branch optimization<note>eliminates: the combined contribution of FastTree&#x27;s search heuristics · outcome: held</note></span>
      <span xml:id="t38" from="#a44" to="#a45" type="controls" ana="#controls[4]" resp="#tagger" cert="0.95">exact-neighbor-joining and fastest-heuristic starting-tree variants<note>eliminates: accuracy loss caused by neighbor-joining shortcuts · outcome: held</note></span>
      <span xml:id="t39" from="#a84" to="#a85" type="controls" ana="#controls[5]" resp="#tagger" cert="0.95">simulations with and without genuine site-rate variation<note>eliminates: CAT improvement caused only by overfitting rate categories · outcome: held</note></span>
      <span xml:id="t40" from="#a5" to="#a6" type="concepts" ana="#concepts[0]" resp="#paper" cert="0.95">phylogenies<term>phylogenies</term></span>
      <span xml:id="t41" from="#a5" to="#a6" type="concepts" ana="#concepts[1]" resp="#paper" cert="0.95">DNA<term>DNA</term></span>
      <span xml:id="t42" from="#a5" to="#a6" type="concepts" ana="#concepts[2]" resp="#paper" cert="0.95">protein sequences<term>protein sequences</term></span>
      <span xml:id="t43" from="#a7" to="#a8" type="concepts" ana="#concepts[3]" resp="#paper" cert="0.95">gene families<term>gene families</term></span>
      <span xml:id="t44" from="#a9" to="#a10" type="concepts" ana="#concepts[4]" resp="#paper" cert="0.95">FastTree 1.0<term>FastTree 1.0</term></span>
      <span xml:id="t45" from="#a9" to="#a10" type="concepts" ana="#concepts[5]" resp="#paper" cert="0.95">minimum-evolution<term>minimum-evolution</term></span>
      <span xml:id="t46" from="#a9" to="#a10" type="concepts" ana="#concepts[6]" resp="#paper" cert="0.95">topology<term>topology</term></span>
      <span xml:id="t47" from="#a9" to="#a10" type="concepts" ana="#concepts[7]" resp="#paper" cert="0.95">branch lengths<term>branch lengths</term></span>
      <span xml:id="t48" from="#a9" to="#a10" type="concepts" ana="#concepts[8]" resp="#paper" cert="0.95">neighbor joining<term>neighbor joining</term></span>
      <span xml:id="t49" from="#a9" to="#a10" type="concepts" ana="#concepts[9]" resp="#paper" cert="0.95">nearest-neighbor interchanges<term>nearest-neighbor interchanges</term></span>
      <span xml:id="t50" from="#a9" to="#a10" type="concepts" ana="#concepts[10]" resp="#paper" cert="0.95">profiles of subtrees<term>profiles of subtrees</term></span>
      <span xml:id="t51" from="#a9" to="#a10" type="concepts" ana="#concepts[11]" resp="#paper" cert="0.95">pairwise distances<term>pairwise distances</term></span>
      <span xml:id="t52" from="#a11" to="#a12" type="concepts" ana="#concepts[12]" resp="#paper" cert="0.95">maximum-likelihood (ML) approach<term>maximum-likelihood (ML) approach</term></span>
      <span xml:id="t53" from="#a11" to="#a12" type="concepts" ana="#concepts[13]" resp="#paper" cert="0.95">transition rate matrix<term>transition rate matrix</term></span>
      <span xml:id="t54" from="#a11" to="#a12" type="concepts" ana="#concepts[14]" resp="#paper" cert="0.95">likelihood<term>likelihood</term></span>
      <span xml:id="t55" from="#a11" to="#a12" type="concepts" ana="#concepts[15]" resp="#paper" cert="0.95">PhyML<term>PhyML</term></span>
      <span xml:id="t56" from="#a11" to="#a12" type="concepts" ana="#concepts[16]" resp="#paper" cert="0.95">RAxML<term>RAxML</term></span>
      <span xml:id="t57" from="#a13" to="#a14" type="concepts" ana="#concepts[17]" resp="#paper" cert="0.95">FastTree 2<term>FastTree 2</term></span>
      <span xml:id="t58" from="#a13" to="#a14" type="concepts" ana="#concepts[18]" resp="#paper" cert="0.95">subtree-pruning-regrafting<term>subtree-pruning-regrafting</term></span>
      <span xml:id="t59" from="#a13" to="#a15" type="concepts" ana="#concepts[19]" resp="#paper" cert="0.95">heuristics<term>heuristics</term></span>
      <span xml:id="t60" from="#a16" to="#a17" type="concepts" ana="#concepts[20]" resp="#paper" cert="0.95">CAT<term>CAT</term></span>
      <span xml:id="t61" from="#a1" to="#a2" type="concepts" ana="#concepts[21]" resp="#paper" cert="0.95">rate of evolution<term>rate of evolution</term></span>
      <span xml:id="t62" from="#a16" to="#a17" type="concepts" ana="#concepts[22]" resp="#paper" cert="0.95">gamma distribution<term>gamma distribution</term></span>
      <span xml:id="t63" from="#a18" to="#a19" type="concepts" ana="#concepts[23]" resp="#paper" cert="0.95">approximately-maximum-likelihood method<term>approximately-maximum-likelihood method</term></span>
      <span xml:id="t64" from="#a30" to="#a31" type="concepts" ana="#concepts[24]" resp="#paper" cert="0.95">topological accuracy<term>topological accuracy</term></span>
      <span xml:id="t65" from="#a30" to="#a31" type="concepts" ana="#concepts[25]" resp="#paper" cert="0.95">proportion of the splits in the true trees that are recovered<term>proportion of the splits in the true trees that are recovered</term></span>
      <span xml:id="t66" from="#a32" to="#a33" type="concepts" ana="#concepts[26]" resp="#paper" cert="0.95">strongly supported<term>strongly supported</term></span>
      <span xml:id="t67" from="#a32" to="#a33" type="concepts" ana="#concepts[27]" resp="#paper" cert="0.95">both SH-like local supports and approximate likelihood ratio test (aLRT) supports<term>both SH-like local supports and approximate likelihood ratio test (aLRT) supports</term></span>
      <span xml:id="t68" from="#a32" to="#a33" type="concepts" ana="#concepts[28]" resp="#paper" cert="0.95">local support values<term>local support values</term></span>
      <span xml:id="t69" from="#a42" to="#a43" type="concepts" ana="#concepts[29]" resp="#paper" cert="0.95">FastME<term>FastME</term></span>
      <span xml:id="t70" from="#a44" to="#a45" type="concepts" ana="#concepts[30]" resp="#paper" cert="0.95">exact neighbor joining<term>exact neighbor joining</term></span>
      <span xml:id="t71" from="#a46" to="#a47" type="concepts" ana="#concepts[31]" resp="#paper" cert="0.95">16S ribosomal RNAs<term>16S ribosomal RNAs</term></span>
      <span xml:id="t72" from="#a46" to="#a47" type="concepts" ana="#concepts[32]" resp="#paper" cert="0.95">protein families from COG<term>protein families from COG</term></span>
      <span xml:id="t73" from="#a24" to="#a25" type="concepts" ana="#concepts[33]" resp="#paper" cert="0.95">bootstrap<term>bootstrap</term></span>
      <span xml:id="t74" from="#a92" to="#a93" type="concepts" ana="#concepts[34]" resp="#paper" cert="0.95">SH test<term>SH test</term></span>
      <span xml:id="t75" from="#a72" to="#a73" type="concepts" ana="#concepts[35]" resp="#paper" cert="0.95">posterior distributions<term>posterior distributions</term></span>
      <span xml:id="t76" from="#a76" to="#a77" type="concepts" ana="#concepts[36]" resp="#paper" cert="0.95">up-posterior<term>up-posterior</term></span>
      <span xml:id="t77" from="#a88" to="#a89" type="concepts" ana="#concepts[37]" resp="#paper" cert="0.95">subtree skipping<term>subtree skipping</term></span>
      <span xml:id="t78" from="#a90" to="#a91" type="concepts" ana="#concepts[38]" resp="#paper" cert="0.95">star topology<term>star topology</term></span>
      <span xml:id="t79" from="#a80" to="#a81" type="concepts" ana="#concepts[39]" resp="#paper" cert="0.95">GTR model<term>GTR model</term></span>
      <span xml:id="t80" from="#a74" to="#a75" type="concepts" ana="#concepts[40]" resp="#paper" cert="0.95">Jukes Cantor<term>Jukes Cantor</term></span>
      <span xml:id="t81" from="#a82" to="#a83" type="concepts" ana="#concepts[41]" resp="#paper" cert="0.95">Bayesian approach<term>Bayesian approach</term></span>
      <span xml:id="t82" from="#a82" to="#a83" type="concepts" ana="#concepts[42]" resp="#paper" cert="0.95">rate categories<term>rate categories</term></span>
      <span xml:id="t83" from="#a94" to="#a95" type="concepts" ana="#concepts[43]" resp="#paper" cert="0.95">likelihood vectors<term>likelihood vectors</term></span>
      <span xml:id="t84" from="#a94" to="#a95" type="concepts" ana="#concepts[44]" resp="#paper" cert="0.95">single-precision floating point<term>single-precision floating point</term></span>
      <span xml:id="t85" from="#a96" to="#a97" type="concepts" ana="#concepts[45]" resp="#paper" cert="0.95">rotated form<term>rotated form</term></span>
      <span xml:id="t86" from="#a98" to="#a99" type="concepts" ana="#concepts[46]" resp="#paper" cert="0.95">SSE2 instructions<term>SSE2 instructions</term></span>
      <span xml:id="t87" from="#a100" to="#a101" type="concepts" ana="#concepts[47]" resp="#paper" cert="0.95">Brent&#x27;s method<term>Brent&#x27;s method</term></span>
      <span xml:id="t88" from="#a64" to="#a65" type="concepts" ana="#concepts[48]" resp="#paper" cert="0.95">profile alignment<term>profile alignment</term></span>
      <span xml:id="t89" from="#a7" to="#a8" type="unhoused_relations" ana="#unhoused_relations[0]" resp="#tagger" cert="0.95">gene families → phylogenies<note>Growing gene families make phylogenetic inference computationally challenging.</note></span>
      <span xml:id="t90" from="#a13" to="#a15" type="unhoused_relations" ana="#unhoused_relations[1]" resp="#tagger" cert="0.95">heuristics → FastTree 2<note>Search restrictions preserve FastTree 2 scalability while limiting optimality.</note></span>
      <span xml:id="t91" from="#a16" to="#a17" type="unhoused_relations" ana="#unhoused_relations[2]" resp="#tagger" cert="0.95">CAT → rate of evolution<note>CAT assigns the most likely fixed rate to each site.</note></span>
      <span xml:id="t92" from="#a20" to="#a21" type="unhoused_relations" ana="#unhoused_relations[3]" resp="#tagger" cert="0.95">minimum-evolution → PhyML<note>FastTree&#x27;s minimum-evolution starting tree explains its advantage over default PhyML NNI search.</note></span>
      <span xml:id="t93" from="#a24" to="#a25" type="unhoused_relations" ana="#unhoused_relations[4]" resp="#tagger" cert="0.95">bootstrap → local support values<note>SH-like local supports provide a quicker reliability estimate than full bootstrapping.</note></span>
      <span xml:id="t94" from="#a88" to="#a89" type="unhoused_relations" ana="#unhoused_relations[5]" resp="#tagger" cert="0.95">subtree skipping → likelihood<note>Subtree skipping avoids work where recent rounds did not improve likelihood.</note></span>
      <span xml:id="t95" from="#a88" to="#a89" type="unhoused_relations" ana="#unhoused_relations[6]" resp="#tagger" cert="0.95">subtree skipping → FastTree 2<note>Subtree skipping typically gives FastTree&#x27;s ML phase a threefold speedup.</note></span>
      <span xml:id="t96" from="#a98" to="#a99" type="unhoused_relations" ana="#unhoused_relations[7]" resp="#tagger" cert="0.95">SSE2 instructions → FastTree 2<note>SSE2 vector operations speed protein-alignment computation by up to 50 percent.</note></span>
      <span xml:id="t97" from="#a9" to="#a10" type="unhoused_relations" ana="#unhoused_relations[8]" resp="#tagger" cert="0.95">profiles of subtrees → pairwise distances<note>Subtree profiles require far less memory than storing pairwise distances.</note></span>
      <span xml:id="t98" from="#a92" to="#a93" type="unhoused_relations" ana="#unhoused_relations[9]" resp="#tagger" cert="0.95">local support values → star topology<note>Local supports can be biased upward when high-likelihood alternatives are not considered.</note></span>
      <span xml:id="t99" from="#a64" to="#a65" type="unhoused_relations" ana="#unhoused_relations[10]" resp="#tagger" cert="0.95">profile alignment → protein families from COG<note>Profile alignment may be inaccurate for diverse protein families.</note></span>
      <span xml:id="t100" from="#a66" to="#a67" type="unhoused_relations" ana="#unhoused_relations[11]" resp="#tagger" cert="0.95">likelihood → bootstrap<note>Large likelihood gains can coexist with few individually bootstrap-supported topology changes.</note></span>
      <span xml:id="t101" from="#a5" to="#a6" type="senses" ana="#senses[0]" resp="#tagger" cert="0.95">phylogeny as a sequence-derived evolutionary relationship topology</span>
      <span xml:id="t102" from="#a9" to="#a10" type="senses" ana="#senses[1]" resp="#tagger" cert="0.95">minimum evolution as minimizing total branch length, not runtime</span>
      <span xml:id="t103" from="#a11" to="#a12" type="senses" ana="#senses[2]" resp="#tagger" cert="0.95">maximum likelihood as a ranking criterion that does not prescribe a search</span>
      <span xml:id="t104" from="#a18" to="#a19" type="senses" ana="#senses[3]" resp="#tagger" cert="0.95">approximately maximum likelihood as monotonic improvement without local-optimum guarantee</span>
      <span xml:id="t105" from="#a30" to="#a31" type="senses" ana="#senses[4]" resp="#tagger" cert="0.95">topological accuracy as true-split recovery rather than likelihood</span>
      <span xml:id="t106" from="#a32" to="#a33" type="senses" ana="#senses[5]" resp="#tagger" cert="0.95">strong support as agreement of two local tests at a 95-percent threshold</span>
      <span xml:id="t107" from="#a16" to="#a17" type="senses" ana="#senses[6]" resp="#tagger" cert="0.95">CAT as point selection of a per-site rate rather than integration over rates</span>
      <span xml:id="t108" from="#a72" to="#a73" type="senses" ana="#senses[7]" resp="#tagger" cert="0.95">posterior distribution as an ancestral-state probability vector at an internal node</span>
      <span xml:id="t109" from="#a76" to="#a77" type="senses" ana="#senses[8]" resp="#tagger" cert="0.95">up-posterior as the rest-of-tree distribution enabling temporary rerooting</span>
      <span xml:id="t110" from="#a88" to="#a89" type="senses" ana="#senses[9]" resp="#tagger" cert="0.95">subtree skipping as recent-history pruning rather than permanent exclusion</span>
      <span xml:id="t111" from="#a92" to="#a93" type="senses" ana="#senses[10]" resp="#tagger" cert="0.95">local support as a quartet-local reliability estimate, not a global topology search</span>
      <span xml:id="t112" from="#a52" to="#a53" type="senses" ana="#senses[11]" resp="#tagger" cert="0.95">scalability as combined runtime and memory behavior on hundreds of thousands of sequences</span>
      <span xml:id="t113" from="#a1" to="#a2" type="claim_relations" ana="#claim_relations[0]" resp="#tagger" cert="0.95">extends → FastTree 1.0<note>note: FastTree 2 retains the scalable predecessor and adds SPR and ML-NNI stages.</note></span>
      <span xml:id="t114" from="#a13" to="#a14" type="claim_relations" ana="#claim_relations[1]" resp="#tagger" cert="0.95">builds-on → neighbor joining and nearest-neighbor interchange phylogeny construction<note>note: The new pipeline begins from these established operations.</note></span>
      <span xml:id="t115" from="#a20" to="#a21" type="claim_relations" ana="#claim_relations[2]" resp="#tagger" cert="0.95">contrasts-with → PhyML 3 default NNI search<note>note: The paper directly compares accuracy and explains the initialization difference.</note></span>
      <span xml:id="t116" from="#a22" to="#a23" type="claim_relations" ana="#claim_relations[3]" resp="#tagger" cert="0.95">contrasts-with → RAxML 7 maximum-likelihood SPR search<note>note: The comparison exposes the accuracy versus computation tradeoff.</note></span>
      <span xml:id="t117" from="#a18" to="#a19" type="concept_edges" ana="#concept_edges[0]" resp="#tagger" cert="0.95">FastTree 2 —is-a→ approximately-maximum-likelihood method<note>the relation itself is separately evidenced · strength of the relation: 1 · note: Direct categorical statement. · the relation stated: FastTree 2 is an approximately-maximum-likelihood method.</note><term>FastTree 2</term><term>approximately-maximum-likelihood method</term></span>
      <span xml:id="t118" from="#a30" to="#a31" type="concept_edges" ana="#concept_edges[1]" resp="#tagger" cert="0.95">topological accuracy —operationalised-as→ proportion of the splits in the true trees that are recovered<note>the relation itself is separately evidenced · strength of the relation: 1 · note: Exact operational definition. · the relation stated: Topological accuracy is defined as the proportion of true-tree splits recovered.</note><term>topological accuracy</term><term>proportion of the splits in the true trees that are recovered</term></span>
      <span xml:id="t119" from="#a32" to="#a33" type="concept_edges" ana="#concept_edges[2]" resp="#tagger" cert="0.95">strongly supported —operationalised-as→ both SH-like local supports and approximate likelihood ratio test (aLRT) supports<note>the relation itself is separately evidenced · strength of the relation: 1 · note: Exact thresholded operational definition. · the relation stated: Strong support is defined by both local-support measures reaching 95 percent.</note><term>strongly supported</term><term>both SH-like local supports and approximate likelihood ratio test (aLRT) supports</term></span>
      <span xml:id="t120" from="#a30" to="#a31" type="concept_edges" ana="#concept_edges[3]" resp="#tagger" cert="0.95">FastTree 2 —contrasted-with→ PhyML<note>the relation itself is separately evidenced · strength of the relation: 0.95 · note: Direct comparative finding. · the relation stated: FastTree 2 is slightly more accurate than PhyML with default NNI settings.</note><term>FastTree 2</term><term>PhyML</term></span>
      <span xml:id="t121" from="#a22" to="#a23" type="concept_edges" ana="#concept_edges[4]" resp="#tagger" cert="0.95">FastTree 2 —contrasted-with→ RAxML<note>the relation itself is separately evidenced · strength of the relation: 0.95 · note: Direct two-dimensional tradeoff. · the relation stated: FastTree is faster but less accurate than the more intensive RAxML SPR search.</note><term>FastTree 2</term><term>RAxML</term></span>
      <span xml:id="t122" from="#a16" to="#a17" type="concept_edges" ana="#concept_edges[5]" resp="#tagger" cert="0.95">CAT —contrasted-with→ gamma distribution<note>the relation itself is separately evidenced · strength of the relation: 0.95 · note: Explicit rather-than contrast. · the relation stated: CAT selects a site-rate estimate rather than summing across rates approximating a gamma distribution.</note><term>CAT</term><term>gamma distribution</term></span>
      <span xml:id="t123" from="#a94" to="#a95" type="concept_edges" ana="#concept_edges[6]" resp="#tagger" cert="0.95">posterior distributions —contrasted-with→ likelihood vectors<note>the relation itself is separately evidenced · strength of the relation: 0.95 · note: Explicit whereas contrast. · the relation stated: FastTree stores normalized posterior distributions whereas RAxML stores likelihood vectors.</note><term>posterior distributions</term><term>likelihood vectors</term></span>
      <span xml:id="t124" from="#a9" to="#a10" type="concept_edges" ana="#concept_edges[7]" resp="#tagger" cert="0.95">profiles of subtrees —contrasted-with→ pairwise distances<note>the relation itself is separately evidenced · strength of the relation: 0.95 · note: Explicit replacement contrast. · the relation stated: FastTree stores subtree profiles instead of all pairwise distances.</note><term>profiles of subtrees</term><term>pairwise distances</term></span>
      <span xml:id="t125" from="#a1" to="#a2" type="content_tags" ana="#content_tags.findings[0]" resp="#tagger" cert="0.95">FastTree 2 improves FastTree 1 accuracy without sacrificing scalability.</span>
      <span xml:id="t126" from="#a1" to="#a2" type="content_tags" ana="#content_tags.findings[1]" resp="#tagger" cert="0.95">FastTree 2 is slightly more accurate than default PhyML NNI search on simulated and genuine alignments.</span>
      <span xml:id="t127" from="#a22" to="#a23" type="content_tags" ana="#content_tags.findings[2]" resp="#tagger" cert="0.95">Maximum-likelihood SPR methods remain more accurate, but most disagreeing splits are poorly supported.</span>
      <span xml:id="t128" from="#a1" to="#a2" type="content_tags" ana="#content_tags.findings[3]" resp="#tagger" cert="0.95">For large alignments FastTree 2 is 100 to 1,000 times faster than the more intensive alternatives.</span>
      <span xml:id="t129" from="#a1" to="#a2" type="content_tags" ana="#content_tags.findings[4]" resp="#tagger" cert="0.95">A 237,882-sequence 16S analysis completed in 22 hours with 5.8 GB of memory on a desktop.</span>
      <span xml:id="t130" from="#a18" to="#a19" type="content_tags" ana="#content_tags.findings[5]" resp="#tagger" cert="0.95">FastTree&#x27;s heuristics preserve a monotonically increasing CAT likelihood but do not guarantee a local optimum.</span>
      <span xml:id="t131" from="#a16" to="#a17" type="content_tags" ana="#content_tags.findings[6]" resp="#tagger" cert="0.95">The CAT approximation was much faster and approximately as accurate as summing over four gamma rates for large alignments.</span>
      <span xml:id="t132" from="#a30" to="#a31" type="content_tags" ana="#content_tags.findings[7]" resp="#tagger" cert="0.95">FastTree 2 recovered more true splits than default PhyML and minimum-evolution or parsimony methods, but fewer than ML-SPR methods.</span>
      <span xml:id="t133" from="#a32" to="#a33" type="content_tags" ana="#content_tags.findings[8]" resp="#tagger" cert="0.95">Only 16 percent of true PhyML-SPR splits missed by FastTree were strongly supported, while 20 percent of strongly supported disagreements were incorrect.</span>
      <span xml:id="t134" from="#a34" to="#a35" type="content_tags" ana="#content_tags.findings[9]" resp="#tagger" cert="0.95">Supplying PhyML with FastTree&#x27;s starting tree made their simulated accuracies statistically indistinguishable.</span>
      <span xml:id="t135" from="#a36" to="#a37" type="content_tags" ana="#content_tags.findings[10]" resp="#tagger" cert="0.95">FastTree and PhyML branch lengths and SH-like supports were highly correlated, though accurate branch lengths can require richer rate treatment.</span>
      <span xml:id="t136" from="#a42" to="#a43" type="content_tags" ana="#content_tags.findings[11]" resp="#tagger" cert="0.95">Removing FastTree&#x27;s major search heuristics improved 5,000-protein simulated accuracy only from 84.3 to 85.0 percent.</span>
      <span xml:id="t137" from="#a44" to="#a45" type="content_tags" ana="#content_tags.findings[12]" resp="#tagger" cert="0.95">Regular, exact-neighbor-joining-start, and fastest-heuristic variants all recovered 92.10 percent of splits in 78,000-sequence simulations.</span>
      <span xml:id="t138" from="#a48" to="#a49" type="content_tags" ana="#content_tags.findings[13]" resp="#tagger" cert="0.95">On large genuine alignments FastTree retained 96 to 98 percent of RAxML splits having at least 90 percent global bootstrap support.</span>
      <span xml:id="t139" from="#a50" to="#a51" type="content_tags" ana="#content_tags.findings[14]" resp="#tagger" cert="0.95">FastTree was 100 to 800 times faster than fast-convergence RAxML on alignments with thousands of sequences.</span>
      <span xml:id="t140" from="#a54" to="#a55" type="content_tags" ana="#content_tags.findings[15]" resp="#tagger" cert="0.95">FastTree&#x27;s local support computation added little runtime relative to tree inference.</span>
      <span xml:id="t141" from="#a56" to="#a57" type="content_tags" ana="#content_tags.findings[16]" resp="#tagger" cert="0.95">Given the same starting tree, FastTree&#x27;s ML phase achieved about one RAxML SPR round&#x27;s likelihood gain in roughly 40 percent of the time.</span>
      <span xml:id="t142" from="#a58" to="#a59" type="content_tags" ana="#content_tags.findings[17]" resp="#tagger" cert="0.95">RAxML parsimony initialization was 4 to 17 times slower than FastTree minimum evolution in the tested versions.</span>
      <span xml:id="t143" from="#a88" to="#a89" type="content_tags" ana="#content_tags.findings[18]" resp="#tagger" cert="0.95">The most important ML heuristic, subtree skipping, typically delivered a threefold speedup.</span>
      <span xml:id="t144" from="#a98" to="#a99" type="content_tags" ana="#content_tags.findings[19]" resp="#tagger" cert="0.95">SSE2 vectorization accelerated protein-alignment computations by up to 50 percent in the reported tests.</span>
      <span xml:id="t145" from="#a5" to="#a6" type="content_tags" ana="#content_tags.definitions[0]" resp="#tagger" cert="0.95">inferred evolutionary relationships among related DNA or protein sequences<term>phylogenies</term></span>
      <span xml:id="t146" from="#a9" to="#a10" type="content_tags" ana="#content_tags.definitions[1]" resp="#tagger" cert="0.95">a criterion seeking the topology with the smallest sum of branch lengths<term>minimum evolution</term></span>
      <span xml:id="t147" from="#a9" to="#a10" type="content_tags" ana="#content_tags.definitions[2]" resp="#tagger" cert="0.95">a local rearrangement that swaps a node with one of its neighbors<term>nearest-neighbor interchange</term></span>
      <span xml:id="t148" from="#a11" to="#a12" type="content_tags" ana="#content_tags.definitions[3]" resp="#tagger" cert="0.95">ranking trees by how well an explicit evolutionary model explains the observed sequences<term>maximum likelihood</term></span>
      <span xml:id="t149" from="#a13" to="#a14" type="content_tags" ana="#content_tags.definitions[4]" resp="#tagger" cert="0.95">removing a subtree and reinserting it elsewhere in the topology<term>subtree-pruning-regrafting</term></span>
      <span xml:id="t150" from="#a18" to="#a19" type="content_tags" ana="#content_tags.definitions[5]" resp="#tagger" cert="0.95">a heuristic search whose CAT likelihood increases at every accepted step without a local-optimum guarantee<term>approximately-maximum-likelihood method</term></span>
      <span xml:id="t151" from="#a30" to="#a31" type="content_tags" ana="#content_tags.definitions[6]" resp="#tagger" cert="0.95">the proportion of true-tree splits recovered by an inference method<term>topological accuracy</term></span>
      <span xml:id="t152" from="#a32" to="#a33" type="content_tags" ana="#content_tags.definitions[7]" resp="#tagger" cert="0.95">both SH-like and aLRT local support values at least 95 percent<term>strongly supported</term></span>
      <span xml:id="t153" from="#a72" to="#a73" type="content_tags" ana="#content_tags.definitions[8]" resp="#tagger" cert="0.95">the inferred state probabilities for an ancestral internal node given descendants and branch lengths<term>posterior distribution</term></span>
      <span xml:id="t154" from="#a88" to="#a89" type="content_tags" ana="#content_tags.definitions[9]" resp="#tagger" cert="0.95">avoiding traversal into subtrees without recent significant likelihood improvement<term>subtree skipping</term></span>
      <span xml:id="t155" from="#a86" to="#a87" type="content_tags" ana="#content_tags.definitions[10]" resp="#tagger" cert="0.95">no quartet NNI improving likelihood by more than 0.1<term>convergence</term></span>
      <span xml:id="t156" from="#a92" to="#a93" type="content_tags" ana="#content_tags.definitions[11]" resp="#tagger" cert="0.95">confidence in a split estimated from per-site likelihoods for current and alternate local topologies<term>SH-like local support</term></span>
      <span xml:id="t157" from="#a1" to="#a2" type="content_tags" ana="#content_tags.quantities[0]" resp="#tagger" cert="0.95">100–1,000 times — reported FastTree 2 speed advantage for large alignments</span>
      <span xml:id="t158" from="#a1" to="#a2" type="content_tags" ana="#content_tags.quantities[1]" resp="#tagger" cert="0.95">237,882 — distinct 16S rRNAs in the largest demonstrated inference</span>
      <span xml:id="t159" from="#a1" to="#a2" type="content_tags" ana="#content_tags.quantities[2]" resp="#tagger" cert="0.95">22 hours — runtime for the 237,882-sequence FastTree analysis</span>
      <span xml:id="t160" from="#a1" to="#a2" type="content_tags" ana="#content_tags.quantities[3]" resp="#tagger" cert="0.95">5.8 gigabytes — memory for the 237,882-sequence FastTree analysis</span>
      <span xml:id="t161" from="#a16" to="#a17" type="content_tags" ana="#content_tags.quantities[4]" resp="#tagger" cert="0.95">20 — fixed rate possibilities used by CAT for each site</span>
      <span xml:id="t162" from="#a28" to="#a29" type="content_tags" ana="#content_tags.quantities[5]" resp="#tagger" cert="0.95">250 to 5,000 — sequence counts in simulated protein alignments</span>
      <span xml:id="t163" from="#a32" to="#a33" type="content_tags" ana="#content_tags.quantities[6]" resp="#tagger" cert="0.95">95% or higher — threshold on both local-support measures for a strongly supported split</span>
      <span xml:id="t164" from="#a32" to="#a33" type="content_tags" ana="#content_tags.quantities[7]" resp="#tagger" cert="0.95">16% — true PhyML-SPR splits missed by FastTree that were strongly supported</span>
      <span xml:id="t165" from="#a32" to="#a33" type="content_tags" ana="#content_tags.quantities[8]" resp="#tagger" cert="0.95">20% — strongly supported PhyML-only splits that were incorrect</span>
      <span xml:id="t166" from="#a34" to="#a35" type="content_tags" ana="#content_tags.quantities[9]" resp="#tagger" cert="0.95">86.8% and 86.9% — PhyML-with-FastTree-start and FastTree simulated accuracies</span>
      <span xml:id="t167" from="#a40" to="#a41" type="content_tags" ana="#content_tags.quantities[10]" resp="#tagger" cert="0.95">0.90 — reported correlation for both branch lengths and local supports between FastTree and PhyML</span>
      <span xml:id="t168" from="#a42" to="#a43" type="content_tags" ana="#content_tags.quantities[11]" resp="#tagger" cert="0.95">84.3% to 85.0% — accuracy change after combining less heuristic starting and NNI searches</span>
      <span xml:id="t169" from="#a44" to="#a45" type="content_tags" ana="#content_tags.quantities[12]" resp="#tagger" cert="0.95">92.10% — split recovery shared by three neighbor-joining heuristic variants</span>
      <span xml:id="t170" from="#a48" to="#a49" type="content_tags" ana="#content_tags.quantities[13]" resp="#tagger" cert="0.95">96–98% — strongly supported RAxML splits recovered by FastTree</span>
      <span xml:id="t171" from="#a88" to="#a89" type="content_tags" ana="#content_tags.quantities[14]" resp="#tagger" cert="0.95">3-fold — typical speedup from subtree skipping</span>
      <span xml:id="t172" from="#a26" to="#a27" type="content_tags" ana="#content_tags.variables[0]" resp="#tagger" cert="0.95">topological accuracy<term>topological accuracy</term></span>
      <span xml:id="t173" from="#a26" to="#a27" type="content_tags" ana="#content_tags.variables[1]" resp="#tagger" cert="0.95">likelihood<term>likelihood</term></span>
      <span xml:id="t174" from="#a50" to="#a51" type="content_tags" ana="#content_tags.variables[2]" resp="#tagger" cert="0.95">running time<term>running time</term></span>
      <span xml:id="t175" from="#a52" to="#a53" type="content_tags" ana="#content_tags.variables[3]" resp="#tagger" cert="0.95">memory<term>memory</term></span>
      <span xml:id="t176" from="#a28" to="#a29" type="content_tags" ana="#content_tags.variables[4]" resp="#tagger" cert="0.95">number of sequences<term>number of sequences</term></span>
      <span xml:id="t177" from="#a34" to="#a35" type="content_tags" ana="#content_tags.variables[5]" resp="#tagger" cert="0.95">starting tree<term>starting tree</term></span>
      <span xml:id="t178" from="#a32" to="#a33" type="content_tags" ana="#content_tags.variables[6]" resp="#tagger" cert="0.95">local support values<term>local support values</term></span>
      <span xml:id="t179" from="#a36" to="#a37" type="content_tags" ana="#content_tags.variables[7]" resp="#tagger" cert="0.95">branch lengths<term>branch lengths</term></span>
      <span xml:id="t180" from="#a82" to="#a83" type="content_tags" ana="#content_tags.variables[8]" resp="#tagger" cert="0.95">rate categories<term>rate categories</term></span>
      <span xml:id="t181" from="#a78" to="#a79" type="content_tags" ana="#content_tags.variables[9]" resp="#tagger" cert="0.95">rounds of branch length optimization<term>rounds of branch length optimization</term></span>
    </spanGrp>
  </standOff>
  <text>
    <body>
        <p><anchor xml:id="a0"/> FastTree 2 – Approximately Maximum-Likelihood Trees for Large Alignments</p>
        <p>Abstract</p>
        <p>We recently described FastTree, a tool for inferring phylogenies for alignments with up to hundreds of thousands of sequences. Here, we describe improvements to FastTree that improve its accuracy without sacrificing scalability.</p>
        <p><anchor xml:id="a1"/>Where FastTree 1 used nearest-neighbor interchanges (NNIs) and the minimum-evolution criterion to improve the tree, FastTree 2 adds minimum-evolution subtree-pruning-regrafting (SPRs) and maximum-likelihood NNIs. FastTree 2 uses heuristics to restrict the search for better trees and estimates a rate of evolution for each site (the “CAT” approximation). Nevertheless, for both simulated and genuine alignments, FastTree 2 is slightly more accurate than a standard implementation of maximum-likelihood NNIs (PhyML 3 with default settings). Although FastTree 2 is not quite as accurate as methods that use maximum-likelihood SPRs, most of the splits that disagree are poorly supported, and for large alignments, FastTree 2 is 100–1,000 times faster. FastTree 2 inferred a topology and likelihood-based local support values for 237,882 distinct 16S ribosomal RNAs on a desktop computer in 22 hours and 5.8 gigabytes of memory.<anchor xml:id="a2"/></p>
        <p><anchor xml:id="a3"/>FastTree 2 allows the inference of maximum-likelihood phylogenies for huge alignments. FastTree 2 is freely available at http://www.microbesonline.org/fasttree .<anchor xml:id="a4"/></p>
        <p>Introduction</p>
        <p><anchor xml:id="a5"/>Inferring evolutionary relationships, or phylogenies, from families of related DNA or protein sequences is a central method in computational biology. Sequence-based phylogenies are widely used to understand the evolutionary relationships of organisms and to analyze the functions of genes.<anchor xml:id="a6"/></p>
        <p><anchor xml:id="a7"/>The largest gene families already contain tens to hundreds of thousands of representatives, and with the rapid improvements in DNA sequencing, we expect even larger data sets to arrive soon. Large families can be aligned with profile-based methods that scale linearly with the number of sequences ( http://hmmer.janelia.org/ ; [1] ). However, most methods for inferring phylogenies from these alignments scale as O( ) or worse, where is the number of sequences and is the length (width) of the alignment. Thus, inferring phylogenies has become computationally challenging.<anchor xml:id="a8"/></p>
        <p><anchor xml:id="a9"/>We recently described a scalable method for inferring phylogenies, FastTree 1.0 [2] . FastTree 1.0 is based on the “minimum-evolution” principle – it tries to find a topology that minimizes the amount of evolution, or the sum of the branch lengths. FastTree 1.0 uses a heuristic variant of neighbor joining [3] , [4] to quickly find a starting tree and uses nearest-neighbor interchanges (NNIs) to refine the topology. (A nearest-neighbor interchange swaps a node and its neighbor; for example, it might change ((A,B),C,D) to ((A,C),B,D) or ((A,D),B,C).) FastTree implements these operations in O( ) space, where is the number of characters in the alphabet, by storing profiles of subtrees instead of distances between them. This requires far less memory than storing the pairwise distances, which is necessary for neighbor joining and related approaches. This also allows for heuristics that reduce the theoretical running time to O( ). (FastTree 1.0 also included some O( ) steps, but these have since been removed, see http://www.microbesonline.org/fasttree/ChangeLog .) In comparison, computing all pairwise distances, which is required with most minimum-evolution approaches, requires O( ) time. The main limitation of FastTree 1.0, as compared to other minimum-evolution methods, is that it does not correct distances for multiple substitutions during its initial neighbor joining phase. However, this is more than made up for by the NNIs. In practice, FastTree 1.0 is more accurate than most other minimum-evolution methods, but not as accurate as maximum-likelihood methods [2] .<anchor xml:id="a10"/></p>
        <p><anchor xml:id="a11"/>In the maximum-likelihood (ML) approach, evolution is explicitly modeled with a transition rate matrix, and the tree that best explains the data – the tree with the highest likelihood – is the best tree [5] . The ML criterion ranks the trees but does not specify how to find a good topology. Because ML phylogenetic inference is NP complete [6] , no practical method can guarantee that it will find the optimal topology for a large alignment. The most scalable ML methods, such as PhyML and RAxML, begin with a starting tree produced by a faster method, and try to increase the likelihood by optimizing individual branch lengths and performing local rearrangements [7] – [9] . By re-optimizing only a few branch lengths at each move, the cost of considering or performing a move can be reduced to O( ) time, where is the size of the alphabet. However, in practice, the number of moves grows as roughly O( ), and the optimization steps are inherently slow because they require numerical solving and iteration. This explains why both PhyML and RAxML can take over a day for just 1,000 protein sequences. Estimating the reliability of the tree with the bootstrap [10] generally increases the computational requirements another 100-fold (although this can be reduced by reusing computations across replicates [11] ).<anchor xml:id="a12"/></p>
        <p><anchor xml:id="a13"/>Here, we describe FastTree 2, a tool for inferring ML trees for large alignments. Besides constructing an initial tree with neighbor joining and improving it with minimum-evolution NNIs, FastTree 2 uses minimum-evolution subtree-pruning-regrafting (SPRs) [8] , [12] and ML NNIs to further improve the tree. (In subtree-pruning-regrafting, a subtree is removed from the tree and reinserted elsewhere, e.g., pruning and regrafting C might change ((A,B),(C,D),E) to ((A,(B,C)),D,E).) FastTree 2 uses heuristics to reduce the search space and hence to maintain the scalability of both stages. Another justification for reducing the search space is that intensive tree search often finds small improvements in the tree&#x27;s length or likelihood, but these changes may not be statistically or biologically significant (e.g., [13] ). Briefly, FastTree&#x27;s key heuristics are:<anchor xml:id="a14"/></p>
        <p>It uses “linear SPRs” to consider just of the possible SPR moves. At each node, it examines the shortest SPRs first and then extends the most promising candidates.</p>
        <p>It searches for SPR moves for every subtree just twice, instead of iterating until convergence.</p>
        <p>During the ML phase, it limits the ML NNIs to at most rounds; in practice, it converges before it reaches this limit, but the limit ensures a predictable running time.</p>
        <p>It limits the effort to optimize model parameters and branch lengths.</p>
        <p>It abandons optimization for NNI moves that seem, after partial optimization, to significantly lower the likelihood.</p>
        <p>It does not try to improve parts of the tree that did not improve in recent rounds.<anchor xml:id="a15"/></p>
        <p><anchor xml:id="a16"/>To account for the variation in rates across sites, FastTree uses the “CAT” approximation [14] rather than the standard discrete gamma model with four rates ( ) [15] . Some sites evolve much more slowly than others, and the ideal way to account for this is to integrate the likelihood at each site over the (unknown) relative evolutionary rate of that site, using a prior distribution over the relative rates such as a gamma distribution. However, these integrals are analytically intractable and computationally prohibitive. The “ ” approach is to use four rate categories to approximate the continuous gamma distribution. However, still requires four times more CPU time and memory than a model with no rate variation across sites. Furthermore, for large alignments, the data tightly constrains the rate at each site. Thus, it is much faster, and just as accurate, to use a good estimate of the rate at each site (CAT) rather than to sum over four potential rates ( ) [14] . FastTree selects the most likely rate for each site from among 20 fixed possibilities.<anchor xml:id="a17"/></p>
        <p><anchor xml:id="a18"/>Because of the heuristics, FastTree 2 is not guaranteed to reach a locally optimal likelihood in tree space. However, at each step it does guarantee that the likelihood increases (under the CAT approximation). Thus, FastTree 2 is an approximately-maximum-likelihood method.<anchor xml:id="a19"/></p>
        <p><anchor xml:id="a20"/>We will show that in practice, FastTree 2 is slightly more accurate than a standard implementation of maximum-likelihood NNIs, PhyML 3 with default settings [16] , [17] . Specifically, in simulations, FastTree 2 recovers a higher proportion of true splits, and on genuine alignments, FastTree 2&#x27;s topologies tend to have higher likelihoods. FastTree&#x27;s minimum-evolution SPR moves give it a better starting tree than PhyML&#x27;s starting tree, which is obtained with BIONJ (a weighted variant of neighbor joining [18] ). This more than makes up for FastTree&#x27;s heuristics, which reduce the intensity of search for ML NNIs but have little effect on accuracy. We also confirm that using the CAT approximation instead of the model (which is itself an approximation of the continuous gamma distribution) has little effect on the quality of the tree.<anchor xml:id="a21"/></p>
        <p><anchor xml:id="a22"/>Although FastTree 2 is significantly less accurate than ML methods that use SPR moves, such as PhyML with slower settings or RAxML, most of the splits that disagree are poorly supported, and FastTree is much faster. FastTree 2 can analyze alignments with tens or hundreds of thousands of sequences in under a day on a desktop computer. For alignments with 500 sequences or more, FastTree 2 is at least 100 times faster than either PhyML 3.0 or RAxML 7.2.1. FastTree 2 is faster than RAxML 7 mostly because of less intensive ML search (NNIs instead of SPRs) and because RAxML 7 optimizes branch lengths under the model. However, FastTree also has a faster starting tree, and it initially increases the likelihood more quickly than RAxML 7 does.<anchor xml:id="a23"/></p>
        <p><anchor xml:id="a24"/>Because of its speed, FastTree 2 is suitable for bootstrapping. However, to provide a quicker estimate of the tree&#x27;s reliability, FastTree 2 provides local support values based on the Shimodaira-Hasegawa (SH) test [16] , [17] , [19] . FastTree 2 should be useful for reconstructing the tree of life and for analyzing the millions of uncharacterized proteins that are being identified by genome sequencing.<anchor xml:id="a25"/></p>
        <p>Results</p>
        <p><anchor xml:id="a26"/>We compared FastTree&#x27;s speed and accuracy to those of PhyML 3.0 and RAxML 7, the most popular maximum-likelihood methods. To measure the quality of the resulting trees, we measured the topological accuracy on simulated alignments and the likelihood on genuine biological alignments.<anchor xml:id="a27"/></p>
        <p>Topological Accuracy in Simulations</p>
        <p><anchor xml:id="a28"/>We tested FastTree on simulated protein alignments with 250 to 5,000 sequences [2] . These simulations were derived from diverse gene families that arise in genome-scale studies (“Collections of Orthologous Groups” or COGs, [20] ). The simulations include varying evolutionary rates across sites and include realistic placement of gaps. The simulations are available from the FastTree web site ( http://microbesonline.org/fasttree/#Sims ).<anchor xml:id="a29"/></p>
        <p><anchor xml:id="a30"/>We defined the topological accuracy as the proportion of the splits in the true trees that are recovered by each method. This is the converse of the topological (“Robinson-Foulds”) distance, scaled to range from 0 to 1. As shown in Table 1 , FastTree 2 was slightly more accurate than PhyML 3 with default settings (NNI search), and much more accurate than minimum-evolution or parsimony methods, but not as accurate as ML methods that use SPR moves. The differences in accuracy between FastTree 2 and the other methods were statistically significant (all , paired tests).<anchor xml:id="a31"/></p>
        <p>Topological accuracy of trees inferred from simulated alignments.</p>
        <p><anchor xml:id="a32"/>To test the practical significance of the additional true splits that are found by using ML SPR moves, we examined the local support values reported by PhyML 3. We defined “strongly supported” as having both SH-like local supports and approximate likelihood ratio test (aLRT) supports [21] of 95% or higher. Only 16% of the true splits that are found by PhyML 3 with SPR moves but missed by FastTree 2 were strongly supported. The full distribution of support values is shown in Figure 1 . Conversely, among the strongly supported splits that were found by PhyML 3 with SPRs but not FastTree, 20% were incorrect. Thus, few of the additional true splits have high support, and of the splits that disagree, even the ones that have high support have a significant probability of being incorrect.<anchor xml:id="a33"/></p>
        <p>Local support values for splits found by PhyML with SPR moves and/or FastTree. We examined local support values for the splits inferred by PhyML 3.0 with + SPRs on simulated alignments with 250 protein sequences. We classified PhyML&#x27;s splits as correct and found by both PhyML and FastTree, correct but missed by FastTree, or incorrect. We show the distribution of support values for each class. The right-most bin includes the strongly supported splits (0.95 to 1.0), and the gray dashed line shows the uniform distribution. The support values are PhyML&#x27;s minimum of the approximate likelihood ratio test [21] and SH-like [16] , [17] local supports.</p>
        <p><anchor xml:id="a34"/>To understand why FastTree 2 was outperforming PhyML 3 with NNI search, we ran PhyML 3 with FastTree&#x27;s minimum-evolution tree as its starting tree. For the protein simulations with 250 sequences, this improved PhyML&#x27;s accuracy to 86.8%, which is statistically indistinguishable from FastTree&#x27;s accuracy of 86.9% ( , paired test, ). We also confirmed that FastTree&#x27;s minimum-evolution phase yields more accurate starting trees than either PhyML 3&#x27;s approach of using BIONJ with maximum-likelihood distances or RAxML&#x27;s implementation of parsimony ( Table 1 ).<anchor xml:id="a35"/></p>
        <p>CAT-Based Branch Lengths and Local Support Values</p>
        <p><anchor xml:id="a36"/>Because FastTree 2 does not exhaustively optimize the likelihood, and because it reports branch lengths and local support values that were estimated using the CAT approximation, we compared its branch lengths and local support values to -based lengths and supports. Specifically, for the protein simulations with 250 sequences, we re-optimized the branch lengths and computed local SH-like support values for the FastTree topologies with PhyML 3 and . (For both tools, we used the Jones-Taylor-Thorton (JTT) model of amino acid evolution.) PhyML&#x27;s internal branch lengths were well correlated with those from FastTree ( = 0.90). For branch lengths of 1.0 or less, the average difference was just 0.01, and for branch lengths between 0.01 and 1.0, the average percent difference was 13%. For internal branch lengths on correct splits, FastTree agreed slightly better with the true lengths (median absolute difference of 0.062 for PhyML and 0.059 for FastTree). Thus, the CAT approximation gave acceptable branch lengths.<anchor xml:id="a37"/></p>
        <p><anchor xml:id="a38"/>If accurate branch lengths are essential, however, then neither the CAT approximation nor the standard approximation is sufficient. The approximation was introduced for alignments with just 10 sequences, and four discrete rate categories may not suffice to give accurate likelihoods on larger alignments [15] , [22] . For alignments of 16S ribosomal RNAs, branch lengths can be a factor of two shorter than branch lengths ( Figure S1 ). As explained in Figure S1 , correcting by the average posterior rate reduces this problem, and FastTree can compute a fast but accurate approximation to -based lengths.<anchor xml:id="a39"/></p>
        <p><anchor xml:id="a40"/>The local SH-like support values also showed a good correlation between FastTree and PhyML ( = 0.90). For splits with local support values of at least 0.9 from either FastTree or PhyML, the average absolute difference was just 0.008, which is not much greater than the sampling error. (For example, with 1,000 bootstraps and 95% support, the standard deviation of support values due to sampling is = 0.007.) FastTree was less effective than PhyML in distinguishing correct from incorrect splits, but the difference was slight: the area under the receiver operating curve (AOC) was 0.880 instead of 0.887 ( , test of [23] ).<anchor xml:id="a41"/></p>
        <p>Effectiveness of Heuristics</p>
        <p><anchor xml:id="a42"/>We then examined how the topological accuracy of FastTree 2 is affected by its heuristics. As shown in Table 1 , the minimum-evolution phase of FastTree, which uses linear SPRs, is not as accurate as FastME 2, a minimum-evolution method that performs exhaustive SPR moves [8] , [12] . FastME computes distances between internal nodes differently from the minimum-evolution phase of FastTree: FastME uses averages of distances between sequences, while FastTree uses distances between profiles, which are averages of sequences. Nevertheless, FastTree 1 with only NNI moves gave very similar results as FastME with only NNI moves [2] . Thus, we attribute the modest difference in accuracy of the minimum-evolution methods with SPRs to FastTree&#x27;s heuristics. To eliminate this effect, we ran FastTree with the FastME starting tree. To eliminate the effect of FastTree&#x27;s ML heuristics, we ran it with exhaustive ML NNIs, and with more exhaustive optimization of branch lengths within each NNI (4 rounds of optimizing branch lengths for each quartet, instead of 1–2 rounds). In combination, FastTree 2 with FastME+SPR starting trees and exhaustive NNIs improved the accuracy on simulated alignments with 5,000 protein sequences from 84.3% to 85.0%. This modest effect illustrates that all of FastTree&#x27;s heuristics have little effect on accuracy, and that removing them would improve the topology little relative to adding ML SPRs (e.g., RAxML 7.2.1 was 88.4% accurate).<anchor xml:id="a43"/></p>
        <p><anchor xml:id="a44"/>We also tested FastTree on simulations with over 78,000 nucleotide sequences. These simulations are derived from a 16S ribosomal RNA alignment (see Methods ). The large size of these simulated alignments makes them a stringent test of FastTree&#x27;s heuristics. In these simulations, FastTree gave much more accurate topologies than exact neighbor joining or Clearcut [24] , a faster heuristic variant of neighbor joining ( Table 1 ). (To analyze such large alignments with exact neighbor joining, we used NINJA [25] .) To verify that the heuristics in FastTree&#x27;s neighbor joining phase do not reduce accuracy, we also ran FastTree with the exact neighbor-joining tree as its starting tree, before doing minimum-evolution NNIs and SPRs and ML NNIs. This gave the same accuracy as the regular FastTree or as FastTree with the fastest settings of its heuristics for the neighbor joining phase (-fastest). All three variants found 92.10% of splits correctly.<anchor xml:id="a45"/></p>
        <p>It may seem surprising that FastTree can reach accurate topologies when it does not compare all pairs of sequences to each other. However, minimum-evolution NNIs and SPRs are “consistent” – they find correct trees, even if the distances contain some errors, as long as the errors are much smaller than the internal branch lengths [26] , [27] . In practice, the errors are often larger than the internal branch lengths, but this still probably explains why NNIs and SPRs suffice to find most of the splits correctly.</p>
        <p>Quality of Topologies for Biological Alignments</p>
        <p><anchor xml:id="a46"/>To confirm that FastTree finds good topologies for genuine alignments, and not just in simulations, we tested it on 16S ribosomal RNAs and on protein families from COG. Although these families are quite large (up to 300,000 or 19,000 members, respectively), we first tested random subsets of just 500 sequences, so that we could run PhyML 3 with . To measure the quality of the topologies from FastTree 2, PhyML 3, and RAxML 7, we re-optimized the branch lengths with a model (using RAxML) and compared the resulting likelihoods. As expected from the simulations, FastTree found better topologies than PhyML 3 with and NNI moves, but not as good as RAxML 7 ( Table 2 ).<anchor xml:id="a47"/></p>
        <p>Average log-likelihood for genuine alignments with 500 sequences.</p>
        <p>We then tested FastTree and RAxML on larger alignments of 16S rRNAs and COGs. For alignments with thousands of sequences, RAxML 7.0.4 is a bit slow, so we used RAxML 7.2.1, which introduced a fast convergence option as well as other optimizations. With fast convergence, RAxML terminates the search if less than 1% of splits change during a round of SPR moves. As shown in Table 1 , for 5,000 proteins, RAxML with fast convergence is nevertheless quite accurate.</p>
        <p><anchor xml:id="a48"/>On the larger alignments, RAxML 7.2.1&#x27;s likelihoods were much higher than FastTree&#x27;s, and all of the differences in likelihood were statistically significant (all , SH test using CONSEL [28] ). However, FastTree did find most of the splits in the RAxML topology that had strong support ( Table 3 ). For example, FastTree found 96–98% of RAxML&#x27;s splits that had global bootstrap of 90% or higher.<anchor xml:id="a49"/></p>
        <p>Comparison of RAxML and FastTree&#x27;s log likelihoods, and the agreement of FastTree with RAxML&#x27;s well-supported splits, for large genuine alignments.</p>
        <p>Running Time and Memory Required</p>
        <p><anchor xml:id="a50"/>Finally, we compared the computational performance of FastTree, RAxML, and PhyML, on genuine alignments. As shown in Table 4 , for alignments with 500 sequences, FastTree is about 100 times faster than RAxML 7.0.4 when using the same model of evolution, and even faster relative to PhyML 3. For alignments with thousands of sequences, FastTree was still 100–800 times faster than RAxML 7.2.1 with fast convergence of SPRs, while PhyML 3 did not complete in a reasonable amount of time.<anchor xml:id="a51"/></p>
        <p>Running time and memory usage on genuine alignments.</p>
        <p><anchor xml:id="a52"/>For one of the largest alignments existing today, containing 237,882 16S ribosomal RNAs, FastTree took less than a day and 5.8 GB of memory on a desktop computer. For comparison, given that RAxML took over 2 days for just 15,011 sequences, and optimistically assuming O( ) scaling, RAxML would take around half a year for the full 16S alignment. Analyzing such alignments with traditional minimum evolution approaches based on a distance matrix would also be prohibitive – just computing and storing all pairwise distances for these sequences, without computing a topology, would require roughly a day and a half and 113 GB of storage.<anchor xml:id="a53"/></p>
        <p><anchor xml:id="a54"/>All of the FastTree times include the computation of local SH-like support values, while the other tools were run without support values. The local support values do not affect FastTree&#x27;s running time much. For example, across seven COG alignments with 2,500 protein sequences each, the average time for FastTree to infer a tree is 345 seconds, and the average time for it to compute SH-like supports is 51 seconds. For the full alignment of 237,882 16S rRNAs, the supports required just one hour.<anchor xml:id="a55"/></p>
        <p>Much of the time in RAxML 7.2.1 is spent optimizing the branch lengths under the model, even though the CAT approximation is used to search for a good topology. (RAxML can also perform SPR moves under the model, but we ran it with SPR moves under the CAT model only, followed by optimizing branch lengths under , because RAxML 7.2.1 does not report CAT-based branch lengths.) If branch lengths are not required, such as during bootstrapping, then RAxML can be 2–3 times faster than shown in Table 4 . For example, for 15,011 16S rRNAs, if the phase is removed, then RAxML 7.2.1 takes 30 hours instead of 64 hours, which is still about 45 times slower than FastTree. The phase of RAxML is also expected to quadruple the memory required. For example, for 15,011 16S rRNAs, FastTree required 0.56 GB of memory, while RAxML with required 2.6 GB.</p>
        <p>Improvement of Likelihood Over Time</p>
        <p>To compare the search strategies of FastTree and RAxML more directly, we compared their improvement in likelihoods over time for a nucleotide alignment of 4,114 16S rRNAs [11] and for seven protein alignments of COG families with 2,500 members. We ran both methods with the CAT approximation and with either the generalized time-reversible (GTR) model of nucleotide substitution or the JTT model of amino acid substitution. We computed likelihoods for intermediate and final trees with RAxML, re-optimized branch lengths, and . Figure 2 shows the running time and log likelihood for FastTree&#x27;s minimum-evolution and final tree, for RAxML&#x27;s initial parsimony tree and successive rounds of SPR moves, and also for RAxML with FastTree&#x27;s minimum-evolution tree as its starting tree. These times do not include FastTree&#x27;s support values or RAxML optimizing branch lengths under .</p>
        <p>Likelihoods over time for genuine alignments. Each line shows the time it takes a different tool to reach a given likelihood. For the COG alignments, all times and likelihoods are averages over the seven alignments. For FastTree, we show the time and the improvement in likelihood for the minimum-evolution topology and the final (approximately-ML) topology. For RAxML, we show the maximum parsimony starting topology, the first two rounds of SPR moves, and the final topology (note the interrupted axis). For RAxML with FastTree&#x27;s (minimum-evolution) starting tree, we show the starting topology and RAxML&#x27;s first two rounds of SPR moves.</p>
        <p><anchor xml:id="a56"/>Given the same starting tree, FastTree&#x27;s ML phase improved the likelihood by roughly the same amount as one round of RAxML&#x27;s SPR moves, and in about 40% of the time ( Figure 2 ). FastTree&#x27;s ML phase also performs about as well as one round of RAxML&#x27;s SPR moves in finding well-supported splits ( Figure S2 ). We obtained similar results for other large 16S alignments ( Table S1 ). Although this comparison shows that FastTree is initially faster than RAxML, the RAxML&#x27;s first round of SPR moves is only a fraction of its run time. Most of the difference in speed between FastTree and RAxML is because of RAxML&#x27;s more thorough search for a better topology and because of RAxML&#x27;s branch lengths.<anchor xml:id="a57"/></p>
        <p>Starting Trees: Minimum-Evolution versus Maximum Parsimony</p>
        <p><anchor xml:id="a58"/>RAxML&#x27;s parsimony phase was 4–17 times slower than FastTree&#x27;s minimum evolution phase, and generally slower than FastTree with ML NNIs. FastTree&#x27;s speed advantage grows with larger alignments (data not shown), which is expected because FastTree should scale as O( ) and RAxML&#x27;s parsimony phase uses randomized stepwise addition, which scales as O( ), as well as limited parsimony-based SPR moves. There are faster implementations of parsimony, such as RAxML 7.2.5 (which was released after we conducted the above experiments) or TNT [29] , but these still scale as O( ). For 15,011 16s RNAs, RAxML 7.2.5&#x27;s parsimony and FastTree&#x27;s minimum evolution phase take about the same time (data not shown).<anchor xml:id="a59"/></p>
        <p><anchor xml:id="a60"/>As measured by likelihood, FastTree&#x27;s minimum-evolution starting trees were much better than RAxML&#x27;s parsimony starting trees for the COG alignments, but much worse for large 16S rRNA alignments ( Figure 2 and Table S1 ). The differences in likelihood reflects the criterion, and not merely differences in the search strategy: for the COG alignments, the RAxML parsimony starting trees were more parsimonious than FastTree&#x27;s minimum-evolution trees (average parsimony scores of 281,237 and 283,125, respectively). Conversely, for the 16S alignment with 4,114 sequences, FastTree&#x27;s minimum-evolution tree was shorter than the parsimony tree (lengths of 43.0 and 44.6, respectively). For this alignment, the minimum-evolution tree&#x27;s log likelihood was 2,705 worse than parsimony&#x27;s, yet minimum evolution found more of the strongly-supported splits in the final RAxML tree: minimum evolution found 826 of the 851 splits with a global bootstrap 90%, while parsimony found 814 of them. Thus, we are not sure if the difference in likelihood is biologically meaningful.<anchor xml:id="a61"/></p>
        <p>Discussion</p>
        <p>We have shown that FastTree 2 computes accurate topologies in a reasonable amount of time for alignments with up to hundreds of thousands of sequences. FastTree is open source software and is available at http://microbesonline.org/fasttree . The C source code is extensively documented and contributions are welcome. FastTree trees for every microbial gene family, including families with tens of thousands of members such as ABC transporters, are available at MicrobesOnline ( http://microbesonline.org/ ), along with a “tree-browser” for examining these trees. These trees will be updated from FastTree 1 to FastTree 2 in the next release of MicrobesOnline.</p>
        <p><anchor xml:id="a62"/>Because DNA sequencing technology is improving rapidly, we expect to have alignments with millions of sequences soon. For these huge alignments, the most computationally demanding step will be the initial neighbor-joining phase. In FastTree 2.0, which is described here, neighbor joining takes O( ) time and O( ) space, while the other stages take at most O( ) time and O( ) space. For example, for 237,882 16S sequences, the neighbor-joining phase of FastTree 2.0 already takes 10.8 of the 21.8 hours. In FastTree 2.1, we have improved the scaling of time and memory from O( ) to O( ), without affecting accuracy in our simulations (data not shown). FastTree 2.1 also supports parallel execution of the key steps in the neighbor-joining phase. To improve scalability further, it might be possible to use a divide-and-conquer method to find clusters of closely related sequences in O( ) time, as in PartTree [30] . In our simulations, PartTree starting trees do not allow FastTree to reach the same accuracy as FastTree&#x27;s neighbor-joining starting tree does (data not shown), but a divide-and-conquer approach might still suffice to obtain a partially resolved initial tree.<anchor xml:id="a63"/></p>
        <p><anchor xml:id="a64"/>Such huge families also raise challenges for multiple sequence alignment. We have used profile alignment to avoid the challenges of multiple sequence alignment on large families. This works well for 16S RNAs because Infernal takes advantage of highly conserved secondary structure [1] , but we are not sure that it gives accurate results for diverse protein families. In contrast, traditional progressive multiple sequence alignment methods are not scalable because their output grows as O( ): there are O( ) independent insertions, and each insertion requires a new column in the alignment and hence O( ) storage. However, Fast Statistical Alignment uses an O( ) representation, both internally and as an output format [31] . Combining this representation with fast guide tree construction, it should be possible to build progressive multiple sequence alignments with millions of sequences.<anchor xml:id="a65"/></p>
        <p><anchor xml:id="a66"/>Finally, it is not clear how to assess the quality or reliability of such large trees. Different methods gave very different topologies and large differences in likelihood, and yet few of the differences were well-supported by the bootstrap. In fact, a topology with relatively poor likelihood could have relatively good agreement with the best tree. This could indicate that higher-likelihood trees contain many improvements, but that few of the individual improvements are statistically significant. This is expected if there is limited phylogenetic signal. Alternatively, the bootstrap could be too conservative. Local support values do suggest a greater number of significant differences ( Table 3 ), but local support values may be biased upwards because they do not consider all of the alternate topologies. Further study of these questions is needed.<anchor xml:id="a67"/></p>
        <p>Materials and Methods</p>
        <p>Minimum-Evolution “Linear” Subtree-Pruning-Regrafting</p>
        <p><anchor xml:id="a68"/>To reduce the number of SPR moves considered from O( ) to O( ), FastTree does just two rounds of “linear SPRs.” For each node, FastTree does an exhaustive search for moves up to length two. It extends each of these moves up to a length of 10 along the best choice at each point along the way.<anchor xml:id="a69"/></p>
        <p>As suggested by Richard Desper and Olivier Gascuel, FastTree treats each potential SPR move as a sequence of NNIs. The change in tree length for the SPR move is then just the sum of the changes due to the NNIs, much as .</p>
        <p>The change in tree length for an NNI from to , where A, B, C, and D may be subtrees rather than sequences, is estimated by . In FastME, which introduced balanced minimum evolution [12] , is a topologically weighted average of distances between the members of A and C. In contrast, in FastTree, is the log-corrected distance between the profiles for the subtrees A and C, and the profile of a subtree is derived from that of its children by . (Although FastTree 1 used weighted joins, as in BIONJ, FastTree 2 uses unweighted joins because they are faster, and the slight effect on accuracy is erased by the ML NNIs.) For nucleotide sequences, the log correction is the Jukes-Cantor correction , where is average dissimilarity of positions across profiles. For amino acid sequences, FastTree uses an empirical log correction similar to that of scoredist [32] , , where is based on an amino acid dissimilarity matrix derived from the BLOSUM45 similarity matrix.</p>
        <p><anchor xml:id="a70"/>In FastME, the above formula for the change in tree length is exactly correct because the changes in other branch lengths in the tree can be expressed as combinations of distances that cancel each other out [26] . In FastTree, however, the formula for the change in tree length is an approximation, because the log-corrected distances do not cancel in this way. Nevertheless, FastTree with NNIs and FastME with NNIs give very similar results [2] , and computing the exact change in total tree length does not improve the accuracy of FastTree&#x27;s SPRs (data not shown).<anchor xml:id="a71"/></p>
        <p>The Maximum-Likelihood Phase</p>
        <p><anchor xml:id="a72"/>The key data structures for the maximum likelihood phase are the tree topology, the branch lengths, and the posterior distributions for each internal node. (FastTree stores the tree with a trifurcation at the root, but the placement of the root is not biologically meaningful and does not affect the likelihood [5] .) The posterior distribution for an internal node describes the state of the corresponding ancestor, given the branch lengths and the sequences beneath it. For example, for nucleotide data, it stores the probability that a given site was an A, C, G, or T. FastTree stores posterior distributions for internal nodes (not for the root), and they require O( ) space each, where is the alignment&#x27;s length and is the number of characters in the alphabet.<anchor xml:id="a73"/></p>
        <p>The key primitive operations are (1) to compute the joint likelihood of two posterior distributions, given the length between them, and (2) to compute the posterior distribution of a parent node given the posterior distributions of its two children and their two branch lengths. These suffice to compute the likelihood of the tree [5] : for example, the likelihood of the tree (A,B,(C,D)) is where AB and CD are posterior distributions.</p>
        <p>At the beginning of the ML phase, we have a minimum-evolution topology and branch lengths. The steps for the maximum-likelihood phase are:</p>
        <p>Compute an approximate posterior distribution for each node, using the weighted averages of its children. Although the initial posterior distributions are approximate, all future changes to the topology or to the branch lengths will update the posterior distributions to their exact values.</p>
        <p>Optimize all branch lengths for one round, using a simplified model with no parameters (without CAT, and with Jukes-Cantor instead of GTR if GTR was requested).</p>
        <p>Perform one round of ML NNIs, using the simplified model.</p>
        <p><anchor xml:id="a74"/>If the GTR model is being used, optimize the nucleotide transition rate parameters, switch from Jukes Cantor to the GTR model and recompute posterior distributions, and optimize all branch lengths for one round with the new model.<anchor xml:id="a75"/></p>
        <p>If the CAT model is being used, estimate rate categories for each site, recompute posterior distributions, and optimize all branch lengths for one round with the new model.</p>
        <p>Perform additional rounds of ML NNIs, with subtree skipping and the star topology test.</p>
        <p>Perform a final round of ML NNIs without subtree skipping or the star topology test.</p>
        <p>Optimize all branch lengths for one round.</p>
        <p>Compute SH-like local support values.</p>
        <p>A round of ML NNIs</p>
        <p>During each round of NNIs, FastTree visits each node before it visits its parents (depth-first post-order traversal). At each node, it compares the likelihood of the trees , , and , where A and B are its children, C is its sibling, and D is the rest of the tree. During this process, FastTree uses the posterior distributions (or sequences) for A, B, and C and an “up-posterior” D, which represents the rest of the tree. More precisely, the up-posterior D is the posterior distribution of the node&#x27;s parent N, given all of the nodes that are not children of N (see Figure 3 ). These up-posteriors can be thought of as a way to temporarily reroot the tree at the current location. In particular, the likelihood of the tree can be computed from the posteriors A, B, C, and D.</p>
        <p>Traversing a tree with up-posteriors. FastTree optimizes the tree near node N by analyzing the posterior distributions for subtrees A, B, and C, as well as the “up-posterior” D.</p>
        <p><anchor xml:id="a76"/>The up-posterior for a node can be computed from its parent&#x27;s up-posterior and its sibling&#x27;s posterior distribution. FastTree only stores these up-posteriors for the path to the root from its current location in the tree, so they take O( ) space, where is the maximum depth of the tree. Because FastTree always visits children before their parents, the posterior and up-posterior distributions it uses are up to date, even as the topology changes.<anchor xml:id="a77"/></p>
        <p>When it visits each node, for each of the three alternate topologies around the node, FastTree optimizes the branch lengths to maximize the likelihood. For the topology , the five initial branch lengths are set from the current tree. For the other topologies, the branch lengths to A, B, C, and D are maintained, as is the internal branch length. Given a quartet (say ), FastTree first optimizes the branch length between AB and CD, and then the branch length leading to A, B, C, and D. FastTree optimizes each branch length to an accuracy of 0.0001 or 0.1%, whichever is greater. These five optimizations define a round of optimization for the quartet. Within a round of optimization, FastTree reuses some of the internal posterior distributions: it needs posterior distributions for AB and CD so that it can optimize the branch length between AB and CD, and then it needs posterior distributions for BCD, ACD, the new posterior distribution for AB given the new branch lengths to A and B, and finally ABD and ABC.</p>
        <p>By default, FastTree optimizes the branch lengths within all three quartet topologies for one round. Any topology that is significantly (5 log-likelihood units) worse than the current topology is abandoned after the first round. If more than one topology remains, then the remaining topologies are optimized for another round. After the rounds of optimization are complete, FastTree updates the topology if necessary. In either case, it updates the branch lengths to the re-optimized values and recomputes the posterior distribution for the node.</p>
        <p><anchor xml:id="a78"/>A difference of 5 in log likelihood may seem like a small difference, so that the heuristic might miss a good change to the topology. However, optimization of branch lengths after the first round usually leads to small improvements in the log likelihood. For example, if we analyze 40 randomly selected 16S rRNAs with FastTree and the GTR+CAT model, and we increase the rounds of branch length optimization to 4 (-mlacc 4), then the average improvement for any NNI is just 1.1 log-likelihood units in the second round of branch length optimization and just 0.04 in rounds 3 and 4 combined. To put these numbers in perspective, differences in log-likelihood of less than 2 are not statistically significant ( , likelihood ratio test), and NNIs with much larger changes in likelihood are common. For the simulated alignments with 5,000 protein sequences, always optimizing for two rounds improved accuracy by a negligible amount (0.03%) and increased the running time by 23%.<anchor xml:id="a79"/></p>
        <p>Optimizing model parameters</p>
        <p><anchor xml:id="a80"/>After the first round of NNIs, FastTree optimizes any parameters in the model. First, if the GTR model is being used, there are six relative rates to optimize, one for each nucleotide conversion. (The stationary distribution for the transition matrix is set to the empirical frequency of the four nucleotides.) FastTree optimizes the likelihood of the tree (with fixed branch lengths and topology) by numerically optimizing each of the six parameters in the model in turn. With each change in the model, it recomputes all posterior distributions. It then optimizes the six parameters a second time. This does not fully optimize the model parameters, but it gives acceptable results ( Table 2 ).<anchor xml:id="a81"/></p>
        <p><anchor xml:id="a82"/>Second, unless the -nocat option is set, FastTree estimates the rate of evolution at each site. Given the desired number of categories of relative rates , FastTree selects values that are logarithmically spaced between and . By default, , and the relative rates range from 0.05 to 20. For each of these relative rates, FastTree recomputes all posterior distributions and recalculates the log likelihood of the tree at each site. FastTree then uses a Bayesian approach to select which rate to use at each site: FastTree maximizes , where is a gamma-distributed prior. To avoid overfitting, we made the prior more peaked than real rate variation in alignments: the prior has a shape parameter of 3, a scale parameter of 1/3, and a mean of 1. After choosing the rate categories, FastTree scales the rates so that the average rate across all sites is 1.0.<anchor xml:id="a83"/></p>
        <p><anchor xml:id="a84"/>We confirmed that the Bayesian approach to setting the rate categories prevents overfitting on small alignments. For example, on simulated protein alignments with just 10 sequences (from [2] ), adding the CAT model improves FastTree&#x27;s accuracy from 76.2% to 78.0%. (For comparison, PhyML without or SPRs was 74.4% accurate [2] .) Conversely, on nucleotide simulations with 24 sequences that (unrealistically) do not contain any rate variation across sites (the fast-evolving alignments of [12] ), the CAT model only reduces accuracy slightly, from 93.6% to 93.4%. (For comparison, PhyML without or SPRs was 93.6% accurate [2] .)<anchor xml:id="a85"/></p>
        <p>Completing the ML NNIs</p>
        <p>In later rounds of NNIs, FastTree uses the more accurate model and it uses two additional heuristics “subtree skipping” and the “star topology test,” which are described below. As discussed in the Results , these heuristics have little effect on accuracy.</p>
        <p><anchor xml:id="a86"/>If no NNI leads to an improvement of more than 0.1 in the likelihood of any quartet, then FastTree considers the NNIs to have converged. FastTree repeats rounds of NNIs until convergence, up to a limit of rounds, which takes O( ) time. This is the slowest part of the ML phase. The limit on rounds ensures a predictable running time, but FastTree usually converges before reaching the limit, even for huge alignments such as 237,882 16S rRNA sequences. We chose a limit so that a misplaced subtree could move all the way across a (roughly balanced) tree, and the factor of 2 is an arbitrary safety factor.<anchor xml:id="a87"/></p>
        <p>After convergence, FastTree does one final round of ML NNIs with the subtree skipping and the star topology test turned off, as in the first round. We view this as a safety valve for the heuristics. Finally, FastTree does a final round of optimizing the branch lengths and computes the SH-like local supports.</p>
        <p>Subtree skipping</p>
        <p><anchor xml:id="a88"/>The intuition behind subtree skipping is that if a subtree has not changed during recent rounds of NNIs, then further attempts to optimize the subtree will be fruitless. Specifically, during ML NNIs, FastTree does not traverse into subtrees that have not seen any significant improvement in likelihood (0.1 log likelihood units) in either of the previous two rounds. Before skipping a subtree, FastTree also checks that none of the nodes adjacent to the parent node were affected by a significantly improving NNI in the previous round. The “subtree skipping” heuristic typically gives a 3-fold speedup, making it the most important of FastTree&#x27;s ML heuristics. Subtree skipping might be useful for SPR moves as well.<anchor xml:id="a89"/></p>
        <p>Star topology test</p>
        <p><anchor xml:id="a90"/>If the current topology (A,B,(C,D)) is much better than the star topology (A,B,C,D) then an NNI is unlikely to give an improvement. Specifically, if the current topology is significantly (5 log-likelihood units) more likely than the star topology (after optimizing the internal branch length), then FastTree does not optimize the other branch lengths or consider the two alternate topologies. However, FastTree only uses this heuristic if the node that was unchanged in the last round of NNIs. To approximate the likelihood of the star topology, FastTree uses the likelihood with the minimal internal branch length of 0.0001.<anchor xml:id="a91"/></p>
        <p>Branch lengths</p>
        <p>To optimize all branch lengths in the tree at the beginning and end of the ML phase and after optimizing the model parameters, FastTree again uses post-order traversal. At each node, it considers a three-node star topology on the node&#x27;s children and parent, using the posterior distributions for the two children and the up-posterior for itself. (At the root, it uses all three children instead.) It numerically optimizes these three branch lengths in series for two rounds.</p>
        <p>SH-like local supports</p>
        <p><anchor xml:id="a92"/>For each node, the local support is derived from the per-site likelihoods for the current topology and the two alternate (NNI) topologies. For the current topology, FastTree uses the current (already optimized) branch lengths. For the alternate topologies, FastTree optimizes branch lengths for the quartets, as during the NNIs, for up to two rounds. Given the per-site likelihoods for the three topologies, FastTree uses the SH test with 1,000 bootstrap replicates to estimate the confidence in the given split [19] . If there are poorly resolved nodes nearby, then the support values should be interpreted cautiously, because a high-likelihood alternate topology might not have been considered.<anchor xml:id="a93"/></p>
        <p>Low-level optimization of likelihood computations</p>
        <p><anchor xml:id="a94"/>Whereas RAxML stores likelihood vectors (that is, the joint likelihood of a subtree and of a given character at an internal node), FastTree stores posterior distributions, which are normalized so that each site&#x27;s values sum to 1. This may improve numerical stability for huge alignments. To reduce memory usage, FastTree stores these vectors in single-precision floating point. Log-likelihoods for the tree or for specific sites are stored with double precision.<anchor xml:id="a95"/></p>
        <p><anchor xml:id="a96"/>Similar to RAxML, FastTree stores the posterior distributions in a rotated form, multiplied by the eigen-matrix of the transition matrix. (For the Jukes Cantor model, this is not necessary.) This reduces the time for likelihood computations from O( ) per site to O( ), while leaving the cost of computing the posterior distribution at O( ) per site (but with a higher constant factor).<anchor xml:id="a97"/></p>
        <p>While computing the joint likelihood for a pair of posterior distributions, FastTree avoids performing a logarithm at every site by operating on likelihoods instead of log likelihoods. To prevent numerical underflow, FastTree rescales the likelihood by a constant when necessary. It updates a separate (log-likelihood-based) counter whenever it does this. Similarly, when computing the tree&#x27;s likelihood at each site, for example while optimizing the rate categories, FastTree rescales each site&#x27;s likelihood if necessary after visiting each node.</p>
        <p><anchor xml:id="a98"/>FastTree uses SSE2 instructions, a special feature of recent CPUs from Intel and AMD, to operate on 4 single-precision floating point values with one instruction. This speeds up computations for protein alignments by up to 50% (data not shown).<anchor xml:id="a99"/></p>
        <p>Numerical optimization</p>
        <p><anchor xml:id="a100"/>To find the parameters that optimize the likelihood, FastTree uses Brent&#x27;s method, a numerical method that iteratively halves the interval it is searching within ( http://en.wikipedia.org/wiki/Brents_method ). Because Brent&#x27;s method only operates in one dimension, FastTree optimizes different parameters in turn, and then repeats the rounds of optimization (for example, it optimizes the first branch length, then the second, then the third, then repeats).<anchor xml:id="a101"/></p>
        <p>FastTree estimates the initial interval to search within from the initial guess (e.g., the previous length of the branch) and alternate values and . If is below the minimum value, it uses the minimum, , and instead. If the initial guess does not bracket the minimum (that is, the middle value is not better than the two endpoints), then FastTree expands the search interval until it does. However, the small interval is usually adequate. FastTree also terminates optimization if the parameter changes by a small amount or by a small proportion. Together, these modifications eliminate about a third of the evaluations of the likelihood.</p>
        <p>Biological and Simulated Alignments</p>
        <p>The simulated protein alignments and the genuine COG alignments were described previously [2] . The 16S alignment with 237,882 distinct sequences was taken from GreenGenes [33] ( http://greengenes.lbl.gov ). The 16S alignment with 15,011 distinct “families” is a non-redundant subset of these sequences ( identical). 16S alignments with 500 sequences are also non-redundant random subsets ( identical). Other large 16S alignments are from [11] .</p>
        <p>For the 16S-like simulations with 78,132 distinct sequences, we used a maximum-likelihood tree inferred from a non-redundant aligned subset of the full set of 16S sequences ( % identity) by an earlier version of FastTree (1.9) with the Jukes-Cantor model (no CAT). To ensure that the simulated trees were resolvable, which facilitates comparison of methods (but inflates the accuracy of all methods), branch lengths of less than 0.001 were replaced with values of 0.001, which corresponds to roughly one substitution across the internal branch, as the 16S alignment has 1,287 positions. Evolutionary rates for each site were randomly selected from 16 rate categories according to a gamma distribution with a coefficient of variation of 0.7. Given the tree and the rates, sequences were simulated with Rose [34] under the HKY model and no transition bias. To allow Rose to handle branch lengths of less than 1%, we set “MeanSubstitution = 0.00134” and multiplied the branch lengths by 1,000.</p>
        <p>Software Used</p>
        <p>We used FastTree 2.0.0. We used the July 6 2009 release of the PhyML 3.0 source code and modified BL_MIN from 1.e-10 to 1.e-8 to overcome numerical problems with some of the simulated protein alignments, as suggested by Stepháne Guindon. FastME 2.06 was provided by Olivier Gascuel. RAxML 7.0.4 and 7.2.1 were obtained from the author&#x27;s web sites. RAxML 7.2.1 was compiled with SSE instructions. NINJA was provided by Travis Wheeler and is available at http://nimbletwist.com/software/ninja/ . BIONJ was obtained from http://www.lirmm.fr/~w3ifa/MAAS/BIONJ/BIONJ.c . BIONJ was run with maximum-likelihood distances obtained with phylip&#x27;s protdist ( http://evolution.genetics.washington.edu/phylip.htm ) and the JTT model (no gamma). Log-corrected distances were obtained with FastTree and the -makematrix option.</p>
        <p>Supporting Information</p>
        <p>Branch lengths for an alignment of 200 16S rRNA sequences vary systematically with the Γ approximation used. The CAT lengths are from FastTree, and all Γ branch lengths are from PhyML with FastTree&#x27;s topology and with optimized shape parameters. The top panel shows that branch lengths from the various models have a roughly linear relationship with each other, but they have different scales. The bottom panel shows how the total length of the tree varies with the number of categories (note log χ axis). The “Use Median” lengths are from running PhyML with –use_median, which uses the median of each region, rather than the mean, to approximate the gamma distribution. The “Corrected” lengths are the “Use Median” lengths multiplied by the average posterior rates, which can be obtained by running PhyML with –print_site_lnl (thanks to Stepháne Guindon for pointing this out). The corrected lengths converge to the correct value much more quickly than the other rates. The “CAT/Gamma” tree length, from FastTree 2.1 with -gamma, is also reasonably accurate. With this option, FastTree 2.1 optimizes the Γ 20 likelihood with a shape parameter and a rescaling parameter, using the site likelihoods from FastTree&#x27;s 20 relative rates and branch lengths that were optimized under the CAT model.</p>
        <p>(0.13 MB PS)</p>
        <p>Click here for additional data file.</p>
        <p>Total Splits or Strongly Supported Splits that Disagree with RAxML&#x27;s Final Tree, versus Time. The 16S tree has 4,111 splits and the COG trees have 2,497 splits each. All values for the COG trees are averages over the 7 COGs.</p>
        <p>(0.02 MB PS)</p>
        <p>Click here for additional data file.</p>
        <p>Times and likelihoods for large 16S rRNA alignments</p>
        <p>(0.02 MB PDF)</p>
        <p>Click here for additional data file.<anchor xml:id="a102"/></p>
    </body>
  </text>
</TEI>
