## Figures

## Abstract

The standard approach to phylogeny estimation uses two phases, in which the first phase produces an alignment on a set of homologous sequences, and the second phase estimates a tree on the multiple sequence alignment. POY, a method which seeks a tree/alignment pair minimizing the total treelength, is the most widely used alternative to this two-phase approach. The topological accuracy of trees computed under treelength optimization is, however, controversial. In particular, one study showed that treelength optimization using simple gap penalties produced poor trees and alignments, and suggested the possibility that if POY were used with an affine gap penalty, it might be able to be competitive with the best two-phase methods. In this paper we report on a study addressing this possibility. We present a new heuristic for treelength, called BeeTLe (Better Treelength), that is guaranteed to produce trees at least as short as POY. We then use this heuristic to analyze a large number of simulated and biological datasets, and compare the resultant trees and alignments to those produced using POY and also maximum likelihood (ML) and maximum parsimony (MP) trees computed on a number of alignments. In general, we find that trees produced by BeeTLe are shorter and more topologically accurate than POY trees, but that neither POY nor BeeTLe produces trees as topologically accurate as ML trees produced on standard alignments. These findings, taken as a whole, suggest that treelength optimization is *not* as good an approach to phylogenetic tree estimation as maximum likelihood based upon good alignment methods.

**Citation: **Liu K, Warnow T (2012) Treelength Optimization for Phylogeny Estimation. PLoS ONE7(3):
e33104.
https://doi.org/10.1371/journal.pone.0033104

**Editor: **David Liberles, University of Wyoming, United States of America

**Received: **December 6, 2011; **Accepted: **February 3, 2012; **Published: ** March 19, 2012

**Copyright: ** © 2012 Liu, Warnow. This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

**Funding: **Funding was provided by National Science Foundation DEB 0733029, www.nsf.gov. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

**Competing interests: ** The authors have declared that no competing interests exist.

## Introduction

Most phylogenies are estimated in two steps: first, a multiple sequence alignment is produced, and then a tree is estimated on the multiple alignment. Such “two-phase” methods are reasonably fast and accurate for small enough datasets, but can have unacceptably high error for large datasets that evolve with many indels and substitutions [1], [2].

Methods that co-estimate trees and alignments have also been developed, including [3]–[19]. Some of these methods are likelihood-based methods that are based upon stochastic models of evolution that include indels as well as substitutions [3]–[12]. These likelihood-based methods are computationally very intensive and cannot be used on datasets with more than, perhaps, 200 sequences (BAliPhy [3] is the most computationally scalable of these methods, but it also has not been used on datasets bigger than this). Other co-estimation methods include [13]–[19]; these are generally much faster (and more scalable) than the statistically-based methods. Of these methods, POY [18], [19] is the most commonly used.

POY is a method that tries to optimize a variant of maximum parsimony [20] in which indels contribute to the cost of the tree. Thus, the input to POY is a set of unaligned sequences and an edit distance function, with the edit distance function defined by a cost for every substitution and a gap penalty (defined by a gap open and gap extend cost). The objective criterion in POY is to minimize the total length, as defined by the sum of the edit distances on the edges of the tree. This is the NP-hard treelength problem, originally posed by Sankoff and Cedergren [21]. When indels are forbidden (by setting the gap open cost to infinity), treelength optimization is identical to maximum parsimony [20]; hence, treelength is a generalization of the maximum parsimony criterion. The output of POY is a tree with leaves bijectively labelled by the input sequences and ancestral sequences at every node in the tree, and thus also an alignment on the sequences defined by the tree, ancestral sequences, and edit distance function (i.e., the edit distance function implies an optimal pairwise alignment for every edge between the sequences labelling the endpoints of the edge, and the transitive closure of that set of pairwise alignments is the output multiple sequence alignment).

The use of POY (and of its underlying optimization criterion, treelength) is a matter of controversy in phylogenetics [22]–[28]. For example, in 2007, Ogden and Rosenberg [24] showed that various standard ways of running POY produced trees and alignments that were much less accurate than those computed by maximum parsimony analyses of ClustalW alignments (denoted by MP(ClustalW)). A later study by Lehtonen [29] showed that using more intensive heuristics to optimize simple gap penalty treatments with the newer version of POY produced trees with comparable topological accuracy to MP(ClustalW) [30], even though the alignments were less accurate than ClustalW alignments.

Liu et al. [31] revisited the question by focusing on the specific gap penalty used in POY. They selected a treelength criterion they termed “Affine”, where each gap of nucleotides had cost , each transition had cost , and each transversion had cost . They observed that POY did not optimize the Affine treelength very well, and developed a new method, called POY*, that uses Probtree [32] as the starting tree and then runs POY under the Affine criterion. Liu et al. [31] showed that trees produced using POY* were at least as accurate as trees estimated using maximum likelihood on alignments produced using many popular alignment methods, and concluded that optimizing trees using treelength optimization might produce highly accurate trees under the Affine treelength criterion provided better heuristics for treelength were used.

However, the inference made by Liu et al. [31] that Affine treelength might be a good optimization criterion was based upon the observation that POY* produced highly accurate trees. Since their study showed that POY was not very effective at finding trees that optimized the Affine treelength criterion, it is possible that the topologically accurate trees produced by POY* resulted from the fact that the starting tree was highly accurate, and that the search heuristic used by POY did not move far away from its starting tree.

In this paper we evaluate whether the conclusion by Liu et al. that optimizing Affine treelength is competitive in topological accuracy with many two-phase methods is sustained when a more careful search for short trees is used. To enable this study, we developed a very simple heuristic, BeeTLe (Better TreeLength), that has the following structure: BeeTLe runs a collection of methods, including POY, to produce a set of trees on a given input set of unaligned sequences, uses POY to compute the treelength of each tree, and then returns the tree that had the shortest treelength. Thus, BeeTLe is guaranteed to find trees at least as short as those found using POY, and thus enables us to evaluate the impact of using treelength to find trees.

We report on a study comparing BeeTLe used with three treelength criteria (Affine and two treelength criteria that are based upon simple gap penalty treatments) to POY, two-phase methods, and SATé, a method for co-estimating alignments and trees. We explore performance on simulated and biological datasets, each having at least 100 sequences. We show that BeeTLe produces shorter trees than POY, thus confirming the value in using BeeTLe to optimize treelength instead of POY. We also show that optimizing treelength for all three ways we explored were competitive with maximum parsimony analyses but not with maximum likelihood analyses on almost all alignment methods. Furthermore, alignments produced using treelength optimization are not as accurate as standard alignments.

