Next Article in Journal
Screw-Type Collar vs. Non-Screw-Type Collar Implants—Comparison of Initial Stability, Soft Tissue Adaptation, and Early Marginal Bone Loss—A Preclinical Study in the Dog
Next Article in Special Issue
Learning Hyperbolic Embedding for Phylogenetic Tree Placement and Updates
Previous Article in Journal
Distinct Phenotypic Variation of Blastocystis sp. ST3 from Urban and Orang Asli Population—An Influential Consideration during Sample Collection in Surveys
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Distance-Based Phylogenetic Placement with Statistical Support

by
Navid Bin Hasan
1,
Metin Balaban
2,†,
Avijit Biswas
1,†,
Md. Shamsuzzoha Bayzid
1,*,‡ and
Siavash Mirarab
3,*,‡
1
Computer Science and Engineering, Bangladesh University of Engineering and Technology, Dhaka 1205, Bangladesh
2
Bioinformatics and System Biology Program, UC San Diego, San Diego, CA 92093, USA
3
Electrical and Computer Engineering, UC San Diego, San Diego, CA 92093, USA
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
These authors jointly supervised this work.
Biology 2022, 11(8), 1212; https://doi.org/10.3390/biology11081212
Submission received: 30 June 2022 / Revised: 30 July 2022 / Accepted: 2 August 2022 / Published: 12 August 2022

Abstract

:

Simple Summary

Phylogenetic placement seeks to find the optimal position for a new query species on an existing backbone tree. Fast and accurate distance-based phylogenetic placement methods lack the crucial feature of estimating the support values for various placements of a query sequence. This study presents both parametric and nonparametric methods for measuring the support values of distance-based phylogenetic placements.

Abstract

Phylogenetic identification of unknown sequences by placing them on a tree is routinely attempted in modern ecological studies. Such placements are often obtained from incomplete and noisy data, making it essential to augment the results with some notion of uncertainty. While the standard likelihood-based methods designed for placement naturally provide such measures of uncertainty, the newer and more scalable distance-based methods lack this crucial feature. Here, we adopt several parametric and nonparametric sampling methods for measuring the support of phylogenetic placements that have been obtained with the use of distances. Comparing the alternative strategies, we conclude that nonparametric bootstrapping is more accurate than the alternatives. We go on to show how bootstrapping can be performed efficiently using a linear algebraic formulation that makes it up to 30 times faster and implement this optimized version as part of the distance-based placement software APPLES. By examining a wide range of applications, we show that the relative accuracy of maximum likelihood (ML) support values as compared to distance-based methods depends on the application and the dataset. ML is advantageous for fragmentary queries, while distance-based support values are more accurate for full-length and multi-gene datasets. With the quantification of uncertainty, our work fills a crucial gap that prevents the broader adoption of distance-based placement tools.

1. Introduction

A query sequence can be phylogenetically placed onto a backbone tree to find its evolutionary relationship to a set of known organisms. Various applications such as microbiome analyses [1,2,3,4,5,6,7], genome skimming [8,9], and epidemic tracking [10,11] are increasingly relying on phylogenetic placement (PP). By treating all the queries as independent, PP can provide linear time scaling as the number of queries increases; moreover, it is less sensitive to fragmentation in input sequences [1]. While PP does not infer the phylogenetic relationship between queries and does not update the backbone based on new data, its scalability has been encouraging biologists to adopt PP in downstream analyses.
Among various methods for PP, the most widely used tools are based on maximum likelihood (ML) (e.g., [12,13,14,15]). More recently, methods based on distances (e.g., [9,16,17]), maximum parsimony (e.g., [11]), alignment-free spaced words (e.g., [18]), and even machine learning (e.g., [19,20,21,22]) have been developed. Separately, placement on the species trees has also been explored (e.g., [23,24]). For the placement of individual sequences on a gene tree, ML methods, and in particular pplacer [15], have been highly accurate [16]. Their main limitation, however, is that they become slow as the size of the backbone grows beyond a thousand species. Meanwhile, the size of the backbone matters for downstream analyses: the larger the backbone, the more accurate placements tend to be. Moreover, more dense reference trees are known to enhance the downstream applications [25,26,27]. The need to use ever-larger backbone trees has motivated some authors to employ a divide-and-conquer approach [15,28] for further scaling. The divide-and-conquer strategy places each query on a subset of the tree, often by decomposing the set of taxa in the backbone tree into disjoint subsets and finding the subset that best matches the query sequences.
A recent alternative is the distance-based method known as APPLES(-2) [9,16], which has been developed to provide linear and sub-linear scaling with the size of the backbone. Distance-based placement solves the Least Squares Phylogenetic Placement (LSPP) problem: the input is a backbone phylogenetic tree T, with n leaves and an n-dimensional vector δ q per query q, where δ q i is the distance between q and every reference taxon i from the backbone tree T. LSPP seeks the placement that minimizes the weighted least squares error, expressed as follows:
i = 1 n w q i ( δ q i d q i ( T ) ) 2
where d q i ( T ) is the path distance from q to the backbone taxon i in the output tree. The weight w q i , set by default to δ q i 2 (i.e., the Fitch and Margoliash [29] method), is added to the objective function to reduce the impact of long distances. Balaban et al. [9] solved the LSPP problem using a dynamic programming algorithm in linear time with n.
More recently, Balaban et al. [16] proposed a sub-linear heuristic algorithm that solves the LSPP problem on a subset of taxa. The subset ideally includes any backbone leaf with a distance to the query that is smaller than a threshold d f or among the shortest b distances to the query. However, even this criterion would need linear time (since all distances are needed). Instead, APPLES-2 uses other heuristics based on clustering backbone leaves in order to avoid computing all distances; thus, the decision concerning which distances to compute is made heuristically. More importantly, not only is APPLES-2 much more scalable (i.e., faster and less memory-hungry) than APPLES, but it is also more accurate. The increased accuracy is not surprising as the high variance in estimating long distances is a known limitation of distance-based methods [30,31]. The divide-and-conquer strategy of APPLES-2 builds on a long history of methods with solid theoretical guarantees [32,33,34,35].
APPLES-2, despite all its advantages in scalability, has several practical limitations. Most importantly, APPLES-2 did not output branch support, and this omission can be a major shortcoming in downstream applications. The purpose of support values is to show uncertainty. With regard to placement, we aim to assign a probability to each placement, and these values should ideally predict the correctness of the branch. In particular, users are often interested in finding a set of placements that collectively have a desired probability of including the correct placement. Placement support can be incorporated in downstream applications such as taxonomic identification [4] and sample comparison [3]. While Balaban et al. [16] showed that there are ways to detect some of the worst placements based on their branch length, they offered no reliable measure of support. Thus, for APPLES-2 to be more widely used, a measure of support is needed.
In this paper, we evaluate three alternative approaches that we propose for computing support for distance-based placement: nonparametric resampling (i.e., bootstrapping), nonparametric subsampling, and a parametric sampling approach. Our extensive studies on both simulated and real biological data show that among these, the traditional bootstrapping support seems to provide the best solution but can come at the expense of running time. To further alleviate that problem, we formulate bootstrapping in a linear algebraic way, which dramatically reduces the running time. This new feature (in addition to a slightly updated way of computing amino acid distances) is integrated into the APPLES-2 software.

2. Materials and Methods

2.1. Support Estimation Methods

Phylogenetic support estimation is performed in several ways. Bayesian analyses readily provide support by approximating the posterior tree distribution. ML and distance-based methods use data sampling. Among sampling methods, the dominant method is the nonparametric bootstrapping procedure [36], which repeatedly resamples sites with replacement. The main shortcoming of bootstrapping is that the repetitive resampling of alignment sites and rerunning the inference methods increase the running time. In general, bootstrapping, when applied with a statistically consistent estimator gives a valid distribution that asymptotically converges to the distribution of the estimator around the true value for repeated experiments [37,38]. Despite earlier debates [39,40,41], bootstrapping is now the standard method that most ML and distance-based tools use.
There have been some attempts at designing faster alternatives to bootstrapping. For example, local support gains speed by considering nearest neighbor interchange (NNI) rearrangements around a single branch (e.g., [42,43,44]), assuming that the rest of the tree is correct. For distance-based methods, the rate of elementary quartets (REQ) [45] method is an alternative that discards random sampling in favor of a quartet-based method. It computes the proportion of quartets induced by every internal branch that are supported by the four-point condition when applied to the six pairwise distances defined on a quartet.
In this paper, we propose and evaluate three ways of providing support for APPLES-2 placements: (1) nonparametric bootstrapping, (2) parametric bootstrapping, and (3) nonparametric subsampling.

2.1.1. Nonparametric Bootstrapping

Adopting bootstrapping to placement is conceptually straightforward. Let M be the multiple sequence alignment (MSA) of the given backbone and query sequences composed of L sites. These sites are sampled with replacement L times to generate one replicate dataset M i , and this process is repeated B times, producing B replicate datasets M 1 , M 2 , , M B . The query is then placed on the backbone for each replicate. The fraction of placements (out of B replicates) that put the query on a specific branch constitutes its support. However, two further points related to accuracy and running time should be considered; this leads us to the definition of two versions of bootstrapping: slow and fast.

