<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Statistically Consistent Rooting of Species Trees Under the Multispecies Coalescent Model</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>04/03/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10420014</idno>
					<idno type="doi">10.1007/978-3-031-29119-7_3</idno>
					<title level='j'>Research in Computational Molecular Biology. RECOMB 2023. Lecture Notes in Computer Science. Springer.</title>
<idno></idno>
<biblScope unit="volume">13976</biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Y. Tabatabaee</author><author>S. Roch</author><author>T. Warnow</author><author>H. Tang</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Rooted species trees are used in several downstream applications of phylogenetics. Most species tree estimation methods produce unrooted trees and additional methods are then used to root these unrooted trees. Recently, Quintet Rooting (QR) (Tabatabaee et al., ISMB and Bioinformatics 2022), a polynomial-time method for rooting an unrooted species tree given unrooted gene trees under the multispecies coalescent, was introduced. QR, which is based on a proof of identifiability of rooted 5-taxon trees in the presence of incomplete lineage sorting, was shown to have good accuracy, improving over other methods for rooting species trees when incomplete lineage sorting was the only cause of gene tree discordance, except when gene tree estimation error was very high. However, the statistical consistency of QR was left as an open question. Here, we present QR-STAR, a polynomial-time variant of QR that has an additional step for determining the rooted shape of each quintet tree. We prove that QR-STAR is statistically consistent under the multispecies coalescent model, and our simulation study shows that QR-STAR matches or improves on the accuracy of QR. QR-STAR is available in open source form at https://github.com/ytabatabaee/Quintet-Rooting.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Inferring rooted species trees is important for many downstream applications of phylogenetics, such as comparative genomics <ref type="bibr">[7,</ref><ref type="bibr">11]</ref> and dating <ref type="bibr">[25]</ref>. These estimations use different loci from across the genomes of the selected species, and so are referred to as multi-locus analyses. If rooted gene trees can be accurately inferred, then the rooted species tree can be estimated from them <ref type="bibr">[14]</ref>; however, this is not a reliable assumption <ref type="bibr">[29]</ref>. Hence, the standard approach is to first The full paper is available at <ref type="url">https://doi.org/10.1101/2022.10.26.513897</ref> and includes the Supplementary Materials.</p><p>estimate an unrooted species tree using multi-locus datasets, and then root that estimated tree.</p><p>The estimation of the unrooted species tree is challenged by biological processes, such as incomplete lineage sorting (ILS) or gene duplication and loss (GDL), that can result in different parts of the genome having different evolutionary trees. When ILS or GDL occur, statistically consistent estimation of the unrooted species tree requires techniques that take the source of heterogeneity into consideration <ref type="bibr">[15,</ref><ref type="bibr">22]</ref>. The case of ILS, as modeled by the multispecies coalescent (MSC) model <ref type="bibr">[10]</ref>, is the most well-studied, and there are several methods for estimating unrooted species trees that have been proven statistically consistent under the MSC (see <ref type="bibr">[22]</ref> for a survey of such methods).</p><p>The general problem of rooting a species tree (or indeed even a gene tree) is of independent interest, but presents many challenges. A common approach is the use of an outgroup taxon (i.e., the inclusion of a species that is outside the smallest clade containing the remaining species), so that the resultant tree is rooted on the edge leading to the outgroup <ref type="bibr">[16]</ref>. However, outgroup selection has its own difficulties: if the outgroup is too distant, then it may be attached fairly randomly to the tree containing the remaining species, and if it is too close, it may even be an ingroup taxon <ref type="bibr">[5,</ref><ref type="bibr">6,</ref><ref type="bibr">9,</ref><ref type="bibr">13]</ref>. Other approaches use branch lengths estimated on the tree to find the root based on specific optimization criteria; however, these approaches tend to degrade in accuracy unless the strict molecular clock holds (which assumes that all sites along the genome evolve under a constant rate) <ref type="bibr">[8,</ref><ref type="bibr">18,</ref><ref type="bibr">31]</ref>.</p><p>Quintet Rooting (QR) <ref type="bibr">[30]</ref> is a recently introduced method that is designed to root a given species tree using the unrooted gene tree topologies, under the assumption that the gene trees can differ from the species tree due to ILS. QR is based on mathematical theory established by Allman, Degnan, and Rhodes <ref type="bibr">[2]</ref>, which showed that the rooted species tree topology is identifiable from the unrooted gene tree topologies whenever the number of species is at least five. In <ref type="bibr">[30]</ref>, QR was shown to provide good accuracy for rooting both estimated and true species trees in the presence of ILS, compared to alternative methods.</p><p>However, QR was not proven to be statistically consistent for locating the root. Thus, we do not have a proof that the root location selected by QR, when given the true species tree topology, will converge to the correct location as the number of gene trees in the input increases. Although much attention has been paid to establishing statistical consistency for unrooted species tree estimation methods and many methods, such as ASTRAL <ref type="bibr">[19]</ref>, SVDQuartets <ref type="bibr">[32]</ref> and BUCKy <ref type="bibr">[12]</ref>, have been proven to be statistically consistent estimators of the unrooted species tree topology under the MSC, to the best of our knowledge, no prior study has addressed the statistical consistency properties of methods for rooting species trees.</p><p>In this paper, we argue that QR is not guaranteed to be statistically consistent under the MSC, but we also present a modification to QR, which we call QR-STAR, that we prove statistically consistent. Moreover, QR-STAR, like QR, runs in polynomial time. We also provide results of a simulation study comparing QR to QR-STAR. Due to space limitations, most of the proofs and results from the simulation study are presented in the full version of the paper available at <ref type="url">https://doi.org/10.1101/2022.10.26.513897</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Background</head><p>We present the theory from <ref type="bibr">[2]</ref> first, which establishes identifiability of the rooted species tree from unrooted quintet trees, and then we describe Quintet Rooting (QR), our earlier method for rooting species trees. Together these form the basis for deriving our new method, QR-STAR, which we present in the next section.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Allman, Degnan, and Rhodes (ADR) Theory</head><p>Allman, Degnan, and Rhodes (ADR) <ref type="bibr">[2]</ref> established that the unrooted topology of the species tree is identifiable from four-leaf unrooted gene trees under the MSC, a result that is well known and used in several "quartet-based" methods for estimating species trees under the MSC <ref type="bibr">[12,</ref><ref type="bibr">17,</ref><ref type="bibr">19,</ref><ref type="bibr">24]</ref>. ADR also proved that the rooted species tree topology is identifiable from unrooted five-leaf gene tree topologies; this result is much less well known, but was recently used in the development of QR for rooting species trees.</p><p>ADR have described the probability distribution of unrooted gene tree topologies under each 5-taxon MSC model species tree. On a given set of five taxa, there exist 105 different rooted binary trees, labeled with R 1 , . . . , R 105<ref type="foot">foot_0</ref> , that can be categorized into three groups based on their (unlabeled) rooted shapes: caterpillar, balanced and pseudo-caterpillar <ref type="bibr">[27]</ref>. An example of a tree from each category is shown in Fig. <ref type="figure">1</ref>. Each 5-taxon model species tree defines a specific probability distribution over the 15 different unrooted gene tree topologies on the same leafset, shown with T 1 , . . . , T 15 . Theorem 9 in <ref type="bibr">[2]</ref> states that this distribution uniquely determines the rooted tree topology and its internal branch lengths for trees with at least five taxa.</p><p>To prove this identifiability result, the ADR theory specifies a set of linear invariants (i.e., equalities) and inequalities that must hold between the probabilities of unrooted 5-taxon gene trees, for any choice of the parameters of the model species tree. These linear invariants and inequalities define a partial order on the probabilities of the topologies of the different 5-taxon unrooted gene trees. In other words, two gene tree probabilities u i = P(T i ) and u j = P(T j ) can have one of four possible relationships: u i &gt; u j , u j &gt; u i , u i = u j , or u i and u j are not comparable. The invariants and inequalities found by ADR define, for each rooted 5-taxon model tree topology, a partial order on the probabilities of the 15 unrooted 5-leaf gene trees; importantly, the partial order depends only on the "rooted shape" of the 5-taxon model species trees (i.e., caterpillar, balanced and pseudo-caterpillar). Thus, the topology of any 5-leaf rooted binary species tree is uniquely determined by the partial order, and so can be determined from the true distribution on unrooted 5-leaf gene trees (i.e., it is identifiable, as established by ADR).</p><p>Figure <ref type="figure">1</ref> shows examples of these partial orders with a Hasse diagram for a particular leaf labeling of trees from each rooted shape. Note that some probabilities are members of the same set (e.g., for R 1 , set c 4 contains both u 4 and u 13 , indicating that u 4 = u 13 ), and so we refer to the sets c i as equivalence classes on these probabilities. Furthermore, we will denote the set of equivalence classes associated with a 5-taxon rooted tree R with C R . As can be seen in Fig. <ref type="figure">1</ref>, the number of equivalence classes depends on the shape of the rooted species tree, with caterpillar, balanced and pseudo-caterpillar trees having 7, 5 and 5 equivalence classes, respectively.</p><p>Each directed edge between two equivalence classes in these Hasse diagrams defines an inequality, so that all gene tree probabilities in class c a at the source of an edge are greater than all gene tree probabilities in class c b at the target, and we denote this by c a &gt; c b . The exact values of the unrooted gene tree probabilities depend on the internal branch lengths of the model tree, and ADR provide a set of formulas that relate the model tree parameters to the probability distribution of the unrooted gene trees in Appendix B of <ref type="bibr">[2]</ref>, which will be used in our proofs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Quintet Rooting</head><p>The input to QR is an unrooted species tree T with n leaves and a set G of k single-copy unrooted gene trees where the gene trees draw their leaves from the leafset of T , denoted by L(T ). Given this input, QR searches over all possible rootings of T and returns a tree most consistent with the distribution of quintets (i.e., 5-taxon trees) in the input gene trees.</p><p>QR approaches this problem by selecting a set Q of quintets of taxa from L(T ) (called the "quintet sampling" step; refer to Supplementary Materials Sec. A for details), and scoring all rooted versions of T based on their induced trees on these quintets. The subtree T |q , T restricted to taxa in quintet set q, can be rooted on any of its seven edges. In a preprocessing step, QR computes a score for each of these seven different rootings for all trees induced on the quintets in set Q, based on a cost function. This results in 7 &#215; |Q| computations, and therefore the preprocessing step takes O(k(|Q| + n)). Next, for every rooted version of T , QR sums up the costs of all its induced rooted trees on quintets in Q using the scores computed in the preprocessing step, and returns the rooting with the minimum overall cost. Since T can be rooted on any of its 2n -3 edges, the scoring step takes O(n + |Q|) time. Therefore, the overall runtime of QR when using an O(n) sampling of quintets is O(nk). Figure <ref type="figure">2</ref> shows the pipeline of QR and its individual steps.</p><p>Thus, QR provides an exact solution to the optimization problem with the following input and output:</p><p>-Input: An unrooted tree topology T , a set of k unrooted gene tree topologies G = {g 1 , g 2 , . . . , g k }, a set Q containing quintets of taxa from leafset L(T ) and a cost function Cost(r, u). -Output: Rooted tree R with topology T such that q&#8712;Q Cost(R| q , &#251;q ) is minimized, where &#251;q is the distribution of unrooted gene tree quintets in</p><p>Cost Function. The cost function Cost(R| q , &#251;q ) measures the fitness of the rooted quintet tree R| q with the distribution of the unrooted gene trees restricted to q (i.e., &#251;q ), according to the linear invariants and inequalities derived from the ADR theory. In particular, this cost function is designed to penalize a rooted tree R| q if the estimated quintet distribution &#251;q violates some of the inequalities or invariants in its partial order. To this end, a penalty term was considered for each invariant and inequality in the partial order of a 5-taxon rooted tree that is violated in a quintet distribution. The cost function was defined based on a linear combination of these penalty terms, and had the following form, where r is a 5-taxon rooted tree and &#251; is an estimated quintet distribution:</p><p>The normalization factors 1 |c| and 1 |c | were used to reduce a topological bias that arose from differences in the sizes of the equivalence classes for each tree shape.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">QR-STAR</head><p>QR-STAR is an extension to QR that has an additional step for determining the rooted shape (i.e., the rooted topology without the leaf labels) of a quintet tree, as well as an associated penalty term in its cost function. This penalty term compares the rooted shape of the 5-taxon tree, denoted by S(r), with the rooted shape inferred by QR-STAR from the given quintet distribution, denoted by &#348;(&#251;). The motivation for this additional preprocessing step is that, as we argue in Supplementary Materials Sec. C, the cost function of QR does not guarantee statistical consistency. The cost function of QR-STAR takes the following general form Each of the 105 rooted binary trees on a given set of 5 leaves have a unique set of inequalities and invariants that can be derived from the ADR theory. The cost function in Eq. 2 considers a penalty term for these inequalities and invariants as well as the shape of the tree, so that Cost * (r, &#251;) is minimized for a rooted 5-taxon tree r that best describes the given estimated quintet distribution.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Determining the Rooted Shape</head><p>Model 5-taxon species trees with different rooted shapes (i.e., caterpillar, balanced, pseudo-caterpillar) define equivalence classes with different class sizes on the unrooted gene tree probability distribution. These class sizes can be used to determine the unlabeled shape of a rooted tree, when given the true gene tree probability distribution. For example, the size of the equivalence class with the smallest gene tree probabilities is 8 for the pseudo-caterpillar trees and 6 for balanced or caterpillar trees. Therefore, the size of the equivalence class corresponding to the minimal element in the partial order can differentiate a pseudo-caterpillar tree from other tree shapes. Moreover, both caterpillar and Fig. <ref type="figure">2</ref>. Pipeline of QR and QR-STAR. The input is an unrooted species tree T and set of unrooted gene trees G on the same leafset. a) The sampling step selects a set Q of quintets from the leafset of T (shown is the linear encoding sampling). b) An additional step in QR-STAR that determines the rooted shape for each selected quintet. c) The preprocessing step computes a cost for each of the seven possible rootings of each selected quintet. d) The scoring step computes a score for each rooted tree in the search space based on the costs computed in the preprocessing step, and returns a rooting of T with minimum score.</p><p>balanced trees have a unique class with the second smallest probability, which is of size 2 for caterpillar trees and 4 for balanced trees and this can be used to differentiate a caterpillar tree from a balanced tree. This approach is used in Theorem 9 in <ref type="bibr">[2]</ref> for establishing the identifiability of rooted 5-taxon trees from unrooted gene trees.</p><p>However, given an estimated gene tree distribution, it is likely that none of the invariants derived from the ADR theory exactly hold, and so the class sizes cannot be directly determined and the approach above cannot be used as is to infer the shape of a rooted quintet. Here we propose a simple modification for determining the rooted shape of a tree from the estimated distribution of unrooted gene trees, by looking for significant gaps between quintet gene tree probabilities.</p><p>Let T be the unrooted species tree with n &#8805; 5 leaves given to QR-STAR and q be a quintet of taxa from L(T ). Let &#251; be the quintet distribution estimated from input gene trees induced on taxa in set q. QR-STAR first sorts &#251; in ascending</p><p>where k is the number of input gene trees and |Q| is the size of the set of sampled quintets in QR-STAR (this depends on the number n of taxa and is assumed fixed), and note that lim k&#8594;&#8734; A(k) = 0. The first step of QR-STAR computes an estimate of the rooted shape of a quintet q, denoted by &#348;(&#251;) in Eq. 2, as follows:</p><p>-estimate the rooted shape &#348;(&#251;) as pseudo-caterpillar if &#251;&#963;7 -&#251;&#963;6 &lt; A(k); -estimate the rooted shape &#348;(&#251;) as balanced if &#251;&#963;7 -&#251;&#963;6 &#8805; A(k) and &#251;&#963;9 -&#251;&#963;8 &lt; A(k); -estimate the rooted shape &#348;(&#251;) as caterpillar if &#251;&#963;7 -&#251;&#963;6 &#8805; A(k) and &#251;&#963;9 -&#251;&#963;8 &#8805; A(k).</p><p>The runtime of QR-STAR is the same as QR, as determining the topological shape for each quintet is done in constant time, so that the overall runtime remains O(nk) when a linear sampling of quintets is used.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Theoretical Results</head><p>In this section, we provide the main theoretical results, starting with a series of lemmas and theorems that will be used in the proof of statistical consistency of QR-STAR in Theorem 2. Throughout this paper, we assume that discordance between species trees and gene trees is solely due to ILS. In establishing statistical consistency, we assume that input gene trees are true gene trees and, thus, have no gene tree estimation error. If not otherwise specified, all trees are assumed to be fully resolved (i.e., binary). Due to space constraints, the proofs are provided in Supplementary Materials Section B. We begin with some definitions and key observations. Definition 1 (Path length parameter). Let R be an MSC model species tree. Let f (R) be the length of the shortest internal branch of R and g(R) be the length of the longest internal path (i.e., a path formed from only the internal branches) of R. We define the path length parameter of R as</p><p>Note that h(R) &#8712; (0, 1  18 ) since exp(-x) &#8712; (0, 1) for all x &gt; 0 and the branch lengths have positive values. The formula for Eq. 3 is derived from the proof of Lemma 2 in Supplementary Materials Sec. B. Lemma 1. Let R be an MSC model species tree with n &#8805; 5 leaves and q be an arbitrary set of 5 leaves from L(R). Then h(R| q ) &#8805; h(R) where R| q is the rooted tree R restricted to taxa in set q. Lemma 2. Let R be an MSC model species tree with 5 leaves and internal branch lengths x, y, and z. Let u be the probability distribution that R defines on the unrooted 5-taxon gene tree topologies. If &#251; is an estimate of u such that given &gt; 0, we have |&#251; iu i | &lt; for all 1 &#8804; i &#8804; 15, then the following inequality holds:</p><p>Definition 2. For a 5-taxon rooted tree R, we define I R as the set of ordered pairs (i, j), 1 &#8804; i = j &#8804; 15, corresponding to inequalities in the form u i &gt; u j defined according to the partial order of R. The inequalities that are a result of transitivity (i.e. u i &gt; u j and u j &gt; u k implies u i &gt; u k ) are not included in I R .</p><p>Definition 3. Let V (R, R ) be the set of violated inequalities of two rooted 5taxon trees R and R , i.e., all pairs {i, j} such that (i, j) &#8712; I R and (j, i) &#8712; I R .</p><p>Figure <ref type="figure">3a</ref> shows an example of V (R, R ) computed for caterpillar trees and Fig. <ref type="figure">3b</ref> is a heatmap showing the function |V (R, R )| computed for the seven possible rootings of an unrooted quintet tree. The set V (R, R ) can be easily computed from I R and I R for all pairs of rooted 5-taxon trees, and I R is derived from the ADR theory for all 105 5-taxon rooted trees in the Supplementary Materials, Sec. S2 in <ref type="bibr">[30]</ref>. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Statistical Consistency</head><p>In this section, we establish statistical consistency for QR-STAR under the MSC and provide the sufficient condition for a set of sampled quintets to lead to consistency. That is, we prove that as the number of input true gene trees increases, the probability that QR-STAR and its variants correctly root the given unrooted species tree converges to 1. We first prove statistical consistency for QR-STAR when the model tree has only five taxa in Theorem 1 and then extend the proofs to trees with arbitrary numbers of taxa in Theorem 2. The main idea of the proof of consistency for 5-taxon trees is that we show as the number of input gene trees increases, the cost of the true rooted tree becomes arbitrarily close to zero, but the cost of any other rooted tree is bounded away from zero, where the bound depends on the path length parameter of the model tree, h(R).</p><p>Lemma 4. Let R be an MSC model species tree with n &#8805; 5 leaves and Q be a set of quintets of taxa from L(R). Given &#948; &gt; 0 and k &gt; 0 unrooted gene tree topologies, the following inequality holds, where</p><p>Setting &#948; = 1 k in Eq. 5, we get A(k) = 2 k ln(30|Q|k), which is the bound that is used for determining the rooted shape of each quintet in the first step of QR-STAR as well as the proofs of statistical consistency. When R has only five taxa, A(k) becomes 2 k ln(30k), as Q can only contain one quintet.</p><p>Lemma 5 (Correct determination of rooted shape). Let R be a 5-taxon model species tree and u be the probability distribution that it defines on the unrooted 5-taxon gene tree topologies. There is an integer k &gt; 0 such that if we are given at least k unrooted gene trees drawn i.i.d. from the distribution u, the first step of QR-STAR will correctly determine the rooted shape of R with probability at least 1 -1 k . Lemma 6 (Upper bound on the cost of the model tree). Let R be a 5-taxon model species tree and u be the probability distribution that it defines on the unrooted 5-taxon gene tree topologies. There is an integer k &gt; 0 such that if we are given at least k unrooted gene trees drawn i.i.d. from distribution u, then Cost * (R, &#251;) is less than 31&#945; max A(k) with probability at least 1 -1 k . Theorem 1 (Statistical Consistency of QR-STAR for 5-taxon trees). Let R be a 5-taxon model species tree and u be the distribution that it defines on the unrooted 5-taxon gene tree topologies. Given a set G of unrooted true quintet gene trees drawn i.i.d. from u, QR-STAR is a statistically consistent estimator of R under the MSC. Remark 1. Note that when &#945; max = 0, meaning that the invariant penalty terms are removed from the cost function, the cost of the true tree would become exactly zero according to the proof of Lemma 6, and the cost of any other tree would be positive when k is large enough so that the conditions of Theorem 1 hold. Hence in this case, the condition in Eq. 7 (see full version of the paper) will reduce to A(k) &lt; 1  2 h(R). Comparison between QR and QR-STAR in terms of rooting error (nCD) for rooting the true unrooted species tree topology using estimated gene trees (GTEE levels vary from 0.22 (for low ILS) to 0.49 (for high ILS)) on the 201-taxon datasets from <ref type="bibr">[20]</ref> with 50 replicates in each model condition. The columns show tree height (500K for high ILS, 2M for moderate ILS, and 10M for low ILS), and the rows show speciation rate (1e-06 or 1e-07).</p><p>true gene trees (denoted average distance, or AD) in this dataset was 0.46, which indicates moderate ILS. For the test data (see Table <ref type="table">D1</ref> in the Supplementary Materials for empirical statistics), we used a set of 201-taxon simulated datasets from <ref type="bibr">[20]</ref>; these are characterized by two different speciation rates and three tree heights (500K for high ILS, 2M for moderate ILS, and 10M for low ILS) and three numbers of genes for each combination of speciation rate and tree height. GTEE levels on the test data varied from 0.22 (for low ILS) to 0.49 (for high ILS). The AD levels ranged from 0.09 (for the 10M, 1e-07 condition) to 0.69 (for the 500K, 1e-06 condition). The number of replicates for each model condition for both the training and test datasets was 50.</p><p>We measured the error in the rooted species tree in terms of average normalized clade distance (nCD) <ref type="bibr">[30]</ref>, which is an extension of RF error for rooted trees. For our training experiment, we only rooted the true species tree topology to directly observe the rooting error. In our test experiments, we rooted both the model species tree and estimated species tree, as produced by ASTRAL, using both true and estimated gene trees (which were estimated using FastTree <ref type="bibr">[23]</ref>). Additional information about the simulation study, datasets, and software commands are provided in Supplementary Materials Section D.</p><p>In our training experiments, we explored the impact of the shape coefficient C and the ratio &#945;max &#946;min (that describes the relative impact of invariants and inequalities) on the accuracy of QR-STAR. Results for the training experiments (provided in Supplementary Materials Sec. E1) show that there are wide ranges of settings for the algorithmic parameters that provide the best accuracy. We used these training results and theoretical considerations related to sample complexity of QR-STAR to set the algorithmic parameters to C = 1e-02 and &#945;max &#946;min = 0.</p><p>Figure <ref type="figure">4</ref> shows a comparison between QR and QR-STAR in terms of rooting error for rooting the model species tree topology using estimated gene trees on the test datasets. Increasing the ILS level (by reducing tree height) decreases the rooting error, and increasing the number of genes also generally reduces rooting error (although much less under the lowest ILS level where tree height is 10M). To understand the impact of ILS in Fig. <ref type="figure">4</ref>, note that the true species tree is being rooted and so ILS will not impact species tree estimation accuracy. However, the level of ILS impacts information about rooting location, which comes from the distribution of gene tree topologies. Thus, with lower ILS, it is likely that many gene trees that have low probability of appearing will not appear in the input. In this case, some estimates of quintet probabilities would become zero, and it may not be possible to differentiate some of the rooted quintets using the inequality and invariants derived from the ADR theory. In the extreme case, when there is no discordance, there will be only one quintet gene tree with non-zero probability, and the identifiability theorem in <ref type="bibr">[2]</ref> would not hold and it becomes impossible to find the root. This trend can be compared to the impact of ILS level on the problem of estimating the unrooted topology of the species tree, where increases in ILS generally lead to increases in error <ref type="bibr">[19]</ref><ref type="bibr">[20]</ref><ref type="bibr">[21]</ref>.</p><p>A comparison between QR and QR-STAR shows that QR-STAR generally matched or improved on QR; the only exception was for the high ILS conditions, where the two methods were very close but with perhaps a small advantage to QR. On these high ILS conditions, however, GTEE is also large, and QR-STAR is more accurate than QR when used with true gene trees, even under high ILS (Supplementary Materials Sec. E). Hence, the issue is likely to be high GTEE rather than high ILS, suggesting that QR-STAR is slightly more affected by GTEE compared to QR.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Conclusion</head><p>In this work we presented QR-STAR, a polynomial time statistically consistent method for rooting species trees under the multispecies coalescent model. QR-STAR is an extension to QR, a method for rooting species trees introduced in <ref type="bibr">[30]</ref>. QR-STAR differs from QR in that it has an additional step for determining the topological shape of each unrooted quintet selected in the QR algorithm, and incorporates the knowledge of this shape in its cost function, alongside the invariants and inequalities previously used in QR. We also showed that the statistical consistency for QR-STAR holds for a larger family of optimization problems based on cost functions and sampling methods.</p><p>To the best of our knowledge, this is the first work that established the statistical consistency of any method for rooting species trees under a model that incorporates gene tree heterogeneity. It remains to be investigated whether other rooting methods can also be proven statistically consistent under models of gene evolution inside species trees, such as the MSC or models of GDL. For example, STRIDE <ref type="bibr">[4]</ref> and DISCO+QR <ref type="bibr">[33]</ref> are methods that have been developed for rooting species trees from gene family trees, where genes evolve under gene duplication and loss (GDL); however, it is not known whether these methods are statistically consistent under any GDL model.</p><p>Our simulation study showed as well that QR-STAR generally improved on QR in a wide range of model conditions. Given that QR itself improved on other methods for rooting species trees (as shown in <ref type="bibr">[30]</ref>), this experimental study suggests that QR-STAR may be a useful tool for rooting species trees when gene tree discordance due to ILS is present.</p><p>This study suggests several directions for future research. For example, we proved statistical consistency for one class of cost functions, which was a linear combination of the invariant, inequality and shape penalty terms; however, cost functions in other forms could also be explored and proven statistically consistent. The proof of Theorem 1 suggests that the sample complexity of QR-STAR depends on the function h(R), which is based on both the length of the shortest branch and the longest path in the model tree. This suggests that having very short or very long branches can both confound rooting under ILS, which is also suggested in previous studies <ref type="bibr">[1,</ref><ref type="bibr">2]</ref>. This is unlike what is known for species tree estimation methods such as ASTRAL, where the sample complexity is only affected by the shortest branch of the model tree <ref type="bibr">[3,</ref><ref type="bibr">28]</ref>, and trees with long branches are easier to estimate.</p><p>Another theoretical direction is the construction of the rooted species tree directly from the unrooted gene trees. As explained in Remark 2, the proof of consistency of QR-STAR for 5-taxon trees does not depend upon the knowledge of the unrooted tree topology; this suggests that it is possible to estimate the rooted topology of the species tree in a statistically consistency manner directly from unrooted gene tree topologies. Future work could focus on developing statistically consistent methods for this problem, which is significantly harder than the problem of rooting a given tree.</p><p>There are also directions for improving empirical results. An important consideration in designing a good cost function is its empirical performance, as many cost functions can lead to statistical consistency but may not provide accurate estimations of the rooted tree in practice (see Figures <ref type="figure">E1</ref> and<ref type="figure">E2</ref> in the Supplementary Materials). One potential direction is to incorporate estimated branch lengths, whether of the gene trees or the unrooted species tree, into the rooting procedure.</p><p>Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (<ref type="url">http://creativecommons.org/licenses/by/4.0/</ref>), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.</p><p>The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>The labeling of rooted and unrooted trees in this paper is consistent with the notations and leaf-labeling used in Tables 4-5 in<ref type="bibr">[2]</ref> as well as in<ref type="bibr">[30]</ref>.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>Refer to Remark 1 for why &#945; a,b does not need to be strictly positive.</p></note>
		</body>
		</text>
</TEI>