Thus, for the datasets we explored, treelength optimization was not competitive with the best two-phase methods (maximum likelihood on the leading alignments) with respect to the accuracy of alignments and trees.

### Basics

The treelength problem was originally proposed by Sankoff and Cedergren [21], and can be generalized as follows:

#### Definition 1 The Generalized Sankoff Problem (GSP).

*The input is a set ** of unaligned sequences and a function ** for the edit cost between two sequences ** and **. The output is a tree ** with leaves labeled by ** and internal nodes labeled with additional sequences such that the treelength ** is minimized, where ** is the sequence labeling vertex *.

Thus, GSP is defined by an edit distance function, and this function depends upon how gaps are penalized. GSP is NP-hard, since the case in which the edit distance function forbids gaps (by setting the cost for a gap to be infinite) is the NP-hard Maximum Parsimony (MP) problem [20]. However, the GSP problem is even NP-hard when the tree is known (so that the objective is to find the best sequences at the internal nodes of so as to produce the shortest total treelength [33], under a simple gap penalty). Thus the treelength problem is *harder* than the maximum parsimony problem, since even the fixed-tree problem is NP-hard.

Although several algorithms have been developed for the GSP problem (both for the fixed tree and general case), POY is the standard method used to produce trees from unaligned sequences via treelength optimization. POY takes as input a set of unaligned sequences and an edit distance function for the cost of a gap of length , given by . When the gap cost is said to be “simple”, and when the gap cost is said to be “affine”.

We use three different treelength criteria in this paper, Simple-1, Simple-2, and Affine, as follows. Simple-1 sets the cost of every indel and substitution to . Simple-2 is a treelength criterion studied by Ogden and Rosenberg [24], which they found to produce more accurate trees than any other treelength criterion they considered, and which assigns cost to indels and transversions and cost to transitions. Finally, the Affine treelength criterion studied in Liu et al. [31], which produced more accurate trees than Simple-1 or Simple-2, sets the cost of a gap of length to .

## Results

In our first experiment, we investigated how well POY is able to solve the treelength problems. Figures 1 and 2 compare POY and BeeTLe with respect to treelength and tree error, respectively, for each of the three treelength criteria we consider on simulated data. Comparisons of treelength scores obtained on the biological datasets are provided in Figure 3. Note that for each treelength criterion, BeeTLe generally produces shorter trees. Furthermore, a comparison of topological error rates shows that trees produced by BeeTLe and POY tend to be quite different.

Treelength scores for BeeTLe under a particular treelength criterion are normalized by POY's score under the same criterion; thus, scores below indicate that BeeTLe finds a shorter tree than POY. Averages and standard error bars are shown; for each reported value.

Averages and standard error bars are shown; for each reported value.

Treelength scores for BeeTLe under a particular treelength criterion are normalized by POY's score under the same criterion; thus, scores below indicate that BeeTLe finds a shorter tree than POY. for each reported value.

We then examined the question of whether optimizing treelength can return trees that are competitive with the better two-phase methods with respect to topological accuracy. Our first experiment compared the treelengths achievable for the model (true) and SATé trees (computed using its first version, SATé-I), by letting POY optimize ancestral sequences on these tree topologies. As shown in Table S4, for all three treelength criteria, the model tree had treelengths that were much larger than the shortest treelengths found by POY, and the treelengths for the SATé-I trees were also larger than those found by POY. These observations suggest that optimizing treelength is unlikely to yield highly accurate trees, since the model tree had such poor treelengths compared to those found by POY. However, because BeeTLe is more effective than POY at optimizing treelength, we use BeeTLe to estimate trees and alignments under the three treelength criteria to provide a more critical evaluation of this hypothesis. We compared trees computed using BeeTLe (under each of the three treelength criteria, Simple-1, Simple-2, and Affine) to trees computed using SATé and two-phase methods (maximum likelihood and maximum parsimony on various alignments), in order to determine the impact on topological accuracy of optimizing treelength. We estimated maximum likelihood trees using RAxML [34] and maximum parsimony trees using PAUP* [35], and we used MAFFT [36], Opal [37], Prank+GT (Prank [38] with a particular guide tree, as described in [1]), Probtree [32], and ClustalW [30] to produce alignments. We also used SATé-I [1] and SATé-II [14] to co-estimate alignments and trees. Figure 4 and Table 1 show results on simulated datasets with 100 taxa.

We report missing branch rates for BeeTLe-Affine in comparison to ML methods, SATé, and SATé-II (top chart) and in comparison to MP methods (middle chart). On model conditions marked with ‘*’, ML(MAFFT)'s missing branch rate significantly improved upon BeeTLe-Affine's (using one-tailed pairwise t-tests with Benjamini-Hochberg [57] correction for multiple tests, for each test, and ). On model conditions marked with ‘$’, BeeTLe-Affine's missing branch rate significantly improved upon MP(MAFFT)'s (using similar statistical tests). Averages and standard error bars are shown; for each reported value.