Branch Length Re-Estimation

Since bootstrapping changes the set of sites, the backbone tree inferred from the resampled sites would differ from the given backbone. Allowing the backbone topology to change complicates computing placement supports on the original tree. In contrast, re-estimating the branch lengths of the backbone tree is possible and may improve accuracy. We will perform branch length re-estimation in slow bootstrapping and leave it out in the fast bootstrapping method.

Linear Algebraic Formulation and Implementation

The naive implementation of bootstrapping, used in the slow version, would require B times more running time than placement without support. We offer a faster alternative by using a linear algebraic formulation (used in our fast version). This formulation focuses on computing distances, which is the bottleneck, as opposed to the placement step. We reformulate computing distances between a query and a reference sequence in all M, M 1 , M 2 , , M B as matrix multiplication. We first generate a matrix H of dimension ( B + 1 ) × L , where H i j for 1 i B and 0 j L 1 is the number of times the j-th site was sampled in the i-th bootstrapped alignment M i , and H 0 j = 1 for 0 j L 1 (representing the original alignment). The matrix H is computed once and is the same for all queries. To compute the JC69 distances between a query sequence q and all reference sequences, we first compute the L × n matrix V , where V i , j = 1 if the i-th sites in q and reference j are non-gap characters and there is a mismatch between them in M; otherwise, its value is 0. We then compute the ( B + 1 ) × n matrix P = H · V . It is easy to see that P i , j represents the number of mismatches between q and reference j in M i . These values can then be easily normalized by L i j , where L i j is the number of sites in M i where neither the query q nor the reference j is a gap, in order to compute the normalized Hamming distance h q j these values can then be transformed using the JC69 correction.
This strategy provides an efficient way of computing the distances between every pair of queries and reference sequence across all the bootstrapped samples. This approach is faster than the naive approach for several reasons. By performing string comparisons only once and saving results in the matrix V , we avoid repeating string operations for each replicate; in particular, the resampling of a site is accomplished when the numerical matrix H is created and string operations are avoided. Moreover, matrix multiplication is highly optimized in the numpy package we use, and we automatically benefit from those optimizations in our formulation.

2.1.2. Parametric Sampling (Binomial and Poisson)

Since nonparametric methods can be slow (at least in principle), we can try to model the distribution of distances. Modeling the entire matrix is difficult. Instead, we seek to model each distance pair (i.e., an element of the distance matrix) and sample the elements independently. This independent sampling is not entirely correct because distances between two pairs of taxa that share part of their paths are very much dependent. However, this incorrect assumption enables a simple procedure. We will use our simulation analyses to ask whether this incorrect assumption is a problem in practice.
We use the Binomial distribution or its Poisson approximation to model the estimated distance between each query q and a reference r. Assume these two sequences have l (non-gap) aligned sites and assume that the true branch length between them is t. Now, let h = 3 4 ( 1 e 4 3 t ) and recall that under the JC69 model, the probability of observing a change in each site is h. Thus, the number of observed substitutions is a draw from the binomial distribution, with the number of trials set to l and the success probability set to h (i.e., B ( l , h ) ). While the true h is not available, we can use an approach similar to the Cox [46] Monte Carlo method, which is widely used in likelihood-based phylogenetics [47], and substitute h with the observed normalized Hamming distance h ^ . Once this approximation is accepted, the rest of the procedure follows naturally: draw values x 1 x B B ( l , h ^ ) and then normalize and transform each value back to a phylogenetic distance using t ^ i = 3 4 ln ( 1 4 3 x i l ) . The distribution of t ^ i can be used to create a distribution of distance matrices (with independent draws), which can then be used to infer replicate phylogenies. A further simplification can be made if we replace the binomial distribution with a Poisson distribution parameterized by λ = h ^ × l , an approximation that would be most accurate if h is small relative to l.

2.1.3. Nonparametric Subsampling

While resampling (subsampling with replacement) has been the dominant method used for support placement in phylogenetics, it has recently been suggested that subsampling without replacement can also be used [48]. Subsampling sites without replacement increases the variance of the estimator—a problem that must be corrected [49]. Assuming that an estimator θ ^ n of a parameter θ from n data points follows assumptions of the central limit theorem (i.e., it is a sum of independent random variables), it can easily be shown that b ( θ ^ b θ ) and n ( θ ^ n θ ) have the same asymptotic distribution for a b < n . Thus, we can pick a b < n , repeatedly select b data points at random to get estimators θ ^ b 1 θ ^ b B , and use the distribution of b n ( θ ^ b i θ ^ n ) + θ ^ n to estimate uncertainty around the estimator (note that we need b and b n 0 when n ; see Politis et al. [49]).
Similar to bootstrapping, subsampling can be computed by using a linear algebraic formulation. Instead of the matrix H used in bootstrapping, we generate a ( B + 1 ) × L dimension matrix S , where S i , j = 1 if the j-th site was sampled in the i-th subsampled alignment, and 0 if otherwise. The rest is similar: we compute the ( B + 1 ) × n matrix P = S · V , where P i , j represents the number of mismatches between q and reference j in subsampled alignment i. We normalize P to obtain normalized Hamming distances, followed by the correction b n ( h b h n ) + h n , where h b is one of the Hamming distances obtained from sampling b sites and h n is the Hamming distance for all n sites. We obtain our final distance value using the JC69 correction as our last step. We set b = n 0.9 by default.

2.2. Experimental Setup

2.2.1. Methods

Distance Calculations

For DNA, phylogenetically corrected distances are computed using the simple JC [50] model, which estimates the distance as 3 4 ln ( 1 4 3 h q i ) , where h q i is the normalized Hamming distance with gaps ignored. For amino acid alignments (AA), APPLES-2 uses an implementation of the Scoredist [51] algorithm. Scoredist computes normalized pairwise distances according to the BLOSUM62 [52] matrix and then performs a logarithmic correction. Finally, Scoredist multiplies the corrected distances by 1.13 , a factor that is empirically computed and is meant to make distances close to the unit of one substitution per site. The FastTree-2 [53] software has a similar algorithm but uses an empirical scaling coefficient of 1.3 instead. As a result, sequence distances estimated by APPLES-2 tend to be smaller than tree-based distances when the backbone tree is inferred using FastTree-2. To solve this issue, we changed APPLES-2 and used the Scoredist implementation adopted from the FastTree-2 software instead of the one from the original publication. The updated code for APPLES-2 that includes a support calculation is available at: https://github.com/balabanmetin/apples, accessed on 1 June 2022.

2.2.2. Datasets

We analyzed two single-gene simulated datasets and a multi-gene biological dataset.

Simulated Single-Gene RNASim

We study an existing RNASim simulated dataset generated by Guo et al. [54] and test our methods on the RNASim-VS subset of this dataset that Balaban et al. [9] used to study APPLES-2. The dataset includes the true tree and MSA of a million sequences and 1596 sites simulated for a single RNA-like gene. Balaban et al. [9] randomly selected backbones with 5000 species and repeated this process five times. They also randomly chose 200 queries with varying levels of novelty for each of the five replicates. Here, we use the true tree as the backbone tree. The branch lengths are recalculated using FastTree-2 [53] in minimal evolution units. We also created a fragmented version of the dataset by randomly selecting 200 bp from a random position on the sequence and replacing other letters with a gap.

SEPP Simulated Fragmentary Dataset

Mirarab et al. [28] studied a set of 1000-taxon simulated datasets with fragmentary sequences evolved under substitutions and indels with three model settings (M2, M3, and M4) distinguished by their rate of evolution. We use their most divergent (M2) and least divergent (M4) models, which correspond to “hard” and “easy” conditions, respectively. Since our focus is on placement, we use the known true alignments. In the original study, each dataset was separated into two equal-sized subsets, with one used to construct the backbone alignment and tree, and the other used to generate the fragmentary query sequences. These query sequences are composed of substrings with normally distributed lengths (from two distributions, as detailed below) and randomly selected starting positions. For each sequence in the M2 and M4 datasets, two types of reads are generated: “long” reads with a mean length of 250 bp and standard deviation set to 60, and “short” reads with a mean length of 100 bp and the standard deviation set to 20. Each sequence generates a total of ten fragmented sequences, half of which are long. Thus, we have 2500 short and 2500 long reads per dataset.

Web of Life (WOL)

