Doctoral thesis
Cite …

Novel Methods for Analyzing and Visualizing Phylogenetic Placements

DOI: 10.5445/IR/1000105237
PDF published on Jan 28, 2020
Abstract

The DNA is the hereditary basis of all known life on the planet. Deciphering this "code of life" is hence of key importance for biology in general, and for unravelling the evolutionary relationships between biological species in particular. The last few decades have seen rapid technological advances in DNA sequencing, with no slowdown of this trend being in sight. Research in biology hence has high demand for computational methods, both with respect to storage and processing of these huge datasets, and with respect to analysis and visualization thereof.

A basic concept in biology is that of the tree of life, which describes the evolutionary relationship between species. The respective field of science is called phylogenetics, and the resulting structures are called phylogenetic trees. Often, these trees are based on the comparison of DNA sequences of the species, and are build on the idea that species with similar sequences are located on nearby branches of the tree. The inference of such a tree based on DNA data can be formulated as an optimization problem, that poses a challenge for computer science due to the ever increasing amount of available data. For example, a current directive in micro-biology is to investigate the composition of samples taken from environments such as ocean water, soil, or the human body: Which microbial species, bacteria and other single cellular organisms, are present in these environments and samples? This field of research is called meta-genomics. It is infeasible to compute a robust phylogenetic tree for the millions of sequences obtained from such samples. An alternative approach is the so called phylogenetic placement of the sequences on a reference tree: Given a tree of reference sequences of known species that covers the expected diversity in the samples as much as possible, the evolutionary relationship of the sequences in the samples to the reference tree is determined. This yields a mapping from sequences to positions of related species in the reference tree. This mapping can also be understood as a distribution of sequences on the tree: This interpretation allows for example to visualize which species (and their next of kin) are frequently present in the samples.

In this work, we developed novel methods for pre- and post-processing, analysis, and visualization of phylogenetic placement of sequences. Firstly, we present a method to automatically obtain a suitable reference tree to be used for placement. The method is called PhAT (Phylogenetic Automatic (Reference) Trees), and uses databases of known DNA sequences in order to determine suitable reference sequences. The trees produced by PhAT are for example useful when the expected species diversity in the samples is not yet known: In this case, a broad tree that covers many known species can help to discover novel, unknown species. In the same chapter, we also present two auxiliary methods that accelerate and enable the process and the computations needed for the placement of very large datasets. On the one hand, we present Multilevel-Placement, that uses a divide-and-conquer approach to split large reference trees into small, nested trees. It thereby improves speed and accuracy of the placement process compared to using one large reference tree. On the other hand, we describe a pipeline that maximizes load distribution and further accelerates the placement process by avoiding duplicate computations. This is particularly suited for large datasets, and was a necessary improvement to enable the computations needed for the tests of the further methods presented in this work.

Subsequently, we present two methods to compare the placement results of distinct samples with each other. The methods, Edge Dispersion and Edge Correlation, visualize the reference tree so that the interesting and relevant regions of the tree (with respect to the samples) become apparent. Edge Dispersion shows regions where the frequency of microbial species in the samples differs most in between samples. This can serve as a first exploration of a dataset, and indicates the variance of the occurrences of species. Edge Correlation on the other hand additionally takes meta-data into account that was collected per sample. It hence can for example show the dependencies between occurrences of species and environmental factors such as the pH-value of the soil, or the nitrate content of the water where each sample was taken from. This bears some similarity to an existing method called Edge PCA, which also highlights relevant regions of the reference tree, but can only indirectly incorporate meta-data features.

Another research question is that of grouping or clustering of samples based on similarities, for example a similar distribution of sequences on the reference tree. By using suitable distance measures such as the Kantorovich-Rubinstein distance (KR distance), similarities between samples can be quantized, and leveraged to cluster them. For large datasets with hundreds to thousands of distinct samples, existing methods for this purpose, such as the so called Squash Clustering, reach their scalability limits. We thus extended the $k$-means method to be applicable to placement data. To this end, we present two methods, Phylogenetic $k$-means and Imbalance $k$-means, that use two different distance measures between samples (KR distance, and another suitable measure) to cluster trees with similar distributions of placed sequences. These methods regard each sample as a distinct data item, and use the underlying structure of the reference tree for the computations. These methods can be applied to datasets with tens of thousands of samples, in order to find clusters and similarities between samples, and visualize these.

Furthermore, we adapted a concept called Balances to placement data, which was originally intended for so called OTU sequences (Operational Taxonomic Units). Balances allow for a description of the reference tree and the sequences placed on it in a way that summarizes groups of referece species, instead of taking each species into account individually. This description of the data offers several advantages for subsequent analysis steps; for example, it is robust in terms of the exact choice of reference sequences, and offers an intuitive way of visualizing results obtained from these analyses. Balances are in particular helpful from a mathematical standpoint, as they circumvent problematic artifacts due to the compositional nature of meta-genomic data. In this work, balances are mainly used as an intermediate step for data representation purposes.

One application of balances is the so called Phylofactorization. This relatively recent method splits a given tree into a set of sub-trees so that each sub-tree represents a group of species that are relevant with respect to the meta-data features of the given samples. This allows for example to identify groups whose evolutionary traits changed depending on meta-data such as pH-value in comparison to other groups. This is similar to the Edge Correlation method mentioned above, but further allows to incorporate several meta-data features at once and can find nested groups of species, by leveraging mathematical approaches such as Generalized Linear Models. The underlying concepts of Phylofactorization are versatile both for data analysis as well as for extension and adaptation to releated research questions. We have adapted the method to placement data, and present this variant, which we call Placement-Factorization. Additionally, we developed several auxiliary computations and visualizations of the results that are also useful for the original Phylofactorization.

All mentioned novel methods were extensively tested with respect to their suitability for discovering biological knowledge. To this end, we used several DNA sequence datasets from water and soil, as well as from the human body, and phylogenetically placed them on suitable reference trees. Based on this, we tested the plausibility of the results obtained from our analyses, and compared them to the results of simiar, established methods. All analyses, visualizations, and comparisons are described in detail in the respective chapters, along with the results and their interpretations. All tests show that our methods yield results on the datasets that are consistent with other types of analyses, and are suitable for discovering novel biological knowledge.

The methods presented here are implemented in our software library genesis, which we devloped alongside this work. The library is written in modern C++11, has a modular and function-oriented design, is optimized for memory consumption and computing speed, and leverages multi-core environments. It is hence suitable for rapid testing of prototype software, as well as for developing analysis software for end users. We already have successfully deployed genesis in several of our projects. In particular, all presented methods are incorporated into our command line tool gappa, which is internally based on genesis. The tool has a simple command line interface to our analysis methods that offers sufficient options for most end users.

In the final chapter, we dare an outlook into possible research directions for method development in meta-genetics in general, and placement-based methods in particular. We identify several challenges with respect to the usability of such methods for researchers, and their scalability to ever larger datasets. Furthermore, we suggest several further approaches, for instance based on neural networks and deep learning. With current datasets, such methods cannot robustly be trained; due to the expected growth of data in the near future however, such approaches are likely to become feasible. Finally, we identify some in-depth research questions from the fields of biology and medicine for which our methods might be useful in the future.