These results show that trees computed using BeeTLe, under any of the three treelength criteria, were generally less topologically accurate than the best alternative methods (i.e., SATé-I, SATé-II, ML(Probtree), and ML(MAFFT)). A comparison of BeeTLe to SATé-II, for example, shows that on model conditions 100L5 and 100M5, BeeTLe trees were almost as accurate as SATé-II trees (1%–3% difference in missing branch rate), and had indistinguishable performance on 100S5. However, these are the slowest evolving models, and not all biological datasets evolve quite this slowly (compare, for example, the empirical statistics of the biological datasets we studied to those of these simulated model conditions). Under the harder model conditions, differences between methods grew, and the methods separated into two distinct classes: the most accurate methods (SATé-I, SATé-II, ML(MAFFT) and ML(Opal)) and the less accurate methods (ML(ClustalW, ML(Probtree), ML(Prank+GT), and all three BeeTLe methods). In particular, ML(MAFFT)'s missing branch rate was significantly better than BeeTLe-Affine's on almost all model conditions (Benjamini-Hochberg-corrected pairwise t-tests with , as discussed in Table S3). Furthermore, the difference in tree error between the less and more accurate methods generally increased with the difficulty of the model condition. Thus, trees computed by BeeTLe were clearly much less topologically accurate than those produced by any of the more accurate methods. Within the set of less accurate methods, BeeTLe-Affine did particularly well, and often produced more accurate trees than any of the other less accurate methods. Thus, in general, trees estimated using BeeTLe were far less accurate than ML trees estimated on alignments produced by SATé-I, SATé-II, MAFFT and Opal. A comparison between BeeTLe-Affine, BeeTLe-Simple-1, and BeeTLe-Simple-2 shows that BeeTLe-Affine generally produces more accurate trees than BeeTLe-Simple-1 or BeeTLe-Simple-2.

When we consider trees estimated using Maximum Parsimony (MP), the comparison changed substantially. We see that BeeTLe-Affine was not only competitive with maximum parsimony trees, but that BeeTLe-Affine produced more accurate trees than MP on most alignments for almost all model conditions (the only exception being MP(MAFFT), as shown in Table S3). BeeTLe-Simple-2 was also reasonably accurate, producing more accurate trees than maximum parsimony on ClustalW, ProbTree, Prank+GT, and Opal, for many model conditions.

Although our main concern is topological accuracy, we note that alignments estimated by either POY or BeeTLe, irrespective of treelength optimization criterion, were less accurate than alignments produced by the standard alignments methods, and much less accurate than SATé alignments (Fig. 5).

Averages and standard error bars are shown; for each reported value.

## Discussion

The most important observation in this study is that for all three treelength criteria we explored, trees and alignments found by methods for optimizing treelength were generally *not* among the most accurate. Thus, maximum likelihood trees produced on almost all alignment methods we studied were more accurate than BeeTLe and POY trees. Interestingly, trees estimated by BeeTLe-Affine and Beetle-Simple-2 *were* often more accurate than maximum parsimony trees, even on very good alignments, showing the potential for treelength optimization to improve phylogenetic estimation. However, treelength optimization did not produce trees of comparable accuracy to trees produced using maximum likelihood, except for very poor alignments.

Our study also showed that BeeTLe is often able to find shorter trees than POY, and ones that are topologically quite different from those found by POY. Thus, inferences about the utility of treelength for phylogeny and alignment estimation can be made more accurately when using BeeTLe than when using POY.

Additional observations can be made that may impact further studies. First, the choice of treelength criterion clearly impacts tree error. In particular, BeeTLe-Affine was consistently at least as accurate as BeeTLe-Simple1 or BeeTLe-Simple2 on the simulated data. A comparison of the gap length distributions between the simulated and biological data (see Figure S1, Figure S2, Table S1, and Table S2) shows that these two types of datasets have very different distributions. The simulated datasets have medians and means that are very close, and have only moderately large maximum gap lengths; by contrast, the biological datasets all have medians equal to 1 (so that more than half of the gaps are single nucleotides) and some very long gaps. In fact, the biological datasets have maximum gap length ranging from 1400 to 3889. Given this combination of features, it is clear that the biological datasets we studied do not have gap lengths drawn from the same distribution as are created by this simulation protocol. More generally, it seems likely that the gap length distribution for these biological datasets may be drawn from a mixture model rather than some simple single parameter model, such as is used in this simulation. Thus, appropriate choices of the gap length penalty may require particular care. More generally, to the extent that optimizing treelength is to be helpful in estimating trees, the choice of treelength criterion will need to be made carefully.

The study we provide has several limitations. First, we explored only three treelength criteria. While these three criteria are “good” choices for treelength (in particular because Simple-2 gave the best results in Ogden and Rosenberg's study [24] and Affine gave even better results in Liu et al.'s subsequent study [31]), they are by no means representative of the full range of treelength criteria. Therefore it remains possible that a better treelength criterion can be developed. However, as noted above, it may be that the use of affine treelengths may be inherently too simplistic (fitting single parameter models rather than mixture models) to produce good results. Also, our method, BeeTLe, is not designed to thoroughly search treespace for short trees. Instead, it is a very simple technique that scores a set of trees (including POY, RAxML(MAFFT), RAxML(ClustalW) and some of the neighbors of these trees) for treelength, and returns the shortest tree. Therefore, it is likely that even shorter trees would be obtained by a more careful search through treespace. As a result it is possible that the shorter and topologically more accurate trees would be obtained by a more careful analysis.

It is worth noting that we only explored two phylogeny estimation methods (i.e., RAxML for ML analysis and PAUP* for MP) and a handful of alignment methods (i.e., MAFFT, SATé, Probtree, Prank+GT, Opal, and ClustalW). It is possible that better alignments could be obtained using other alignment methods and that better trees might be obtained on these alignments using other phylogeny estimation methods. In particular, likelihood-based methods such as MrBayes [39], Phyml [40], GARLI [41], FastTree [42], [43], and Metapiga2 [44] might produce more accurate trees. We also did not explore the performance of BAli-Phy or other co-estimation methods that treat indels informatively, and these also might produce more accurate trees. Thus, it is possible that there are currently available methods that might yield more even more accurate trees than those tested in this study.

We close with some comments about the general problem of estimating trees and alignments from unaligned sequences, and whether co-estimation of trees and alignments is beneficial or detrimental. In other words, although it is important to understand whether POY (or any method based upon treelength optimization) is reliable for estimating highly accurate trees or alignments, the more important question is *which approaches are likely to produce the most accurate trees and alignments?*

The study we presented suggests strongly that treelength optimization is unlikely to produce trees or alignments that are as accurate as maximum likelihood on the leading alignment methods; it also showed that SATé trees and alignments were even more accurate than maximum likelihood trees on leading alignments. Thus, parsimony-style co-estimation (as in POY and BeeTLe) produced trees and alignments that are inferior to the co-estimation approach in SATé. It makes sense, therefore, to discuss SATé 's co-estimation technique.

The technique used by SATé to co-estimate trees and alignments uses iteration combined with divide-and-conquer; each iteration involves the estimation of a new alignment (produced using divide-and-conquer) and then uses RAxML to produce an ML tree on that new alignment. However, the ML model used in estimating the tree is GTR+Gamma, and so indels are treated in the standard way, which is as missing data – rather than treating them as events in a stochastic model that includes indels as well as substitutions. This approach clearly has empirical benefits (as shown in this study and in [1], [14]) over the two-phase methods we studied; however, this is not a statistically rigorous indel treatment method. We hypothesize that methods that treat indels in a statistically rigorous manner are likely to produce more accurate alignments and trees than SATé.

Finally, this entire study (and the previous studies we discussed [24], [29], [31]) are based upon nucleotide sequences, and so even though treelength-based methods, such as POY, can be used on amino-acid sequences, these studies do not directly yield any insight into the problem of estimating trees and alignments from such sequences. However, the same questions can be asked about amino-acid phylogeny and alignment estimation: is it better to estimate the alignment first and then the tree, or to co-estimate them, and which methods give the most accurate alignments and trees? As with nucleotide datasets, most amino-acid phylogenies have been estimated using two-phase methods (i.e., first an alignment is estimated and then a tree based upon that alignment), with the best alignment and phylogeny estimation methods taking the particular properties of amino-acid sequences into account. Therefore, phylogeny estimation methods that are based upon stochastic models of amino-acid evolution are beneficial (see the discussion in [45]), and alignment estimation based upon estimated or known structural features can also provide improvements. Co-estimation methods like BAli-Phy with statistical performance guarantees can also be used on amino-acid sequences, but are very computationally intensive. SATé can also be used on amino-acid sequences, but although it is very fast (and can analyze large datasets), it has no statistical performance guarantees. To date, no performance study has been published that compare any of these co-estimation methods against the leading two-phase methods on amino-acid sequences. Finally, SATCHMO-JS [17] uses HMMs (Hidden Markov Models) to simultaneously construct a tree and alignment from unaligned sequences, and has been shown to be able to produce more accurate alignments than MAFFT [17]. However, SATCHMO-JS can only be used with amino-acid sequences.

Thus, some co-estimation methods have been able to provide improvements in alignment and phylogeny estimation accuracy relative to two-phase methods for both nucleotide and amino-acid analyses, but not all co-estimation methods give the same accuracy. This study has shown that co-estimation methods that are based upon treelength are not in general as accurate as the leading two-phase methods, which use likelihood-based phylogeny estimation to analyze high quality alignments. This and other studies have also shown that two other co-estimation methods, SATé and SATCHMO, can produce highly accurate results, improving upon leading methods, even on large datasets. However, statistical guarantees for co-estimation methods are only provable for those methods that are based upon stochastic models of evolution that include indels and substitutions. Unfortunately, all such methods are computationally intensive, and have not been able to run on large datasets.

It seems likely that statistically rigorous methods for co-estimating alignments and trees may be key to obtaining highly accurate estimations of evolutionary history (of which alignments and trees are both partial hypotheses); however, all current methods of this type are so computationally intensive that they cannot be used in studies that address hundreds of sequences. Future work is needed in order to create reasonably efficient methods with strong statistical guarantees.

## Materials and Methods

We used 300 100-taxon simulated datasets and four biological datasets with up to 278 taxa. On each dataset, in addition to using POY and BeeTLe (for each treelength criterion), we computed phylogenetic trees using SATé (which co-estimates alignments and trees) and various two-phase methods. We computed the tree error for each estimated tree and alignment error for each estimated alignment.

### Simulated datasets

We used 300 simulated 100-taxon datasets provided by Liu et al. [14], which evolved under a range of gap length distributions (S for short, M for medium, and L for long), relative probabilities of indels to substitutions, and overall amount of evolution, using ROSE [46]. We show the empirical statistics for these datasets in Table S1. In all, there are a total of 15 model conditions, and each model condition has 20 datasets. For each simulated dataset of unaligned sequences we know the model tree and the true alignment. To define the reference tree for each simulated dataset, we follow the methodology of Liu et al. [1], and modify the model tree for the dataset by contracting zero-event branches (that is, branches on which no substitution or indel occurs during the evolutionary process that generates the dataset). This modification is done since reconstruction of zero-event edges is a matter of chance.

### Biological datasets

We used datasets from CRW, the Comparative RNA Website [47]. CRW datasets have reference alignments based upon secondary structure. Based upon these reference alignments, we selected four datasets that present some challenge to alignment estimation due to the large number of indels. Since reference trees were not provided with these datasets, we only used these datasets to investigate the effectiveness of treelength optimization heuristics by comparing treelength scores obtained by different methods. The empirical statistics for these datasets are provided in Table S2.

### Tree and alignment estimation methods

We ran SATé version 7/4/2009 alpha (available from www.cs.utexas.edu/users/phylo/software/sate/) to produce trees and alignments. For the two-phase methods, we computed alignments using several techniques, including MAFFT (using its L-INS-i algorithm) version 6.240 [48]–[50], ClustalW version 2.0.4, Opal version 1.0.2 [37], Probtree (as described in a prior study by Nelesen et al. [32]) using ProbconsRNA version 1.1 [51], and Prank+GT (as described in [1]) using Prank version 080904 [38]. We used RAxML [52], [53] version 7.0.4 to estimate ML trees and a parsimony ratchet analysis using PAUP* [54] version 4.0b10. For our MP analyses, we returned the majority consensus of the best trees that we found. For treelength optimization, we used POY version 4.1.2 and BeeTLe, under the Simple-1, Simple-2, and Affine treelength criteria (defined earlier). The commands used for each method are provided in Methods S1.

We now describe the BeeTLe algorithm. For a given treelength criterion, BeeTLe runs POY under that criterion, and also ML(MAFFT) and ML(ClustalW). BeeTLe then samples the neighborhood around these selected trees, by producing a random perturbation of the selected tree to obtain 20 additional trees. We use random -ECR [55] moves to create these perturbations, where a random -ECR move contracts randomly selected edges in a tree, and then randomly refines the resulting unresolved tree to obtain a binary tree. To produce the set of 20 additional trees from a single selected tree, we do the following 20 times: we apply a random -ECR move [55] to the selected tree, with chosen uniformly at random between one and five. This process thus produces 20 additional trees, each of which is one -ECR move away from the starting tree.

### Measuring tree error

While the bipartition distance (also known as the Robinson-Foulds distance) is the standard way of measuring tree error, it is inappropriate when either the true or estimated trees are not binary [56], as it is biased in favor of unresolved trees. Since our analyses includes estimated trees that may not be fully resolved, we compare trees using the missing branch rate (also known as the false negative rate), which is the proportion of edges present in the true tree but missing from the estimated tree.

### Statistical significance

We evaluated the statistical significance of the differences in tree error (Table S3) using one-tailed paired t-tests with the Benjamini-Hochberg correction [57].

### Computational resources

The simulations and analyses were performed using a heterogeneous Condor [58] computing cluster at the University of Texas at Austin. This cluster had computers with between 1 and 8 cores running at speeds between 1.86 GHz and 3.16 GHz. All programs were run as 32-bit serial executables on a single dedicated core with dedicated access to at least 512 MB and at most 4 GB of main memory.

## Supporting Information

### Figure S1.

**Histogram of gap lengths in true alignments from each 100-taxon model condition.** Axes are logarithmically scaled.

https://doi.org/10.1371/journal.pone.0033104.s001

(EPS)

### Figure S2.

**Histogram of gap lengths in reference alignment from each biological dataset.** Axes are logarithmically scaled.

https://doi.org/10.1371/journal.pone.0033104.s002

(EPS)

### Table S1.

**Simulation parameters and empirical statistics for the simulated datasets in our study.** The parameters used to evolve sequences on trees are listed for the fifteen 100-taxon models. The p-distance between two sequences is the normalized Hamming distance between the two sequences. “Setwise avg p-dist” is the average pairwise p-distance across all pairs of sequences in the true alignment, and “Setwise max p-dist” is the maximum pairwise p-distance across all pairs of sequences in the true alignment. “Gap” is the percentage of the true alignment matrix containing indels. “Cols” is the number of columns in the true alignment. “Avg gap len” is the average length of a gap, or contiguous string of indels, in the true alignment. The edgewise average (maximum) p-distance is the average (maximum) p-distance between the sequences labeling the endpoints of edges in the model tree. “Resolution” is the number of edges in the reference tree divided by , the maximum number of internal edges possible in any unrooted tree on taxa.

https://doi.org/10.1371/journal.pone.0033104.s003

(PDF)

### Table S2.

**Empirical statistics for biological datasets.** Empirical statistics for the curated alignment are shown for all biological datasets. The curated alignment is used as the reference alignment. The columns from left to right show the dataset name, the number of taxa, the number of columns in the reference alignment, the average p-distance of the reference alignment, the maximum p-distance of the reference alignment, the percent indels of the reference alignment, the average gap length of the reference alignment, and the median gap length of the reference alignment. All biological datasets had a median gap length of 1.

https://doi.org/10.1371/journal.pone.0033104.s004

(PDF)

### Table S3.

**Q-values from statistical tests comparing missing branch rates on 100-taxon model conditions.** We performed one-tailed paired t-tests with Benjamini-Hochberg correction [57] to see if ML(MAFFT)'s missing branch rate improved upon BeeTLe-Affine's. We also performed similar statistical tests to see if BeeTLe-Affine's missing branch rate improved upon MP(MAFFT)'s. for each test.

https://doi.org/10.1371/journal.pone.0033104.s005

(PDF)

### Table S4.

**Normalized treelength scores obtained on the model tree and SATé-I tree.** For each of the three treelength criteria, we obtained treelength scores on either the model tree or SATé-I tree by constraining POY to solve a fixed-tree variant of the Generalized Sankoff Problem (see text for details). Treelength scores are normalized by the treelength score obtained by POY run under default settings. Averages (“Avg”) and standard errors (“SE”) are shown to either three or four decimal points. Model conditions are shown in the same order as in Figure 1.

https://doi.org/10.1371/journal.pone.0033104.s006

(PDF)

### Methods S1.

**Supporting materials about methods.**

https://doi.org/10.1371/journal.pone.0033104.s007

(PDF)

## Acknowledgments

We thank C. Randal Linder, Wayne Maddison, Greg Plaxton, and William Press for feedback on a prior publication [31] and K. L.'s PhD dissertation [59], both of which are related to this study. We also thank the three anonymous reviewers and the editor, David Liberles, for very helpful comments on the manuscript.

## Author Contributions

Conceived and designed the experiments: TW. Performed the experiments: KL. Analyzed the data: TW KL. Contributed reagents/materials/analysis tools: TW KL. Wrote the paper: TW KL.

## References

- 1. Liu K, Raghavan S, Nelesen S, Linder CR, Warnow T (2009) Rapid and accurate large-scale coestimation of sequence alignments and phylogenetic trees. Science 324: 1561–1564.K. LiuS. RaghavanS. NelesenCR LinderT. Warnow2009Rapid and accurate large-scale coestimation of sequence alignments and phylogenetic trees.Science32415611564
- 2. Liu K, Linder CR, Warnow T (2010) Multiple sequence alignment: a major challenge to large-scale phylogenetics. PLoS Currents: Tree of Life 2: RRN1198.K. LiuCR LinderT. Warnow2010Multiple sequence alignment: a major challenge to large-scale phylogenetics.PLoS Currents: Tree of Life2RRN1198
- 3. Redelings B, Suchard M (2005) Joint Bayesian estimation of alignment and phylogeny. Syst Biol 54: 401–418.B. RedelingsM. Suchard2005Joint Bayesian estimation of alignment and phylogeny.Syst Biol54401418
- 4. Fleissner R, Metzler D, von Haeseler A (2005) Simultaneous statistical multiple alignment and phylogeny reconstruction. Syst Biol 54: 548–561.R. FleissnerD. MetzlerA. von Haeseler2005Simultaneous statistical multiple alignment and phylogeny reconstruction.Syst Biol54548561
- 5. Novák A, Miklós I, Lyngso R, Hein J (2008) StatAlign: an extendable software package for joint bayesian estimation of alignments and evolutionary trees. Bioinf 24: 2403–2404.A. NovákI. MiklósR. LyngsoJ. Hein2008StatAlign: an extendable software package for joint bayesian estimation of alignments and evolutionary trees.Bioinf2424032404
- 6. Lunter GA, Miklos I, Song YS, Hein J (2003) An efficient algorithm for statistical multiple alignment on arbitrary phylogenetic trees. J Comp Biol 10: 869–89.GA LunterI. MiklosYS SongJ. Hein2003An efficient algorithm for statistical multiple alignment on arbitrary phylogenetic trees.J Comp Biol1086989
- 7. Lunter G, Miklós I, Drummond A, Jensen JL, Hein J (2005) Bayesian coestimation of phylogeny and sequence alignment. BMC Bioinf 6: 83.G. LunterI. MiklósA. DrummondJL JensenJ. Hein2005Bayesian coestimation of phylogeny and sequence alignment.BMC Bioinf683
- 8.
Lunter G, Miklós I, Drummond A, Jensen JL, Hein J (2003) Bayesian phylogenetic inference under a statistical indel model. In: Benson G, Page R, editors. Lecture Notes in Bioinformatics: Third International Workshop, WABI 2003, LNBI. Berlin: Springer-Verlag, volume 2812. pp. 228–244.G. LunterI. MiklósA. DrummondJL JensenJ. Hein2003Bayesian phylogenetic inference under a statistical indel model.G. BensonR. PageLecture Notes in Bioinformatics: Third International Workshop, WABI 2003, LNBIBerlinSpringer-Verlag, volume 2812228244
- 9.
Lunter G, Drummond A, Miklós I, Hein J (2005) Statistical alignment: Recent progress, new applications, and challenges. In: Nielsen R, editor. Statistical Methods in Molecular Evolution (Statistics for Biology and Health). Berlin: Springer. pp. 375–406.G. LunterA. DrummondI. MiklósJ. Hein2005Statistical alignment: Recent progress, new applications, and challenges.R. NielsenStatistical Methods in Molecular Evolution (Statistics for Biology and Health)BerlinSpringer375406
- 10. Metzler D (2003) Statistical alignment based on fragment insertion and deletion models. Bioinf 19: 490–499.D. Metzler2003Statistical alignment based on fragment insertion and deletion models.Bioinf19490499
- 11. Miklós I (2003) Algorithm for statistical alignment of sequences derived from a Poisson sequence length distribution. Disc Appl Math 127: 79–84.I. Miklós2003Algorithm for statistical alignment of sequences derived from a Poisson sequence length distribution.Disc Appl Math1277984
- 12. Miklós I, Lunter GA, Holmes I (2004) A “long indel model” for evolutionary sequence alignment. Mol Biol Evol 21: 529–540.I. MiklósGA LunterI. Holmes2004A “long indel model” for evolutionary sequence alignment.Mol Biol Evol21529540
- 13. Liu K, Raghavan S, Nelesen S, Linder CR, Warnow T (2009) Rapid and accurate large-scale coestimation of sequence alignments and phylogenetic trees. Science 324: 1561–1564.K. LiuS. RaghavanS. NelesenCR LinderT. Warnow2009Rapid and accurate large-scale coestimation of sequence alignments and phylogenetic trees.Science32415611564
- 14. Liu K, Warnow T, Holder M, Nelesen S, Yu J, et al. (2011) SATé-II: Very fast and accurate simultaneous estimation of multiple sequence alignments and phylogenetic trees. Syst Biol 61: 90–106.K. LiuT. WarnowM. HolderS. NelesenJ. Yu2011SATé-II: Very fast and accurate simultaneous estimation of multiple sequence alignments and phylogenetic trees.Syst Biol6190106
- 15.
Yu J, Holder MT, Sukumaran J, Mirarab SSATé version 2.1.0. J. YuMT HolderJ. SukumaranS. MirarabSATé version 2.1.0.Website. Available at http://phylo.bio.ku.edu/software/sate/sate.html. Website. Available at http://phylo.bio.ku.edu/software/sate/sate.html.
- 16. Edgar RC, Sjölander K (2003) SATCHMO: Sequence alignment and tree construction using hidden Markov models. Bioinf 19: 1404–1411.RC EdgarK. Sjölander2003SATCHMO: Sequence alignment and tree construction using hidden Markov models.Bioinf1914041411
- 17. Hagopian R, Davidson J, Datta R, Jarvis G, Sjölander K (2010) SATCHMO-JS: a webserver for simultaneous protein multiple sequence alignment and phylogenetic tree construction. Nucl Acids Res 38(Web Server Issue): W29–W34.R. HagopianJ. DavidsonR. DattaG. JarvisK. Sjölander2010SATCHMO-JS: a webserver for simultaneous protein multiple sequence alignment and phylogenetic tree construction.Nucl Acids Res38Web Server IssueW29W34
- 18. Varón A, Vinh L, Wheeler W (2010) POY version 4: phylogenetic analysis using dynamic homologies. Cladistics 26: A. VarónL. VinhW. Wheeler2010POY version 4: phylogenetic analysis using dynamic homologies.Cladistics26
- 19.
Varón A, Vinh L, Bomash I, Wheeler W (2007) POY Software. A. VarónL. VinhI. BomashW. Wheeler2007POY Software.Documentation by A. Varon, L.S. Vinh, I. Bomash, W. Wheeler, K. Pickett, I. Temkin, J. Faivovich, T. Grant, and W.L. Smith. Available for download at http://research.amnh.org/scicomp/projects/poy.php. Documentation by A. Varon, L.S. Vinh, I. Bomash, W. Wheeler, K. Pickett, I. Temkin, J. Faivovich, T. Grant, and W.L. Smith. Available for download at http://research.amnh.org/scicomp/projects/poy.php.
- 20. Foulds LR, Graham RL (1982) The Steiner problem in phylogeny is NP-complete. Adv Appl Math 3: 43–49.LR FouldsRL Graham1982The Steiner problem in phylogeny is NP-complete.Adv Appl Math34349
- 21.
Sankoff D, Cedergren R (1983) Simultaneous comparison of three or more sequences related by a tree. Time Warps, String Edits, and Macromolecules: the Theory and Practice of Sequence Comparison. Addison-Wesley. pp. 253–264.D. SankoffR. Cedergren1983Simultaneous comparison of three or more sequences related by a tree.Time Warps, String Edits, and Macromolecules: the Theory and Practice of Sequence ComparisonAddison-Wesley253264Chapter 9. Chapter 9.
- 22. Giribet G (2001) Exploring the behavior of POY, a program for direct optimization of molecular data. Cladistics 17: S60–S70.G. Giribet2001Exploring the behavior of POY, a program for direct optimization of molecular data.Cladistics17S60S70
- 23. Kjer K, Gillespie J, Ober K (2007) Opinions on multiple sequence alignment, and an empirical comparison on repeatability and accuracy between POY and structural alignment. Syst Biol 56: 133–146.K. KjerJ. GillespieK. Ober2007Opinions on multiple sequence alignment, and an empirical comparison on repeatability and accuracy between POY and structural alignment.Syst Biol56133146
- 24. Ogden TH, Rosenberg M (2007) Alignment and topological accuracy of the direct optimization approach via POY and traditional phylogenetics via ClustalW+PAUP*. Syst Biol 56: 182–193.TH OgdenM. Rosenberg2007Alignment and topological accuracy of the direct optimization approach via POY and traditional phylogenetics via ClustalW+PAUP*.Syst Biol56182193
- 25. Morrison DA (2009) Why would phylogeneticists ignore computerized sequence alignment? Syst Biol 58: 150–158.DA Morrison2009Why would phylogeneticists ignore computerized sequence alignment?Syst Biol58150158
- 26. Blair C, Murphy RW (2011) Recent trends in molecular phylogenetic analysis: Where to next? J Hered 102: 130–138.C. BlairRW Murphy2011Recent trends in molecular phylogenetic analysis: Where to next?J Hered102130138
- 27. Yoshizawa K (2010) Direct optimization overly optimizes data. Syst Ent 35: 199–206.K. Yoshizawa2010Direct optimization overly optimizes data.Syst Ent35199206
- 28.
Wheeler W, Giribet G (2009) Phylogenetic hypotheses and the utility of multiple sequence alignment. In: Rosenberg M, editor. Sequence alignment: methods, models, concepts and strategies. University of California Press. pp. 95–104.W. WheelerG. Giribet2009Phylogenetic hypotheses and the utility of multiple sequence alignment.M. Rosenberg Sequence alignment: methods, models, concepts and strategiesUniversity of California Press95104
- 29. Lehtonen S (2008) Phylogeny estimation and alignment via POY versus Clustal+PAUP*: A response to Ogden and Rosenberg. Syst Biol 57: 653–657.S. Lehtonen2008Phylogeny estimation and alignment via POY versus Clustal+PAUP*: A response to Ogden and Rosenberg.Syst Biol57653657
- 30. Thompson J, Higgins D, Gibson T (1994) CLUSTAL W: improving the sensitivity of progressive multiple sequence alignment through sequence weighting, positionspecific gap penalties and weight matrix choice. Nucl Acids Res 22: 4673–4680.J. ThompsonD. HigginsT. Gibson1994CLUSTAL W: improving the sensitivity of progressive multiple sequence alignment through sequence weighting, positionspecific gap penalties and weight matrix choice.Nucl Acids Res2246734680
- 31. Liu K, Nelesen S, Raghavan S, Linder C, Warnow T (2009) Barking up the wrong treelength: the impact of gap penalty on alignment and tree accuracy. IEEE Trans Comp Biol Bioinf 6: 7–21.K. LiuS. NelesenS. RaghavanC. LinderT. Warnow2009Barking up the wrong treelength: the impact of gap penalty on alignment and tree accuracy.IEEE Trans Comp Biol Bioinf6721
- 32.
Nelesen S, Liu K, Zhao D, Linder CR, Warnow T (2008) The effect of the guide tree on multiple sequence alignments and subsequent phylogenetic analyses. Pacific Symposium on Biocomputing. volume 13. pp. 15–24.S. NelesenK. LiuD. ZhaoCR LinderT. Warnow2008The effect of the guide tree on multiple sequence alignments and subsequent phylogenetic analyses.Pacific Symposium on Biocomputing. volume 131524
- 33. Wang L, Jiang T (1994) On the complexity of multiple sequence alignment. J Comp Biol 1: 337–348.L. WangT. Jiang1994On the complexity of multiple sequence alignment.J Comp Biol1337348
- 34. Stamatakis A (2006) RAxML-VI-HPC: Maximum likelihood-based phylogenetic analyses with thousands of taxa and mixed models. Bioinf 22: 2688–2690.A. Stamatakis2006RAxML-VI-HPC: Maximum likelihood-based phylogenetic analyses with thousands of taxa and mixed models.Bioinf2226882690
- 35.
Swofford D (1996) PAUP*: Phylogenetic analysis using parsimony (and other methods), version 4.0. Sunderland, Mass.: Sinauer Assoc. D. Swofford1996PAUP*: Phylogenetic analysis using parsimony (and other methods), version 4.0Sunderland, Mass.Sinauer Assoc
- 36. Katoh K, Kuma K, Miyata T, Toh H (2005) Improvement in the acccuracy of multiple sequence alignment mafft. Genome Inf 16: 22–33.K. KatohK. KumaT. MiyataH. Toh2005Improvement in the acccuracy of multiple sequence alignment mafft.Genome Inf162233
- 37. Wheeler T, Kececioglu J (2007) Multiple alignment by aligning alignments. Bioinf 23: i559–i568.T. WheelerJ. Kececioglu2007Multiple alignment by aligning alignments.Bioinf23i559i568
- 38. Loytynoja A, Goldman N (2005) An algorithm for progressive multiple alignment of sequences with insertions. Proc Nat Acad Sci 102: 10557–10562.A. LoytynojaN. Goldman2005An algorithm for progressive multiple alignment of sequences with insertions.Proc Nat Acad Sci1021055710562
- 39. Huelsenbeck J, Ronquist R (2001) MrBayes: Bayesian inference of phylogeny. Bioinf 17: 754–755.J. HuelsenbeckR. Ronquist2001MrBayes: Bayesian inference of phylogeny.Bioinf17754755
- 40. Guindon S, Gascuel O (2003) A simple, fast, and accurate algorithm to estimate large phylogenies by maximum likelihood. Syst Biol 52: 696–704.S. GuindonO. Gascuel2003A simple, fast, and accurate algorithm to estimate large phylogenies by maximum likelihood.Syst Biol52696704
- 41.
Zwickl D (2006) Genetic algorithm approaches for the phylogenetic analysis of large biological sequence datasets under the maximum likelihood criterion. D. Zwickl2006Genetic algorithm approaches for the phylogenetic analysis of large biological sequence datasets under the maximum likelihood criterion.Ph.D. thesis, The University of Texas at Austin. Ph.D. thesis, The University of Texas at Austin.
- 42. Price M, Dehal P, Arkin A (2009) FastTree: Computing large minimum evolution trees with profiles instead of a distance matrix. Mol Biol Evol 26: 1641–1650.M. PriceP. DehalA. Arkin2009FastTree: Computing large minimum evolution trees with profiles instead of a distance matrix.Mol Biol Evol2616411650
- 43. Price M, Dehal P, Arkin A (2010) FastTree 2 - approximately maximum-likelihood trees for large alignments. PLoS ONE 5: e9490.M. PriceP. DehalA. Arkin2010FastTree 2 - approximately maximum-likelihood trees for large alignments.PLoS ONE5e9490
- 44. Helaers R, Milinkovitch MC (2010) Metapiga v2.0: maximum likelihood large phylogeny estimation using the metapopulation genetic algorithm and other stochastic heuristics. BMC Bioinf 11: 379.R. HelaersMC Milinkovitch2010Metapiga v2.0: maximum likelihood large phylogeny estimation using the metapopulation genetic algorithm and other stochastic heuristics.BMC Bioinf11379
- 45. Whelan S, Goldman N (2001) A general empirical model of protein evolution derived from multiple protein families using a maximum-likelihood approach. Mol Biol Evol 18: 691–699.S. WhelanN. Goldman2001A general empirical model of protein evolution derived from multiple protein families using a maximum-likelihood approach.Mol Biol Evol18691699
- 46. Stoye J, Evers D, Meyer F (1998) Rose: generating sequence families. Bioinf 14: 157–163.J. StoyeD. EversF. Meyer1998Rose: generating sequence families.Bioinf14157163
- 47. Cannone J, Subramanian S, Schnare M, Collett J, D'Souza L, et al. (2002) The Comparative RNA Web (CRW) Site: An Online Database of Comparative Sequence and Structure Information for Ribosomal, Intron and Other RNAs. BMC Bioinf 3: J. CannoneS. SubramanianM. SchnareJ. CollettL. D'Souza2002The Comparative RNA Web (CRW) Site: An Online Database of Comparative Sequence and Structure Information for Ribosomal, Intron and Other RNAs.BMC Bioinf3
- 48. Katoh K, Kuma K, Toh H, Miyata T (2005) MAFFT version 5: improvement in accuracy of multiple sequence alignment. Nucl Acids Res 33: 511–518.K. KatohK. KumaH. TohT. Miyata2005MAFFT version 5: improvement in accuracy of multiple sequence alignment.Nucl Acids Res33511518
- 49. Katoh K, Toh H (2007) PartTree: an algorithm to build an approximate tree from a large number of unaligned sequences. Bioinf 23: 372–374.K. KatohH. Toh2007PartTree: an algorithm to build an approximate tree from a large number of unaligned sequences.Bioinf23372374
- 50. Katoh K, Toh H (2008) Recent developments in the MAFFT multiple sequence alignment program. Brief Bioinf 9: 286–298.K. KatohH. Toh2008Recent developments in the MAFFT multiple sequence alignment program.Brief Bioinf9286298
- 51. Do C, Mahabhashyam M, Brudno M, Batzoglou S (2005) PROBCONS: Probabilistic consistency-based multiple sequence alignment. Genome Res 15: 330–340.C. DoM. MahabhashyamM. BrudnoS. Batzoglou2005PROBCONS: Probabilistic consistency-based multiple sequence alignment.Genome Res15330340
- 52.
Stamatakis A (2006) Phylogenetic models of rate heterogeneity: A high performance computing perspective. Proceedings of IPDPS2006. HICOMB Workshop, Rhodos, Greece. A. Stamatakis2006Phylogenetic models of rate heterogeneity: A high performance computing perspective.Proceedings of IPDPS2006HICOMB Workshop, Rhodos, Greece
- 53. Stamatakis A (2006) RAxML-VI-HPC: maximum likelihood-based phylogenetic analyses with thousands of taxa and mixed models. Bioinf 22: 2688–2690.A. Stamatakis2006RAxML-VI-HPC: maximum likelihood-based phylogenetic analyses with thousands of taxa and mixed models.Bioinf2226882690
- 54.
Swofford DL (2003) PAUP*. DL Swofford2003PAUP*.phylogenetic analysis using parsimony (*and other methods). version 4. Sinauer Associates. phylogenetic analysis using parsimony (*and other methods). version 4. Sinauer Associates.
- 55. Ganapathy G, Ramachandran V, Warnow T (2003) Better hill-climbing seaches for parsimony. Proceedings of the Third International Workshop on Algorithms in Bioinformatics (WABI) 245–258.G. GanapathyV. RamachandranT. Warnow2003Better hill-climbing seaches for parsimony.Proceedings of the Third International Workshop on Algorithms in Bioinformatics (WABI)245258
- 56. Rannala B, Huelsenbeck J, Yang Z, Nielsen R (1998) Taxon sampling and the accuracy of large phylogenies. Syst Biol 47: 702–710.B. RannalaJ. HuelsenbeckZ. YangR. Nielsen1998Taxon sampling and the accuracy of large phylogenies.Syst Biol47702710
- 57. Benjamini Y, Hochberg Y (1995) Controlling the false discovery rate: A practical and powerful approach to multiple testing. J Royal Stat Soc Series B (Method) 57: 289–300.Y. BenjaminiY. Hochberg1995Controlling the false discovery rate: A practical and powerful approach to multiple testing.J Royal Stat Soc Series B (Method)57289300
- 58.
Litzkow M (1987) Remote Unix - turning idle workstations into cycle servers. Usenix Summer Conference. pp. 381–384.M. Litzkow1987Remote Unix - turning idle workstations into cycle servers.Usenix Summer Conference381384
- 59.
Liu K (2011) Fast and Accurate Estimation of Large-Scale Phylogenetic Alignments and Trees. K. Liu2011Fast and Accurate Estimation of Large-Scale Phylogenetic Alignments and Trees.Ph.D. thesis, The University of Texas at Austin. Ph.D. thesis, The University of Texas at Austin.