For real data analyses, we use the Web of Life (WOL) dataset [55], which includes an ASTRAL [56] species tree of 10,575 bacterial and archaeal genomes constructed from ML gene trees for 381 marker genes. A prior study [16] created a subset of this dataset that was restricted to 1000 randomly chosen species for the backbone and the best  k { 10 , 25 , 50 } genes that had the lowest discordance with the species tree (this set corresponds to the “WoL-best“ subset of [16]). A total of 1000 genomes were used as queries, and these queries were not among the 1000 genomes used in the backbone. We perform most of our analyses on the first two codon positions of the nucleotide alignment (C12) because APPLES-2’s placement on these data can be misled by the third codon position [16]. We also use the amino acid (AA) alignments available from the original study (which are compatible with the nucleotide alignments) in a separate experiment.
We analyze this dataset in several ways. First, we place each of the 50 genes on its corresponding gene tree. We then assess the ability of each gene used individually to place on the species tree, in what has been named discordant placement [20]. As Balaban et al. [16] showed, the concatenation of genes can be used to place metagenomic bins on the reference WOL species tree. Thus, we also present a set of analyses on concatenated genes and ask whether support values remain accurate and useful in such a context.
For the backbone tree, we use the ASTRAL tree restricted to 1000 backbone species. We make sure to recompute the branch lengths of the tree using the minimum evolution option in FastTree-2 [53]. The ASTRAL tree is used here as the gold standard tree because it was obtained using a thorough analysis, including ML gene trees and the ASTRAL summarization step.

2.2.3. Evaluation Criteria

We assess the quality of the branch support using multiple metrics.
  • Calibration: We first bin branches by their support into several groups and quantify the relationship between bins of branch support and the percentage of correctly placed queries in each bin. For example, for branches in the 40–50% support bin, we say the results are calibrated if roughly 45% of these branches are correct. When discussing calibration, we also report the mean squared error (MSE) between the observed and expected accuracies; Lower MSE values indicate that the method is more calibrated.
  • Predictive power (ROC): We ask if support values can effectively distinguish correct from incorrect branches using receiver operating characteristic (ROC) curves, which depict the relationship between the percentage of all true branches with support that lie above some threshold T (recall), and the percentage of all false branches with support that lie below T (false-positive rate; FPR). For T { 0 , 1 , , 100 } , we label each correct branch with support s as T P if s T and as F N if s T , and we label each incorrect branch as F P if s T , and as T N if s T . We then plot R e c a l l = T P T P + F N versus F P R = F P F P + T N .
  • Empirical Cumulative Distribution Function (ECDF): Another way to examine support values is to study their ECDF, separating the correct and incorrect branches. Ideally, incorrect branches have low support (uniformly distributed), and correct branches have high support (depending on the signal, and hence, the power). Generally, a wider difference between the distribution of correct and incorrect branches is desired.

3. Results

We first compare our proposed methods of computing support measures for APPLES-2. Based on the results, we chose the fast bootstrapping method as the default support estimation for APPLES-2. The rest of the section compares fast bootstrapping to support obtained through other placement methods. The only exception is that for AA datasets, we use slow bootstrapping as the linear algebraic formulation (used in our fast bootstrapping) using the Scoredist algorithm has not been implemented yet.

3.1. Alternative Support Estimation Methods for APPLES-2

On the RNASim dataset, the nonparametric methods (subsampling and bootstrapping) are clearly better calibrated (i.e., more correlated with the accuracy) than the parametric methods (Figure 1A). At lower support levels, parametric methods grossly underestimate support, a problem that does not afflict the nonparametric methods. For example, for branches with ≤70% support, the MSE is more than 0.17 for parametric methods and only 0.018 for fast bootstrapping. The gap between correct and incorrect placements is larger for nonparametric methods, especially at the higher support levels (Figure 1B). For example, the percentage of correct placements with at least 75% support goes from 75–80% for nonparametric methods to 60–65% for parametric methods. Moreover, the parametric methods have many incorrect placements with high support; e.g., among the branches with ≥99% support, all of them are correct with bootstrapping, whereas 4% are incorrect with parametric support. Furthermore, the predictive power of nonparametric support values exceeds that of parametric support, as evidenced by the ROC curves (Figure 1C). Finally, for at least 90% of queries, the correct placement using nonparametric methods is among the top three; in contrast, it is among the top ten for parametric methods (Figure 1D).
Nonparametric subsampling and resampling (bootstrapping) methods perform similarly regarding the ROC curves and calibrations (Figure 1). Subsampling results in higher support than bootstrapping methods for both correct and incorrect placements (Figure 1B). However, looking more closely shows a slight preference for bootstrapping. The accuracy of the top ten placements with bootstrapping is 98% as compared to those with subsampling at 96% (Figure 1D). Compared to the slower bootstrapping, which re-estimates branch lengths, fast bootstrapping leads to only slightly less accurate support values. For example, the MSE of ≤70% support branches decrease from 0.0008 to 0.001 when we switch from slow to fast bootstrapping, and the area under ROC curves (AUROC) decreases from 0.883 to 0.864.
The results are broadly similar on the multi-gene WOL dataset analyzed with concatenation, where nonparametric methods are better calibrated (Figure A1A), more predictive of accuracy (Figure A1B,C), and more often accurate among the top ten placements (Figure A1D). However, there are also differences with the single-gene RNASim dataset. Here, all methods, especially subsampling, overestimate ≥50% support levels (Figure A1A,B). These patterns become further magnified as we increase the number of genes from 10 to 50 (Figure A1). With more genes, support values increase for all methods, but not for the better. With 50 genes, the predictive power of bootstrapping converges to that of parametric methods, and low FPR values cannot be obtained (Figure A1C).

3.2. Comparison with Existing ML Methods

3.2.1. Full-Length Single-Gene Simulated Data

On the simulated RNASim dataset, APPLES-2 has much lower support (recall that we focus on fast bootstrapping henceforth) than EPA-ng and pplacer, but the reduced support is warranted (Figure 2). EPA-ng and pplacer give 100% support for incorrect branches in 40% and 10% of cases, respectively, while APPLES-2 has no incorrect placements with 100% support. The overestimation of support is also visible in the MSE error of high support (>70%) branches, which is much higher for EPA-ng (0.02) than pplacer (0.004) and APPLES-2 (0.001). The over-confident support results in an AUROC of 0.574 for EPA-ng, compared to 0.861 for APPLES-2 and 0.849 for pplacer. Increasing the support threshold to 100% still leaves the FPR of EPA-ng at 0.4 . In contrast, the FPR of APPLES-2 and pplacer can be brought closer to 0 and 10%, respectively. For the moderately high FPR values that both pplacer and APPLES-2 can achieve, pplacer has a higher recall.

3.2.2. Fragmentary Single-Gene Simulated Data

Since EPA-ng and pplacer have been designed and tested for fragmentary sequences (unlike APPLES-2), we next study two sets of simulated datasets with fragmentary sequences.

Fragmentary RNASim Dataset

When analyzing fragmentary sequences, support values dramatically reduce for APPLES-2 and EPA-ng and reduce to a lower extent for pplacer (Figure 3). On these data, pplacer replaces APPLES-2 as the method with the best support, followed by APPLES-2 and then EPA-ng with a wide margin. Compared to full-length sequences, APPLES-2 support values on fragmentary data are generally low; e.g., only 6% of placements have support above 95%. The AUROC of APPLES-2 is 0.765, which is lower than its AUROC on full-length sequences but is considered to be reasonably high. However, the support values are even more useful for fragmentary data than full-length sequences because of the added uncertainty in the placements. The best way to see this is to note that as we examine the top placements, we go from capturing 32% of the correct placements to 72% (Figure 3D). Thus, downstream analyses could benefit substantially from taking more than one placement.
On these data, pplacer has better accuracy than APPLES-2. Its AUROC (0.820) is substantially better than the APPLES-2 AUROC (0.765). With higher thresholds of support that give low FPR values, pplacer has a clearly superior recall compared to APPLES-2 (Figure 3C). Here, the accuracy of the top-support placements by pplacer is much higher than those by APPLES-2 (Figure 3D). Going from the top one to the top six placements using pplacer improves accuracy from 63% to 91%; in contrast, the improvement goes from 32% to 66% when APPLES-2 is used.
Surprisingly, EPA-ng, unlike pplacer, has poor support values on these data. The accuracy of the top placement of EPA-ng is similar to that of APPLES-2 (Figure 3D). However, it is overtly confident in its results (MSE of >70% support placements is 0.37) and produces 95% or higher support for the vast majority of queries. Thus, there is a lack of predictive power, with an AUROC of only 0.308 (Figure 3C). Unlike pplacer and APPLES-2, EPA-ng does not benefit from looking at multiple placements on these data (Figure 3D).

Fragmentary SEPP Dataset

Relative and absolute patterns substantially change on the SEPP fragmentary dataset (Figure 4). On the easier M4 dataset, APPLES-2 underestimates the support values by up to 50% (MSE: 0.05) and slightly overestimate higher support values (MSE: 0.01) (Figure 4A). pplacer underestimates support consistently (MSE: 0.015), and EPA-ng has the best calibration (MSE: 0.002). APPLES-2 provides lower support values than pplacer and EPA-ng, which have roughly 3 and 2.5 times the number of branches with 100% support as compared to APPLES-2.
On the M2 dataset with higher evolutionary rates, the performance of APPLES-2 deteriorates considerably. It highly overestimates support values, whereas pplacer and EPA-ng maintain relatively well-calibrated support. APPLES-2 has a much higher MSE (0.066) compared to pplacer (0.005) and EPA-ng (0.007). The gap between the distribution of correct and incorrect branches is much narrower (Figure 4B) and recalls are much lower (Figure 4C) for APPLES-2 as compared to pplacer and EPA-ng. Although both ML methods have similar ROC curves, pplacer has better recall than EPA-ng at lower FPR values. Thus, while EPA-ng placements are more calibrated, the pplacer placements are more predictive.
On the M2 dataset, APPLES-2 has much lower placement accuracy (i.e., for the top placement) as compared to ML methods. The number of correct placements among the highest support placements by APPLES-2 is less than half of those by ML methods (31% versus 76% and 71% for pplacer and EPA-ng, respectively). On the easier M4 dataset, APPLES-2 performs much better (64% correct placement), but still not as good as pplacer (81%) or EPA-ng (78%).

