scieee AI-readable full text Open interactive document viewer

Big Data meets High Performance Computing: Genomics and Natural Language Processing as case studies

Abuín Mosquera, José Manuel

Abstract

The main objective of this thesis is to clarify a way to the convergence between the Big Data and the High Performance Computing world. In order to do this, a study of the application of this kind of technologies to two real world scientific problems is performed. These two problems are the sequence alignment in genomics and the natural language processing. These problems have a very big input and output size, and are computationally intensive, requiring a very high execution time. By facing these problems, also new tools that can be used by professionals in the areas are developed. Conclusions about convergence between these two worlds are presented, taking into account results from this study.

Full text

UNIVERSIDADE DE SANTIAGO DE COMPOSTELA Centro Singular de Investigaci´ on en Tecnolox´ ıas da Informaci´ on (CiTIUS) Tesis doctoral BIG DATA MEETS HIGH PERFORMANCE COMPUTING: GENOMICS AND NATURAL LANGUAGE PROCESSING AS CASE STUDIES Presentada por: Jos´ e Manuel Abu´ ın Mosquera Dirigida por: Juan Carlos Pichel Campos Tom´ as Fern´ andez Pena Santiago de Compostela, septiembre de 2017 Juan Carlos Pichel Campos, Profesor Contratado Doctor del ´ Area de Arquitectura de Computadores de la Universidad de Santiago de Compostela Tom´ as Fern´ andez Pena, Profesor Titular del ´ Area de Arquitectura de Computadores de la Universidad de Santiago de Compostela HACEN CONSTAR: Que la memoria titulada Big Data meets High Performance Computing: Genomics and Natural Language Processing as case studies ha sido realizada por Jos´ e Manuel Abu´ ın Mosquera bajo nuestra direcci´ on en el Centro Singular de Investigaci´ on en Tecnolox´ ıas da Informaci´ on de la Universidade de Santiago de Compostela, y constituye la Tesis que presenta para optar al t´ ıtulo de Doctor. Santiago de Compostela, septiembre de 2017 Juan Carlos Pichel Campos Director/a de la tesis Tom´ as Fern´ andez Pena Director/a de la tesis Jos´ e Manuel Abu´ ın Mosquera Autor/a de la tesis Juan Carlos Pichel Campos, Profesor Contratado Doctor del ´ Area de Arquitectura de Computadores de la Universidad de Santiago de Compostela Tom´ as Fern´ andez Pena, Profesor Titular del ´ Area de Arquitectura de Computadores de la Universidad de Santiago de Compostela como Director/res de la tesis titulada: Big Data meets High Performance Computing: Genomics and Natural Language Processing as case studies Por la presente DECLARAN: Que la tesis presentada por Don Jos´ e Manuel Abu´ ın Mosquera es id´ onea para ser presentada, de acuerdo con el art´ ıculo 41 del Regulamento de Estudos de Doutoramento, por la modalidad de compendio de ART´ ICULOS, en los que el doctorando ha tenido participaci´ on en el peso de la investigaci´ on y su contribuci´ on fue decisiva para llevar a cabo este trabajo. Y que est´ a en conocimiento de los coautores, tanto doctores como no doctores, participantes en los art´ ıculos, que ninguno de los trabajos reunidos en esta tesis ser´ an presentados por ninguno de ellos en otras tesis de Doctorado, lo que firmo bajo mi responsabilidad. Santiago de Compostela, septiembre de 2017 Juan Carlos Pichel Campos Director/a de la tesis Tom´ as Fern´ andez Pena Director/a de la tesis A Mart´ ın e a Ver´ onica Por cambiarme a vida. De boa, a mellor The two most important days in your life are the day you are born and the day you find out why. Mark Twain There are things known and there are things unknown, and in between are The Doors Jim Morrison XVI Dichos problemas cient´ ıficos abordados en esta tesis tienen una serie de caracter´ ısticas comunes que los hacen adecuados para demostrar los beneficios generados por la sinergia entre los mundos HPC y Big Data: Requerir una gran cantidad de datos de entrada. Tener una elevada carga computacional, ya que las aplicaciones HPC son computacionalmente intensivas. Deben generar una gran cantidad de datos de salida. En muchos casos, aplicaciones de ambos mundos forman parte de pipelines de trabajo que proporcionan datos de entrada para otras aplicaciones. Por lo tanto, la salida de dichas aplicaciones tambi´ en suele generar una gran cantidad de informaci´ on. Deben estar escritos, al menos en su mayor parte, en un lenguaje de programaci´ on t´ ıpico de las aplicaciones HPC. Teniendo en cuenta dichos requisitos, los problemas cient´ ıficos considerados en esta tesis se engloban dentro de las ´ areas cient´ ıficas de la Gen´ omica y del Procesamiento del Lenguage Natural (PLN). El ´ area del Procesamiento del Lenguaje Natural (PLN), est´ a considerada como una de las metodolog´ ıas m´ as apropiadas para poder estructurar y organizar la informaci´ on textual accesible a trav´ es de Internet. El procesamiento ling¨ u´ ıstico de grandes cantidades de texto es una tarea compleja que requiere del uso de varias subtareas organizadas en m´ odulos interrelacionados. Estos m´ odulos son necesarios para poder llevar a cabo tareas m´ as complejas, como la traducci´ on autom´ atica, la recuperaci´ on de informaci´ on o sistemas de vigilancia tecnol´ ogica. Generalmente, se necesita que el procesamiento ling¨ u´ ıstico en tareas NLP sea lo m´ as precisa y eficiente posible. Uno de los mayores problemas que presentan los m´ odulos PLN es su alto coste computacional y sus dificultades de escalabilidad. Esto los hace inviables para el an´ alisis de grandes vol´ umenes de documentos (GibiBytes e incluso TebiBytes). De este modo, en esta tesis hemos considerado que el uso de soluciones HPC y Big Data se hace indispensable si se quiere reducir de forma notable los tiempos de c´ omputo, mejorar la escalabilidad del sistema y abordar problemas de un tama˜ no a´ un mayor. El conjunto de m´ odulos PLN que se han seleccionado han sido los que permiten realizar la identificaci´ on y clasificaci´ on de entidades con nombre o NERC por sus siglas en ingl´ es Named Entity Recognition and Classification. XVII El NERC es una l´ ınea de investigaci´ on en s´ ı misma dentro del Procesamiento de Lenguaje Natural. El objetivo de esta l´ ınea es reconocer, identificar y clasificar nombres dentro de un texto. Este proceso se lleva a cabo con la ayuda de una lista predeterminada de categor´ ıas, por ejemplo, Persona, Lugar, Organizaci´ on, etc. Las herramientas del estado del arte en esta ´ area usan tanto t´ ecnicas ling¨ u´ ısticas basadas en gram´ aticas como modelos estad´ ısticos. Normalmente los sistemas basados en gram´ aticas hechas a mano obtienen mejor precisi´ on, pero con el coste de meses de trabajo de expertos ling¨ uistas con experiencia en computaci´ on. Por otro lado, los sistemas NERC estad´ ısticos requieren de una gran cantidad de datos de entrenamien- to anotados a mano. Tambi´ en existen los enfoques semi-supervisados, que han sido sugeridos para evitar parte del esfuerzo de anotaci´ on. Todos estos enfoques adolecen de la misma caracter´ ıstica, que es la capacidad de procesar grandes cantidades de datos en un tiempo razonable. Por ejemplo, procesar toda la Wikipedia en espa˜ nol conlleva un tiempo de ejecuci´ on de alrededor de 19 d´ ıas con un sistema NERC del estado del arte incluido en el repositorio Linguakit1. Los m´ odulos PLN de dicho sistema est´ an implementados en lenguaje Perl, y funcionan como un pipeline de trabajo. El lenguaje Perl se usa frecuentemente en tareas de PLN, ya que est´ a preparado para tratar con datos de tipo texto, debido sobre todo a su potencia en el uso de expresiones regulares. Sin embargo, el caso de emplear herramientas escritas en lenguaje Perl o en cualquier otro lenguaje diferente de Java con Apache Hadoop no est´ a contemplado. Para poder realizar dicha tarea, Apache Hadoop permite emplear la herramienta Hadoop Streaming. Dicha herramienta permite al usuario ejecutar programas que siguen el modelo MapReduce empleando cualquier lenguaje de programaci´ on, con la ´ unica limitaci´ on de que el c´ odigo debe leer los datos de entrada desde la entrada est´ andar, o stdin, y escribir los datos de salida en la salida est´ andar, o stdout. El problema es que dicha herramienta ha demostrado carecer de la eficiencia esperada. Debido a ello en esta tesis se han explorado otro tipo de soluciones a este problema, el cual tambi´ en podr´ ıa presentarse en otro tipo de aplicaciones. Tras explorar dichas soluciones, se ha creado la herramienta Perldoop, que permite traducir c´ odigos escritos en lenguaje Perl a c´ odigos escritos en Java preparados para su ejecuci´ on con Apache Hadoop sin necesidad del m´ odulo de Hadoop Streaming. Esto permite que investigadores en PLN puedan traducir y ejecutar sus c´ odigos desarrollados en Perl en un entorno Big Data, con la consiguiente mejor eficiencia posible, escalando adecuadamente y, adem´ as, con la tolerancia a fallos que proporciona. 1https://linguakit.com XVIII El proceso de traducci´ on es relativamente sencillo, ya que tan s´ olo requiere por parte del usuario a˜ nadir una serie de tags o etiquetas en el c´ odigo Perl y emplear unos templates o plantillas en lenguaje Java que ya provee la propia herramienta Perldoop. De este modo, los investigadores en el ´ area del PLN no tienen que profundizar en un nuevo lenguaje o unas nuevas tecnolog´ ıas con las que no tienen por qu´ e estar familiarizados. Todo este proceso de traducci´ on, as´ ı como de la implementaci´ on y resultados obtenidos, se tratan con profundidad en el Cap´ ıtulo 2. As´ ı mismo, tambi´ en se muestran ejemplos de traducci´ on sencillos, de modo que el usuario pueda comprender f´ acilmente el proceso. Para obtener resultados de un problema real y con un software del estado del arte, en dicho cap´ ıtulo se ha empleado Perldoop con los modulos NERC de Linguakit. La plataforma seleccionada para llevar a cabo los experimentos ha sido un cl´ uster Big Data del Centro de Supercomputaci´ on de Galicia. Con estas caracter´ ısticas, los resultados han mostrado un speedup de 57.9×usando 64 cores para los m´ odulos NERC traducidos, frente al speed-up de 29.4× obtenido por Hadoop Streaming. Como se puede apreciar, el rendimiento de los m´ odulos usando Perldoop es aproximadamente el doble que usando la herramienta Hadoop Streaming. La segunda ´ area cient´ ıfica que tratamos en esta tesis es la Gen´ omica. El primer paso en un an´ alisis gen´ omico de ADN o ARN es siempre la lectura de una muestra biol´ ogica, para poder, de este modo, trasladar la informaci´ on contenida en dicha muestra desde el entorno biol´ ogico al computador, y as´ ı poder analizar dichos datos computacionalmente. Esto se consigue mediante el uso de las tecnolog´ ıas de ultrasecuenciaci´ on. Gracias a estas tecnolog´ ıas, se han desarrollado m´ aquinas que permiten introducir la muestra y obtener directamente los datos en un formato digital, es decir, despu´ es del proceso de ultrasecuenciaci´ on, los datos tienen forma de uno o varios ficheros de texto que siguen un determinado formato. En los ´ ultimos a˜ nos, dichas tecnolog´ ıas de ultrasecuenciaci´ on han dado un salto important´ ısimo en lo referente a la cantidad de datos que se pueden obtener de muestras, as´ ı como en la velocidad a la que se pueden obtener dichos datos. Dicho salto en lo referente a estas tecnolog´ ıas es en parte debido a los avances cient´ ıficos llevados a cabo por compa˜ n´ ıas como, por ejemplo, Illumina, o a centros como el Wellcome Trust Sanger Institute del Reino Unido. Debido a la velocidad en la obtenci´ on de datos y a la cantidad obtenida de los mismos, ´ estos pueden alcanzar f´ acilmente el orden de varios GibiBytes o TebiBytes de datos, dependiendo del tipo de muestra. El problema que se presenta ahora es dar sentido cient´ ıfico a dichos datos, ya que la velocidad a la que aumenta su tama˜ no est´ a sobrepasando a la velocidad a la que crece la capacidad de c´ omputo de un procesador. XIX 1 2 3 4 5 6 AACGT- -AACGT A-ACGT AACGT—— AA-CGT- -A-A-C-G-T- ACCGTT ACCGTT ACCGTT —–ACCGTT A-CCGTT A-C-C-G-T-T Tabla 1: Seis posible alineamientos para las secuencias de ejemplo. Normalmente, los profesionales en el ´ area emplean flujos de trabajo descritos en las GATK Best Practices del Broad Institute, del MIT y Harvard para dar sentido cient´ ıfico, o analizar, los datos obtenidos. Dichas buenas pr´ acticas describen los pasos a seguir, as´ ı como el software a utilizar en cada uno de esos pasos, para elaborar una serie de an´ alisis concretos. Algunos de estos pasos son comunes a varios de los flujos de trabajo. Una de las etapas que son comunes a varios de estos flujos de trabajo es la del alineamien- to o mapeado de secuencias. Para explicar lo que es el alineamiento, primero hay que tener en cuenta que las secuencias de ADN o prote´ ınas pueden cambiar su codificaci´ on mientras evolucionan en el tiempo. Los tipos m´ as simples de mutaciones son mutaciones puntuales e inserciones/extracciones, tambi´ en conocidos como indels (insertion/deletion). El alineamien- to trata de identificar estas mutaciones mediante algoritmos de alineamiento cl´ asicos. Por ejemplo, al alinear las dos secuencias de ADN, AACGT yACCGTT, algunos de los posibles resultados son los que se pueden ver en la Tabla 1, donde cada car´ acter representa una base nitrogenada y el gui´ on representa un hueco. La cuesti´ on ahora ser´ ıa saber cu´ al de dichos alineamientos es el “mejor”. Para ello, existen varios algoritmos de puntuaci´ on o score explicados en la literatura. Las referencias a la literatura donde se explican dichos algoritmos de puntuaci´ on se indican en la Introducci´ on de este documento. Sin embargo, y teniendo en cuenta que hay varios posibles alineamientos y que es necesario puntuarlos, y que al mismo tiempo estamos hablando de una gran cantidad de datos, este paso es uno de los m´ as costosos computacionalmente dentro de los flujos de trabajo mencionados. Al mismo tiempo, es uno de los pasos m´ as fundamentales, por lo tanto, obtener herramientas que permitan realizar este alineamiento de una forma eficiente y escalable es un requisito indispensable. Dentro de las herramientas del estado del arte, existen varias que permiten llevar a cabo el alineamiento de secuencias. En concreto, en el caso de alineamiento de secuencias cortas (de menos de 100 caracteres o pares de bases), la herramienta BWA (Burrows-Wheeler Aligner) es una de las m´ as utilizadas, como as´ ı lo refleja el hecho de que es la indicada en las GATK Best Practices para realizar la fase de alineamiento. Dicha herramienta est´ a implementada XX en C y utiliza paralelismo a nivel de hilo (es decir, en memoria compartida). Debido a su amplia aceptaci´ on entre la comunidad de investigadores en Bioinform´ atica y a los detalles de su implementaci´ on, se ha seleccionado esta herramienta como caso de estudio en esta tesis. A pesar de disponer de una versi´ on paralela para sistemas de memoria compartida, el alineamiento con BWA puede suponer varios d´ ıas de c´ omputo dependiendo del tama˜ no de los datos de entrada. Debido a lo expuesto en el p´ arrafo anterior, y al tratar con una gran cantidad de datos de entrada proveniente de las m´ aquinas de ultrasecuenciaci´ on, las tecnolog´ ıas Big Data parecen las adecuadas para tratar con este problema. Al mismo tiempo, al tratarse de un problema computacionalmente intensivo, las tecnolog´ ıas HPC tambi´ en podr´ ıan ser adecuadas. Por ello, se ha implementado la herramienta BigBWA, la cual emplea Hadoop como tecnolog´ ıa Big Data para poder realizar en paralelo el alineamiento, mientras que internamente emplea los algoritmos implementados en BWA. Dichos algoritmos est´ an escritos en lenguaje C, y se hace uso de ellos mediante llamadas desde Java en las partes que son computacionalmente intensivas mediante el uso de JNI (Java Native Interface). Debido a que las secuencias de entrada son totalmente independientes entre s´ ı, estamos hablando de un problema de los denominados Embarrassingly Parallel, ya que los datos se dividen en fragmentos y cada uno de dichos fragmentos pueden ser procesados independientemente de los dem´ as. Siguiendo esta estrategia, cuyos detalles se pueden ver en el Cap´ ıtulo 3, y empleando un cl´ uster Big Data desplegado en Amazon Web Services se han llevado a cabo una serie de experimentos que demuestran la viabilidad de esta herramienta. Los datos de entrada se han tomado de un repositorio p´ ublico de secuencias de ADN humano, que proviene del proyecto 1000 Genomes. Los resultados de dichos experimentos han mostrado como BigBWA consigue una aceleraci´ on de 36.6×empleando 64 cores con respecto a la versi´ on secuencial de BWA (1 thread), mientras que, al mismo tiempo, es m´ as r´ apido que otras herramientas similares del estado del arte. Adem´ as incorpora caracter´ ısticas t´ ıpicas de los ecosistemas Big Data, como la tolerancia a fallos. Dentro del mundo de las tecnolog´ ıas Big Data, los avances se producen muy r´ apidamente. As´ ı lo demuestra la aparici´ on de Apache Spark, un motor que mejora Apache Hadoop en varios aspectos. Por ejemplo, permite ir m´ as all´ a del modelo MapReduce o proporciona mejoras en el acceso a disco. Debido a ello, en esta tesis se ha implementado tambi´ en una versi´ on de BWA empleando Apache Spark, surgiendo as´ ıSparkBWA. SparkBWA sigue la misma estrategia que su predecesor, BigBWA. Es decir, realiza la di- XXI visi´ on de datos y tareas empleando tecnolog´ ıas Big Data, en este caso Apache Spark, mientras que el c´ omputo intensivo requerido por el algoritmo de alineamiento se realiza con el c´ odigo en C de BWA mediante JNI. De este modo, las ventajas obtenidas en BigBWA se mantienen y, al mismo tiempo, se incluyen mejoras que proporciona Apache Spark. Por poner un ejemplo, una fase de preprocesado de datos que requer´ ıa BigBWA, ahora con SparkBWA se realiza de forma m´ as eficiente empleando funciones nativas de Spark. Todos los detalles de la implementaci´ on, as´ ı como las mejoras mencionadas en el p´ arrafo anterior, se pueden ver en el Cap´ ıtulo 4. En dicho cap´ ıtulo tambi´ en se presentan los resultados obtenidos. SparkBWA consigue una aceleraci´ on de hasta 85.6×usando 128 cores con respecto a la versi´ on secuencial de BWA (1 thread), mientras que BigBWA y otras herramientas del estado del arte se quedan alrededor de 66×con el mismo n´ umero de cores y tambi´ en con respecto a la versi´ on secuencial de BWA (1 thread). Uno de los objetivos de la comparaci´ on de secuencias de prote´ ınas es descubrir similaridades estructurales o funcionales entre prote´ ınas. Biol´ ogicamente, prote´ ınas similares podr´ ıan no mostrar una similaridad clara. Por ejemplo, si la similitud de las secuencias es baja, el alineamiento de un par de secuencias puede fallar al identificar secuencias biol´ ogicamente relacionadas. Sin embargo, la comparaci´ on simult´ anea de varias secuencias a menudo permite encontrar similitudes que son imposibles de identificar en el caso de un par de secuencias. Dicho es lo que se conoce como Multiple Sequence Alignment o MSA, en el cual se pretende alinear varias secuencias al mismo tiempo. La mayor parte de implementaciones de algoritmos que llevan a cabo MSA llevan a problemas de optimizaci´ on de combinatoria NP completos. Como parte de esta tesis tambi´ en se ha llevado a cabo un trabajo en el que se integra un software para MSA, denominado PASTA, en un entorno Big Data, surgiendo as´ ı la herramienta PASTASpark. En este caso, PASTA engloba diversas herramientas para llevar a cabo el alineamiento m´ ultiple. Dichas herramientas est´ an implementadas en diferentes lenguajes de programaci´ on, como por ejemplo, Python, e incluso se realizan llamadas a binarios ejecutables, por lo que es otro candidato ideal para este nuestros objetivos en esta tesis. Cada una de dichas herramientas se utiliza en diversas fases. En este caso, el trabajo se ha centrado en paralelizar una fase en la que interviene el alineador conocido como MAFFT. PASTA incluye por defecto un modo paralelo, en el que se ejecutan varios procesos al mismo tiempo, con la caracter´ ıstica de que dichos procesos s´ olo pueden ser ejecutados en la misma m´ aquina. Sin embargo, con PASTASpark, la fase donde interviene MAFFT, que es la XXII m´ as costosa computacionalmente, se ejecuta en un cluster de computaci´ on empleando Apache Spark. Los detalles de nuestra propuesta se muestran en el Cap´ ıtulo 5. De todos modos, cabe mencionar que en este caso una de las fases de PASTA supone un cuello de botella que no permite a PASTASpark escalar de manera adecuada. Debido a eso, los resultados se ven limitados por la ley de Amdahl, aunque est´ an muy pr´ oximos a dicho l´ ımite. Por ejemplo, empleando un cluster en Amazon Web Services, con el conjuntos de datos de entrada m´ as grande del que se dispone, se baja de las 24 horas de ejecuci´ on, mientras que usando la versi´ on original de PASTA se necesitan varios d´ ıas y no se consigue completar la ejecuci´ on. Para finalizar este resumen, mencionar que las conclusiones globales obtenidas de todos los trabajos aqu´ ı expuestos se encuentran detalladas en el Cap´ ıtulo 6. Contents 1 Introduction 1 1.1. Motivation.................................... 1 1.2. The MapReduce programming model: Apache Hadoop . . . . . . . . . . . . 5 1.3. Hadoop Limitations and Apache Spark . . . . . . . . . . . . . . . . . . . . . 8 1.4. Case studies: Natural Language Processing and Genomics . . . . . . . . . . 11 1.5. Thesisoutline.................................. 22 1.6. Listofpublications ............................... 22 2 Perldoop: Efficient Execution of Perl Scripts on Hadoop Clusters 25 3 BigBWA: Approaching the Burrows-Wheeler Aligner to Big Data.. . 27 4 SparkBWA: Speeding Up the Alignment of High-Throughput DNA. . . 29 5 PASTASpark: multiple sequence alignment meets Big Data 31 6 Conclusions 33 6.1. Futurework................................... 36 Bibliography 39 List of Figures 47 List of Tables 49 CHAPTER 1 INTRODUCTION 1.1. Motivation The human being has entered in the era of data. According to IBM, every day 2.5 quintillion bytes of data are created, in such a way that 90% of the data all over the world were created just only in the last two years [1]. This data comes from everywhere: sensors that are dedicated to gather climate information, posts to social networks, digital pictures and videos, smartphones GPS signals, etc. But the Internet of Things or the Social Networks are not the only responsible of this data explosion, science also plays an important role. As an example, the Large Hadron Collider (LHC) in Geneve (Switzerland), generates about 30 PetaBytes of data per year [2], and in its first phase, the Square Kilometre Array (SKA) radio telescope will produce 160 TeraBytes of raw data per second [3]. All this data is what is known as Big Data. The task of processing and generating knowledge from this huge amount of information can be an unaffordable problem. We can summarize the main challenges to deal with Big Data in the following way: Data is usually not structured. The computing time to process and access this information is typically very high. The memory consumed by scientific applications that make use of this data exceeds by far the memory that is typically installed on a workstation. 8Chapter 1. Introduction Application client client node ResourceManager resource manager node 1: submit YARN application NodeManager 2b: launch 2a: start container node manager node Container Application Master 3: allocate resources (heartbeat) NodeManager 4b: launch 4a: start container node manager node Container Application process Figure 1.3: Example of how YARN works. cluster bandwidth efficiently, so YARN allows an application to specify locality constraints for the containers it is requesting. Locality constraints can be used to request a container on a specific node or rack, or anywhere on the cluster (off-rack) [33]. 1.3. Hadoop Limitations and Apache Spark One of the main ideas from the HDFS is that the most efficient data processing pattern is a write-once, read-many-times pattern. For this reason, Hadoop shows good performance with embarrassingly parallel applications requiring a single MapReduce execution (assuming intermediate results between map and reduce phases are not huge), and even for applications 1.3. Hadoop Limitations and Apache Spark 9 requiring a small number of sequential MapReduce executions [34]. Note that Hadoop can also efficiently handle jobs composed by one or more map functions by chaining several mappers followed by a reducer function and, optionally, zero or more map functions, saving the disk I/O cost between map phases. For more complex workflows, solutions as Apache Oozie [35] or Cascading [36], among others, should be used. The main disadvantage of these workflow managers is the loss of performance when HDFS has to be used to store intermediate data. For example, an iterative algorithm can be expressed as a sequence of multiple MapReduce jobs. Since different MapReduce jobs cannot shared data directly, intermediate results have to be written to disk and read again from HDFS at the beginning of the next iteration, with the consequent reduction in performance. It is worth noting that even each iteration of the algorithm could consist of one or several MapReduce executions. In this case, the degradation in terms of performance is even more noticeable. Apache Spark is a cluster computing framework designed to overcome the Hadoop limitations in order to support iterative jobs and interactive analytics, originally developed at University of California, Berkeley [13], now managed under the umbrella of the Apache Software Foundation. Spark extends the MapReduce model to efficiently support more types of computations (not only map and reduce), including batch applications, interactive queries, and streaming. One of the main features Spark offers in order to be able to perform this set of computations, is the ability to store the data in main memory between operations. Another improvement with respect to Hadoop is the programming language. Programs developed to run with Hadoop are written in Java. Hadoop can also run programs written in other languages by using Hadoop Streaming, but some researchers have probed this tool to perform poorly [37]. On the contrary, Spark offers simple APIs in Python, Java, Scala, SQL, and even can be used from R. And not only that. It even includes a rich built-in libraries, for example, for Machine Learning, and also integrates closely with other Big Data tools. In particular, Spark can be run on Hadoop clusters and access any Hadoop data source [38]. The job topology is, however, very similar. A Spark application, at a high level, consists of a driver program that launches various parallel operations on a cluster. The driver program contains the application main function and defines distributed datasets on the cluster, then applies operations to them. These distributed datasets, commonly named RDDs or Resilient Distributed Dataset (RDD) [39], are one of the Spark main features. A RDD is simply an immutable distributed collection of objects. Each RDD is split into multiple partitions, which 10 Chapter 1. Introduction may be computed on different nodes of the cluster. RDDs can contain any type of Python, Java, or Scala objects, including user defined classes. RDDs can be created in two ways: by loading an external dataset (for example, from HDFS), or by distributing a collection of objects (e.g., a list or set) in the driver program. Once created, RDDs offer two types of operations: transformations and actions. Transformations construct a new RDD from a previous one. For example, one common transformation is filtering data that matches a predicate. Actions, on the other hand, compute a result based on an RDD, and either return it to the driver program or save it to an external storage system (e.g., HDFS). One example of an action is first(), which returns the first element in an RDD. Transformations and actions are different because of the way Spark computes RDDs. Although the user can define new RDDs any time, Spark computes them only in a lazy way, that is, the first time they are used in an action. This approach might seem unusual at first, but makes a lot of sense when working with Big Data. For instance, consider an example where the user defined a text file and then filtered the lines that include “Python”. If Spark were to load and store all the lines in the file as soon as possible, it would waste a lot of storage space, given that the user then immediately filter out many lines. Instead, once Spark sees the whole chain of transformations, it can compute just the data needed for its result. This is due the fact that, in Spark, all the operators in a job are used to construct a DAG (Directed Acyclic Graph). The DAG is optimized by rearranging and combining operators where possible To run these kind of operations introduced in the previous paragraphs, driver programs typically manage a number of processes in the computing nodes called executors. An example of how the Driver Program and the Executors are distributed in Spark can be seen in Figure 1.4. Finally, Spark’s RDDs are by default recomputed each time the programmer runs an action on them. If an RDD is going to be reused in multiple actions, the programmer can ask Spark to persist it using the persist method. There are a number of different places where the data can be persisted, for example, memory, disk, memory and disk, etc. This place can be set as an option to the persist method. With the persist method and no option provided, Spark will store the RDD contents by default in main memory (partitioned across the machines in the computing cluster), and reuse them in future actions. The behaviour of not persisting by default may again seem unusual, but, it makes a lot of sense for big datasets: if the RDD is not going to be reused, there is no reason to waste storage space when Spark could instead stream 1.4. Case studies: Natural Language Processing and Genomics 11 Driver Program SparkContext Cluster Manager Worker Node Executor Cache Task Task Worker Node Executor Cache Task Task Figure 1.4: Example of how Spark works. through the data once and just compute the result. These kind of strategies are also useful to implement fault tolerance in Spark. Thanks to the operations DAG, if the RDD fragments stored in one node are lost, they can be rebuild in another node by following the operations graph. In conclusion, Spark overcomes most of the problems present in Hadoop. However, and despite all of its improvements and parallel philosophy, it is still not clear if Spark fits in the High Performance Computing world. 1.4. Case studies: Natural Language Processing and Genomics To make progress in the approach between HPC and Big Data technologies, significant applications from the Genomics and Natural Language Processing fields will be designed and integrated into the Big Data frameworks, with the aim of boosting performance and improving scalability. 12 Chapter 1. Introduction 1.4.1. Natural Language Processing Natural Language Processing (NLP) is a field of computer science, artificial intelligence and computational linguistics concerned with the interactions between computers and human (natural) languages. In particular, it is concerned with programming computers to fruitfully process large natural language corpora. It is considered as one of the more suitable methodologies to give a structure and organize the textual information accessible through the Internet. Linguistic processing of big quantities of text is a complex task that requires the use of several sub-tasks organized in various inter-related modules that run as a workflow. These modules are usually needed to carry out more complex tasks [40] such as machine translation. A common task in NLP is the Named Entity Recognition and Classification (NERC). NERC is a research line inside NLP in consolidation phase. The objective of this line is to recognize, identify and classify names inside a text [41, 42, 43]. This process is performed with the help of a predetermined category list (for example, Person, Place, Organization, etc). NERC systems that use linguistic grammar-based techniques or statistical models, such as machine learning, are the state of the art tools. Grammar-based systems typically obtain better precision, but at the cost of lower recall and months of work by experienced computational linguists. Statistical NERC systems typically require a large amount of manually annotated training data. Semi-supervised approaches have been suggested to avoid part of the annotation effort [44, 45]. Many different classifier types have been used to perform machine-learned NERC, with conditional random fields being a typical choice [46]. In this thesis, Linguakit NLP modules have been selected as case study [41, 47, 48]. The NERC module in Linguakit consist of several modules in a pipeline. This NERC system from Linguakit can be observed in Figure 1.5. In these Figure, all the modules involved since the begin of the data process are shown. These modules are: Basic analysis 1. Sentence Segmentation: This module divides the input in grammatical sentences. 2. Tokenizer: Here the sentences are divided into tokens, this is, textual elements separated by white spaces or punctuation marks. 3. Splitter: The splitter module uses linguistic information to divide those tokens that, despite of being various linguistic units, they are formally represented as an unique element. For example, contractions in spanish, “del = de + el”. 1.4. Case studies: Natural Language Processing and Genomics 13 Figure 1.5: NERC system from Linguakit. NER: Named Entity Recognition 1. Identification: This task consists of identifying as a single unit (or token) those words or chains of words denoting an entity, e.g. New York, University of San Diego, Herbert von Karajan, etc. The module is based on a set of languageindependent rules that take into account information on both a large lexicon of forms and the relative position of words within the sentence. 2. PoS tagging: This module assigns each token of the input text a single PoS tag provided with morphological information e.g. singular and masculine adjective, past participle verb, plural and feminine noun, etc. The module consists of a Bayesian classifier whose features are bigrams of tokens that represent the immediate left and right contexts of the target token. NEC: Named Entity Classification 14 Chapter 1. Introduction Le le PP3CSD00 dije decir VMIS1S0 a a SPS00 Mar´ ıa mar´ ıa NP00SP0 el el DA0MS0 martes martes NCMN000 que que PR0CN000 me me PP1CS000 gusta gustar VMIP3S0 el el DA0MS0 cubismo cubismo NCMS000 . . Fp Table 1.2: Linguakit NERC example. 1. Classification: The last step of the linguistic analysis is the semantic classification of those entities identified in the previous NER module. Named Entity Classification (NEC) is the process of classifying entities by means of classes such as “People”, “Organizations”, “Locations”, or “Miscellaneous”. NEC is a crucial task for several natural language applications, for example Question Answering and Information Extraction. These modules identify and classify the named entities in two phases. First, the identification of token strings that joins to compose the entities (NER), and then the classification by using tags that characterize them in a semantic way. An output example of the Linguakit NERC tool is shown in Table 1.2 for the spanish sentence “Le dije a Mar´ ıa el martes que me gusta el cubismo”. In the example the first column contains the sentence tokens, the second column contains what are called lemmas and the third contains the unique tags which identify the tokens. For example, it identifies that “gusta” is a form of the verb “gustar” and assigns the corresponding tag “VMIP3S0”, which starts with a “V” because it is a verb. Despite all the different approaches that can be found in NERC systems from state of the art tools, all of them lack of the same feature. That is, the capacity to process huge quantities of text in reasonable time. For example, process the whole Wikipedia in Spanish language takes about 19 days (more than 450 hours) [49] when using the considered NERC system. The high execution time proves that one of the biggest problems of these techniques and tools is their high computational cost and scalability problems. For this reason, NLP modules are 1.4. Case studies: Natural Language Processing and Genomics 15 non-viable for the analysis of big volumes (GigaBytes or TeraBytes) of documents. In this way, the use of High Performance Computing (HPC) is mandatory, in order to reduce the execution times, improve the system scalability and approaching bigger problems. However, state of the art implementations are written in languages that are not well suited for HPC such as Perl or Python. The reason is that these kind of languages are specially suited to work with text data, so are a good match to NLP. HPC oriented languages such as C or Fortran are more oriented to numerical data. To overcome this limitation, Hadoop provides the Hadoop Streaming tool, which allows to run a program written in any programming language in Hadoop. However, as was stated before, this tool does not have a good performance [37]. For this reason, Perldoop [49] has been developed. The objective in this work was not to develop a powerful tool that allows to automatically translate any existent Perl code to Java, but a simple and easy-to-use tool that takes as input Perl codes written for Hadoop Streaming, following a reduced number of additional programming rules, and produces Hadoop-ready Java codes. In order to do that, Perldoop uses a system based on tags and templates. Templates is contain certain parts of the Java code that has no direct translation from Perl, such as class declarations, some auxiliary functions needed in Java or global variables. Regarding tags, they are used in the Perl code to indicate Perldoop to perform some type of specific translation or decision. The main benefit of using this methodology is the ease of use. Note that programmers have to insert tags in the Perl code and create the templates only once. After that procedure, the Perl code to be translated can be modified at any time. To obtain a new Java version of the code it is only necessary to execute Perldoop again, and it will be automatically generated. A Hadoop cluster installed at the Galicia Supercomputing Center (CESGA), which consists of 64 nodes has been used in the experimental evaluation. With this infrastructure, an important reduction of the processing time is observed for all the parallel executions with respect to the sequential case both using Hadoop Streaming and Hadoop. For example, the original modules require about 19 days (more than 450 hours) to process the whole Wikipedia, while using Hadoop Streaming this time decreases to bout 16 hours. Despite these important improvements, the execution times using Hadoop Streaming are still high. However, when using the Hadoop-ready codes generated by Perldoop, this time is reduced to less than 2 hours. That is, 8×faster than considering Hadoop Streaming. More details about the design, implementation and Perldoop performance results can be found in Chapter 2. 16 Chapter 1. Introduction 1.4.2. Genomics The first step in a DNA or RNA genomics analysis is always reading a biological sample, taking the genomic information from the sample into a digital format in a computer with the aim of analyzing this data. Emerging next-generation sequencing technologies (NGS) have broken many experimental barriers to genome scale sequencing, facilitating the extraction of huge quantities of sequences, which will further promote the future growth of biological databases. In the last years, the available biological data in a digital format has experimented a big and quick growth. Good examples are the DNA sequence information in the NCBI GenBank [50] database and the protein sequences in the UniProtKB/TrEMBL [51] database. According to [52], compared to traditional Sanger capillary-based electrophoresis systems, NGS technologies provide ultra-high throughput with a two orders of magnitude lower unit data cost. However, they all share the common intrinsic characteristic of providing short read length, currently 25–75 base pairs (bp), this is, 25-75 characters, which is substantially shorter than the Sanger sequencing reads (500–1000 bp) [53]. These short reads, commonly named sequences, are composed of ASCII characters representing a nucleotide from the sequence, also known as nucleobases or simply, bases. For example, in the DNA case, we can find only four possible bases: A - Adenine C - Cytosine G - Guanine T - Thymine Computer scientists and biomedical researchers face the challenge of transforming these short-reads into biological understanding. Consequently, bioinformatics tools need to be scalable; that is, they need to deal with an ever growing amount of data. Unfortunately, the amount of publicly available sequence data grows faster than the single core processor performance. Thus, modern bioinformatics tools need to take advantage of parallel computing [54]. To give meaning to all this data, according to the GATK [55] best practices from the Broad Institute [56], a wide number of DNA or RNA analysis pipelines perform a pre-processing raw data that comes from high throughput ultra sequencers. To be more precise, they say that “pre-processing starts from raw sequence data and produces analysis-ready BAM files. This involves alignment to a reference genome”. 1.4. Case studies: Natural Language Processing and Genomics 17 1 2 3 4 5 6 AACGT- -AACGT A-ACGT AACGT------ AA-CGT- -A-A-C-G-T- ACCGTT ACCGTT ACCGTT -----ACCGTT A-CCGTT A-C-C-G-T-T Table 1.3: Six different possible alignments for the example sequences. This pre-processing or alignment is, basically, a way of arranging the sequences of DNA, RNA, or protein to identify regions of similarity that may be a consequence of functional, structural, or evolutionary relationships between the sequences [57]. This alignment of raw data to a reference genome is one of the most time consuming steps in every genomic analysis, and remains as a bottleneck in nowadays workflows Its computing time is very high in comparison with the other steps in the selected workflow. More information about the state of the art algorithms used to perform the alignment phase can be found in [58], [59] or [60]. Short reads alignment DNA, RNA and protein sequences encode changes in evolution time through mutation. The simplest kinds of mutation are point mutations and insertions/deletions, also known as indels. These two types of change are modeled by classical alignment algorithms. As an illustrative example, a set of possible alignments of two DNA sequences, AACGT and ACCGTT, are shown in Table 1.3 by writing their bases on top of each other, in a way that, either two bases are paired, corresponding to presence or absence of a point mutation, or a base is paired with a gap, corresponding to an insertion or deletion. It is not allowed to pair a gap with a gap, not because two sequences cannot inherit the same deletion (they can), but because there is no enough information to infer such a course of evolution from just two sequences. In Table 1.3, six example alignments that can be generated following these rules are presented [59]. The question now is, which one of the alignments is the “best”? At first sight, alignment 1 may seem the best, as it has four matches, while alignment 2 only has one, alignment 3 has two, and alignments 4 and 6 have no matches. However alignment five also contains four matches, but it contains three gaps, while alignment 1 only has one gap. There are several algorithms to calculate what is called the alignment score. Here, we refer to [58], [59] and [60], where the most common scoring systems are explained in detail. Putting these two factors together, (the big amount of data generated by sequencers and the high computational cost required to carry out the alignment), help us to understand why the development of parallel tools for the alignment process is so important. CHAPTER 2 PERLDOOP: EFFICIENT EXECUTION OF PERL SCRIPTS ON HADOOP CLUSTERS J. M. Abu´ ın, J. C. Pichel, T. F. Pena, P. Gamallo, and M. Garcia, “Perldoop: Efficient execution of Perl scripts on Hadoop clusters,” in IEEE International Conference on Big Data, 2014, pp. 766–771 https://doi.org/10.1109/BigData.2014.7004303 CHAPTER 3 BIGBWA: APPROACHING THE BURROWS-WHEELER ALIGNER TO BIG DATA TECHNOLOGIES J. M. Abu´ ın, J. C. Pichel, T. F. Pena, and J. Amigo, “BigBWA: Approaching the Burrows–Wheeler Aligner to Big Data Technologies,” Bioinformatics, vol. 31, no. 24, pp. 4003–4005, 2015 https://doi.org/10.1093/bioinformatics/btv506 CHAPTER 4 SPARKBWA: SPEEDING UP THE ALIGNMENT OF HIGH-THROUGHPUT DNA SEQUENCING DATA J. M. Abu´ ın, J. C. Pichel, T. F. Pena, and J. Amigo, “SparkBWA: speeding up the alignment of high-throughput DNA sequencing data,” PloS one, vol. 11, no. 5, p. e0155461, 2016 https://doi.org/10.1371/journal.pone.0155461 CHAPTER 5 PASTASPARK:MULTIPLE SEQUENCE ALIGNMENT MEETS BIG DATA J. M. Abu´ ın, T. F. Pena, and J. C. Pichel, “PASTASpark: multiple sequence alignment meets Big Data,” Bioinformatics https://doi.org/10.1093/bioinformatics/btx354 CHAPTER 6 CONCLUSIONS In the recent years Big Data tools and ecosystems have become the standard when analyzing or processing huge datasets. We find the cause in the benefits of these technologies: fault tolerance, use of high level programming languages, or their similarity with High Performance Computing (HPC) regarding its parallel philosophy. Many experts in the HPC area agree that the Big Data and the HCP ecosystems should converge, or at least, share some approaches in order to enter into the Exascale era. In this way, HPC should incorporate some features from Big Data technologies such as the fault tolerance or the fast data distribution. In this thesis, we use Big Data technologies to deal with some scientific problems that are computationally intensive regarding execution time (typical in HPC problems) and, at the same time, have a large input data size (typical in Big Data), with the objective of improving the execution time, scalability and efficiency. Conclusions derived from this work, and presented in this chapter, can clarify where the barrier between these two paradigms stands, or even prove whether this barrier exists at all. In this way, we want to contribute to solve the key question that in recent times has arisen among the HPC community could be solved: should Big Data be considered part of the High Performance Computing field? Next, the main conclusions derived from this work are summarized: The field of NLP needs scalable and efficient tools in order to process the huge amount of information available in the Big Data era. However, the state of the art tools are usually written in languages that are not suitable neither for HPC nor Big Data technologies. This is the case, for example, of the existent modules in the Linguakit repository, written in Perl language. Although Hadoop provides the Hadoop Streaming tool 40 Bibliography [11] L. Dagum and R. Menon, “Openmp: an industry standard api for shared-memory programming,” IEEE computational science and engineering, vol. 5, no. 1, pp. 46–55, 1998. [12] “OpenACC web page,” https://www.openacc.org/, [Online; accessed Apr, 2017]. [13] M. Zaharia, M. Chowdhury, M. J. Franklin, S. Shenker, and I. Stoica, “Spark: Cluster Computing with Working Sets,” in Proc. of the 2Nd USENIX Conference on Hot Topics in Cloud Computing (HotCloud), 2010, pp. 10–10. [14] H. Asaadi, D. Khaldi, and B. M. Chapman, “A Comparative Survey of the HPC and Big Data Paradigms: Analysis and Experiments,” in 2016 IEEE International Conference on Cluster Computing, CLUSTER 2016, Taipei, Taiwan, September 12-16, 2016, 2016, pp. 423–432. [15] D. A. Reed and J. Dongarra, “Exascale Computing and Big Data,” Commun. ACM, vol. 58, no. 7, pp. 56–68, Jun. 2015. [16] Lustre, “Lustre File System,” http://lustre.org, [Online; accessed May, 2017]. [17] G. Staples, “TORQUE Resource Manager,” in Proceedings of the 2006 ACM/IEEE Conference on Supercomputing, ser. SC ’06. New York, NY, USA: ACM, 2006. [18] A. B. Yoo, M. A. Jette, and M. Grondona, “Slurm: Simple linux utility for resource management,” in Workshop on Job Scheduling Strategies for Parallel Processing. Springer, 2003, pp. 44–60. [19] “Nvidia CUDA Home Page,” http://www.nvidia.com/object/cuda home new.html, [Online; accessed May, 2017]. [20] “OpenCL Home Page,” https://www.khronos.org/opencl/, [Online; accessed May, 2017]. [21] “LAPACK web page,” http://www.netlib.org/lapack/, [Online; accessed Apr, 2017]. [22] S. Balay, W. D. Gropp, L. C. McInnes, and B. F. Smith, “Efficient Management of Parallelism in Object Oriented Numerical Software Libraries,” in Modern Software Tools in Scientific Computing, E. Arge, A. M. Bruaset, and H. P. Langtangen, Eds. Birkh¨ auser Press, 1997, pp. 163–202. Bibliography 41 [23] K. Shvachko, H. Kuang, S. Radia, and R. Chansler, “The Hadoop Distributed File System,” in Proceedings of the 2010 IEEE 26th Symposium on Mass Storage Systems and Technologies (MSST), ser. MSST ’10. Washington, DC, USA: IEEE Computer Society, 2010, pp. 1–10. [24] V. K. Vavilapalli, A. C. Murthy, C. Douglas, S. Agarwal, M. Konar, R. Evans, T. Graves, J. Lowe, H. Shah, S. Seth, B. Saha, C. Curino, O. O’Malley, S. Radia, B. Reed, and E. Baldeschwieler, “Apache Hadoop YARN: Yet Another Resource Negotiator,” in Proc. of the 4th Annual Symposium on Cloud Computing (SOCC), 2013, pp. 5:1–5:16. [25] B. Hindman, A. Konwinski, M. Zaharia, A. Ghodsi, A. D. Joseph, R. Katz, S. Shenker, and I. Stoica, “Mesos: A Platform for Fine-grained Resource Sharing in the Data Center,” in Proc. of the 8th USENIX Conference on Networked Systems Design and Implementation, 2011, pp. 295–308. [26] T. White, Hadoop: The Definitive Guide, 3rd ed. O’Reilly Media, Inc., 2012. [27] “Apache Pig Home Page,” https://pig.apache.org/, [Online; accessed June, 2017]. [28] “Apache Hive home page,” http://hive.apache.org/, [Online; accessed December, 2016]. [29] HBase, “HBase,” https://hbase.apache.org/, [Online; accessed May, 2017]. [30] I. F. Haddad, “PVFS: A Parallel Virtual File System for Linux Clusters,” Linux J., vol. 2000, no. 80es, Nov. 2000. [31] S. Ghemawat, H. Gobioff, and S.-T. Leung, “The Google File System,” in Proceedings of the Nineteenth ACM Symposium on Operating Systems Principles, ser. SOSP ’03. New York, NY, USA: ACM, 2003, pp. 29–43. [32] M. K. McKusick and S. Quinlan, “GFS: Evolution on Fast-forward,” Queue, vol. 7, no. 7, pp. 10:10–10:20, Aug. 2009. [33] T. White, Hadoop: The Definitive Guide, 4th ed. O’Reilly Media, Inc., 2015. [34] S. N. Srirama, P. Jakovits, and E. Vainikko, “Adapting Scientific Computing Problems to Clouds Using MapReduce.” 42 Bibliography [35] M. Islam, A. K. Huang, M. Battisha, M. Chiang, S. Srinivasan, C. Peters, A. Neumann, and A. Abdelnur, “Oozie: towards a scalable workflow management system for Hadoop,” in Proceedings of the 1st ACM SIGMOD Workshop on Scalable Workflow Execution Engines and Technologies. ACM, 2012, p. 4. [36] “Cascading home page,” http://www.cascading.org/, [Online; accessed February, 2016]. [37] M. Ding, L. Zheng, Y. Lu, L. Li, S. Guo, and M. Guo, “More convenient more overhead: the performance evaluation of Hadoop streaming,” in ACM Symp. on Research in Applied Computation, 2011, pp. 307–313. [38] H. Karau, A. Konwinski, P. Wendell, and M. Zaharia, Learning Spark: Lightning-Fast Big Data Analytics, 1st ed. O’Reilly Media, Inc., 2015. [39] M. Zaharia, M. Chowdhury, T. Das, A. Dave, J. Ma, M. McCauley, M. J. Franklin, S. Shenker, and I. Stoica, “Resilient Distributed Datasets: A Fault-tolerant Abstraction for In-memory Cluster Computing,” in Proc. of the 9th USENIX Conference on Networked Systems Design and Implementation, 2012, pp. 2–2. [40] R. Agerri, X. Artola, Z. Beloki, G. Rigau, and A. Soroa, “Big data for natural language processing: a streaming approach,” Knowledge-Based Systems, vol. 79, pp. 36–42, 2015. [41] P. Gamallo and M. Garc´ ıa, “A Resource-Based Method for Named Entity Extraction and Classification,” LNCS series, vol. 7026, pp. 610–623, 2011. [42] T. Hasegawa, S. Sekine, and R. Grishman, “Discovering relations among named entities from large corpora,” in Proceedings of the 42nd Annual Meeting on Association for Computational Linguistics. Association for Computational Linguistics, 2004, p. 415. [43] Z. Kozareva, J. Silva, P. Gamallo, and G. Lopes, “Cluster analysis of named entities,” in Intelligent Information Processing and Web Mining. Springer, 2004, pp. 429–433. [44] J. Nothman, N. Ringland, W. Radford, T. Murphy, and J. R. Curran, “Learning multilingual named entity recognition from Wikipedia,” Artificial Intelligence, vol. 194, pp. 151–175, 2013. [45] D. Lin and X. Wu, “Phrase clustering for discriminative learning,” in Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Bibliography 43 Joint Conference on Natural Language Processing of the AFNLP: Volume 2-Volume 2. Association for Computational Linguistics, 2009, pp. 1030–1038. [46] J. R. Finkel, T. Grenager, and C. Manning, “Incorporating non-local information into information extraction systems by gibbs sampling,” in Proceedings of the 43rd annual meeting on association for computational linguistics. Association for Computational Linguistics, 2005, pp. 363–370. [47] M. Garcia and P. Gamallo, “An Entity-Centric Coreference Resolution System for Person Entities with Rich Linguistic Information,” in COLING, 2014, pp. 741–752. [48] ——, “Yet another suite of multilingual NLP tools,” in International Symposium on Languages, Applications and Technologies. Springer, 2015, pp. 65–75. [49] J. M. Abu´ ın, J. C. Pichel, T. F. Pena, P. Gamallo, and M. Garcia, “Perldoop: Efficient execution of Perl scripts on Hadoop clusters,” in IEEE International Conference on Big Data, 2014, pp. 766–771. [50] D. A. Benson, M. Cavanaugh, K. Clark, I. Karsch-Mizrachi, D. J. Lipman, J. Ostell, and E. W. Sayers, “GenBank,” Nucleic Acids Research, vol. 41, no. D1, p. D36, 2013. [51] R. Apweiler, A. Bairoch, C. H. Wu, W. C. Barker, B. Boeckmann, S. Ferro, E. Gasteiger, H. Huang, R. Lopez, M. Magrane, M. J. Martin, D. A. Natale, C. O’Donovan, N. Redaschi, and L. L. Yeh, “UniProt: the Universal Protein knowledgebase,” Nucleic Acids Research, vol. 32, no. S1, pp. 115–119, 2004. [52] R. Li, H. Zhu, J. Ruan, W. Qian, X. Fang, Z. Shi, Y. Li, S. Li, G. Shan, K. Kristiansen et al., “De novo assembly of human genomes with massively parallel short read sequencing,” Genome research, vol. 20, no. 2, pp. 265–272, 2010. [53] J. Shendure, R. D. Mitra, C. Varma, and G. M. Church, “Advanced sequencing technologies: methods and goals,” Nature Reviews Genetics, vol. 5, no. 5, pp. 335–344, 2004. [54] B. Schmidt, Bioinformatics: High Performance Parallel Computer Architectures, 1st ed. CRC Press, 2011. [55] A. McKenna, M. Hanna, E. Banks, A. Sivachenko, K. Cibulskis, A. Kernytsky, K. Garimella, D. Altshuler, S. Gabriel, M. Daly, and M. A. DePristo, “The Genome 44 Bibliography Analysis Toolkit: a MapReduce framework for analyzing next-generation DNA sequencing data,” Genome Research, vol. 20, pp. 1297–1303, Sep 2010. [56] B. institute, “GATK Best Practices,” https://software.broadinstitute.org/gatk/ best-practices/, [Online; accessed May, 2017]. [57] D. W. Mount, Bioinformatics: sequence and genome analysis. CSHL press, 2004, ch. Phylogenetic Prediction. [58] R. C. Deonier, S. Tavar´ e, and M. Waterman, Computational genome analysis: an introduction. Springer Science & Business Media, 2005. [59] B. Haubold and T. Wiehe, Introduction to computational biology: an evolutionary approach. Springer Science & Business Media, 2006. [60] N. C. Jones and P. Pevzner, An introduction to bioinformatics algorithms. MIT press, 2004. [61] H. Li and R. Durbin, “Fast and Accurate Short Read Alignment with Burrows-Wheeler Transform,” Bioinformatics, vol. 25, no. 14, pp. 1754–1760, 2009. [62] ——, “Fast and Accurate Long-Read Alignment with Burrows-Wheeler Transform,” Bioinformatics, vol. 26, no. 5, pp. 589–595, 2010. [63] H. Li, “Aligning sequence reads, clone sequences and assembly contigs with BWAMEM,” arXiv:1303.3997v2, 2013. [64] B. Langmead, C. Trapnell, M. Pop, and S. L. Salzberg, “Ultrafast and memory-efficient alignment of short DNA sequences to the human genome,” Genome biology, vol. 10, no. 3, p. R25, 2009. [65] R. Li, Y. Li, K. Kristiansen, and J. Wang, “SOAP: short oligonucleotide alignment program,” Bioinformatics, vol. 24, no. 5, p. 713, 2008. [66] R. Li, C. Yu, Y. Li, T.-W. Lam, S.-M. Yiu, K. Kristiansen, and J. Wang, “SOAP2: an improved ultrafast tool for short read alignment,” Bioinformatics, vol. 25, no. 15, p. 1966, 2009. Bibliography 45 [67] C.-M. Liu, T. K. F. Wong, E. Wu, R. Luo, S.-M. Yiu, Y. Li, B. Wang, C. Yu, X. Chu, K. Zhao, R. Li, and T. W. Lam, “SOAP3: ultra-fast GPU-based parallel alignment tool for short reads,” Bioinformatics, vol. 28, no. 6, pp. 878–879, 2012. [68] R. Luo, T. Wong, J. Zhu, C.-M. Liu, X. Zhu, E. Wu, L.-K. Lee, H. Lin, W. Zhu, D. W. Cheung, H.-F. Ting, S.-M. Yiu, S. Peng, C. Yu, Y. Li, R. Li, and T.-W. Lam, “SOAP3-dp: Fast, Accurate and Sensitive GPU-Based Short Read Aligner,” PLoS ONE, vol. 8, no. 5, 2013. [69] D. Decap, J. Reumers, C. Herzeel, P. Costanza, and J. Fostier, “Halvade: Scalable Sequence Analysis with MapReduce,” Bioinformatics, vol. 31, no. 15, pp. 2482–2488, 2015. [70] L. Pireddu, S. Leo, and G. Zanetti, “SEAL: a distributed short read mapping and duplicate removal tool,” Bioinformatics, vol. 27, no. 15, pp. 2159–2160, 2011. [71] S. Leo and G. Zanetti, “Pydoop: a Python MapReduce and HDFS API for Hadoop,” in Proc. of 19th Symposyum on HPDC, 2010, pp. 819–825. [72] Y. Liu, B. Schmidt, and D. L. Maskell, “CUSHAW: a CUDA compatible short read aligner to large genomes based on the Burrows-Wheeler transform,” Bioinformatics, vol. 28, no. 14, pp. 1830–1837, 2012. [73] Y. Liu and B. Schmidt, “CUSHAW2-GPU: empowering faster gapped short-read alignment using GPU computing,” IEEE Design & Test, vol. 31, no. 1, pp. 31–39, 2014. [74] Y. Liu, B. Popp, and B. Schmidt, “CUSHAW3: sensitive and accurate base-space and color-space short-read alignment with hybrid seeding,” PloS one, vol. 9, no. 1, p. e86869, 2014. [75] D. Peters, X. Luo, K. Qiu, and P. Liang, “Speeding Up Large-Scale Next Generation Sequencing Data Analysis with pBWA,” Journal of Applied Bioinformatics & Computational Biology, vol. 1, no. 1, pp. 1–6, 2012. [76] J. M. Abu´ ın, J. C. Pichel, T. F. Pena, and J. Amigo, “BigBWA: Approaching the Burrows–Wheeler Aligner to Big Data Technologies,” Bioinformatics, vol. 31, no. 24, pp. 4003–4005, 2015. 46 Bibliography [77] S. Liang, Java Native Interface: Programmer’s Guide and Reference, 1st ed. Boston, MA, USA: Addison-Wesley Longman Publishing Co., Inc., 1999. [78] J. M. Abu´ ın, J. C. Pichel, T. F. Pena, and J. Amigo, “SparkBWA: speeding up the alignment of high-throughput DNA sequencing data,” PloS one, vol. 11, no. 5, p. e0155461, 2016. [79] Mirarab, S. et al., “PASTA: ultra-large multiple sequence alignment for nucleotide and amino-acid sequences,” Journal of Computational Biology, vol. 22, no. 5, pp. 377–386, 2015. [80] Liu, K. et al., “SAT´ e-II: very fast and accurate simultaneous estimation of multiple sequence alignments and phylogenetic trees,” Systematic Biology, vol. 61, no. 1, pp. 90– 106, 2012. [81] J. M. Abu´ ın, T. F. Pena, and J. C. Pichel, “PASTASpark: multiple sequence alignment meets Big Data,” Bioinformatics. [82] Katoh, K. et al., “MAFFT: improvement in accuracy of multiple sequence alignment,” Nucleic acids research, vol. 33, no. 2, pp. 511–518, 2005. [83] Y. Liu, B. Schmidt, and D. L. Maskell, “MSAProbs: multiple sequence alignment based on pair hidden Markov models and partition function posterior probabilities,” Bioinformatics, vol. 26, no. 16, pp. 1958–1964, 2010. [84] J. Gonz´ alez-Dom´ ınguez, Y. Liu, J. Touri˜ no, and B. Schmidt, “MSAProbs-MPI: parallel multiple sequence aligner for distributed-memory systems,” Bioinformatics, vol. 32, no. 24, pp. 3826–3828, 2016. [85] A. Gudy´ s and S. Deorowicz, “QuickProbs—A Fast Multiple Sequence Alignment Algorithm Designed for Graphics Processors,” PLOS ONE, vol. 9, no. 2, pp. 1–18, 02 2014. [86] P. Gamallo, J. C. Pichel, M. Garcia, J. M. Abu´ ın, and T. F. Pena, “An´ alisis morfosint´ actico y clasificaci´ on de entidades nombradas en un entorno Big Data,” Procesamiento del Lenguaje Natural, vol. 53, pp. 17–24, 2014. List of Figures 1.1. Stack comparison between Big Data and HPC ecosystems. . . . . . . . . . . 4 1.2. Example of how HDFS works. . . . . . . . . . . . . . . . . . . . . . . . . 7 1.3. Example of how YARN works. . . . . . . . . . . . . . . . . . . . . . . . . 8 1.4. Example of how Spark works. . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.5. NERC system from Linguakit. . . . . . . . . . . . . . . . . . . . . . . . . . 13 List of Tables 1. Seis posible alineamientos para las secuencias de ejemplo. . . . . . . . . . . XIX 1.1. Comparing processing power of different platforms. . . . . . . . . . . . . . 2 1.2. Linguakit NERC example. . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 1.3. Six different possible alignments for the example sequences. . . . . . . . . 17