3.2.3. Multi-Gene Web of Life (WOL) Real Dataset

We next examine performance on the real multi-gene datasets, which we analyzed in several fashions. The sequences include a mix of full-length and fragmented sequences.

Single-Gene Placement on the Gene Tree

When placing queries on the corresponding gene trees, similar to the RNA-Sim full-length dataset, APPLES-2 has the best support values (Figure 5). All methods tend to overestimate support, but pplacer and EPA-ng are far less calibrated than APPLES-2 (Figure 5A) and have much lower MSEs (0.015 for APPLES-2 as compared to 0.065 for pplacer and 0.085 for EPA-ng). Both pplacer and EPA-ng overestimate support, and 36% and 24% of their incorrect branches have 100% support, respectively; in contrast, only 2% of incorrect APPLES-2 placements have full support (Figure 5B). The overestimation of support prevents pplacer and EPA-ng from obtaining low FPR rates (Figure 5C); as a result, they have much lower AUROC (pplacer: 0.59; EPA-ng: 0.67) as compared to APPLES-2 (0.83). The accuracy of the top placement is higher for both ML methods as compared to APPLES-2 (Figure 5D). However, when we consider the top seven placements, APPLES-2 eclipses EPA-ng and matches pplacer (Figure 5D) because these methods, especially EPA-ng, have less accurate support.
In examining APPLES-2 support across genes (Figure 5E), we observe that the performance for most genes is quite good as no gene has an AUROC under 0.79. However, some genes perform better than others. These differences are weakly associated with both gene lengths and the average tree branch lengths, which is a proxy for the rate of evolution (Figure 5F).
We observe similar results in C12 nucleotide sequences when we switch to AA sequences (compare Figure 6 to Figure 5). APPLES-2 provides the most well-calibrated results (Figure 6A), and unlike pplacer and EPA-ng, it has much fewer incorrect placements with 100% support (29% and 23% compared to 1%). Both ML methods also lag behind in terms of AUROC (pplacer: 0.65; EPA-ng: 0.68) when compared to APPLES-2 (0.83) (Figure 6C). Once again, APPLES-2 has a lower placement accuracy (e.g., top placement) than pplacer and EPA-ng. However, as we move up to the top seven placements, APPLES-2 outperforms EPA-ng, but not pplacer (top-7 accuracy for pplacer: 87%, APPLES-2: 84%). Similar to C12, most genes perform well, with one outlier gene having a substantially lower AUROC than others (Figure 6E,F).

Discordant Placement

Compared to placing on gene trees, placing on the species tree slightly degrades performance in terms of support estimation but remains reasonably accurate (compare Figure 7 with Figure 5). All three methods are slightly less calibrated than gene tree placement (Figure 7A; with MSE rising to 0.022 for APPLES-2, 0.095 for pplacer, and 0.117 for EPA-ng), but APPLES-2 remains the best calibrated method. The overconfidence in incorrect placement increases compared to gene tree placement for all methods but remains relatively low for APPLES-2 (only 3.2% of incorrect branches have full support compared to 2% for gene tree placement). APPLES-2 support values are more consequential in this setting than the alternatives (Figure 7D); despite having lower accuracy for the top placement, APPLES-2 reaches higher accuracy in comparison to both pplacer and EPA-ng for the top five placements. Finally, across genes, the AUROC ranges from 0.87 to 0.74 but surprisingly does not seem to correlate with the gene tree–species tree discordance measured by the quartet score (Figure 7F).

Multi-Gene Concatenation

On the concatenation of 50 full-length genes, the ML methods result in very high support for correct and incorrect placements alike (Figure 8). APPLES-2 also over-estimates support, albeit less. Most placements of ML methods simply get 100% support, and 92% and 97% of incorrect branches have over 95% support for pplacer and EPA-NG, respectively. Even with APPLES-2, 46% of incorrect placements have at least 95% support. Thus, unlike single-gene analyses, FPR values close to 0 cannot be obtained. While the AUROC of APPLES-2 (0.659) is far better than that of pplacer (0.107) or EPA-ng (0.078), it remains far from perfect. Nevertheless, APPLES-2 support values are moderately useful. Even though pplacer attains better accuracy (81%) than APPLES-2 (77%) for the best placement, for the top five placements, the accuracy of APPLES-2 is better (86% versus 82%) (Figure 8D).
It is worth noting that despite the availability of 50 genes, no method is able to find the reference placement (i.e., ASTRAL placement) among the top seven placements for a substantial number of queries. This may point to limitations of the concatenation approach and its differences with the ASTRAL method used for obtaining the reference tree. It should also be noted that neither of the ML methods was originally designed to analyze concatenated genes.
When we examine the concatenation of fewer genes with APPLES-2 (Figure A2), having fewer genes reduces support but makes it more accurate. For example, 64% of the incorrect placements have support <80% with five genes, whereas 36% of the incorrect placements have support <80% with 50 genes. This corresponds to a reduced ability to distinguish correct from incorrect placements as the AUROC ranges from 0.813 with 10 genes to 0.668 with 50 genes It should be kept in mind that less accurate support with more genes occurs despite the placements becoming more accurate (Figure A1D); the top placement with 50 concatenated genes (77% accuracy) is more accurate than that with 10 genes (66%).

3.3. Running Time

Slow bootstrapping with 100 replicates is roughly 105–140 times slower than obtaining placement without support (Table 1). The linear-algebraic implementation dramatically speeds up the process (roughly 24× speedup on the RNASim dataset and 8–10× speedup on the WOL data). Thus, with our fast version, obtaining bootstrap support with 100 replicates is 6–21 times slower than no bootstrapping, a factor that can be further reduced by using fewer replicates. In terms of parallelism, the runtime scales close to linear for up to 8 cores (Figure A3) and continues to improve less rapidly after that.

4. Conclusions

In this paper, we developed several ways of computing statistical support for distance-based PP, as implemented in APPLES-2. Our results did not support the idea that less computationally intensive parametric methods can achieve the same accuracy as the nonparametric methods. Among the nonparametric methods, owing to the similar performance of subsampling and resampling (i.e., bootstrapping), we decided to go with the more standard bootstrapping as the default. More importantly, to reduce the computational burden of bootstrapping, we designed a linear algebraic implementation that dramatically reduced running time. With this fast implementation, the cost of 100 replicates of bootstrapping can be as little as a 6× increase in the running time.
The lower accuracy of parametric sampling may be due to the fact that we treated distances as if they were independent. An estimated distance between two sequences corresponds to observed mutations along the path that connects them on the tree. Since paths between different pairs of taxa can share many branches, they cannot be independent. This dependence is ignored in our method. Incorporating the dependence would need a mechanism to sample the entire distance vector of a query using a joint distribution. Knowing the covariance structure would require knowing the position of the query, but it may be possible to approximate the covariance using the best query placement. Such approaches can be further explored in future work.
APPLES-2 minimizes the least squares error (LSE) and outputs the LSE error for each placement. One can wonder if LSE values correlate with the support. Perhaps placements with low error have high support and vice versa, making it possible to forego support estimation altogether. While we see a clear correlation between support and LSE across all the datasets (Figure A4), the correlation is far from perfect. For example, on the RNAsim dataset, the Spearman correlation coefficient between LSE and support is −0.44, which is statistically significant ( p < 10 10 ) but not very strong. On the WOL datasets, correlations remain significant but weak, with the Spearman correlation coefficient ranging from −0.19 to −0.29, depending on the number of genes. Thus, while the use of LSE as an indicator of support seems promising, further development seems necessary in order to develop a reliable measure of support solely based on LSE.
The comparison between APPLES-2 and the ML method depended on the dataset. On the full-length single-gene data, while ML methods had slightly more accurate placements in many cases, APPLES-2 support values were more accurate than those of ML. As a result, examining several highly supported placements improved the accuracy of APPLES-2 more than that of ML methods in most cases (Figure 2D, Figure 5D, Figure 6D and Figure 7D). On the fragmentary data, however, results were more mixed as pplacer was often the most accurate method in terms of support. EPA-ng was also accurate on some datasets (SEPP) but not on others (RNASim). APPLES-2 placements had lower accuracy than ML methods, and APPLES-2 support values were also less accurate than those of ML in terms of predictive power (ROC) and calibration. Nevertheless, on the fragmentary data, APPLES-2 support values were very useful because examining the top ten placements dramatically increased the ability of the APPLES-2 to find the best placement (Figure 3D). Thus, on fragmentary data, where there is more uncertainty and APPLES-2 is inferior in terms of placement accuracy, the addition of support can be even more impactful than full-length data. Finally, on the multi-gene concatenated data, APPLES-2 was the only method with somewhat useful support values as the other methods gave close to 100% support in most cases, regardless of the correctness of placement.
Why does APPLES-2 degrade dramatically compared to ML for fragmentary data? It is possible that when there is a low signal, using more advanced models such as the GTR and inference methods such as ML is particularly beneficial. However, we offer a more subtle answer related to the varying rates and missing data. ML methods deal with missing data gracefully. In contrast, APPLES-2 simply ignores missing sites when computing distances. If these sites happen to be more or less conserved than sites that are present, the distances become biased and problematic. In particular, the (recomputed) branch lengths of the backbone tree may not fit well to the sites present in a particular query. When the branch lengths of the backbone do not quite match the distances from the query to the backbone, APPLES is known to have much lower accuracy [9]. In principle, we need to recompute the backbone branch lengths for each query, thus restricting the MSA to the sites present in the query. However, since such an approach is infeasible, finding ways to better handle the interaction between missing data and the rates-across-sites variation should be considered in future research.
Interestingly, we also saw differences among fragmentary datasets, where the ML (and especially EPA-ng) support was accurate on the SEPP datasets but not so on the RNASim dataset, and the APPLES-2 support was relatively better on RNASim than SEPP. Several differences in the datasets may cause these diverging patterns. SEPP datasets have only 500 species in the backbone as compared to 5000 for RNASim. It is possible that EPA-ng has lowered accuracy with larger input backbones, perhaps due to the various heuristics it uses to speed up placements. Moreover, the RNASim simulation [54] does not follow the GTR model assumed by both ML methods, and it is conceivable that the model misspecification contributes to the error (though it is hard to see why EPA-ng would be more impacted). The differences in the accuracy of APPLES is likely due to evolutionary rates. The RNASim dataset has maximum and pairwise hamming distances (p-distance) of 0.62 and 0.41. The SEPP M4 dataset has a similar diameter (maximum and mean p-distance: 0.60 and 0.50), with 10 times less taxon sampling, which makes it more challenging. The SEPP M2 dataset has a much bigger diameter (maximum and mean p-distance: 0.68 and 0.76); note that both average and maximum distances are close to two random sequences. Such high levels of change plus the low taxon sampling can push a distance-based method to its limit. Thus, the use of APPLES-2 and its support is safer on datasets with lower evolutionary rates or higher taxon sampling, and less so on datasets with very high rates and low taxon sampling.
We can also wonder why ML techniques, when applied to full-length sequences, performed poorly in terms of support estimation despite having higher placement accuracy. In order to achieve acceptable speed, ML methods do not perform full bootstrapping. Instead, they rely on likelihood ratio tests, which are less reliable and additionally limit how many branches are examined. Full bootstrapping for ML methods may give very accurate support but would be prohibitively costly. In contrast, owing to our formulation, bootstrapping for distance-based methods is relatively fast. In interpreting our results, it should also be kept in mind that developers of ML methods mostly had fragmentary data in mind when developing these tools, and that the methods perform well in those conditions. It must also be noted that in this study, we primarily evaluated methods under challenging conditions. For example, the reference tree for the WOL dataset is the ASTRAL tree inferred from a collection of 381 ML discordant gene trees [57]. Matching the species tree inferred under a complex procedure using a simple concatenation of 50 genes may be asking too much from the placement methods. In particular, APPLES-2 uses the simplest model possible (JC with no rate-across-sites heterogeneity correction), thus making the achieved accuracy levels impressive given the simplicity of the model.
It is also instructive to recall that as the number of concatenated genes increased, so did the support, but not for the better. More genes increased the placement accuracy but also elevated the number of positively misleading cases. Similar patterns have been observed before for concatenation with sufficiently high levels of gene tree discordance [58]. Support estimation attempts to establish the variance of an estimator, but when the estimator is inconsistent (as concatenation can be [59]), adding more data reduces the variance but does not eliminate the bias, which leads to high support for incorrect estimates. Additionally, gene tree discordance is not the only source of bias: factors such as heterotachy for ML and uneven missing data and rate heterogeneity across sites and nucleotides for APPLES-2 can cause systematic bias. The inability of all methods to find the correct placement among their top results on some datasets may be due to these biases.
Our study showed that examining more than one placement can help APPLES-2 find the correct placement. Multiple placements with support used as weights can be incorporated into many downstream applications such as the UniFrac [60] sample comparison and taxonomic profiling using methods such as TIPP [4]. While our past work has shown the promise of APPLES-2 in such analyses, especially for full-length sequences [16], we leave the exploration of incorporating support in downstream analyses to future work.

Author Contributions

Conceptualization, S.M. and M.B.; methodology, S.M., M.B., N.B.H., A.B. and M.S.B.; software, N.B.H., M.B. and A.B.; validation, N.B.H. and A.B.; formal analysis, N.B.H. and M.S.B.; investigation, all authors; resources, N.B.H. and M.B.; data curation, N.B.H., A.B. and M.B.; writing—original draft preparation, S.M., N.B.H., A.B. and M.S.B.; writing—review and editing, S.M. and M.S.B.; visualization, N.B.H. and A.B.; supervision, S.M. and M.S.B.; project administration, S.M. and M.S.B.; funding acquisition, S.M. and M.S.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Institute of Health grant number 1R35GM142725 to S.M and M.B.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Datasets used in this study are available at: https://github.com/navidh86/apples2-support-data, accessed on 1 June 2022. The code for APPLES-2 with support calculation is available at: https://github.com/balabanmetin/apples, accessed on 1 June 2022.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
MLMaximum Likelihood
JCJukes–Cantor
WOLWeb Of Life (dataset)
ROCReceiver Operating Characteristic
FPRFalse Positive Rate
AUROCArea Under Receiver Operating Characteristic
MSEMean Squared Error
LSELeast Squared Error
ECDFEmpirical Commulative Distribution Function

Appendix A. Additional Data

Additional Figures

Figure A1. Results for the WOL multi-gene dataset. We show the results obtained from the concatenation of the best 10, 25, and 50 genes. Results of four different analyses as in Figure 1 are shown here. (A) Relationship between support calculations and frequency of correct placements. Each figure shows the aggregated results on 1000 queries. (B) Empirical cumulative distribution function (ECDF) plot of the support values, showing the percentage of the correct/incorrect placements (shown in the y-axis) at or below specified placement support levels (in the x-axis). (C) ROC curves, built using a range of 0–100 support thresholds. Selected thresholds are shown on the graph. (D) We show how often the correct placement is among the top x placements (in terms of support values) for different values of x. Here, unlike our other analyses, we used the “best” subset of the “WOL-random” dataset in [16] that was built identically to the WoL-best, except that it includes a different set of 1000 backbone and 1000 query species.
Figure A1. Results for the WOL multi-gene dataset. We show the results obtained from the concatenation of the best 10, 25, and 50 genes. Results of four different analyses as in Figure 1 are shown here. (A) Relationship between support calculations and frequency of correct placements. Each figure shows the aggregated results on 1000 queries. (B) Empirical cumulative distribution function (ECDF) plot of the support values, showing the percentage of the correct/incorrect placements (shown in the y-axis) at or below specified placement support levels (in the x-axis). (C) ROC curves, built using a range of 0–100 support thresholds. Selected thresholds are shown on the graph. (D) We show how often the correct placement is among the top x placements (in terms of support values) for different values of x. Here, unlike our other analyses, we used the “best” subset of the “WOL-random” dataset in [16] that was built identically to the WoL-best, except that it includes a different set of 1000 backbone and 1000 query species.
Biology 11 01212 g0a1
Figure A2. Evaluation of the fast bootstrapping support values for the placements on the species tree, with varying numbers of genes on the WOL multi-gene dataset. Each figure shows the results obtained from the concatenation of the best 5, 10, 25, 30, 40, and 50 genes. (A) Empirical cumulative distribution function (ECDF) plot of the support values, showing the percentage of the correct/incorrect placements (shown in the y-axis) at or below specified placement support levels (in the x-axis). (B) ROC curves, built using a range of 0–100 support thresholds, showing the predictive power resulting from the concatenation of various numbers of genes. Here, the same data as those used in Figure A1 are used.
Figure A2. Evaluation of the fast bootstrapping support values for the placements on the species tree, with varying numbers of genes on the WOL multi-gene dataset. Each figure shows the results obtained from the concatenation of the best 5, 10, 25, 30, 40, and 50 genes. (A) Empirical cumulative distribution function (ECDF) plot of the support values, showing the percentage of the correct/incorrect placements (shown in the y-axis) at or below specified placement support levels (in the x-axis). (B) ROC curves, built using a range of 0–100 support thresholds, showing the predictive power resulting from the concatenation of various numbers of genes. Here, the same data as those used in Figure A1 are used.
Biology 11 01212 g0a2
Figure A3. Scaling with more cores. The y-axis shows the runtime using one thread divided by the runtime on x threads. The dashed y = x line shows the ideal scenario, where runtime decreases linearly with the number of threads.
Figure A3. Scaling with more cores. The y-axis shows the runtime using one thread divided by the runtime on x threads. The dashed y = x line shows the ideal scenario, where runtime decreases linearly with the number of threads.
Biology 11 01212 g0a3
Figure A4. Results for the RNAsim single-gene and WOL multi-gene datasets. We show the correlation between the support values and the LSE on the (A) RNAsim, (B) WOL 10 genes, (C) WOL 25 genes, and (D) WOL 50 genes datasets.
Figure A4. Results for the RNAsim single-gene and WOL multi-gene datasets. We show the correlation between the support values and the LSE on the (A) RNAsim, (B) WOL 10 genes, (C) WOL 25 genes, and (D) WOL 50 genes datasets.
Biology 11 01212 g0a4

References

  1. Janssen, S.; McDonald, D.; Gonzalez, A.; Navas-Molina, J.A.; Jiang, L.; Xu, Z.Z.; Winker, K.; Kado, D.M.; Orwoll, E.; Manary, M.; et al. Phylogenetic Placement of Exact Amplicon Sequences Improves Associations with Clinical Information. mSystems 2018, 3, 00021-18. [Google Scholar] [CrossRef] [PubMed]
  2. Matsen, F.A. Phylogenetics and the Human Microbiome. Syst. Biol. 2015, 64, e26–e41. [Google Scholar] [CrossRef] [PubMed]
  3. Matsen, F.A.; Evans, S.N. Edge Principal Components and Squash Clustering: Using the Special Structure of Phylogenetic Placement Data for Sample Comparison. PLoS ONE 2013, 8, e56859. [Google Scholar] [CrossRef]
  4. Nguyen, N.P.; Mirarab, S.; Liu, B.; Pop, M.; Warnow, T. TIPP: Taxonomic identification and phylogenetic profiling. Bioinformatics 2014, 30, 3548–3555. [Google Scholar] [CrossRef]
  5. Thompson, L.R.; Sanders, J.G.; McDonald, D.; Amir, A.; Ladau, J.; Locey, K.J.; Prill, R.J.; Tripathi, A.; Gibbons, S.M.; Ackermann, G.; et al. A communal catalogue reveals Earth’s multiscale microbial diversity. Nature 2017, 551, 457–463. [Google Scholar] [CrossRef]
  6. Asnicar, F.; Thomas, A.M.; Beghini, F.; Mengoni, C.; Manara, S.; Manghi, P.; Zhu, Q.; Bolzan, M.; Cumbo, F.; May, U.; et al. Precise phylogenetic analysis of microbial isolates and genomes from metagenomes using PhyloPhlAn 3.0. Nat. Commun. 2020, 11, 2500. [Google Scholar] [CrossRef]
  7. Darling, A.E.; Jospin, G.; Lowe, E.; Matsen, F.A.; Bik, H.M.; Eisen, J.A. PhyloSift: Phylogenetic analysis of genomes and metagenomes. PeerJ 2014, 2, e243. [Google Scholar] [CrossRef]
  8. Bohmann, K.; Mirarab, S.; Bafna, V.; Gilbert, M.T.P. Beyond DNA barcoding: The unrealized potential of genome skim data in sample identification. Mol. Ecol. 2020, 29, 2521–2534. [Google Scholar] [CrossRef]
  9. Balaban, M.; Sarmashghi, S.; Mirarab, S. APPLES: Scalable Distance-Based Phylogenetic Placement with or without Alignments. Syst. Biol. 2020, 69, 566–578. [Google Scholar] [CrossRef]
  10. Libin, P.; Eynden, E.V.; Incardona, F.; Nowé, A.; Bezenchek, A.; Sönnerborg, A.; Vandamme, A.M.; Theys, K.; Baele, G. PhyloGeoTool: Interactively exploring large phylogenies in an epidemiological context. Bioinformatics 2017, 33, 3993–3995. [Google Scholar] [CrossRef]
  11. Turakhia, Y.; Thornlow, B.; Hinrichs, A.S.; De Maio, N.; Gozashti, L.; Lanfear, R.; Haussler, D.; Corbett-Detig, R. Ultrafast Sample placement on Existing tRees (UShER) enables real-time phylogenetics for the SARS-CoV-2 pandemic. Nat. Genet. 2021, 53, 809–816. [Google Scholar] [CrossRef]
  12. Barbera, P.; Kozlov, A.M.; Czech, L.; Morel, B.; Darriba, D.; Flouri, T.; Stamatakis, A. EPA-ng: Massively Parallel Evolutionary Placement of Genetic Sequences. Syst. Biol. 2019, 68, 365–369. [Google Scholar] [CrossRef]
  13. Matsen, F.A.; Kodner, R.B.; Armbrust, E.V. pplacer: Linear time maximum-likelihood and Bayesian phylogenetic placement of sequences onto a fixed reference tree. BMC Bioinform. 2010, 11, 538. [Google Scholar] [CrossRef]
  14. Stark, M.; Berger, S.A.; Stamatakis, A.; von Mering, C. MLTreeMap—Accurate Maximum Likelihood placement of environmental DNA sequences into taxonomic and functional reference phylogenies. BMC Genom. 2010, 11, 461. [Google Scholar] [CrossRef]
  15. Wedell, E.; Cai, Y.; Warnow, T. Scalable and Accurate Phylogenetic Placement Using pplacer-XR. In Proceedings of the Algorithms for Computational Biology, Missoula, MT, USA, 7–11 June 2021; AlCoB 2021, Lecture Notes in Computer Science. Springer: Cham, Switzerland, 2021; pp. 94–105. [Google Scholar] [CrossRef]
  16. Balaban, M.; Jiang, Y.; Roush, D.; Zhu, Q.; Mirarab, S. Fast and accurate distance-based phylogenetic placement using divide and conquer. Mol. Ecol. Resour. 2022, 22, 1213–1227. [Google Scholar] [CrossRef]
  17. Balaban, M.; Mirarab, S. Phylogenetic double placement of mixed samples. Bioinformatics 2020, 36, i335–i343. [Google Scholar] [CrossRef]
  18. Linard, B.; Swenson, K.M.; Pardi, F. Rapid alignment-free phylogenetic identification of metagenomic sequences. Bioinformatics 2019, 35, 3303–3312. [Google Scholar] [CrossRef]
  19. Brown, D.; Truszkowski, J. LSHPlace: Fast phylogenetic placement using locality-sensitive hashing. In Proceedings of the Pacific Symposium On Biocomputing, Kohala Coast, HI, USA, 3–7 January 2013; pp. 310–319. [Google Scholar] [CrossRef]
  20. Jiang, Y.; Balaban, M.; Zhu, Q.; Mirarab, S. DEPP: Deep Learning Enables Extending Species Trees using Single Genes. Syst. Biol. 2022. [Google Scholar] [CrossRef]
  21. Jiang, Y.; Tabaghi, P.; Mirarab, S. Phylogenetic Placement Problem: A Hyperbolic Embedding Approach. In Proceedings of the Comparative Genomics, La Jolla, CA, USA, 20–21 May 2022; Jin, L., Durand, D., Eds.; Springer International Publishing: Cham, Switzerland, 2022; pp. 68–85. [Google Scholar] [CrossRef]
  22. Zheng, Q.; Bartow-McKenney, C.; Meisel, J.S.; Grice, E.A. HmmUFOtu: An HMM and phylogenetic placement based ultra-fast taxonomic assignment and OTU picking tool for microbiome amplicon sequencing studies. Genome Biol. 2018, 19, 82. [Google Scholar] [CrossRef]
  23. Rabiee, M.; Mirarab, S. INSTRAL: Discordance-Aware Phylogenetic Placement Using Quartet Scores. Syst. Biol. 2020, 69, 384–391. [Google Scholar] [CrossRef]
  24. Mai, U.; Mirarab, S. Completing gene trees without species trees in sub-quadratic time. Bioinformatics 2022, 38, 1532–1541. [Google Scholar] [CrossRef]
  25. McDonald, D.; Birmingham, A.; Knight, R. Context and the human microbiome. Microbiome 2015, 3, 52. [Google Scholar] [CrossRef]
  26. Pasolli, E.; Asnicar, F.; Manara, S.; Zolfo, M.; Karcher, N.; Armanini, F.; Beghini, F.; Manghi, P.; Tett, A.; Ghensi, P.; et al. Extensive Unexplored Human Microbiome Diversity Revealed by Over 150,000 Genomes from Metagenomes Spanning Age, Geography, and Lifestyle. Cell 2019, 176, 649–662. [Google Scholar] [CrossRef]
  27. Nayfach, S.; Shi, Z.J.; Seshadri, R.; Pollard, K.S.; Kyrpides, N.C. New insights from uncultivated genomes of the global human gut microbiome. Nature 2019, 568, 505–510. [Google Scholar] [CrossRef]
  28. Mirarab, S.; Nguyen, N.; Warnow, T. SEPP: SATé-Enabled Phylogenetic Placement. In Proceedings of the Pacific Symposium on Biocomputing, Waimea, HI, USA, 3–7 January 2012; World Scientific: Singapore, 2012; pp. 247–258. [Google Scholar] [CrossRef]
  29. Fitch, W.M.; Margoliash, E. Construction of Phylogenetic Trees. Science 1967, 155, 279–284. [Google Scholar] [CrossRef]
  30. Felsenstein, J. Inferring Phylogenies; Sinauer Associates: Sunderland, MA, USA, 2003. [Google Scholar]
  31. Desper, R.; Gascuel, O. Fast and Accurate Phylogeny Reconstruction Algorithms Based on the Minimum-Evolution Principle. J. Comput. Biol. 2002, 9, 687–705. [Google Scholar] [CrossRef]
  32. Erdos, P.; Steel, M.; Szekely, L.; Warnow, T. A few logs suffice to build (almost) all trees: Part II. Theor. Comput. Sci. 1999, 221, 77–118. [Google Scholar] [CrossRef]
  33. Huson, D.H.; Nettles, S.M.; Warnow, T.J. Disk-covering, a fast-converging method for phylogenetic tree reconstruction. J. Comput. Biol. 1999, 6, 369–386. [Google Scholar] [CrossRef]
  34. Warnow, T.; Moret, B.M.E.; John, K.S. Absolute convergence: True trees from short sequences. In Proceedings of the Annual ACM-SIAM Symposium on Discrete Algorithms, Washington, DC, USA, 7–9 January 2001. [Google Scholar]
  35. Roshan, U.; Moret, B.; Warnow, T.; Williams, T. Rec-I-DCM3: A fast algorithmic technique for reconstructing large phylogenetic trees. In Proceedings of the 2004 IEEE Computational Systems Bioinformatics Conference, Washington, DC, USA, 16–19 August 2004; pp. 94–105. [Google Scholar] [CrossRef]
  36. Felsenstein, J. Confidence Limits on Phylogenies: An Approach Using the Bootstrap. Evolution 1985, 39, 783–791. [Google Scholar] [CrossRef]
  37. Efron, B. Bootstrap Methods: Another Look at the Jackknife. Ann. Stat. 1979, 7, 1–26. [Google Scholar] [CrossRef]
  38. Singh, K. On the asymptotic accuracy of Efron’s bootstrap. Ann. Stat. 1981, 9, 1187–1195. [Google Scholar] [CrossRef]
  39. Susko, E. Bootstrap support is not first-order correct. Syst. Biol. 2009, 58, 211–223. [Google Scholar] [CrossRef] [PubMed]
  40. Hillis, D.M.; Bull, J.J. An Empirical Test of Bootstrapping as a Method for Assessing Confidence in Phylogenetic Analysis. Syst. Biol. 1993, 42, 182–192. [Google Scholar] [CrossRef]
  41. Felsenstein, J.; Kishino, H. Is there something wrong with the bootstrap on phylogenies? A reply to Hillis and Bull. Syst. Biol. 1993, 42, 193–200. [Google Scholar] [CrossRef]
  42. Kishino, H.; Hasegawa, M. Evaluation of the maximum likelihood estimate of the evolutionary tree topologies from DNA sequence data, and the branching order in hominoidea. J. Mol. Evol. 1989, 29, 170–179. [Google Scholar] [CrossRef]
  43. Anisimova, M.; Gascuel, O.; Sullivan, J. Approximate Likelihood-Ratio Test for Branches: A Fast, Accurate, and Powerful Alternative. Syst. Biol. 2006, 55, 539–552. [Google Scholar] [CrossRef]
  44. Sayyari, E.; Mirarab, S. Fast Coalescent-Based Computation of Local Branch Support from Quartet Frequencies. Mol. Biol. Evol. 2016, 33, 1654–1668. [Google Scholar] [CrossRef]
  45. Guénoche, A.; Garreta, H. Can We Have Confidence in a Tree Representation? In Proceedings of the Computational Biology, Montpellier, France, 3–5 May 2000; Gascuel, O., Sagot, M.F., Eds.; Springer: Berlin/Heidelberg, Germany, 2001; pp. 45–56. [Google Scholar]
  46. Cox, D.R. Further Results on Tests of Separate Families of Hypotheses. J. R. Stat. Soc. Ser. B Methodol. 1962, 24, 406–424. [Google Scholar] [CrossRef]
  47. Goldman, N.; Anderson, J.P.; Rodrigo, A.G. Likelihood-based tests of topologies in phylogenetics. Syst. Biol. 2000, 49, 652–670. [Google Scholar] [CrossRef]
  48. Rachtman, E.; Sarmashghi, S.; Bafna, V.; Mirarab, S. Uncertainty Quantification Using Subsampling for Assembly-Free Estimates of Genomic Distance and Phylogenetic Relationships. SSRN Electron. J. 2021. [Google Scholar] [CrossRef]
  49. Politis, D.N.; Romano, J.P.; Wolf, M. Subsampling; Springer Science & Business Media: Berlin/Heidelberg, Germany, 1999. [Google Scholar]
  50. Jukes, T.H.; Cantor, C.R. Evolution of protein molecules. Mamm. Protein Metab. 1969, 3, 21–132. [Google Scholar] [CrossRef]
  51. Sonnhammer, E.L.; Hollich, V. Scoredist: A simple and robust protein sequence distance estimator. BMC Bioinform. 2005, 6, 108. [Google Scholar] [CrossRef]
  52. Henikoff, S.; Henikoff, J.G. Amino acid substitution matrices from protein blocks. Proc. Natl. Acad. Sci. USA 1992, 89, 10915–10919. [Google Scholar] [CrossRef]
  53. Price, M.N.; Dehal, P.S.; Arkin, A.P. FastTree-2 – Approximately Maximum-Likelihood Trees for Large Alignments. PLoS ONE 2010, 5, e9490. [Google Scholar] [CrossRef]
  54. Guo, S.; Wang, L.S.; Kim, J. Large-scale simulation of RNA macroevolution by an energy-dependent fitness model. arXiv 2009, arXiv:0912.2326. [Google Scholar]
  55. Zhu, Q.; Mai, U.; Pfeiffer, W.; Janssen, S.; Asnicar, F.; Sanders, J.G.; Belda-Ferre, P.; Al-Ghalith, G.A.; Kopylova, E.; McDonald, D.; et al. WoL: Reference Phylogeny for Microbes (Data Pre-Release). 2019. Available online: https://biocore.github.io/wol/ (accessed on 1 June 2022).
  56. Zhang, C.; Rabiee, M.; Sayyari, E.; Mirarab, S. ASTRAL-III: Polynomial time species tree reconstruction from partially resolved gene trees. BMC Bioinform. 2018, 19, 153. [Google Scholar] [CrossRef]
  57. Zhu, Q.; Mai, U.; Pfeiffer, W.; Janssen, S.; Asnicar, F.; Sanders, J.G.; Belda-Ferre, P.; Al-Ghalith, G.A.; Kopylova, E.; McDonald, D.; et al. Phylogenomics of 10,575 genomes reveals evolutionary proximity between domains Bacteria and Archaea. Nat. Commun. 2019, 10, 5477. [Google Scholar] [CrossRef]
  58. Kubatko, L.S.; Degnan, J.H. Inconsistency of phylogenetic estimates from concatenated data under coalescence. Syst. Biol. 2007, 56, 17–24. [Google Scholar] [CrossRef]
  59. Roch, S.; Steel, M. Likelihood-based tree reconstruction on a concatenation of aligned sequence data sets can be statistically inconsistent. Theor. Popul. Biol. 2015, 100, 56–62. [Google Scholar] [CrossRef]
  60. Lozupone, C.; Knight, R. UniFrac: A New Phylogenetic Method for Comparing Microbial Communities UniFrac: A New Phylogenetic Method for Comparing Microbial Communities. Appl. Environ. Microbiol. 2005, 71, 8228–8235. [Google Scholar] [CrossRef]
Figure 1. Results for the RNAsim single-gene dataset. (A) Support versus the percentage of correctly placed queries. Support values are binned at left-inclusive intervals on the x-axis; the last bin only includes 100%. The unity line shows fully calibrated support. Dot sizes are proportional to the number of queries in each bin. The MSE computed with respect to the unity line divided between support ≤ 70 % and > 70 % are as follows: low support—0.21 for Poisson, 0.17 for Binomial, 0.018 for Fast BS, 0.007 for slow BS, and 0.006 for subsampling; high support—0.003 for Poisson, 0.004 for Binomial, 0.001 for Fast BS, 0.0008 for slow BS, and 0.005 for subsampling. (B) Empirical cumulative distribution function (ECDF) of the support for correct/incorrect placements. (C) Receiver operating characteristic (ROC) curves using a range of 0–100 of support thresholds. Selected thresholds are marked. (D) The frequency of the correct placement being among the top 1 x 10 highest support placements.
Figure 1. Results for the RNAsim single-gene dataset. (A) Support versus the percentage of correctly placed queries. Support values are binned at left-inclusive intervals on the x-axis; the last bin only includes 100%. The unity line shows fully calibrated support. Dot sizes are proportional to the number of queries in each bin. The MSE computed with respect to the unity line divided between support ≤ 70 % and > 70 % are as follows: low support—0.21 for Poisson, 0.17 for Binomial, 0.018 for Fast BS, 0.007 for slow BS, and 0.006 for subsampling; high support—0.003 for Poisson, 0.004 for Binomial, 0.001 for Fast BS, 0.0008 for slow BS, and 0.005 for subsampling. (B) Empirical cumulative distribution function (ECDF) of the support for correct/incorrect placements. (C) Receiver operating characteristic (ROC) curves using a range of 0–100 of support thresholds. Selected thresholds are marked. (D) The frequency of the correct placement being among the top 1 x 10 highest support placements.
Biology 11 01212 g001
Figure 2. Comparison to EPA-ng and pplacer on the full-length RNASim dataset. Settings are similar to Figure 1. (A) Support vs. Accuracy, (B) ECDF, (C) ROC curves, (D) Frequency of correct placements within the top 1 ≤ x ≤ 10 highest support placements. MSE for support ≤ 70 % : 0.02 for APPLES-2, 0.013 for pplacer, and 0.1 for EPA-ng; MSE for support > 70 % : 0.001 for APPLES-2, 0.004 for pplacer, and 0.02 for EPA-ng.
Figure 2. Comparison to EPA-ng and pplacer on the full-length RNASim dataset. Settings are similar to Figure 1. (A) Support vs. Accuracy, (B) ECDF, (C) ROC curves, (D) Frequency of correct placements within the top 1 ≤ x ≤ 10 highest support placements. MSE for support ≤ 70 % : 0.02 for APPLES-2, 0.013 for pplacer, and 0.1 for EPA-ng; MSE for support > 70 % : 0.001 for APPLES-2, 0.004 for pplacer, and 0.02 for EPA-ng.
Biology 11 01212 g002
Figure 3. Results for the RNASim simulated fragmentary 200 bp dataset. (A) Support vs. Accuracy, (B) ECDF, (C) ROC curves, (D) Frequency of correct placements within the top 1 ≤ x ≤ 10 highest support placements. MSE among support ≤ 70 % : 0.01 for APPLES-2, 0.009 for pplacer, and 0.09 for EPA-ng; among support > 70 % : 0.02 for APPLES-2, 0.002 for pplacer, and 0.37 for EPA-ng.
Figure 3. Results for the RNASim simulated fragmentary 200 bp dataset. (A) Support vs. Accuracy, (B) ECDF, (C) ROC curves, (D) Frequency of correct placements within the top 1 ≤ x ≤ 10 highest support placements. MSE among support ≤ 70 % : 0.01 for APPLES-2, 0.009 for pplacer, and 0.09 for EPA-ng; among support > 70 % : 0.02 for APPLES-2, 0.002 for pplacer, and 0.37 for EPA-ng.
Biology 11 01212 g003
Figure 4. Results for the fragmentary 1000M4 and 1000M2 datasets. We compare support values obtained by pplacer and EPA-ng with the values obtained by APPLES-2 using fast bootstrapping. (A) Support vs. Accuracy, (B) ECDF, (C) ROC curves.
Figure 4. Results for the fragmentary 1000M4 and 1000M2 datasets. We compare support values obtained by pplacer and EPA-ng with the values obtained by APPLES-2 using fast bootstrapping. (A) Support vs. Accuracy, (B) ECDF, (C) ROC curves.
Biology 11 01212 g004
Figure 5. Results for the WOL dataset’s placement of each gene on its corresponding gene tree. In (AD), we treat each gene as a replicate and show the combined results of the 50 genes. We also analyze each gene individually. The settings for the subfigures (AD) are similar to Figure 1. (E) ROC curve shown separately for each gene. (F) AUROC for each gene versus the average branch length in the corresponding gene tree.
Figure 5. Results for the WOL dataset’s placement of each gene on its corresponding gene tree. In (AD), we treat each gene as a replicate and show the combined results of the 50 genes. We also analyze each gene individually. The settings for the subfigures (AD) are similar to Figure 1. (E) ROC curve shown separately for each gene. (F) AUROC for each gene versus the average branch length in the corresponding gene tree.
Biology 11 01212 g005
Figure 6. Results for the WOL AA dataset’s placement of each gene on its corresponding gene tree. In (AD), we treat each gene as a replicate and show the combined results of the 50 genes. The settings for the subfigures (AD) are similar to Figure 1.We also analyze each gene individually. (E) ROC curve for each gene shown separately. (F) AUROC for each gene versus the average branch length in the corresponding gene tree.
Figure 6. Results for the WOL AA dataset’s placement of each gene on its corresponding gene tree. In (AD), we treat each gene as a replicate and show the combined results of the 50 genes. The settings for the subfigures (AD) are similar to Figure 1.We also analyze each gene individually. (E) ROC curve for each gene shown separately. (F) AUROC for each gene versus the average branch length in the corresponding gene tree.
Biology 11 01212 g006
Figure 7. Results for the WOL dataset’s placement of each of the 50 best genes on the species tree. (A) Support vs. Accuracy, (B) ECDF, (C) ROC curves. (D) Frequency of correct placements within the top 1 x 10 highest support placements. (E) Individual ROC curves for all 50 genes, along with the ROC curve of the concatenation of 50 genes. (F) Quartet distance of the gene trees to the species tree versus AUROC. We colored the data points with a color gradient that varies continuously from light blue to dark blue, which corresponds to increasing gene lengths.
Figure 7. Results for the WOL dataset’s placement of each of the 50 best genes on the species tree. (A) Support vs. Accuracy, (B) ECDF, (C) ROC curves. (D) Frequency of correct placements within the top 1 x 10 highest support placements. (E) Individual ROC curves for all 50 genes, along with the ROC curve of the concatenation of 50 genes. (F) Quartet distance of the gene trees to the species tree versus AUROC. We colored the data points with a color gradient that varies continuously from light blue to dark blue, which corresponds to increasing gene lengths.
Biology 11 01212 g007
Figure 8. Results for the placement on the species tree using the concatenation of the 50 best genes of the WOL multi-gene dataset. We compared the support values obtained by pplacer and EPA-ng with those obtained by APPLES-2 using fast bootstrapping. (A) Support vs. Accuracy, (B) ECDF, (C) ROC curves, (D) Frequency of correct placements within the top 1 x 10 highest support placements.
Figure 8. Results for the placement on the species tree using the concatenation of the 50 best genes of the WOL multi-gene dataset. We compared the support values obtained by pplacer and EPA-ng with those obtained by APPLES-2 using fast bootstrapping. (A) Support vs. Accuracy, (B) ECDF, (C) ROC curves, (D) Frequency of correct placements within the top 1 x 10 highest support placements.
Biology 11 01212 g008
Table 1. Time taken (in seconds 1) to place 200 queries (RNASIM) and 1000 queries (WOL) and to find their support values from 100 replicates using different support estimation methods.
Table 1. Time taken (in seconds 1) to place 200 queries (RNASIM) and 1000 queries (WOL) and to find their support values from 100 replicates using different support estimation methods.
DatasetGenesPlacementFast BSSlow BSPoisson 2Binomial 2PplacerEPA-ng
RNASIM12.6417.83420.15452.00515.0043.906.00
Fragmentary (RNASIM)12.4018.80---25.855.00
WOL1023.60319.783289.26899.52967.89--
WOL2563.00982.278851.931641.771765.17--
WOL50149.012470.0719,091.112879.442959.70--
WOL (Nucleotide)12.3048.77---50.771.23
WOL (AA)12.87-301.65--45.300.83
1 All running times are wall time on a Linux machine with 64 GB RAM and a i7-10700K 3.80 GHz Octa-core processor with 16 threads. 2 The running time of parametric methods was not optimized here because of their lower accuracy.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Hasan, N.B.; Balaban, M.; Biswas, A.; Bayzid, M.S.; Mirarab, S. Distance-Based Phylogenetic Placement with Statistical Support. Biology 2022, 11, 1212. https://doi.org/10.3390/biology11081212

AMA Style

Hasan NB, Balaban M, Biswas A, Bayzid MS, Mirarab S. Distance-Based Phylogenetic Placement with Statistical Support. Biology. 2022; 11(8):1212. https://doi.org/10.3390/biology11081212

Chicago/Turabian Style

Hasan, Navid Bin, Metin Balaban, Avijit Biswas, Md. Shamsuzzoha Bayzid, and Siavash Mirarab. 2022. "Distance-Based Phylogenetic Placement with Statistical Support" Biology 11, no. 8: 1212. https://doi.org/10.3390/biology11081212

APA Style

Hasan, N. B., Balaban, M., Biswas, A., Bayzid, M. S., & Mirarab, S. (2022). Distance-Based Phylogenetic Placement with Statistical Support. Biology, 11(8), 1212. https://doi.org/10.3390/biology11081212

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop