Full text
Universidade do Minho Escola de Engenharia Fernando João Pereira da Cruz Blueprint: Documenting the complexity of metabolic regulation by reconstruction of integrated metabolic-regulatory models October 2022 UMinho | 2022 Fernando João Pereira da Cruz Blueprint: Documenting the complexity of metabolic regulation by reconstruction of integrated metabolic-regulatory models
Universidade do Minho School of Engineering Fernando João Pereira da Cruz Blueprint: Documenting the complexity of metabolic regulation by reconstruction of integrated metabolic-regulatory models Doctorate Thesis Doctorate in Biomedical Engineering Work developed under the supervision of: Professor Oscar Dias Professor Miguel Rocha Professor José Pedro Faria October, 2022
COPYRIGHT AND TERMS OF USE OF THIS WORK BY A THIRD PARTY This is academic work that can be used by third parties as long as internationally accepted rules and good practices regarding copyright and related rights are respected. Accordingly, this work may be used under the license provided below. If the user needs permission to make use of the work under conditions not provided for in the indicated licensing, they should contact the author through the RepositoriUM of Universidade do Minho. License granted to the users of this work Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en This document was created with the (pdf/Xe/Lua)L A T EX processor and the NOVAthesis template (v6.9.15) [1]. ii
Acknowledgements I would like to thank Fundação para a Ciência e Tecnologia for the Ph.D. studentship I was awarded with (SFRH/BD/139198/2018). This work is only possible due to their support. I would also like to thank the Centre of Biological Engineering at the University of Minho for hosting me and providing an excellent working environment. Após estes anos, após esta viagem, após linhas e linhas de código, após linhas e linhas de artigos, após linhas e linhas de tese, serei finalmente simples e breve. Estes anos são viagem! E, portanto, guardo em mim todas as suas passagens com muito carinho e gratidão a todos que dela fizeram parte. Agradeço aos meus orientadores, em especial ao professor Oscar Dias e professor Miguel Rocha, todo o apoio, inspiração e amizade nesta viagem. Agradeço aos meus amigos, em especial Alexandre, Marta, Capela, Emanuel, Sequeira, Fernanda, Nuno, Diogo, Miguel, e Zé, toda a paciência e suporte nesta viagem. Agradeço aos meus pais e irmã (pota lima ahah) todo apoio, carinho e amor que sempre tiveram para comigo. Sem sombra de dúvida são os grandes obreiros do melhor de mim. Agradeço à Coralie toda a amizade, carinho, e amor! Mas, agradeço-te principalmente por me acompanheres nesta viagem! iii
STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the Universidade do Minho. , (Place) (Date) (Fernando João Pereira da Cruz) iv Assinado por: FERNANDO JOÃO PEREIRA DA CRUZ Num. de Identificação: 14354375 Data: 2023.02.03 11:23:47+00'00'
Resumo Blueprint: Descrição da complexidade da regulação metabólica através da reconstrução de modelos metabólicos e regulatórios integrados Um modelo metabólico consegue prever o fenótipo de um organismo. No entanto, estes modelos podem obter previsões incorretas, pois alguns processos metabólicos são controlados por mecanismos reguladores. Assim, várias metodologias foram desenvolvidas para melhorar os modelos metabólicos através da integração de redes regulatórias. Todavia, a reconstrução de modelos regulatórios e metabólicos à escala genómica para diversos organismos apresenta diversos desafios. Neste trabalho, propõe-se o desenvolvimento de diversas ferramentas para a reconstrução e análise de modelos metabólicos e regulatórios à escala genómica. Em primeiro lugar, descreve-se o Biological networks constraint-based In Silico Optimization (BioISO) , uma nova ferramenta para auxiliar a curação manual de modelos metabólicos. O BioISO usa um algoritmo de relação recursiva para orientar as previsões de fenótipo. Assim, esta ferramenta pode reduzir o número de artefatos em modelos metabólicos, diminuindo a possibilidade de obter erros durante a fase de curação. Na segunda parte deste trabalho, desenvolveu-se um repositório de redes regulatórias para procariontes que permite suportar a sua integração em modelos metabólicos. O Prokaryotic Transcriptional Regulatory Network Database (ProTReND) inclui diversas ferramentas para extrair e processar informação regulatória de recursos externos. Esta ferramenta contém um sistema de integração de dados que converte dados dispersos de regulação em redes regulatórias integradas. Além disso, o ProTReND dispõe de uma aplicação que permite o acesso total aos dados regulatórios. Finalmente, desenvolveu-se uma ferramenta computacional no MEWpy para simular e analisar modelos regulatórios e metabólicos. Esta ferramenta permite ler um modelo metabólico e/ou rede regulatória, em diversos formatos. Esta estrutura consegue construir um modelo regulatório e metabólico integrado usando as interações regulatórias e as ligações entre genes e proteínas codificadas no modelo metabólico e na rede regulatória. Além disso, esta estrutura suporta vários métodos de previsão de fenótipo implementados especificamente para a análise de modelos regulatórios-metabólicos. Palavras-chave: Modelo metabólico à escala genómica, Rede regulatória, Metabolismo, Regulação genética v
Abstract Blueprint: Documenting the complexity of metabolic regulation by reconstruction of integrated metabolic-regulatory models Genome-Scale Metabolic (GEM) models can predict the phenotypic behavior of organisms. However, these models can lead to incorrect predictions, as certain metabolic processes are controlled by regulatory mechanisms. Accordingly, many methodologies have been developed to extend the reconstruction and analysis of GEM models via the integration of Transcriptional Regulatory Network (TRN)s. Nevertheless, the perspective of reconstructing integrated genome-scale regulatory and metabolic models for diverse prokaryotes is still an open challenge. In this work, we propose several tools to assist the reconstruction and analysis of regulatory and metabolic models. We start by describing BioISO, a novel tool to assist the manual curation of GEM models. BioISO uses a recursive relation-like algorithm and Flux Balance Analysis (FBA) to evaluate and guide debugging of in silico phenotype predictions. Hence, this tool can reduce the number of artifacts in GEM models, decreasing the burdens of model refinement and curation. A state-of-the-art repository of TRNs for prokaryotes was implemented to support the reconstruction and integration of TRNs into GEM models. The ProTReND repository comprehends several tools to extract and process regulatory information available in several resources. More importantly, this repository contains a data integration system to unify the regulatory data into standardized TRNs at the genome scale. In addition, ProTReND contains a web application with full access to the regulatory data. Finally, we have developed a new modeling framework to define, simulate and analyze GEnome-scale Regulatory and Metabolic (GERM) models in MEWpy. The GERM model framework can read a GEM model, as well as a TRN from different file formats. This framework assembles a GERM model using the regulatory interactions and Genes-Proteins-Reactions (GPR) rules encoded into the GEM model and TRN. In addition, this modeling framework supports several methods of phenotype prediction designed for regulatory-metabolic models. Keywords: Genome-scale metabolic model, Transcriptional Regulatory Network, Metabolism, Gene regulation vi
Contents List of Figures x List of Tables xiii Acronyms xiv 1 Introduction 1 1.1 Context and Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 ResearchObjectives................................ 2 1.3 Outline...................................... 3 2 Background 5 2.1 The control of gene expression . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.2 From high-throughput measurement techniques to the transcriptome . . . . . . . . 8 2.3 Resources of regulatory data . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.4 Resources of genomics and proteomics data . . . . . . . . . . . . . . . . . . . . 14 2.5 Transcriptional regulatory networks . . . . . . . . . . . . . . . . . . . . . . . . 14 2.6 Reconstruction of transcriptional regulatory networks . . . . . . . . . . . . . . . . 17 2.7 Reconstruction of genome-scale metabolic models . . . . . . . . . . . . . . . . . 20 2.8 Integratedmodels................................. 23 2.9 Integrating transcriptional regulatory networks . . . . . . . . . . . . . . . . . . . 27 2.10 Integrating gene expression data . . . . . . . . . . . . . . . . . . . . . . . . . 29 2.11 Synopsis..................................... 30 3 Assisting the curation of genome-scale metabolic models 34 3.1 Introduction.................................... 35 3.2 Survey of gap-find and gap-fill tools . . . . . . . . . . . . . . . . . . . . . . . . 36 3.3 BioISO implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 vii
Acronyms AdaM Adaptation of Metabolism (p. 30) API Application Programming Interface (pp. 59, 64, 67, 70, 71, 74–77, 100, 101, 107, 108) BioISO Biological networks constraint-based In Silico Optimization (pp. v, vi, x, xiii, 35, 37–57, 141, 142, 144, 162, 163) BPCY Biomass-Product Coupled Yield (pp. 113, 140) cDNA Complementary Deoxyribonucleic Acid (p. 9) CDS Central Data Storage (pp. xi, 61–68, 72, 74–87, 90, 93, 94, 99–101, 108, 163) ChIP Chromatin Immunoprecipitation (p. 9) ChIP-chip Chromatin Immunoprecipitation-Microarray (pp. 8–10, 13) ChIP-seq Chromatin Immunoprecipitation Sequencing (pp. 8–10, 13) COBRA Constraint-Based Reconstruction and Analysis (p. 1) CRUD Create, Read, Update and Delete (pp. 64, 67, 100, 101, 108) CSO Computational Strain Optimization (pp. 111, 126) CSV Comma Separated Values (pp. 68, 70, 100, 107, 114, 120, 121, 123, 130, 142) DBMS Database Management System (pp. 61, 64, 67, 101, 108) DBTBS Database of Transcriptional regulation in Bacillus subtilis (pp. 12, 13, 71, 73, 75, 84–86, 91) dFBA Dynamic Flux Balance Analysis (pp. 29, 30) DNA Deoxyribonucleic Acid (pp. 6–10, 56, 66, 76) DNA-seq DNA-sequencing (p. 1) DOI Digital Object Identifier (pp. 74, 105) EA Evolutionary Algorithm (pp. 112, 113, 129) xiv
EFM Elementary Flux Mode (p. 30) EGRIN Environment and Gene Regulatory Influence Network (p. 28) ETL Extract-Transform-Load (pp. x, xi, xiii, 60–62, 67, 68, 77, 78, 82–87, 89, 90, 142) FASTA FAST-All (pp. 104, 105, 107) FBA Flux Balance Analysis (pp. vi, 22, 28, 29, 35, 40–42, 45, 47, 113–115, 122, 125–127) FTP File Transfer Protocol (p. 75) FVA Flux Variability Analysis (pp. 22, 29, 113, 126) GA Genetic Algorithm (p. 113) GAMS General Algebraic Modeling System (p. 36) GEM Genome-Scale Metabolic (pp. vi, x, 1–3, 20–33, 35–37, 42–46, 48, 53, 112–116, 118–120, 122, 123, 129, 130, 134, 140–142, 144, 163, 164) GEO Gene Expression Omnibus (pp. 9, 13) GERM GEnome-scale Regulatory and Metabolic (pp. vi, xi–xiii, 113, 114, 116, 119, 121, 123, 124, 127–142, 144, 163, 164) GIMME Gene Inactivity Moderated by Metabolism and Expression (p. 30) GPR Genes-Proteins-Reactions (pp. vi, 20, 25, 27, 112, 114, 117, 120, 123, 125, 126, 128, 129) GUI Graphical User Interface (pp. 27, 111, 144) GX-FBA Gene Expression Flux Balance Analysis (pp. 29, 30, 32) HEB Hierarchical Edge Bundling (pp. xi, 103) HTML HyperText Markup Language (p. 70) HypE Hypervolume Estimation algorithm (p. 113) IDREAM Integrated Deduced REgulation And Metabolism (pp. 28, 31, 111, 128, 129) JSON JavaScript Object Notation (pp. 62, 63, 68, 70, 71, 74, 75, 84, 100, 107, 114, 116, 121, 123, 142) KEGG Kyoto Encyclopedia of Genes and Genomes (pp. 13, 36, 37, 45, 74, 77, 93) lMOMA linear Minimization of Metabolic Adjustment (pp. 113, 128) LP Linear Programming (pp. 22, 124) M3D Many Microbe Microarrays Database (p. 13) MADE Metabolic Adjustment by Differential Expression (pp. 27, 29, 31, 32) xv
METRADE Metabolic and Transcriptomics Adaptation Estimator (pp. 30, 31) MIAME Minimum Information About a Microarray Experiment (pp. 9, 13) MILP Mixed-Integer Linear Programming (pp. 27, 29, 124, 126, 136) MINSEQE Minimum Information About a Next-generation Sequencing Experiment (p. 9) MOEA Multi-objective Evolutionary Algorithm (pp. 113, 129) MOMA Minimization of Metabolic Adjustment (pp. 113, 128) mRNA Messenger Ribonucleic Acid (pp. 6, 9, 66) MySQL My Structured Query Language (pp. 62, 101, 108) NCBI National Center for Biotechnology Information (pp. 14, 68, 70, 71, 74–78, 93, 101, 102, 104–106) NGS Next Generation Sequencing (pp. 1, 9, 13) NSGA Non-sorting Genetic Algorithm (p. 113) ODB Operon DataBase (pp. 70, 71, 73, 79, 84–86) ODE Ordinary Differential Equation (pp. 20, 21) OGM Object Graph Mapping (pp. 62, 63, 67) pFBA Parsimonious Flux Balance Analysis (pp. 22, 30, 33, 113–115, 122, 125, 127) PMID PubMed Identifier (pp. 66, 70, 71, 74, 79, 105) PROM Probabilistic Regulation of Metabolism (pp. xii, 28, 111, 113–115, 122, 126, 136, 138, 142) ProTReND Prokaryotic Transcriptional Regulatory Network Database (pp. v, vi, x, xi, xiii, 59, 61–69, 72, 74, 77, 79, 81–87, 89–94, 96–109, 141, 142, 144) PSSM Position-Specific Scoring Matrix (p. 77) PWM Position Weight Matrix (pp. 19, 77, 104, 105) RefSeq NCBI Reference Sequence Database (pp. 14, 75, 76, 93, 101) rFBA Regulatory Flux Balance Analysis (pp. xii, 27, 111, 113–115, 122, 125, 126, 135, 136, 142) RIPTiDe Reaction Inclusion by Parsimony and Transcript Distribution (pp. 30, 31) RNA Ribonucleic Acid (pp. 6–10, 56, 69) RNA-seq RNA-sequencing (pp. 1, 8–10, 13, 30) ROOM Regulatory on/off Minimization of Metabolic flux changes (pp. 113, 128) SA Simulated Annealing (p. 113) SBML Systems Biology Markup Language (pp. 21, 27, 37, 42, 114, 120–123, 130, 142) SBML-qual SBML Qualitative (pp. 27, 120, 123) SMD Stanford Microarray Database (p. 13) xvi
SPEA2 Strength Pareto Evolutionary Algorithm (p. 113) SR-FBA Steady-state Regulatory Flux Balance Analysis (pp. xii, 27, 111, 113–115, 122, 124, 126, 133, 135–137, 142) SRA Sequence Read Archive (p. 13) sRNA small RNA (pp. 66, 69, 71, 86) STRING Search Tool for Retrieval of Interacting Genes/Proteins (p. 13) TEAM Temporal Expression-based Analysis of Metabolism (p. 30) TF Transcription Factor (pp. 7, 9, 10, 12–17, 19, 20, 28, 59, 66, 69, 71, 72) tFBA Transcriptional-controlled Flux Balance Analysis (p. 29) TFBS Transcription Factor Binding Site (pp. xi, 7–10, 12, 13, 19, 20, 33, 59, 66, 67, 69–74, 77, 79–81, 84–86, 89–92, 94–98, 102, 104, 105, 108) TIGER Toolbox for Integrating Genome-scale Metabolism (pp. 27, 31, 111) TRANSFAC TRANScription FACtor database (pp. 104, 107) TrEMBL Translated European Molecular Biology Laboratory (p. 14) TRFBA Transcriptional Regulated Flux Balance Analysis (pp. 28, 31, 111) TRN Transcriptional Regulatory Network (pp. vi, x, 2, 3, 9–11, 13–20, 23–29, 31–33, 59, 61, 68, 70, 71, 75, 84, 85, 87, 89, 90, 93, 94, 96, 97, 101–104, 107, 114–116, 118–120, 122, 123, 128, 130, 132, 134, 140–142, 144, 163, 164) tRNA Transfer RNA (p. 65) TSV Tabular Separated Values (pp. 70, 71) TXT Text File (pp. 68, 123) UML Unified Modeling Language (pp. xi, 116, 119, 121, 124) UniProt Universal Protein Resource (pp. 14, 75–79, 101, 102, 104–106) UniProtKB Universal Protein Resource Knowledgebase (pp. 14, 68, 70, 76, 77, 79) XLSX Excel Microsoft Office Open XML Format Spreadsheet File (pp. 71, 100, 107) XML Extensible Markup Language (pp. 100, 107, 123) YEASTRACT YEAst Search for Transcriptional Regulators And Consensus Tracking (p. 28) xvii
1 Introduction 1.1 Context and Motivation The volume of omics data is rising at an unprecedented scale due to the advent of Next Generation Sequencing (NGS) techniques, such as DNA-sequencing (DNA-seq) and RNA-sequencing (RNA-seq) [2]. As a result, high-throughput large-scale omics experiments are nowadays highly used to study the molecular machinery of many organisms at the systems level. For instance, the increase of publicly available genome sequences and gene expression data has enabled systems biology to thrive in this high-throughput era [3]. Systems biology is often described as a multidisciplinary field that provides quantitative and qualitative descriptions of biological systems. The reconstruction of in silico networks and models, leveraged by the large volume of omics data, allows modeling cells’ behavior over time in a wide range of different conditions [4]. The reconstruction of comprehensive metabolic models at the genome scale using genomics data is common practice in systems biology [5]–[11]. Nevertheless, the reconstruction process is still challenging for high-quality reconstructions [12]. In the bottom-up reconstruction approach, model validation and manual curation can be laborious tasks and most bottlenecks derive from accumulated errors requiring complex and unique solutions [13]. On the other hand, the top-down reconstruction approach can quickly generate a gapless simulation-ready model [14]. Yet, the latter approach adds several artifacts to the metabolic network. A major drawback of GEM models is the inability to account for gene regulation [15]. This can lead to incorrect phenotype predictions for prokaryotes in several environmental conditions, as the proteome of these organisms usually changes as the environmental conditions do. A regulatory layer can be added to GEM models to overcome this limitation. This additional regulatory layer can be integrated into GEM models for tailoring tendencies in the flux distributions, thus preventing false positive phenotype simulations. Despite the efforts for the integration of gene regulation into GEM models, most of the methods still fail to outperform Constraint-Based Reconstruction and Analysis (COBRA) methods [16]. This suggests that promising results reported by these methods can be artifacts that do not scale well to different 1
CHAPTER 1. INTRODUCTION GEM models and regulatory data. Hence, reconstructing integrated regulatory-metabolic models for many prokaryotes is still a complex endeavor. The reconstruction of TRNs has become a hot topic in computational biology [17]–[19]. However, the inference of TRNs from gene expression data is an underdetermined problem where many solutions can explain the data equally well [15]. More importantly, most of these methodologies are unavailable to all organisms due to the lack of transcriptomics data. To overcome this limitation, approaches based on comparative genomics tools can extrapolate well-known TRNs of model organisms to poorly studied organisms. For that, state-of-the-art regulatory information is mandatory, as these would ease the development of automated tools for reconstructing TRNs. The following chapters will address the implementation of computational tools to assist the reconstruction and analysis of integrated regulatory-metabolic models at the genome scale. In the first phase, we implemented a computational tool to assist the curation of GEM models, as gaps in the metabolic network might hinder the integration of regulatory networks. In the second phase, we will detail the development of a repository of regulatory information for prokaryotic organisms. This user-friendly resource of regulatory data supports TRN inferring tools, thus easing the development of novel regulatory networks. Moreover, such a repository is also a useful resource of TRNs for reconstructing integrated regulatorymetabolic models. The third phase of this work will focus on developing methods for the reconstruction and analysis of integrated regulatory-metabolic models. These methods allow integrating TRNs into existing GEM models to perform phenotype prediction in complex environmental and genetic conditions. Ultimately, these approaches will be used to obtain new insights regarding the complexity of metabolic regulation in prokaryotic organisms. 1.2 Research Objectives The main goal of this work is to develop computational tools for the reconstruction and analysis of integrated regulatory-metabolic models. First, we will describe a user-friendly tool to assist the curation of high-quality GEM models in a bottom-up reconstruction approach. Next, the collection of multiple TRNs into a unified resource of regulatory information will be addressed. Finally, this project will address the development of several tools for integrating TRNs into GEM models. As the control of gene expression is a complex process in prokaryotic organisms and even more in eukaryotes, all tools to be developed will mainly focus on the regulation of metabolism in prokaryotic organisms. However, future endeavors may extend the scope of this platform. The computational tools developed in the context of this project will be available to the scientific community easing access to a framework for obtaining and integrating regulatory data into metabolic models. Ultimately, this framework can be extended to support the inference of novel in silico networks leading to new insights regarding the cellular mechanisms that control gene expression and metabolism in prokaryotes. 2
1.3. OUTLINE For that, the following objectives are to be accomplished: • To develop an objective-oriented application for easing manual curation steps when debugging in silico metabolic networks; • To collect relevant regulatory information and TRNs for prokaryotic organisms into a unified and integrated data repository; • To provide easy access to the repository of regulatory data capable of supporting TRN inferring tools and integration with GEM models; • To develop computational tools for extending GEM models with TRNs and representing integrated regulatory-metabolic models; • To collect and implement appropriate phenotype prediction methods for integrated regulatorymetabolic models. 1.3 Outline This document is divided into six chapters and outlined as follows: • The current chapter consists of the context and motivation for the reconstruction and analysis of integrated regulatory-metabolic models. In addition, the main objectives associated with this project are also briefly introduced together with the outline of this thesis; • Chapter 2 consists of a detailed collection of concepts and subjects fundamental for understanding the regulation of metabolism in prokaryotic organisms. The first phase will address regulatory resources and the reconstruction of TRNs, while the second phase addresses the reconstruction of GEM models using the bottom-up approach. Finally, the integration of a regulatory layer into GEM models will be thoroughly discussed; • Chapter 3 addresses the implementation of a user-friendly computational tool to assist the manual curation of GEM models. The potential of this tool to guide the debugging of model reconstructions is then assessed with the results of two other state-of-the-art tools; • In chapter 4, the reconstruction of a unified and integrated repository of regulatory information for prokaryotes will be addressed. Likewise, this chapter also encompasses the design and implementation of a web application to access multiple TRNs and to ease the curation of the collected regulatory data; • Chapter 5 comprehends the development of computational tools for representing regulatorymetabolic models. This chapter also includes the implementation of several methods for phenotype prediction with integrated models; 3
CHAPTER 1. INTRODUCTION • Chapter 6 includes a brief synopsis of this project. An assessment of the results obtained in this work is also provided together with new strategies to improve the presented computational tools. 4
2 Background The work presented in this chapter has also been partially published in the following publications: • Cruz, F., Lima, D., Faria, J. P., Rocha, M., Dias, O. (2020). Towards the Reconstruction of Integrated Genome-Scale Models of Metabolism and Gene Expression. In: Fdez-Riverola, F., Rocha, M., Mohamad, M., Zaki, N., Castellanos-Garzón, J. (eds) Practical Applications of Computational Biology and Bioinformatics, 13th International Conference. PACBB 2019. Advances in Intelligent Systems and Computing, vol 1005. Springer, Cham. • Cruz, F., Faria, J. P., Rocha, M., Rocha, I., Dias, O. (2020). A review of methods for the reconstruction and analysis of integrated genome-scale models of metabolism and regulation. Biochemical Society Transactions. 5
CHAPTER 2. BACKGROUND 2.1 The control of gene expression In prokaryotic organisms, the proteome usually changes as the environmental conditions do, thereby reflecting the cell response to the ever-changing environment by making use of a variety of regulatory mechanisms. As depicted in figure 1, the control of gene expression can take place at several stages of regulation [20]. However, the regulation of transcription initiation is most likely the primary stage for controlling gene expression in prokaryotic cells [21]. Figure 1: Different potential stages of regulation in prokaryotic organisms. Each stage can be associated with several regulatory mechanisms that influence the cellular concentration of a given protein. Transcription initiation, translation, posttranslational modifications of proteins, protein targeting, and allosteric regulation are examples of potential stages and mechanisms of regulation in prokaryotic organisms. Transcription is initiated when the holoenzyme Ribonucleic Acid (RNA) polymerase binds to a specific region of Deoxyribonucleic Acid (DNA) known as the promoter [21]. Promoters are usually characterized by a DNA consensus sequence, even if these sequences vary considerably within the genome. The binding affinity of RNA polymerase is influenced by the variety of promoter sequences and the rate at which transcription is initiated. Hence, promoters are often classified as strong or weak promoters due to this control over the initiation of transcription. Many of the principles assumed in regulating prokaryotic gene expression are based on the fact that genes are clustered into operons, thus being regulated together [21]. An operon stands for a group of genes linearly and sequentially disposed of, such that a single functional Messenger Ribonucleic Acid (mRNA) molecule that contains the information for the synthesis of multiple related proteins is transcribed at once. According to the organization of a prokaryotic genome, operons can be considered the primary units of regulation of gene expression. A well-known example, namely the lac operon in Escherichia coli [22], [23], is described in figure 2. In this case, the operon contains the genes required to consume lactose inside the cell. 6
2.3. RESOURCES OF REGULATORY DATA (DBTBS) also comprises a collection of experimentally validated regulatory interactions for B. subtilis [69]. Organism-specific databases can be seen as gold standards of known regulatory interactions taking place in a given prokaryotic organism. Therefore, the contents of these databases can be used to assess state-of-the-art methods aimed at inferring high-quality TRNs. On the other hand, non-organism-specific databases of transcriptional information offer limited information, even if for vast phylogenetic clades. In fact, these databases are considered less comprehensive, as the retrieved regulatory information is usually limited to TFs, TFBS, operons, or target genes. For example, RegPrecise holds transcriptional information for at least 14 taxonomic groups of bacteria [74]. This collection of transcriptional regulons, inferred from high-quality manually-curated data, is also complemented with comparative-genomics approaches [74]. Collectf is an online database of experimentally validated TFBSs in several prokaryotic organisms [73]. Besides databases storing regulatory data only, other online resources, such as Search Tool for Retrieval of Interacting Genes/Proteins (STRING) [80], Kyoto Encyclopedia of Genes and Genomes (KEGG) [81], and BioCyc [82], store relevant transcriptional information for either single or large collections of prokaryotic organisms while providing several other forms of biological data. Databases of gene expression data can house large datasets for a wide diversity of organisms, including bacteria. GEO [65] and ArrayExpress [66] are two of the most widely known databases of gene expression data. Both GEO and ArrayExpress have the advantage of being MIAME compliant and thus being the major hub for sharing the transcriptome of prokaryotic organisms. These databases provide query and browsing tools for analyzing and retrieving gene expression data. Other databases of gene expression data derived from microarray and RNA-seq experiments are COLOMBOS [83] and Many Microbe Microarrays Database (M3D) [84]. These databases comprise a comprehensive compendium of processed bacterial gene expression data useful to reconstruct TRNs. Stanford Microarray Database (SMD) is one of the oldest online resources for storing raw and normalized data, obtained from microarray experiments [85]. Recently, the Sequence Read Archive (SRA) platform has emerged as a prominent resource of biological sequence data, due to the development of NGS technologies [86]. This database provides a public archive of sequenced reads for a large variety of organisms, including prokaryotes. One may access the SRA platform for finding new experiments involving the measurement of prokaryotic transcriptomes using either RNA-seq and ChIP-seq. Several TRNs have been published throughout the years for prokaryotic organisms. Well-known prokaryotes such as E. coli , B. subtilis and M. tuberculosis are well represented in the literature, having comprehensive TRNs with hundreds of regulators and thousands of target genes. For instance, several authors have reconstructed high-quality TRNs for Escherichia coli K-12 MG1655 [46], [87] by combining experimental ChIP-chip and ChIP-seq data with the state-of-the-art network available in RegulonDB [67]. Likewise, two published TRNs of Bacillus subtilis 168 encompass more than 200 regulators each. These networks have been assembled using literature, DBTBS [69] and transcriptomics data. Turkarslan et al [47] has published a TRN for Mycobacterium tuberculosis H37Rv using ChIP-seq and gene expression data 13
CHAPTER 2. BACKGROUND analysis. Interestingly, several TRNs have also been published for non-model prokaryotic organisms [17], [45], [88]–[97]. Nevertheless, most of these TRNs are highly based in data-driven approaches missing the proficiency of manual curation or a characterization at the genome-scale. 2.4 Resources of genomics and proteomics data Resources of genomics and proteomics data can greatly help extend traditional TRNs. The characterization of TRNs at the genome scale is pivotal for reconstructing novel networks and multi-scale models. Universal Protein Resource (UniProt) and National Center for Biotechnology Information (NCBI) are usually considered two central hubs for genomics and proteomics data. Universal Protein Resource Knowledgebase (UniProtKB) consists of a collection of functional information for proteins [98]. This repository contains amino acid sequences, protein functional and structural annotation, and links to external yet useful resources. The UniProtKB is divided into two sections, namely Swiss-Prot and Translated European Molecular Biology Laboratory (TrEMBL). While the former encompasses only high-quality records for many proteins, the latter contains a massive collection of computationally annotated records lacking revision and curation. NCBI is an online resource that provides a series of databases containing several forms of biological data and relevant bioinformatics tools [99]. GenBank is an open-access widely used database of nucleotide sequences available at NCBI [100]. On the other hand, NCBI Reference Sequence Database (RefSeq) database contains annotated and curated nucleotide sequences and the corresponding protein products [101]. These repositories provide public access to relevant information for the structural and functional annotation of many genomes. Another relevant resource available at NCBI is PubMed. This database consists of a large collection of biomedical literature. NCBI also includes a database that attempts to incorporate phylogenetic and taxonomic knowledge for many organisms named NCBI Taxonomy Database [102]. 2.5 Transcriptional regulatory networks A TRN can be represented by a bipartite graph model according to definition 2.5.1 [26]. In this bipartite graph, the vertices correspond to either TFs or target genes, while edges determine the links between these two regulatory elements, often a causal relationship. Figure 4 depicts the transformation of a TRN, comprising one TF controlling the expression of two target genes, into a graph-based structure. Theorem 2.5.1. Definition of a Transcriptional Regulatory Network Let 𝐺={𝐸,𝑉 } be the bipartite graph of a given transcriptional regulatory network where 𝑉 is the set of vertices that stand for either TFs or target genes and 𝐸 the set of edges defining the links between the vertices (usually the causal relationship between TFs or target genes). 14
2.5. TRANSCRIPTIONAL REGULATORY NETWORKS Figure 4: Example of a TRN. Example of the transformation of a TRN, comprising one TF acting over the expression of two target genes, into a TRN bipartite graph model. TRN graphs are usually classified according to the causality of the relationships between the vertices [19]. That is if there are enough pieces of evidence on a regulatory interaction between two vertices, namely one TF that exerts control over a target gene, this TRN sub-graph can be classified as directed, regardless of the nature of this relationship (inhibition or activation). However, if no direction can be inferred between the vertices, this sub-graph is called undirected. In this case, there are no pieces of evidence to infer if a gene exerts control or influences the expression of another gene and vice versa. Ideally, a weighted TRN graph is obtained when both the nature and direction of the causality between two vertices are known. For that, one should infer whether a TF activates or silences the target gene. TRNs can also be divided according to the temporal dimension. Whereas dynamic TRNs are usually inferred from time-series gene expression data, static TRNs can be obtained from regular transcriptomics datasets [103]. Figure 5 illustrates all categories of TRNs, namely directed, undirected, weighted and dynamic graphs. Note that, the first tree examples can also be thought of as static graphs. 15
CHAPTER 2. BACKGROUND Figure 5: Different TRNs graphs categories. Example of TRNs graphs categories: undirected (A); directed (B); weighted (C); dynamic (D). Each of the first tree examples can also be thought of as static TRNs graphs. As shown in figures 6 A and B, TRNs can also be decomposed by the inherent structure and regulatory function [104], respectively. Whereas the structure or topology of the TRN reveals which TFs control the expression of the target genes, the regulatory function, usually represented by a mathematical formulation, determines how one or more TFs exert such control, describing or quantifying the expression levels of target genes. The analysis of the TRN structure can suggest the presence of regulatory motifs or modules, namely groups of co-expressed genes associated with a shared regulatory program or subnetworks of interconnected regulators and target genes. Regulatory functions, on the other hand, are used for determining the expression level of target genes as a function of the TF expression level or state. 16
2.6. RECONSTRUCTION OF TRANSCRIPTIONAL REGULATORY NETWORKS Figure 6: Difference between structure and function of TRNs graphs. The structure (A) of a TRN graph defines which TFs are connected to a given target gene. The function (B) of a TRN graph determines how a TF is connected to a target quantifying the expression levels of the target as a result of the connections. Inferring TRNs is fundamentally an underdetermined problem associated with a large search space where many solutions explain the data equally well [15], [26], [105]. High-quality transcriptional information is scarce in databases or literature, being narrowed down to a few well-studied organisms (see section 2.3). The number of potential regulatory interactions between a TF and target genes is considerably larger than the actual true biological interactions. Given the example of the latest TRN for B. subtilis [106], with 275 regulators out of 4237 protein encoding genes, 1165175 regulatory interactions (275 regulators x 4237 genes) would be possible without combinatorial regulation. Even if filtering out potential regulatory interactions that poorly explain the gene expression data of this bacterium, the resulting number of solutions is still prohibitively large. In addition to the large search space, prokaryotic TRNs are typically very sparse, meaning that the number of false positive regulatory interactions predicted by the reconstruction methods is also a subject of concern. To tackle the underdetermined problem, most approaches implement optimization strategies, with different mathematical formulations filtering the most inadequate solutions in a time-efficient way. Another approach regularly used to overcome the large search space is the integration of different layers and sources of regulatory information. 2.6 Reconstruction of transcriptional regulatory networks Methods for reconstructing TRNs have been extensively reviewed in the literature [15], [18], [19], [26], [104], [107], [108]. In fact, there is a panoply of classification systems and procedures. As new methods are released each year, the complexity increases. Hence, assigning classes to these new approaches can be a complicated task. More importantly, this reveals that standard platforms and methodologies to assemble TRNs using diverse sources of regulatory information, such as gene expression data [65], [66] or transcriptional information [67], [69], [109], are still missing. 17
CHAPTER 2. BACKGROUND Nevertheless, an integrative workflow for reconstructing bacterial TRNs has been proposed by Faria et al [15]. The authors suggested that comparative-genomics approaches, namely the inference of TRNs using template curated networks and the prediction of cis -regulatory elements, can be integrated with the output of de novo reverse engineering tools. The workflow depicted in figure 7 addresses the possibility of reconstructing TRNs for poorly described prokaryotic organisms using a variety of sources of regulatory information. 18
2.6. RECONSTRUCTION OF TRANSCRIPTIONAL REGULATORY NETWORKS Figure 7: Workflow for reconstructing TRNs using integrative approaches. Workflow for reconstructing TRNs using de novo reverse engineering tools combined with comparative-genomics approaches, namely template-network-based and cis -regulatory elements detection, as suggested by Faria et al [15]. Templatenetwork-based methods rely mostly on experimentally defined networks to perform a search for orthologous genes in the genome of the organism of interest. Methods based on the detection of cis -regulatory elements are aimed at identifying regulatory interactions between TF and target genes using collections of TFBS to create PWMs. These PWMs are then used to search the corresponding interactions in the genome of interest. de novo reverse engineering tools use gene expression data to determine regulatory interactions. Template-network methodologies are based on the conservation of prokaryotic TRNs across evolution [31], [110], [111]. As described by Faria et al [15], template-network-based methods usually perform a search for orthologous genes in the genome of the organism of interest to propagate TRNs to strains of 19
CHAPTER 2. BACKGROUND well-characterized model organisms or closely related ones. Cis -regulatory elements detection relies on the assumption that a regulatory interaction between a given TF and target gene can be inferred from the detection of the TFBS. The prediction of these cis - regulatory elements is a problem in which computational methods can assist [104], [112]. Although these computational tools are unable to infer a complete TRN from binding site data, they can be integrated into the following workflow towards such a goal. The principles of this methodology were implemented by Alkema et al [113] in Regulogger and the RegPredict web-based platform [114]. De novo reverse engineering tools are widely used for inferring TRNs from gene expression data. A vast repertoire of computational tools based on the de novo reverse engineering approach can be found in the literature, and consequently numerous ways to classify these tools [18], [19], [107]. Nevertheless, de novo reverse engineering methods are usually classified by mathematical formulation. Data-driven methods are usually based on the following: • Correlation (e.g. COREGNET [115]); • Information-theoretic (e.g. Faith et al [94]); • Boolean algebra (e.g. ModEnt [116]); • Regression-based (e.g. GENIE3 [117]); • Ordinary Differential Equation (ODE)s (e.g. Inferelator [105]); • Bayesian models (e.g. Gat-Viks et al [118]). 2.7 Reconstruction of genome-scale metabolic models The generation of GEM models is a common practice in systems biology. The reconstruction of these comprehensive models, through modeling techniques and genomics data, allows predicting cells’ metabolic behavior [12], [13], [119]. As presented in figure 8, a GEM model is an in silico representation of the biochemical reactions taking place within the metabolism of a given organism [120]. A genome-wide functional annotation that provides the required metabolic information over the organism of interest should be performed to assemble this representation. This information is linked to existing metabolic knowledge retrieved essentially from biochemical databases and literature. These steps help to create the reaction set, upon which the metabolic network is assembled. The link from metabolic genes to proteins (mainly enzymes or membrane transporter proteins), as well as from proteins to reactions, is established by GPR associations. GPR associations must be cautiously defined during the reconstruction, taking into account isoenzymes, protein complexes, and cascade reactions, through the use of AND or OR Boolean rules [13]. 20
2.7. RECONSTRUCTION OF GENOME-SCALE METABOLIC MODELS In the next iteration, biomass and organism-specific constraints are formulated from the retrieved knowledge to assemble a final stoichiometric model. The final GEM model may then be exported in a standard format, such as the Systems Biology Markup Language (SBML) [121]. Several platforms, such as merlin [122], ModelSEED [123], RAVEN [124], and CarveMe [14], have been developed specifically for performing or assisting in the reconstruction of these models [125]. Figure 8: Reconstruction of a GEM model. Reconstruction of a GEM model involving four steps: (A) Genome annotation; (B) GEM network assembly; (C) GEM model assembly; (D) GEM model validation. The classic principles of chemical engineering are used to infer the dynamic mass balances of all metabolites in the Genome-scale metabolic network. A single ODE is created for each metabolite, accounting for its stoichiometry in the whole reaction set. Due to the lack of kinetic rates for all reactions in the ODE set, a steady-state approximation is used to reduce the mass balances to a set of linear equations. In a pseudo-steady-state paradigm, the concentration of a metabolite is assumed to remain constant throughout time [12]. When used to determine flux values, the set of linear equations defines a linear system, typically 21
CHAPTER 2. BACKGROUND underdetermined, as the number of fluxes is much higher than the number of mass balance constraints, also referred to as the null space of S [126]. Additional mass balance constraints can be added to the system to limit the flux that each reaction can accommodate by fixing both lower and upper bounds. The system can be solved mathematically transforming it into an optimization problem, using several constraint-based approaches to predict the phenotypic behavior of the organism under a wide variety of environmental and genetic conditions. One of the most popular approaches is the FBA framework [126]. FBA can compute an optimal solution, out of the feasible space determined by both mass balance and flux constraints using Linear Programming (LP). FBA requires the definition of an objective function, which should be relevant to the undergoing problem. This is commonly defined as the maximization or minimization of a specific metabolic flux (e.g., biomass reaction), and quantitatively determines how much each reaction contributes to a phenotype [12]. Notation 2.1 shows the definition of an objective function, whereas notations 2.2 and 2.3 represent the optimization problem constraints: 𝑚𝑎𝑥𝑖𝑚𝑖𝑧𝑒 →𝑍(2.1) 𝑠𝑢𝑏 𝑗𝑒𝑐𝑡 →𝑆∗𝑣=0(2.2) 𝑠𝑢𝑏 𝑗𝑒𝑐𝑡 →𝛼𝑗≤𝑣𝑗≤𝛽𝑗, 𝑗 =1, ..., 𝑁 (2.3) Where: •𝑍is the linear objective function; •𝑣is the flux vector (includes exchange fluxes); •𝑆is the stoichiometric matrix (columns represent reaction fluxes and rows the metabolites mass balances); •𝛼𝑗and 𝛽𝑗are the lower and upper bounds, respectively. Parsimonious Flux Balance Analysis (pFBA) [127] and Flux Variability Analysis (FVA) [128] are alternative mathematical frameworks that also employ LP to analyze in silico flux distributions. This set of tools is extremely helpful for validating a reconstructed model using experimental data of the organism of interest (figure 8). COBRA Toolbox [129], COBRApy [130], OptFlux [131], and ReFramed (https://github.com/cdanielmachado/reframed) are prominent computational tools that have implemented these methods. Although GEM models have proven to be valuable throughout the years [5]–[10], [132], there are limitations. Indeed, they are not yet capable of accounting for biological regulatory phenomena, such as the control of gene expression [15]. The lack of the regulatory layer in these models can lead to erroneous 22
2.10. INTEGRATING GENE EXPRESSION DATA levels of expression are then translated into flux bounds for the phenotype simulations using FBA or Dynamic Flux Balance Analysis (dFBA) [179]. The methods capable of integrating TRNs into GEM models addressed herein are available in supplementary material I.1. 2.10 Integrating gene expression data The method proposed by Åkesson et al [163] and MADE [162] were the earliest approaches for tailoring the flux cone of solutions using discrete variables obtained solely from gene expression data. In the case of the method developed by Åkesson et al [163], a reaction is simply switched “off” with a zero flux bound if the associated genes are found to be under-expressed in the corresponding condition (single-condition method). MADE, on the other hand, tries to surpass the problem of arbitrary thresholding under-expression by considering multiple conditions (multi-condition method). Statistical significance between changes in gene expression levels across sequential conditions is calculated to infer whether a gene is activated [162]. E-Flux [180] and the method proposed by Lee et al [161] have introduced several novelties when compared with the previous methodologies. These methods were the first attempts to constrain an FBA- based model using continuous variables. Nevertheless, these approaches are radically different. E-Flux directly maps gene expression levels into flux-bound constraints, assuming the maximum flux of a given reaction to be a linear function of the expression of the associated genes in the same condition (singlecondition method). Lee and coworkers [161] do not introduce or alter flux bound constraints directly into the GEM model. An alternative objective function that minimizes the distance between flux distributions and gene expression data is applied for each phenotype simulation (single-condition method). The Transcriptional-controlled Flux Balance Analysis (tFBA) method, proposed by van Berlo et al [160], is aimed at overcoming the problem of setting an arbitrary threshold to determine whether a gene is activated or not. The tFBA assumption is that differential gene expression between two conditions should also be reflected in the flux of the reactions associated with this gene. For that, the authors formulated constraints defining upper and lower limits for fluxes according to the gene expression, assuming their transgression is possible. The optimization problem (MILP formulation) consists of finding the flux distribution that minimizes the number of transgressions. The method developed by Fang et al [159] is based on the differential gene expression between two conditions, namely reference and perturbed conditions. This method assumes that the flux distribution of a reference condition can be determined using the FBA or FVA frameworks, while the differential gene expression between the reference and perturbed conditions is used for tailoring the flux distribution of the perturbed one. Also, this method considers the variation of the biomass composition between reference and perturbed conditions. As with tFBA [160] and the method proposed by Fang et al [159], the Gene Expression Flux Balance Analysis (GX-FBA) method [158] also determines the flux distribution for the reference condition using FBA. 29
CHAPTER 2. BACKGROUND Then, GX-FBA employs a new objective function and new constraints derived from the difference between reference and perturbed states to perform the in-silico phenotype simulation of the latter state. A wide range of phenomena associated with temperature and known to induce virulence in the gram-negative bacterium Yersinia pestis was used as proof of concept. Temporal Expression-based Analysis of Metabolism (TEAM) [157] and Adaptation of Metabolism (AdaM) [156] are the only methods developed for integrating time-series gene expression data into constraintbased models. The former uses dFBA [181] to predict time-series flux distributions based on temporal gene expression profiles. Using a cost minimization scheme similar to the strategy proposed in the context-specific Gene Inactivity Moderated by Metabolism and Expression (GIMME) method [166], TEAM is capable of determining the flux distribution of a GEM model, constrained with gene expression levels of each time step in the dataset. TEAM was tested with time-series gene expression data from Shewanella oneidensis . AdaM consists of a flux-based bilevel optimization problem that extracts minimal operating networks from a given GEM model [156]. This algorithm infers minimal operating networks in agreement with the differential gene expression pattern between time steps. Then, Elementary Flux Mode (EFM)s [182] are computed with these minimal operating networks rather than computing the flux distributions at each time step. Reactions are weighted according to the number of EFMs in which these are present. The optimization problem consists of finding the minimal network having the largest weight. Angione et al [154], [155] formulated methods, for example, the Metabolic and Transcriptomics Adaptation Estimator (METRADE), aimed at measuring the adaptability to a changing environmental condition over time. These approaches have provided equally valid methodologies for integrating gene expression data in metabolic networks. In short, these methods have modeled both the upper and lower bounds of each reaction as a continuous logarithmic function of the associated gene expression levels. Reaction Inclusion by Parsimony and Transcript Distribution (RIPTiDe) [153] is aimed at circumventing the assumption that reaction fluxes are directly related to the gene expression levels for a given condition. Instead, the authors have proposed an unsupervised method that assigns weights (continuous variables) to reactions according to the normalized expression levels of associated genes over the entire dataset. Then, a pFBA simulation considering these linear coefficients is performed. The novelty of this method consists of its validation with precise transcript abundance obtained with RNA-seq. The methods capable of integrating gene expression data into GEM models addressed herein are available in supplementary material I.1. 2.11 Synopsis The reconstruction of GEM models is common practice in systems biology nowadays. The advent of the GEM model reconstruction for many organisms was facilitated by the adoption of standard protocols [13], as well as the existence of user-friendly computational tools [122], [123], capable of assembling 30
2.11. SYNOPSIS these models from different genomic, enzymatic, and stoichiometric data. Nevertheless, the simulation of GEM models still presents today false-positive phenotypes for several environmental conditions. The reconstruction of TRNs is a well-known strategy in systems biology for understanding the regulatory machinery of a given organism [19], [26], [107]. Although there are many methodologies for assembling a TRN, standard protocols and computational platforms are yet missing to support the reconstruction of TRNs for less described organisms using different data sources. The workflow suggested by Faria et al [15] highlighted several methodologies that can be combined to extend the reconstruction of TRNs to more bacterial species. To the best of our knowledge little progress has been made to provide a userfriendly platform capable of achieving such a goal. More importantly, the reconstruction of genome-scale TRNs using such integrative workflow would be pivotal for the reconstruction and simulation of integrated models. The integration of the control of gene expression into GEM models has been surveyed in this work. A systematic classification that grasps the difference between the several methodologies, capable of integrating and simulating regulatory events into GEM models was proposed herein. Although some reviewed methods have already been surveyed before [15], [16], [134]–[136], [140], [183], TIGER, FlexFlux, METRADE, IDREAM, TRFBA, CoRegFlux, RIPTiDe, and the method proposed by Angione et al have never been addressed elsewhere in reviews, to the best of our knowledge. Moreover, a detailed categorization that highlights the methodologies used to perform the integration of the regulatory layer into GEM models has not been provided. This systematic categorization can guide the decision process of selecting the most adequate method of integration and simulation. As shown in Figure 11, there are several methods and toolboxes capable of integrating and simulating TRNs into GEM models using a discrete approach [144], [145], [147], [151], [152]. The TRNs used by these methods and toolboxes were mainly reconstructed from literature, which might be a time-consuming approach. The remaining methods allow assembling TRNs from gene expression data using de novo reverse engineering methods. The resulting TRNs can be integrated and simulated with a given GEM model. FlexFlux is the prominent exception as it can perform the integration of the TRN in the GEM model using either discrete or continuous variables. To date, only two prokaryotic organisms, E. coli [144]–[146], [149], [151] and M. tuberculosis [146], [176], and the yeast S. cerevisiae [147]–[150], [152], have integrated genome-scale models as a result of the integration of complete TRNs into a metabolic network. Nevertheless, some of these reconstructions still require gene expression datasets, namely several methods in the continuous sub-group. Regarding the methods for integrating gene expression data, most of these have provided means for integrating transcriptomics data as continuous constraints from one or more conditions (Figure 11). Only the method proposed by Åkesson et al [163], as well as MADE [162], use discrete variables to simulate integrated models of metabolism and gene expression. Besides E. coli , M. tuberculosis , and S. cerevisiae , methods for integrating gene expression data have also provided integrated models for S. oneidensis [157] and Y. pestis [158]. 31
CHAPTER 2. BACKGROUND Figure 11: Classification of methods aimed at the reconstruction of integrated genome-scale models of metabolism and gene expression. These methods have been divided according to the integration of TRNs (white boxes) or solely gene expression data into GEM models. Discrete and continuous categories were used to classify these methods according to the usage of discrete, namely Boolean logic (“on/off”), or continuous constraints. Methods capable of integrating gene expression data into GEM models have been further divided into single-condition (orange circles) and multi-condition (blue ellipses) whether phenotype simulations were performed for one or more conditions/states in the gene expression dataset, respectively. Each inner circle stands for a prokaryotic organism, while the outer circle stands for the baker’s yeast Saccharomyces cerevisiae . A vast diversity of methods for the integration of gene expression data in GEM models has been found. Yet, most methods require large gene expression datasets to be robust, which might not be the case for all organisms. Other methods resort to mapping levels of gene expression directly with the reactions bounds, which again might not be the best approach [16], [38], [183]. Furthermore, the methods for integrating gene expression data with metabolic models previously evaluated by Machado and coworkers [16], namely E-Flux, MADE, GX-FBA, and the method developed by Lee et al [161] have shown to perform poorly in the designed benchmark. None of the methods have 32
2.11. SYNOPSIS outperformed each other in the phenotype simulations or pFBA, which indicates that the promising results reported by these methods seem to be mere artifacts related to rigid constraints created around the nature of the gene expression dataset. The reconstruction of integrated models using TRNs is, in theory, more useful than merely integrating gene expression data into GEM models. Integrated models that result from the integration of TRNs provide comprehensive knowledge regarding the metabolic and regulatory events happening inside the cell, thus leading to a broader range of applications when compared to a regular GEM model [184], [185]. Moreover, the diversity of methods for reconstructing TRNs using different data sources, such as gene expression, TFBS, or comparative genomics analysis, eases the reconstruction of TRNs for most prokaryotic organisms having a sequenced genome [15]. However, the absence of a user-friendly computational tool based on the ensemble of these different approaches is missing. In contrast, the same strategy has yielded results in the reconstruction of GEM models [14], [122]–[125], [129], [186]. In short, the existence of standardized protocols and easy-to-use computational tools for the generation of GEM models has eased its practice in systems biology to study the metabolism of many organisms. In contrast, the absence of computational tools that ease the reconstruction of TRNs from different sources of regulatory data hindered a similar approach. The major obstacle when using the methods described in this survey to simulate integrated genomescale models of metabolism and gene expression is not reproducing their results, but rather extending their implementations to other organisms and case studies. This hurdle poses a stiff challenge for using these methods out of the scope they were aimed at during development. The requirement for large gene expression datasets with specific experimental conditions, the usage of TRNs reconstructed solely from literature, and the output of biased results strictly related to rigid constraints, are specific indicators of issues preventing the scaling-up of the reconstruction and analysis of integrated models. In short, there is a vast diversity of methods capable of integrating and simulating the effect of regulation into the metabolism, though few approaches ease the reconstruction of these integrated models. Hence, the perspective of reconstructing integrated metabolic-regulatory models for diverse prokaryotes is still a complex endeavor. The implementation of a user-friendly computational framework that does not require coding skills and is capable of running a semi-automated pipeline for reconstructing TRNs or analyzing gene expression data, and performing its integration into standard GEM models, would be a clear breakthrough towards the reconstruction and simulation of integrated genome-scale models of metabolism and gene expression. This hypothetical computational tool should be able to combine different sources of regulatory information that are seldom combined. 33
3 Assisting the curation of genome-scale metabolic models The work presented in this chapter is currently pending review: • Cruz, F., Capela, J., Ferreira, E. C., Rocha, M., Dias, O. BioISO: an objective-oriented application for assisting the curation of genome-scale metabolic models. Submitted. Pre-print available at: https://doi.org/10.1101/2021.03.07.434259 34
3.1. INTRODUCTION 3.1 Introduction The reconstruction of GEM model models is a challenging process [13]. Model validation and manual curation can be laborious tasks [12] and most bottlenecks derive from accumulated errors, which require complex and unique solutions. For instance, when a metabolic network is converted into a stoichiometric model, FBA often mispredicts the organism’s experimental growth rate due to errors like missing or blocked reactions and dead-end metabolites (gaps), among others. The reconstruction of GEM models can follow two diverse paradigms: bottom-up [13] and top-down [14]. The fast and automated top-down paradigm does not resort to gap-filling procedures. This approach reconstructs a universal GEM model curated previously for the most common errors [14]. This universal simulation-ready model is then converted to an organism-specific model by carving reactions and metabolites for which evidence is missing. Thus, the top-down paradigm can be extremely useful in creating microbial community models by merging the automated single-species models into community-scale networks [14]. Unlike the top-down paradigm, the widely-used bottom-up paradigm consists of four main steps: draft reconstruction based on genome functional annotation; refinement and curation of the draft reconstruction; conversion to stoichiometric model; model validation [13]. The last steps of a bottom-up reconstruction usually include several time-consuming and repetitive tasks to fix errors that emerged during the draft reconstruction, thus solving the discrepancy between the predicted phenotype and experimental results. While mistakes can be solved using manual curation, there are several gap-find and gap-fill tools to accelerate the debugging process. Gap-finding algorithms aim to find either missing or blocked reactions and dead-end metabolites in a draft reconstruction, whereas gap-filling ones are responsible for finding potential solutions to the errors mentioned above. To the best of our knowledge, the reconstruction of high-quality GEM models is frequently based on the bottom-up approach involving manual curation and human intervention. In our view of a parsimonious bottom-up reconstruction, the metabolic network can be divided into smaller yet insightful modules based on the studied phenotype. Then, recursive relations can be used to divide metabolic networks into smaller modules directly associated with the objective phenotype. FBA simulations applied over surrogate reactions designed explicitly for each module can unveil the minor manual curation tasks that often increment the reconstruction’s quality and resolve the metabolic gaps for such a module. With this methodology in mind, BioISO was designed to automatize the search for reactions and metabolites associated with a given objective, narrowing the search space. More importantly, BioISO is a user-friendly gap-finding tool that allows users to analyze gaps and errors quickly. Reactions and metabolites are appropriately evaluated by BioISO that uses FBA over surrogate reactions. Then, the results are presented in a graphical user interface embedded in both a web server and merlin so that the debugging process can be easy to follow and repeat. 35
CHAPTER 3. ASSISTING THE CURATION OF GENOME-SCALE METABOLIC MODELS 3.2 Survey of gap-find and gap-fill tools Most state-of-the-art tools for debugging draft reconstructions comprehend both automated gap-finding and gap-filling procedures [187]–[190]. Nevertheless, other tools were developed for only one of these procedures [129], [191], [192]. Besides, gap-find and gap-fill tools can also be separated according to the gap-finding and gap-filling methodology. Several gap-find and gap-fill state-of-the-art tools have been described with further detail being given in the supplementary material I.2 and I.3. Regarding gap-finding algorithms, tools such as biomassPrecursorCheck [129], and Meneco [187] are based on guided-search algorithms to identify gaps or errors directly associated with a given objective/reaction. Both tools check the metabolic network topological features to find gaps, asserting the existence of a given metabolite’s predecessors and successors. The COBRA Toolbox’s BiomassPrecursor- Check tool searches for predecessors immediately upstream of the biomass reaction of a given model, whereas Meneco performs the gap search according to a set of seed and target metabolites provided as input. However, the search depth of the latter may encompass the whole metabolic network. On the other hand, gapFind/gapFill [188], fastGapFill [189], and Gauge [190] are based on exhaustive searches. Thus, these methodologies identify gaps all over the metabolic network, regardless of a given objective. GapFind/gapFill and fastGapFill highlight gaps using a stoichiometry-like approach. These methods search the stoichiometric matrix for no-production and no-consumption metabolites. Alternatively, Gauge combines Flux Coupling Analysis and gene expression data to propose gaps in a draft GEM model. Regarding gap-fill, all available tools require a dataset of metabolic reactions, usually retrieved from a biochemical database (e.g., KEGG [81], BiGG Models [193], or MetaCyc [82]), to resolve metabolic gaps [187]–[192]. Besides a database of metabolic reactions, both Gauge [190] and Mirage [192] require gene expression data. Smiley [191] relies on additional growth phenotype data to identify minimal environmental conditions for which the model mispredicted growth and non-growth phenotypes. Meneco, gapFind/gapFill, fastGapFill, Gauge and Smiley consider the minimal reaction set of the whole dataset to resolve every single gap. Alternatively, Mirage considers a pan-metabolic network that assures flux through all metabolites, followed by a pruning step to reduce the large set of solutions. Thus, the solution set is often the result of two very different gap-filling approaches, namely the parsimonious and pruning approaches. Most state-of-the-art tools for debugging draft reconstructions rely on proprietary software, such as MATLAB (Mathworks®) or General Algebraic Modeling System (GAMS). From the above-mentioned tools, Meneco is the only freely available to the community, as it is available as a Python package. It is worth noticing, though, that all tools require coding skills. More importantly, most tools require and return excessively verbose outputs, such as large arrays of missing metabolites and even greater sets of potential solutions. The analysis of these results can be challenging for wet-lab scientists without coding skills or data analysis expertise. Furthermore, gap-filling tools usually warn that gaps might result from missing mappings between 36
3.3. BIOISO IMPLEMENTATION the metabolites’ abbreviations and the reference database identifiers. Besides the mapping’s limitations, several tools require different format files for the metabolic data, such as SBML (e.g., Meneco), KEGG reaction database LST format file (e.g., fastGapFill), customised text files (e.g., gapFind/gapFill), or data structures (e.g., Gauge). On the other hand, other tools lack information on how a different source of solutions can be used (e.g., Mirage and Smiley). The introduction of artifacts in metabolic networks can hinder GEM model’s applications, such as metabolic engineering and drug-targeting tasks. These issues may be extremely relevant for organisms that have evolved due to a combination of extensive loss-of-function events and acquisition of key genes via horizontal gene transfer during co-evolution with well-defined and constant ecological niches [194]– [196]. Moreover, although loss-of-function genetic variants are frequently associated with severe clinical phenotypes, several events are also present in healthy individuals’ genomes, making it essential to assess their impact [197]. Hence, automated approaches, and especially gap-fill tools, must be used very carefully, taking into consideration the issues raised above. Otherwise, the offered automation can be a counterproductive solution for the manual curation steps performed during high-quality reconstructions. Furthermore, the usability of gap-fill approaches can be vastly improved. 3.3 BioISO implementation 3.3.1 BioISO’s algorithm BioISO requires a constraint-based model and the reaction to be evaluated, which defines the linear programming problem’s objective function. A recursive relation-like algorithm is then used to build a hierarchical structure according to the metabolites and reactions associated with this objective. BioISO is herein showcased through the analysis of a small-scale metabolic network, represented in figure 12, having 12 intracellular and two extracellular metabolites, 12 reactions, and two compartments (extracellular and intracellular). In this metabolic network, the reaction identified by R8 is considered missing, blocked, or incorrectly formulated, while the identifier R11 refers to the reaction to be evaluated. 37
CHAPTER 3. ASSISTING THE CURATION OF GENOME-SCALE METABOLIC MODELS Figure 12: A small-scale metabolic network to showcase BioISO’s algorithm. Metabolites and reactions are represented in the metabolic network as white nodes and black-directed arrows. The extracellular boundary is represented as a dashed line. The reactions are listed alongside the metabolic network. In this metabolic network, the reaction identified by R8 is considered missing, blocked, or incorrectly formulated.. BioISO starts by finding the set of metabolites associated with the reaction submitted for evaluation, namely reaction R11 . The tool will discover metabolites J , L, I, and M as the subsequent nodes since these metabolites are involved in R11 (figure 13). A set of reactions is then created for each node and populated with the reactions associated with each metabolite. Thus, BioISO will retrieve four reactions sets, one for each metabolite (figure 13). Meanwhile, BioISO assembles a hierarchical tree-based structure, depicted in figure 14. The tool identifies as precursors (reactants) or successors (products) the metabolites associated with the submitted reaction (R11). Thus, J , L, and I (reactants) and M (product) involved in rection R11 were separated into two different branches: precursors and successors, respectively. 38
3.5. RESULTS • The set of target metabolites comprised precursors and successors of the evaluated reaction in each model. • The set of target metabolites was formulated based on identifying dead-end metabolites by BioISO. BiGG Models [193] universal database was used as the source of metabolic reactions for the test iJO1366 model, while KEGG [81] was used to solve gaps in the iDS372 model. 3.5 Results 3.5.1 Overview of BioISO’s assessment BioISO aims to identify errors that emerge during the bottom-up reconstruction of high-quality GEM models. Errors such as missing or blocked reactions and dead-end metabolites are often met during model debugging and refinement. Thus, BioISO is based on a recursive-like algorithm to guide the search for metabolic gaps associated with a given objective. Throughout BioISO’s objective-oriented search, multiple FBA simulations are used to assert real metabolic gaps. Hence, we propose a tool capable of reducing large search spaces and asserting real metabolic gaps to accelerate time-consuming and laborious manual curation tasks. Most state-of-the-art tools for debugging draft reconstructions aim to find and solve a wide range of problems. These tools are commonly used in automatic gap-find and gap-filling routines. For instance, Meneco, gapFind/gapFill, fastGapFill, Gauge, Smiley and Mirage are gap-fill tools aimed at finding and solving errors accumulated during the draft reconstruction. GapFind/gapFill, fastGapFill, and Gauge exhaustive-search tools attempt to assert gaps throughout the whole metabolic network. Then, these tools enumerate minimal solutions (set of reactions) to solve the highlighted gaps. Alternatively, Mirage and Smiley add new reactions to the model without an initial gap scan, forcing model predictions to match the experimental data. On the other hand, Meneco’s guide-search algorithm searches for gaps according to a set of seed and target metabolites. Then, this tool enumerates a minimal set of reactions that can restore the flux to all dead-end metabolites identified during the topological search. Likewise, BioISO seeks dead-end metabolites downstream and upstream of a user-defined objective. Additionally, BioISO performs multiple FBA simulations of custom unbalanced reactions during the topological search to evaluate whether a given metabolite is being consumed or produced. More importantly, BioISO is the only tool freely available to all scientists. That is, BioISO is the only user-friendly gap-finding tool, providing a graphical user interface embedded in both a web server and merlin. Thus, our tool allows users to analyze gaps and errors without requiring coding skills or additional metabolic data such as growth phenotype data or biochemical databases. Moreover, BioISO is a ready- to-use and relatively fast method, allowing users to run this tool iteratively during model reconstruction. 45
CHAPTER 3. ASSISTING THE CURATION OF GENOME-SCALE METABOLIC MODELS A summary of all features used to compare BioISO with several gap-find and gap-filling tools is available in supplementary materials I.2 and I.3. BioISO’s validation includes three assessments: • BioISO’s algorithm depth analysis. • Exhaustive-search versus guided-search. • BioMeneco – embedding BioISO in Meneco [187]. The first analysis was aimed at assessing BioISO’s shallow, guided, or nearly exhaustive searches for metabolic gaps in five state-of-the-art models. The second analysis allowed us to assess the relevance of guided- and exhaustive-searches for gap-finding. In this assessment, we have compared BioISO and Meneco guide-searches against fastGapFill exhaustive-search. Finally, the last analysis showcases the outcome of setting BioISO as Meneco’s gap-finding algorithm. 3.5.2 BioISO’s algorithm depth analysis BioISO was used to analyze several published GEM models for two objective functions: growth and compound production maximization. The workflow and methodology used to assess BioISO’s algorithm robustness are described above together with supplementary materials I.5 and I.6. BioISO’s analysis included different settings, namely varying the algorithm’s depth from 1 to 3, allowing to set BioISO for shallow, guided, or nearly exhaustive searches. BioISO’s depth level of 1 assesses the nearest neighbors (successors and precursors metabolites) and their associated reactions. According to figure 15, BioISO analyses less than 50% of all reactions for growth maximization. The number of blocked reactions is significantly reduced at depth level 1 (less than 12%), except for the iJO1366 [11] and iBsu1103 [10] models (figure 15 and supplementary material I.6). Likewise, BioISO only covers less than 10% of all metabolites for growth maximization (figure 15). As a result, the number of dead-end metabolites found by BioISO at a depth level of 1 is less than 3 for all models (figure 15 and supplementary material I.6). The level of insight provided by BioISO for shallow searches is significantly reduced and similar to the biomassPrecursorsCheck tool from COBRA Toolbox [129] or Meneco [187]. Increasing the depth level to 2 allows the evaluation of more reactions. As demonstrated in figure 15, 50% or more of the reactions are assessed in all models. Whereas BioISO analyses nearly a quarter of all metabolites in the iOD907 [9] and iTO977 [200] models, this coverage increases up to 60% in the iJO1366 [11] and iBsu1103 [10] models. In contrast, only 15% of all metabolites have been covered by BioISO in the iDS372 [8] model. BioISO also detects more blocked reactions and dead-end metabolites for guided searches. The percentage of blocked reactions varies between 20% and 40%, and the percentage of dead-end metabolites between 2% and 12% (figure 15 and supplementary material I.6). 46
3.5. RESULTS At a depth level of 3, a nearly exhaustive search is performed as BioISO analyses more than 70% of both metabolites and reactions (figure 15 and supplementary material I.6). Likewise, the percentage of detected blocked reactions and dead-end metabolites increases up to 65% and 30%, respectively. As detailed in supplementary material I.6, similar results were obtained for the maximization of compound production. However, the number of metabolites covered in the iTO977 model is considerably lower than the remaining models at depth levels 2 and 3. Figure 15 also presents BioISO’s computation time for each model during growth maximization as a function of the depth level. BioISO was considerably faster for shallow searches (depth level of 1) in all models for growth (figure 15 and supplementary material I.6) and compound production (supplementary material I.6) maximization. According to figure 15, BioISO required computation time for a depth level of 2 varies between 2 and 144 seconds during growth maximization. During the compound production maximization, BioISO takes between 4 and 74 seconds (supplementary material I.6). The computation time of BioISO increases significantly at the depth level of 3. At this depth, BioISO’s computation time can attain around 600 and 405 seconds when maximizing growth (figure 15 and supplementary material I.6) and compound production (supplementary material I.6), respectively. Hence, BioISO’s computation time significantly depends on the size of the covered search space. In turn, the covered search space increases with the depth of the search and the model’s size. Although navigating the network throughthe new metabolites and reactions might not be time-consuming, evaluating numerous metabolites and reactions using the FBA framework requires time. The dead-end metabolites and blocked reactions ratios were calculated as denoted in definitions 3.5, 3.6, 3.7, and 3.8. Figure 16 highlights the ratios of dead-end metabolites obtained for growth and compound production analysis in all models. Both dead-end metabolites and blocked reactions ratios are also available in the supplementary material I.6. At a depth level of 1, the ratio of blocked reactions for the objective-oriented search ( broos ) varies between 0.3 and 0.9. In contrast, the homologous ratio for the whole-space search ( brwss ) varies between 0.02 and 0.25 (supplementary material I.6). Regarding the ratios of dead-end metabolites, BioISO attains markedly small ratios for the wholespace search (demwss ) at a depth level of 1, namely obtaining ratios smaller than 0.1 in all models for both objective functions (figure 16 and supplementary material I.6). However, the ratio of dead-end metabolites for the objective-oriented search (demoos ) can peak up to 0.35 (figure 16 and supplementary material I.6) and 0.85 (figure 16 and supplementary material I.6) in the growth and compound production analysis, respectively. 47
CHAPTER 3. ASSISTING THE CURATION OF GENOME-SCALE METABOLIC MODELS Figure 15: Summary of the reactions (left panel) and metabolites (right panel) analyzed by BioISO for published GEM models. BioISO was used to analyze 5 state-of-the-art models (iBsu1103, iDS372, iJO1366, iOD907, and iTO977) with added gaps. BioISO’s analysis included different algorithm settings, namely varying the depth from 1 to 3 for each objective function, which will control the number of recursive calls for precursors and successors. This allowed running BioISO’s algorithm for shallow, guided, or nearly exhaustive searches, depending on the size and arborescence of the metabolic network. BioISO’s computation time was recorded in seconds (s) together with missing (non-covered by BioISO) reactions and metabolites, non- and dead-end metabolites, non- and blocked reactions. The brwss ratios increase significantly when raising the depth to level 2 (BioISO guided search), whereas broos ones remain roughly the same as in the previous level. The brwss ratio can vary from 0.23 to 0.43 (supplementary material I.6) and from 0.23 to 0.36 (supplementary material I.6) for the growth and compound production analysis, respectively. 48
3.5. RESULTS The demoos ratio tends to increase as a response to BioISO’s guided search (depth level of 2) in the iBsu1103, iJO1366, and iTO977 models during the growth maximization analysis (figure 16). In contrast to the previous trend, the demoos ratio tends to decrease in the iDS372 and iOD907 models. Regarding the maximization of compound production, BioISO also attains higher demoos ratios in both iJO1366 and iTO977 models at a depth level of 2 (guided search). Nevertheless, the demoos ratio obtained in the iBsu1103 model is smaller in comparison to the value obtained for the shallow search (depth level of 1). Figure 16: Calculated ratios of dead-end metabolites for the maximization of growth (upper panel) and compound production (bottom panel). BioISO was used to analyze 5 state-of-the-art models (iBsu1103, iDS372, iJO1366, iOD907, and iTO977) with added gaps. BioISO’s analysis included different algorithm settings, namely varying the depth from 1 to 3 for each objective function, which will control the number of recursive calls for precursors and successors. This allowed running BioISO’s algorithm for shallow, guided, or nearly exhaustive searches, depending on the size and arborescence of the metabolic network. demooss and demwss stand for the ratios of dead-end metabolites for the objective-oriented search and whole search spaces. In general, the demwss ratio tends to increase as a response to BioISO’s guided search (depth level of 2) in all models for both objective functions, though not exceeding 0.221. As shown in figure 16 and 49
CHAPTER 3. ASSISTING THE CURATION OF GENOME-SCALE METABOLIC MODELS supplementary material I.6, the demwss ratio ranges between 0.01 (iOD907 model) and 0.13 (iBsu1103 model) for the growth maximization analysis. During the compound production maximization analysis, the demwss ratio is less than 0.1 in all models except for the iDS372 model, where it peaks at 0.221 (figure 16 and supplementary material I.6). Using BioISO for nearly exhaustive searches (depth level of 3) returns broos ratios between 0.41 and 0.81, whereas the brwss ratio varies between 0.35 and 0.66 for both objective functions (supplementary material I.6). As for detecting dead-end metabolites during the growth maximization analysis, BioISO’s nearly exhaustive search attains the highest demoos and demwss ratios of 0.455 and 0.327 in the iDS372 model (figure 16), respectively. Regarding the compound production maximization, BioISO peaked for a depth level of 3 demooss and demwss ratios of 0.737 and 0.602 in the iDS372 model (figure 16), respectively. Although the broos ratio oscillates when rising depth, the brwss tends to increase steadily. Similarly, the demwss also tends to increase with depth for both objective functions, whereas the demoos ratio mimics the oscillatory behaviour of the broos ratio. The oscillatory behavior of the broos and demoos ratios is heavily pronounced between depths 1 and 2, which can be associated with the reduced level of detail that BioISO can provide for shallow searches. The high brwss ratios obtained for all levels are likely associated with the fact that BioISO does not prevent circular dependencies nor by-products accumulation when testing reactions. The interactive output of BioISO in both the webserver and merlin guides the user through the dead-end metabolites (precursors and successors having an unsuccessful evaluation) while evaluating the reactions for guidance and further insight. When testing metabolites, BioISO’s strategy to prevent circular dependencies and by-product accumulation, as well as the isolated evaluation of precursors and successors, seems to have a greater impact on reducing the set of dead-end metabolites. The demwss ratio is significantly smaller for shallow and guided searchers across all models for both objective functions. Furthermore, although BioISO has attained demwss ratios higher than 0.4 for two models during the compound production maximization analysis with a depth level of 3, this ratio remains below 0.33 in all models during the growth maximization analysis. The demwss ratios higher than 0.4 obtained with nearly exhaustive searches of BioISO may be associated with the factual metabolic gaps that do not need to be corrected or might not be associated with the desired phenotype. For example, BioISO has systematically attained higher ratios for all metrics when assessing the iDS372 incomplete models for both objective functions. These higher scores may be associated with poor connectivity of most metabolites involved in the metabolic pathways analyzed by BioISO, as parasitic organisms evolve in rich media, thus developing auxotrophies [8], [194], [201]. Hence, it is worth noticing that the identified dead-end metabolites might be associated with real metabolic gaps that should not be gap-filled. In short, BioISO scores most of the smaller demwss ratios at the depth level of 2 (guided search). Moreover, the gap between demwss and demoos ratios also starts to narrow for BioISO’s guided search. 50
3.5. RESULTS The small difference between both metrics suggests that most dead-end metabolites suggested by BioISO are a direct outcome of the network gaps introduced during the validation. Hence, BioISO can suggest a higher number of dead-end metabolites associated with the objective while maintaining the curation efforts at a minimum. Therefore, a depth level of 2 was selected as the default level for running BioISO after analysing all demwss . Using this depth value, BioISO can guide the search to identify errors in a given metabolic network, without evaluating only the direct precursors and successors, such as biomassPrecursorsCheck [129] and Meneco [187], or the burden of evaluating the whole network, such as fastGapFill [189] and gapFind/gapFill [188]. Furthermore, a significant part of the metabolic network associated with a given objective is analyzed by the tool for a guided search (depth level of 2), while the required computation time is significantly lower. 3.5.3 Exhaustive-search versus guided-search The exhaustive-search versus guided-search assessment was designed to compare the results of two guided-search tools, namely BioISO (guided search – depth level of 2) and Meneco [187], with fast- GapFill [189] exhaustive-search application. The iJO1366 and iDS372 models obtained for the growth maximization analysis were used in this assessment. The workflow and methodology used to compare exhaustive-searches against guided-searches are described above together with supplementary materials I.5 and I.6. Figure 17 exhibits a summary of dead-end metabolites and blocked reactions ratios calculated for each tool. According to figure 17 and supplementary material I.6, Meneco performed the poorest in identifying metabolic gaps. Besides the poor performance in assessing dead-end metabolites, it does not provide insights into blocked reactions. The number of covered metabolites when using Meneco is the same as the number of metabolites selected for target metabolites, as this tool only evaluates target metabolites. No information is provided about other metabolites in the metabolic network. Hence, although Meneco obtained the lowest demwss ratios in both models (figure 17), the tool suggests the absence of biosynthetic pathways to synthesize all metabolites in the covered search space, thus obtaining the highest demoos ratios in both models (figure 17). In short, most metabolites analyzed by this tool were evaluated as dead-end metabolites in the incomplete models. fastGapFill provides, on the other hand, a level of insight much larger than Meneco, analyzing all reactions and metabolites in all models (figure 17 and supplementary material I.6). However, the exhaustivesearch tool is associated with two significant drawbacks. Firstly, fastGapFill is the slowest tool (supplementary material I.6). Secondly, this gap-filling tool highlights numerous blocked reactions and dead-end metabolites, according to figure 17, which might hinder a fast and precise identification of a de facto error in the network, such as the ones introduced in this validation procedure. 51
CHAPTER 3. ASSISTING THE CURATION OF GENOME-SCALE METABOLIC MODELS For example, fastGapFill has attained higher demwss ratios (figure 17) for the model of the less described and smaller genome’s organism ( Streptococcus pneumoniae ), which has probably evolved through a combination of extensive loss-of-function events during the co-evolution with well-defined and constant ecological niches [8], [194], [201]. Although Meneco has obtained smaller demwss scores than BioISO, the level of insight provided by the gap-filling tool for both metabolic networks are significantly lower than the detail provided by our tool. When comparing the demoos ratios, it is clear the lack of insight provided by Meneco, as most of the metabolites covered by Meneco are highlighted as dead-end metabolites. On the other hand, BioISO can be more effective and precise by suggesting fewer dead-ends out of the examined metabolites pool (figure 17 and supplementary material I.6). According to figure 17, BioISO attained lower brwss and demwss ratios than fastGapFill in both models. Hence, such smaller brwss and demwss ratios suggest that BioISO is more capable of reducing the wholespace search to fewer dead-end metabolites than the gap-filling tool. 52
3.5. RESULTS Figure 17: Assessment of the relevance of guided (BioISO and Meneco) versus exhaustive searches (fast- GapFill) for gap-finding. BioISO, Meneco, and fastGapFill were used to highlight gaps in two state-of-the-art models (iDS372 and iJO1366), with added gaps. The ratios of dead-end metabolites ( demooss and demwss ) and blocked reactions ( brooss and brwss ) for both objective-oriented search ( ooss ) and whole search ( wss ) spaces were then calculated for each tool. When debugging and validating the model for specific objective functions, such as growth maximization, BioISO seems better suited for reducing the search space for errors and gaps in metabolic networks than the other tools analyzed in this assessment. This advantage allows spending less time debugging unrealistic errors or gaps. Furthermore, as BioISO reduces the search space for errors, it also favors parsimonious alterations to the draft metabolic network. As a result, BioISO can be of paramount importance for the high-quality bottom-up reconstruction of GEM models during the manual curation stage. However, it should be noticed that Meneco and fastGapFill have been designed to be essentially gap-fill tools. Thus, these tools use different approaches than BioISO to find errors. 53
CHAPTER 3. ASSISTING THE CURATION OF GENOME-SCALE METABOLIC MODELS 3.5.4 BioMeneco - embedding BioISO in Meneco BioMeneco, BioISO’s integration with Meneco [187], was developed to determine whether the former can improve the latter results by narrowing the search space for the gap-filling task. For that, reactions R04568_C3_cytop and SO4tex were removed from the iDS372 and iJO1366 models, respectively. Meneco was then used to generate potential solutions for restoring models’ prediction of a growth phenotype based on BioISO suggestions for the set of targets (primary input for Meneco). All metabolites identified as not being produced or consumed by BioISO in the iDS372 model are reported in table 2. These metabolites have been selected for the set of target metabolites after a brief analysis of the BioISO’s output. In the iDS372 model, BioISO indicated that reaction R04568_C3_cytop might be associated with the synthesis of a precursor of the lipidic and lipoteichoic acid pathways. Most dead-end metabolites identified by BioISO were associated with metabolites C01356_cytop and C06042_cytop , which are biomass precursors representing the lipid and lipoteichoic acid cellular biomass fractions, respectively. These suggestions are in agreement with the metabolites being synthesized by the reaction removed from the model. Reaction R04568_C3_cytop is associated with the synthesis of trans-Tetradec-2-enoyl-(acp) ( C05760_cytop ), which in turn is a precursor of the compound Tetradecanoyl-(acp) C05761_cytop ) involved in the fatty acid biosynthesis pathway. Table 2: Dead-end metabolites identified by BioISO in the iDS372 model. Metabolites identified by BioISO as not being produced or consumed (dead-end metabolites) by the iDS372 model missing R04568_C3_cytop reaction. Dead-End metabolite Connected dead-end metabolites C01356_cytop (Lipid) C05980_cytop C06040_cytop C04046_cytop C00344_cytop C06042_cytop (Lipoteichoic acid) C00116_cytop C00162_cytop Besides the dead-end metabolites shown in table 2, BioISO suggested an unsuccessful evaluation of all remaining biomass precursors and successors. Nevertheless, only the lipid and lipoteichoic acid compounds were identified as dead-end metabolites. The remaining biomass precursors and successors refer to the special cases reported in the tutorial at bioiso.bio.di.uminho.pt/tutorial. Briefly, these metabolites were unsuccessfully evaluated due to a missing or impaired reaction downstream, namely the biomass reaction. The corresponding precursors and successors of all neighbor metabolites were classified as nondead-end metabolites, except for several precursors and successors of the lipid and lipoteichoic acid compounds. 54
4.2. DATA INTEGRATION SYSTEM 4.2.2 Overview of the data integration system The data integration system proposed in this work comprises an ETL tool to populate a data warehouse with relevant regulatory information. The database of integrated prokaryotic TRNs consists of a graph store model using Neo4j Database Management System (DBMS). The ProTReND repository comprises the integrated database and all tools implemented in the data integration system. These tools are available at the https://github.com/cruz-f/protrend-database GitHub repository. The ProTReND repository has the following sub-systems: • Data extraction sub-system; • Data transformation sub-system; • Knowledge expansion sub-system; • Data integration sub-system; • Data loading sub-system; • Data lake sub-system; • CDS sub-system. In addition to the data integration system tools, the ProTReND repository also comprehends a web application with access to the CDS. Furthermore, we have added a contributing system to this web application allowing users to submit new records or update existing ones. Figure 19 describes the architecture of the data integration system. In the first phase, data is extracted from relevant resources of regulatory data and saved in the data lake sub-system. Then, the transformation sub-system processes the collected data. Meanwhile, this sub-system also identifies relevant biological entities (e.g. organisms, regulators, genes, etc) and related properties to be annotated in the knowledge expansion sub-system. Once the enrichment is complete, the integration sub-system applies a series of integration rules. In addition, this sub-system also tries to resolve new or existing objects in the CDS. In the meantime, extracted, transformed, and integrated objects are stored in the data lake sub-system. Finally, the data loading sub-system is responsible for creating or updating records in the CDS according to the results obtained in the integration sub-system. Regarding the architecture of the ETL tools, the ProTReND framework comprises several Python modules implementing the data integration system defined in figure 19. The data extraction module (A) contains web-scraping tools to collect and store regulatory data in the data lake (B), a file storage system. Data processing is available in the data transformation module (C). This module contains methods and algorithms designed to transform and clean objects found in a specific resource. The transformation tool exchanges objects with the knowledge expansion sub-system (D). This system comprises Bioapis , Annotation , BindingSiteAlignment , and Motif modules containing several tools to enrich and annotate regulatory 61
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS objects using biochemical databases and bioinformatics algorithms. The transform tool then stores the results in the data lake as JavaScript Object Notation (JSON) files. The data integration sub-system (E) applies a set of rules to the objects stored in the data lake. This tool determines which objects should be created or updated on the CDS. ProTReND identifiers are assigned to new objects by the data integration tool. The data loading sub-system (F) uses neomodel Object Graph Mapping (OGM) to load objects and relationships into the CDS sub-system (G). Finally, the CDS sub-system contains the Model tool, which implements the graph store data model. The Pipeline tool is responsible for running the ETL tool in the correct order. In addition, the data integration system comprises other utilities, such as the Logging and Report tools. In parallel, the web application (H) provides user-friendly tools to access and visualize the regulatory data in the CDS. This tool is based on the Django, Django REST, and My Structured Query Language (MySQL) frameworks. The ProTReND repository consists of autonomous applications that have been containerized using Docker. In detail, the CDS sub-system is available as an independent app running in a Docker container. The remaining ETL tools are also available in another Docker container running in parallel. 62
4.2. DATA INTEGRATION SYSTEM Figure 19: Architecture of the data integration system implemented in the ProTReND repository. The extraction sub-system is responsible for extracting relevant data sources using scraping techniques or manual download. The extracted data is automatically saved in the data lake sub-system as JSON files, among others. Regulatory data is transformed and processed in the transformation sub-system using pandas Python package. Transformed objects are annotated and enriched next in the knowledge expansion sub-system using the Biopython Python package and biochemical databases. The integration sub-system is responsible for applying a series of rules to objects that ensure uniqueness and normalization. Finally, the loading sub-system uploads integrated objects into the CDS using neomodel, a Neo4j OGM. The web application contains several tools for data access and visualization using the CDS. The data integration system, CDS, and web application are autonomous systems containerized using Docker. 63
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS 4.2.3 Central data storage sub-system The CDS sub-system contains the ProTReND graph database, which stores key biological entities associated with gene regulation in prokaryotic organisms. A DBMS consists of an interface that allows storing, accessing, organizing, and querying a database. For that, DBMS support standard APIs performing Create, Read, Update and Delete (CRUD) operations to the data stored in the database. In a graph database, data is represented through graphs using nodes and edges. Both nodes and edges can represent entities, as these can hold attributes of a specific data type. Nevertheless, nodes usually represent entities with as many properties as required, while edges represent the relationships between entities and can also hold properties. Neo4j is one of the most common DBMSs using the graph store model [206]. Cypher is the standard API for performing CRUD operations in Neo4j. Graph databases can be used to support data warehousing, as these DBMSs can easily be extended to new domains storing other entities with minor effort. The CDS follows several generic rules adapted from graph theory that define the graph structure in the CDS. The following symbols will be used in these generic rules. • Parenthesis, (), are used to define a tuple; • Braces, , are used to define a dictionary of attributes; • Double quotes, ”, are used to define the real values of an attribute; •≡is used to define an equivalent object; •𝑛is used to define namespace; •𝑎𝑡𝑡𝑟 is used to define attribute; •𝑖𝑑 is used to define unique identifier attribute; Following object definition (4.2.1), an object is an instance of any entity, such as an organism, regulator, or gene. The object has a unique identifier assigned in the data warehouse methodology and must be associated with a namespace according to the entity. Finally, an object can have many attributes or properties that can hold data of many types. Theorem 4.2.1. Object definition An object is a tuple 𝑜=(𝑖𝑑, 𝑛, 𝑎𝑡𝑡𝑟) , such that, • 𝑖𝑑 stands for the unique identifier • 𝑛 stands for the object namespace • 𝑎𝑡𝑡𝑟 stands for the set of attributes/properties associated with the object 64
4.2. DATA INTEGRATION SYSTEM Following definition 4.2.2, a relationship is a directed edge between two objects, which must be distinct from each other. Furthermore, a relationship is associated with a namespace according to the type of interaction between the two objects (e.g., HAS ). Finally, a relationship can have many attributes or properties that can hold data of many types. Note that two objects can have multiple relationships in the same namespace. Theorem 4.2.2. Relationship definition A relationship is a tuple 𝑒=(𝑜1,𝑜2,𝑛, 𝑎𝑡𝑡𝑟) , such that, • 𝑒 is a directed edge between two objects, namely 𝑜1 and 𝑜2 • 𝑜1 and 𝑜2 must be distinct so 𝑜1≠𝑜2 • 𝑛 stands for the relationship namespace • 𝑎𝑡𝑡𝑟 stands for the set of attributes/properties associated with the relationship Following definition 4.2.3, the CDS comprises a single universal graph that includes all objects and relationships. In the CDS, two objects are differen only if their identifiers and namespaces are different (definition 4.2.4). Theorem 4.2.3. Central Data Storage definition The Central Data Storage is a tuple 𝐺=(𝑉, 𝐸) , such that, • 𝐺 is a universal graph • 𝑉 is the set of all objects • 𝐸 is the set of all edges Theorem 4.2.4. Different objects definition Let 𝑜𝑎=(𝑖𝑑𝑎, 𝑛𝑎, 𝑎𝑡𝑡𝑟𝑎) ∈ 𝑉 and 𝑜𝑏=(𝑖𝑑𝑏,𝑛𝑏, 𝑎𝑡𝑡𝑟𝑏) ∈ 𝑉 , then 𝑜𝑎≠𝑜𝑏 if 𝑖𝑑𝑎≠𝑖𝑑𝑏∧𝑛𝑎≠𝑛𝑏 ProTReND’s database comprehends 13 entities. Each entity represents a namespace in the CDS universal graph, and all objects available in the database are associated with a single namespace as defined above in section 4.2.1. In detail, the following entities are available in ProTReND’s database: • Effector - An effector object can represent a metabolic compound, Transfer RNA (tRNA), or protein sub-unit that belongs to a regulatory protein complex. Effectors can bind non-covalently to an allosteric regulatory site influencing interactions between regulators and genes. Alternatively, effectors can also represent biological processes or environmental conditions that alter the regulatory effect of regulatory interactions. 65
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS • Evidence - An evidence object represents the experimental or computational technique used to infer a given regulatory interaction. There can be specific evidence objects, such as directed mutagenesis or gene expression profiling, and generic evidence objects, such as predicted or experimental. • Gene - A gene object represents a DNA segment transcribed and translated into a protein. In the CDS, most genes are target genes in that expression levels are determined by regulators. • Motif - A motif object represents a series of aligned fixed-length TFBS associated with a single regulator. • Operon - An operon object represents a set of genes regularly transcribed as a single functional mRNA molecule encoding the genetic information for synthesizing one or more proteins. • Organism - An organism object represents an organic living system. Note that the ProTReND repository only contains prokaryotic organisms. • Pathway - A pathway object represents a biochemical pathway associated with a given regulator or gene. • Publication - A publication object represents a journal or book citation referenced with a PubMed Identifier (PMID). • Regulator - A regulator object represents a regulatory protein of one of the following types: TF; transcription attenuator; transcription terminator; sigma factor; small RNA (sRNA). Regulators are responsible for controlling gene expression upon binding specific sites in the genome. • Regulatory Family - A regulatory family object represents a family of regulatory proteins that can share similar regulatory processes or sequence similarities. • Regulatory Interaction - A regulatory interaction object represents the control of a gene’s expression mediated by a regulator upon binding a given TFBS in association with a given effector. Regulatory interactions are associated with the regulatory effect, namely the activation or repression of the gene expression. • Source - A source object represents a resource of regulatory data extracted in the ProTReND repository. • TFBS - A TFBS object represents a physical DNA sequence also referred to as a binding site. Regulators bind to TFBS to control gene expression. Figure 20 portrays the main entities and relationships in the CDS, while supplementary material I.8 contains the schema for the namespaces, attributes, and relationships. Organism , Regulator , Gene , and TFBS are highly interconnected in the CDS. Likewise, Regulatory Interaction comprises the central 66
4.2. DATA INTEGRATION SYSTEM relationships in the CDS, also having connections with Publication , Evidence , and Effector . The CDS also contains Regulator - Regulatory Family and Gene - Operon relationships. Motif entity is mainly associated with TFBS and Regulator . Note that ProTReND’s database contains more relationships than the ones defined in Figure 20. For instance, Source entity contains connections with all objects integrated in the CDS. Hence, we have selected the main entities and relationships in the CDS to ease the visualization of the database connectivity. Figure 20: Main namespaces and relationships in ProTReND’s CDS. Namespaces are depicted on the left and right axis representing the source and target nodes, respectively. The arcs between namespaces stand for relationships in the CDS. All relationships are bi-directional in the CDS. For instance, the Regulatory Family entity is associated with the Regulator entity as the Regulator entity is related to the Regulatory Family . ProTReND database runs over the Neo4j DBMS. In detail, neomodel, an OGM for the Neo4j graph database built on top of Python’s neo4j driver, was used to implement the graph data model defined above 4.2.3. An OGM is a technique based on the object-oriented programming paradigm. Thus, neomodel allows performing CRUD operations using simple Python objects. Neomodel’s simple yet powerful API is used in all ETL tools instead of Neo4j’s query language, Cypher. 4.2.4 Data lake sub-system In the present context, a data lake is a schemaless and unstructured data storage technique to store raw data from several sources. Whereas data warehouses are analytical-oriented data storage systems that are usually optimized for a set of analyses and reports, data lakes can store all types of data without prior design and effort. Structured and unstructured raw data are often held in data lakes as extracted. Then, a particular share of the stored data can be further processed for a specific analysis. 67
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS ProTReND’s data integration system comprises a data lake sub-system to store extracted data into several raw format files, such as JSON, Comma Separated Values (CSV), XLSX spreadsheet, and Text File (TXT). In addition, the data lake also contains data created by the transform, integration, and load tools. Data available in the knowledge expansion sub-system is also stored in the data lake in the form of SQLite databases and JSON format files. ProTReND’s data lake is organized into a hierarchical file storage system. In detail, the name and version of the data source are used to create the directories hierarchy. For instance, a directory named regulondb-0.0.2 contains all files obtained from RegulonDB [67] in the second extraction. Many files are stored in several formats within each directory. Besides, these files can have been generated at each stage of the ETL pipeline or data integration system. For instance, the directory bioapi cache contains many SQLite databases with cached records of NCBI and UniProtKB used in the ETL tools. In short, the data lake fundamentally differs from the CDS, which consists of a graph database optimized to analyze and visualize regulatory information. In contrast, the data lake contains all structured and unstructured files to assemble the CDS, which can also support particular queries and analyses. 4.2.5 Data extraction sub-system The data extraction sub-system contains all tools to collect regulatory data from distinct sources. This system comprehends seven databases of regulatory data and three TRNs available from the literature. Table 4 contains the resources of regulatory information selected at this stage together with the type of extraction performed and entities referenced. 68
4.2. DATA INTEGRATION SYSTEM Table 4: Extracted resources of regulatory data. Summary of the resources extracted in ProTReND. The resources are identified by name, reference, type, taxonomic coverage, and data type. Resource Type Organism Extraction Data Abasy [76] database Bacteria manual TF and gene CollecTF [73] database Prokaryota scraping regulon, gene, TFBS, evidence and publication CoryneRegNet [71] database Bacteria manual TF, sRNA, sigma factor, gene, binding site, evidence and publication DBTBS [69] database B. subtilis scrapping TF, sigma factor, gene, TFBS and family ODB [78] database Prokaryota manual operon and gene RegPrecise [74] database Prokaryota scrapping regulon, sRNA, gene, TFBS, effector, pathway, RNA family, TF family and publication RegulonDB [67] database E. coli manual TF, sigma factor, sRNA, gene, binding site, effector, evidence and publication Fang et al [207] literature E. coli manual TF and gene Faria et al [106] literature B. subtilis manual TF, sigma factor, sRNA, gene and metabolite Turkarslan et al [47] literature M. tuberculosis manual TF and gene Third-party resources provide data in different formats. Furthermore, external resources may have different notations to the same entity or property. Hence, the data extraction sub-system comprehends an extraction tool for each data source. Web scraping is used to collect regulatory data from CollecTF [73], 69
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS RegPrecise [74], and DBTBS [69], as these resources do not have a RESTfull API or user-friendly tool to download all data. The copyright licences and web robots file ( robots.txt ) have been consulted before the web scraping process to verify copyright infringements. On the other hand, the data sources Abasy [76], CoryneRegNet [71], Operon DataBase (ODB) [78], and RegulonDB [67] have been obtained manually from the resources’ websites. The copyright licenses have been consulted before downloading the regulatory data to verify copyright infringements. In this case, the raw format files downloaded from these resources were added directly to the data lake. Finally, the published TRNs of E. coli , B. subtilis , and M. tuberculosis were available in the supplementary materials of each work. The following paragraphs contain a detailed description of the entities and properties extracted for each data source. Abasy - The Abasy database [76] allows downloading state-of-the-art TRNs in the JSON format file. We have downloaded nine TRNs containing many regulatory interactions between regulators and target genes identified by the gene locus tag or name. In addition to the TRN JSON file, the Abasy database also provides a Tabular Separated Values (TSV) format file containing the following information for all regulators and target genes: gene locus tag; gene name; NCBI gene identifier; UniProtKB accession; synonyms; product. Supplementary material I.9 fully describes the regulatory information collected from Abasy. CollecTF - The CollecTF database [73] contains regulatory interactions and binding site motifs for several bacteria. Although this database allows downloading regulatory interactions by taxonomy, we have implemented a web scraping tool to collect the data automatically. This web scraping tool is based on Scrapy, an open-source web-crawling tool in Python. The web scraping tool starts by listing all bacteria documented in CollecTF using a custom parser to process the downloaded HyperText Markup Language (HTML) content. Then, a new web crawling process retrieves regulators, operons, genes, TFBSs, and evidence information for each organism’s web page. Finally, the web scraping tool automatically yields a JSON report of all items gathered in CollecTF. Supplementary material I.9 contains the web-crawled content for organisms, regulators, operons, genes, TFBS, and experimental evidence. CoryneRegNet - The CoryneRegNet database [71] is a collection of experimentally validated and computationally predicted TRNs for Corynebacteria . In addition, this database comprises state-of-the-art regulatory networks for E. coli , B. subtilis , and M. tuberculosis . We have retrieved experimentally validated TRNs of Corynebacterium glutamicum , E. coli , B. subtilis , and M. tuberculosis from the database’s website. The TRNs are in CSV format files, including many regulatory interactions between regulators and target genes. Locus tags, regulatory effect, operon, TFBS, evidence, and PMID are associated with each regulatory interaction. Supplementary material I.9 fully describes the regulatory information available in the CoryneRegNet database. 70
4.2. DATA INTEGRATION SYSTEM 5. The information retrieved from UniProtKB, NCBI protein and NCBI gene databases is merged into a single annotation for a given gene or regulator. Overlapping or inconsistent information is merged according to the order of the steps. That is, data obtained from UniProtKB database takes precedence over NCBI protein and NCBI gene databases, as UniProt accessions are stable and persistent throughout time [98]. Although we have obtained several outdated or migrated records from the NCBI protein and NCBI gene databases, these records have still been used to perform the gene annotation. 6. Finally, the GenBank genomes database was used to standardize the locus tag, name, nucleotide sequence, amino acid sequence, and gene coordinates. In detail, we have used the gene’s locus tag, synonyms, UniProt accession, and GenBank accession obtained so far to find related information in the genomes database. As a result, matching genes were updated with the locus tag, name, nucleotide sequence, amino acid sequence, and gene coordinates of the GenBank genomes database. Motif - Motif search tools use PWMs or Position-Specific Scoring Matrix (PSSM)s inferred from aligned fixed-length TFBS data to discover novel binding sites in target genomes. However, most databases contain unaligned variable-length binding sites associated with regulators. To ease motif searches using ProTReND’s TFBS data, we have included a tool to perform binding site alignment in the knowledge expansion sub-system. The motif annotation tool is based on the LASAGNA package, an algorithm for TFBS alignment [210]. The set of binding sites associated with a regulator is compiled from the CDS and submitted to LASAGNA. This algorithm performs a length-aware binding site alignment and returns aligned fixed-length sequences. LASAGNA can add gaps to each sequence to perform the alignment successfully. Then, the motif annotation tool can infer the consensus sequence, PWM, PSSM and motif logo using the aligned TFBS. All generated motifs have been stored in the data lake and loaded into the CDS. Motifs stored in the CDS only contain the aligned binding site sequences, as the remaining information can be easily generated from the binding sequences. The knowledge expansion sub-system comprehends a series of independent modules and components in the ProTReND repository. The annotation component is responsible for performing the above annotation routines and merging the collected data into the transformed objects. The component named bioapis contains all tools to access the KEGG, NCBI and UniProt databases. This component also implements a caching system to improve the performance of the ETL tool, as fetching information to external resources via API is time-consuming. The cache system uses DiskCache, a disk file-backed cache software built in Python. All queries performed to KEGG, NCBI and UniProt databases are hashed using the query arguments as keys, and stored in SQLite databases. Cache databases are stored in the data lake, allowing their portability and versioning. Finally, binding site alignment and descriptors components implement TFBS alignment and motif reconstruction strategies. 77
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS 4.2.8 Data integration sub-system The same object can have slightly different terms and annotations across multiple data sources. Transformation and knowledge expansion tools help reduce this data heterogeneity. Nevertheless, an integration tool is still mandatory to merge duplicated entries and perform data normalization. The purpose of an integration tool is to apply a set of rules to transformed objects enabling a centralized and unified view of the heterogeneous regulatory data compiled so far in the ETL tool. Overall, transformation and integration sub-systems comprise the cornerstone of the data integration system and impose data constraints in the CDS. However, the transform tool has not applied any integration rule per se, because the namespace resolution and object annotation do not prevent obtaining duplicated objects. For instance, the data lake contains many duplicated objects extracted from different data sources. The following paragraphs fully describe the integration rules applied to all entities in the CDS based on their primary properties. Effector, evidence, pathway, and regulatory family - The property name is the primary key to formulating a generic integration rule for effectors, evidence, pathways, and regulatory families due to the scarcity of information obtained for these entities. Definition 4.2.6 is used to merge data from different sources regarding objects of the mentioned entities. Therefore, the integration process removed the effector, evidence, pathway, and regulatory family objects missing the name property. Theorem 4.2.6. Definition of equivalent objects by name Let 𝑜𝑎=(𝑖𝑑𝑎, 𝑛𝑎,”𝑛𝑎𝑚𝑒𝑎”, ...) ∈ 𝑉 and 𝑜𝑏=(𝑖𝑑𝑏,𝑛𝑏,”𝑛𝑎𝑚𝑒𝑏”, ...) ∈ 𝑉 , then 𝑜𝑎≡𝑜𝑏 if 𝑛𝑎=𝑛𝑏∧𝑛𝑎,𝑛𝑏∈ (”𝐸𝑓 𝑓 𝑒𝑐𝑡𝑜𝑟”,”𝐸𝑣𝑖𝑑𝑒𝑛𝑐𝑒”,”𝑃𝑎𝑡ℎ𝑤𝑎𝑦”,”𝑅𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑦𝐹𝑎𝑚𝑖𝑙𝑦”) and ”𝑛𝑎𝑚𝑒𝑎”= ”𝑛𝑎𝑚𝑒𝑏” . Organism - Name and NCBI taxonomy identifier properties are the primary keys to setting organisms’ integration rule in the CDS. Following definition 4.2.7, organisms are equivalent across data sources if the name and NCBI taxonomy identifier are identical. Theorem 4.2.7. Definition of equivalent organisms Let 𝑜𝑎=(𝑖𝑑𝑎, 𝑛𝑎,”𝑛𝑎𝑚𝑒𝑎”,”𝑛𝑐𝑏𝑖𝑇𝑎𝑥𝑜𝑛𝑜𝑚𝑦𝑎”, ...) ∈ 𝑉 and 𝑜𝑏 = (𝑖𝑑𝑏,𝑛𝑏,”𝑛𝑎𝑚𝑒𝑏”,”𝑛𝑐𝑏𝑖𝑇𝑎𝑥𝑜𝑛𝑜𝑚𝑦𝑏”, ...) ∈𝑉 , then 𝑜𝑎≡𝑜𝑏 if 𝑛𝑎=”𝑂𝑟𝑔𝑎𝑛𝑖𝑠𝑚”∧𝑛𝑏=”𝑂𝑟𝑔𝑎𝑛𝑖𝑠𝑚” , ”𝑛𝑎𝑚𝑒𝑎”=”𝑛𝑎𝑚𝑒𝑏” , and ”𝑛𝑐𝑏𝑖𝑇𝑎𝑥𝑜𝑛𝑜𝑚𝑦𝑎”= ”𝑛𝑐𝑏𝑖𝑇𝑎𝑥𝑜𝑛𝑜𝑚𝑦𝑏” . Regulator and gene - Locus tag and UniProt accession properties are the primary keys to set the integration rule for regulators and genes. Following definition 4.2.8, regulators and genes are equivalent across data sources if they have the same locus tag and UniProt accession. The locus tag is available across most data sources and standardized in the knowledge expansion sub-system using the GenBank genomes database. Furthermore, the integration tool removes regulators and genes missing the locus tag 78
4.2. DATA INTEGRATION SYSTEM property. The UniProt accession is also available in most regulators and genes. In addition, the UniProt accession is a persistent identifier in the UniProtKB database. Theorem 4.2.8. Definition of equivalent regulators and genes Let 𝑜𝑎=(𝑖𝑑𝑎, 𝑛𝑎,”𝑙𝑜𝑐𝑢𝑠𝑇𝑎𝑔𝑎”,”𝑢𝑛𝑖𝑝𝑟𝑜𝑡𝐴𝑐𝑐𝑒𝑠𝑠𝑖𝑜𝑛𝑎”, ...) ∈ 𝑉 and 𝑜𝑏 = (𝑖𝑑𝑏,𝑛𝑏,”𝑙𝑜𝑐𝑢𝑠𝑇𝑎𝑔𝑏”,”𝑢𝑛𝑖𝑝𝑟𝑜𝑡𝐴𝑐𝑐𝑒𝑠𝑠𝑖𝑜𝑛𝑏”, ...) ∈𝑉 , then 𝑜𝑎≡𝑜𝑏 if 𝑛𝑎=𝑛𝑏∧𝑛𝑎,𝑛𝑏∈ (”𝑅𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟”,”𝐺𝑒𝑛𝑒”) , ”𝑙𝑜𝑐𝑢𝑠𝑇𝑎𝑔𝑎”=”𝑙𝑜𝑐𝑢𝑠𝑇𝑎𝑔𝑏” , and ”𝑢𝑛𝑖𝑝𝑟𝑜𝑡𝐴𝑐𝑐𝑒𝑠𝑠𝑖𝑜𝑛𝑎”=”𝑢𝑛𝑖𝑝𝑟𝑜𝑡𝐴𝑐𝑐𝑒𝑠𝑠𝑖𝑜𝑛𝑏” . Regulators and genes have a second data constraint based on the assumption that one regulator or gene can only be associated with a single organism. Hence, regulatory data is normalized at the genome scale, as regulators and genes must be distinct across organisms. Operon - The ODB identifier is available to all operons retrieved from ODB. Hence, the ODB identifier is the primary key for formulating the integration rule of operons (definition 4.2.9). Nevertheless, the integration of operons in ProTReND’s repository was limited to operons having genes integrated into the CDS. An operon is integrated into ProTReND’s database if one of the operon genes is available in the CDS at the time of the integration. As with regulators and genes, operons must be associated with a single organism. Theorem 4.2.9. Definition of equivalent operons Let 𝑜𝑎=(𝑖𝑑𝑎, 𝑛𝑎,”𝑜𝑑𝑏𝑖𝑑𝑒𝑛𝑡𝑖𝑓 𝑖𝑒𝑟𝑎”, ...) ∈ 𝑉 and 𝑜𝑏=(𝑖𝑑𝑏,𝑛𝑏,”𝑜𝑑𝑏𝑖𝑑𝑒𝑛𝑡𝑖𝑓 𝑖𝑒𝑟𝑏”, ...) ∈ 𝑉 , then 𝑜𝑎≡𝑜𝑏 if 𝑛𝑎=”𝑂𝑝𝑒𝑟𝑜𝑛”∧𝑛𝑏=”𝑂𝑝𝑒𝑟𝑜𝑛” and ”𝑜𝑑𝑏 _ 𝑖𝑑𝑒𝑛𝑡𝑖𝑓 𝑖𝑒𝑟𝑎”=”𝑜𝑑𝑏 _ 𝑖𝑑𝑒𝑛𝑡𝑖𝑓 𝑖𝑒𝑟𝑏” . Publication - The PMID property is the primary key to setting the integration rule of publications in the CDS (definition 4.2.10). The citation identifier is retrieved from the PubMed database and assigned to all publications in the publication annotation tool. The integration process removes all publication objects missing a PMID. Theorem 4.2.10. Definition of equivalent publications Let 𝑜𝑎=(𝑖𝑑𝑎, 𝑛𝑎,”𝑝𝑚𝑖𝑑𝑎”, ...) ∈ 𝑉 and 𝑜𝑏=(𝑖𝑑𝑏,𝑛𝑏,”𝑝𝑚𝑖𝑑𝑏”, ...) ∈ 𝑉 , then 𝑜𝑎≡𝑜𝑏 if 𝑛𝑎= ”𝑃𝑢𝑏𝑙𝑖𝑐𝑎𝑡𝑖𝑜𝑛”∧𝑛𝑏=”𝑃𝑢𝑏𝑙𝑖𝑐𝑎𝑡𝑖𝑜𝑛” and ”𝑝𝑚𝑖𝑑𝑎”=”𝑝𝑚𝑖𝑑𝑏” . Regulatory interaction - A star shape schema is often used to model data in a data warehouse [204], [211]. This schema contains a fact table at the center to power data analyses. The fact table should not store data directly, but rather foreign keys of the multiple dimensions in the data warehouse. Dimension tables should be related to the fact table and store the relevant properties of each dimension. Regulatory interactions are the primary event in ProTReND’s repository. Therefore, the regulatory interaction entity in the CDS is ProTReND’s facts table, and all objects having the RegulatoryInteraction namespace are nodes or rows of this fact table. A regulatory interaction object contains the organism, regulator, gene, TFBS, and effector foreign keys. 79
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS Equivalent regulatory interactions have been detected across multiple data sources using a combination of all foreign keys and the regulatory effect. Thus, regulatory interactions are equivalent if the combination of the related organism, regulator, gene, TFBS, effector, and regulatory effect are identical (definition 4.2.11). A composed hashable key has been added to all regulatory interactions to ease their integration. This key is composed of all foreign keys mentioned above plus the regulatory effect of the regulatory interaction. Figure 21 provides an example of the integration process performed in regulatory interactions. Note that both TFBS and effector foreign keys are not required to create a regulatory interaction object, as most resources of regulatory data miss information for these dimensions. Consequently, regulatory interactions having the same organism, regulator, gene, and regulatory effect might still be different objects in the CDS due to the presence or absence of TFBS and effector foreign keys. Theorem 4.2.11. Definition of equivalent regulatory interactions Let 𝑜𝑎=(𝑖𝑑𝑎, 𝑛𝑎,”𝑜𝑟𝑔𝑎𝑛𝑖𝑠𝑚𝑎”,”𝑟𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑎” , ”𝑔𝑒𝑛𝑒𝑎”,”𝑡 𝑓 𝑏𝑠𝑎”,”𝑒𝑓 𝑓 𝑒𝑐𝑡𝑜𝑟𝑎”,”𝑟𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑦 _ 𝑒𝑓 𝑓 𝑒𝑐𝑡𝑎”) ∈ 𝑉 and 𝑜𝑏=(𝑖𝑑𝑏,𝑛𝑏,”𝑜𝑟𝑔𝑎𝑛𝑖𝑠𝑚𝑏”,”𝑟𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑏” , ”𝑔𝑒𝑛𝑒𝑏”,”𝑡 𝑓 𝑏𝑠𝑏”,”𝑒𝑓 𝑓 𝑒𝑐𝑡𝑜𝑟𝑏”,”𝑟𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑦 _ 𝑒𝑓 𝑓 𝑒𝑐𝑡𝑏”) ∈ 𝑉 , then 𝑜𝑎≡𝑜𝑏 if the following conditions are satisfied: • 𝑛𝑎=”𝑅𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑦𝐼𝑛𝑡𝑒𝑟𝑎𝑐𝑡𝑖𝑜𝑛”∧𝑛𝑏=”𝑅𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑦𝐼𝑛𝑡𝑒𝑟𝑎𝑐𝑡𝑖𝑜𝑛” • ”𝑜𝑟𝑔𝑎𝑛𝑖𝑠𝑚𝑎”=”𝑜𝑟𝑔𝑎𝑛𝑖𝑠𝑚𝑏” • ”𝑟𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑎”=”𝑟𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑏” • ”𝑔𝑒𝑛𝑒𝑎”=”𝑔𝑒𝑛𝑒𝑏” • ”𝑡 𝑓 𝑏𝑠𝑎”=”𝑡 𝑓 𝑏𝑠𝑏” • ”𝑒𝑓 𝑓 𝑒𝑐𝑡𝑜𝑟𝑎”=”𝑒𝑓 𝑓 𝑒𝑐𝑡𝑜𝑟𝑏” • ”𝑟𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑦𝑒𝑓 𝑓 𝑒𝑐𝑡𝑎”=”𝑟𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑦𝑒𝑓 𝑓 𝑒𝑐𝑡𝑏” 80
4.2. DATA INTEGRATION SYSTEM Figure 21: Example of the integration of regulatory interactions in the CDS. The collection of data from different sources can lead to duplicated data. Moreover, regulatory interactions found in external sources often miss normalization. In ProTReND, regulatory interactions are normalized based on the organism, regulator, gene, TFBS, effector and regulatory effect. Therefore, the regulatory interactions fact table can be used to visualize the relationships among the primary dimensions of the CDS. TFBS - Structural and genomics information compose the integration rule of TFBSs in the CDS (definition 4.2.12). Binding site data such as the nucleotide sequence, strand, and both start and stop positions can be used to establish equivalent TFBSs. Nevertheless, there is still a remote possibility that two binding sites from different organisms may contain the same structural and genomic information. Therefore, TFBS objects contain the organism’s foreign key. TFBS objects include a composed hashable key comprehending the organism’s foreign key plus the structural information of the binding site. As for the TFBS nucleotide sequence, the organism foreign key is mandatory in TFBS objects. Thus, the integration process removes TFBS objects missing these two properties while merging those that share the same two properties. Theorem 4.2.12. Definition of equivalent TFBSs Let 𝑜𝑎=(𝑖𝑑𝑎, 𝑛𝑎,”𝑜𝑟𝑔𝑎𝑛𝑖𝑠𝑚𝑎”,”𝑠𝑒𝑞𝑢𝑒𝑛𝑐𝑒𝑎”,”𝑠𝑡𝑟𝑎𝑛𝑑𝑎”,”𝑠𝑡𝑎𝑟𝑡𝑎”,”𝑠𝑡𝑜𝑝𝑎”, ...) ∈ 𝑉 and 𝑜𝑏= 81
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS (𝑖𝑑𝑏,𝑛𝑏,”𝑜𝑟𝑔𝑎𝑛𝑖𝑠𝑚𝑏”,”𝑠𝑒𝑞𝑢𝑒𝑛𝑐𝑒𝑏”,”𝑠𝑡𝑟𝑎𝑛𝑑𝑏”,”𝑠𝑡𝑎𝑟𝑡𝑏”,”𝑠𝑡𝑜𝑝𝑏”, ...) ∈ 𝑉 , then 𝑜𝑎≡𝑜𝑏 if the following conditions are satisfied: • 𝑛𝑎=”𝑇𝐹𝐵𝑆”∧𝑛𝑏=”𝑇 𝐹𝐵𝑆” • ”𝑜𝑟𝑔𝑎𝑛𝑖𝑠𝑚𝑎”=”𝑜𝑟𝑔𝑎𝑛𝑖𝑠𝑚𝑏” • ”𝑠𝑒𝑞𝑢𝑒𝑛𝑐𝑒𝑎”=”𝑠𝑒𝑞𝑢𝑒𝑛𝑐𝑒𝑏” • ”𝑠𝑡𝑟𝑎𝑛𝑑𝑎”=”𝑠𝑡𝑟𝑎𝑛𝑑𝑏” • ”𝑠𝑡𝑎𝑟𝑡𝑎”=”𝑠𝑡𝑎𝑟𝑡𝑏” • ”𝑠𝑡𝑜𝑝𝑎”=”𝑠𝑡𝑜𝑝𝑏” Motif - The CDS can only store one motif object per regulator. Following integration rule 4.2.13, two motif objects are equivalent if their regulator foreign keys are also different. Theorem 4.2.13. Definition of equivalent motifs Let 𝑜𝑎=(𝑖𝑑𝑎, 𝑛𝑎,”𝑟𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑎”, ...) ∈ 𝑉 and 𝑜𝑏=(𝑖𝑑𝑏,𝑛𝑏,”𝑟𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑏”, ...) ∈ 𝑉 , then 𝑜𝑎≡𝑜𝑏 if 𝑛𝑎=”𝑀𝑜𝑡𝑖𝑓 ”∧𝑛𝑏=”𝑀𝑜𝑡𝑖𝑓 ” and ”𝑟𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑎”=”𝑟𝑒𝑔𝑢𝑙𝑎𝑡𝑜𝑟𝑏” . Source - Source objects are created manually in the CDS as new data sources are added to the ETL tool. Thus, the data integration system does not implement any integration rule for source objects. The transform component of the ETL tool comprehends the integration sub-system. The transformer of each data source is responsible for applying a transform function to the extracted data and using the knowledge expansion sub-system to improve the annotation of the transformed objects. Then, each transformer uses the generic integration tool to filter objects that must be integrated and loaded into the CDS. The integration tool first standardizes the primary keys used in the integration rules of each entity as follows: text format conversion, lowercase format conversion, and removal of leading and trailing spaces. Then, the entity integration rules determine whether an object is integrated into the CDS. For that, the integration tool takes a snapshot of ProTReND’s database and compares incoming objects with the objects present in the database. As a result, objects are marked to be created or updated in the CDS. In a worstcase scenario, a given object can be removed from the integration process if it does not meet the integration rules defined earlier. Finally, all integrated objects are stored in the data lake to be loaded into the CDS later. The integration tool assigns a single and universal identifier to the integrated objects. ProTReND’s identifier is a property common to all entities and used as the primary key in the CDS. ProTReND’s identifiers are generated automatically in sequential order for each new object. On the other hand, objects marked to be updated do not take a new identifier, as only non-primary properties will be updated. Figure 82
4.2. DATA INTEGRATION SYSTEM 22 portrays an example of a ProTReND identifier containing the immutable PRT initials, a string entitybased code, and a numeric increment-based code. Figure 22: Example of a ProTReND identifier for a regulatory object. The ProTReND identifier contains the immutable ProTReND initials, a string entity-based code (regulator in this example), and a numeric increment-based code. Once all objects are fully integrated into the CDS, the integration tool standardizes objects’ relationships. Relationships are created in the transformation sub-system linking different objects by their primary keys. However, objects can be removed from the integration system, making some relationships obsolete. Furthermore, the data loading sub-system can only create edges in the CDS using ProTReND identifiers. Hence, the integration tool inspects all connections to find corresponding ProTReND identifiers. This lookup procedure is performed based on the objects’ primary keys, which have been stored with the connections in the transformation sub-system. 4.2.9 Data loading sub-system Hitherto, the ETL tool is mainly composed of a set of custom-tailored tools, as the extraction, transformation, and integration of heterogeneous data require different procedures. For instance, some sources covered in this repository are organism-specific, while others contain regulatory data for many prokaryotes. Hence, the tools implemented to deal with these dimensions must be fundamentally different. On the other hand, the ProTReND repository has a single data loading tool. The integration tool has already performed iterative findings of duplicated objects according to the entities’ primary keys, so the loading tool does not have to deal with data normalization and integration. Moreover, integrated objects are available as structured and standardized objects in the data lake. The data loading sub-system fetches integrated objects stored in the data lake automatically. Then, this tool uses the CDS data model to trim irrelevant properties and add two timestamps. One stands for the time of object creation, while the other corresponds to the time of the last update. Finally, according to the instructions left by the integration tool, the loading tool automatically creates or updates nodes in the CDS with the related properties. 83
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS Regarding relationships, the data loading sub-system automatically reads files from the data lake containing edge information. In detail, the data lake contains JSON files that store relationships for many objects. These files have been generated by the integration tool and contain the ProTReND identifier of the source and destination node. Thus, the loading tool is responsible for finding both objects in the CDS and creating the relationship between them with the corresponding properties. Objects are transformed, integrated, and loaded independently on the CDS. Alternatively, the loading tool can only create relationships if the source and target objects are available on the CDS. Hence, objects can be created without relationships unless this violates their integration rules (mandatory foreign keys). Finally, the data loading sub-system performs a final trimming procedure to circumvent orphan objects (objects without relationships) in the CDS. 4.2.10 The first version of ProTReND’s database The ETL pipeline comprises several steps to populate the CDS. Although each step is autonomous, the order by which each data source is integrated into the CDS can yield slightly different results. Objects can be updated with distinct values, as these are not always the same across databases. According to the integration sub-system, a new object is not created if a similar object is already available in the CDS. Instead, the object in the CDS is updated with the most recent information. Non-organism-specific databases were firstly integrated into ProTReND’s database in the following order: CollecTF; RegPrecise; Abasy; CoryneRegNet. A preliminary analysis found that these databases might contain less detail about a single organism than organism-specific resources. Then, ETL tool integrated the published TRNs, DBTBS, and RegulonDB to complete the objects related to E. coli , B. subtilis , and M. tuberculosis . ODB was the last database to be integrated into the repository. Then, the Motif transformer listed all regulators and related TFBS to generate binding motifs. Finally, the ETL ran the trimming procedure to clean orphan objects. Figure 23 depicts the ETL pipeline execution order used to populate ProTReND’s database. 84
4.3. DATA INTEGRATION RESULTS Figure 23: ETL pipeline used to populate ProTReND’s database. Non-organism-specific databases, namely CollecTF, RegPrecise, Abasy, and CoryneRegNet, were integrated first. Then, published TRNs and organism-specific database DBTBS and RegulonDB were integrated into the repository. ODB is the last external resource to be integrated into the database. The last steps include generating motifs and a trimming procedure. 4.3 Data integration results 4.3.1 Overview of the data integration results ProTReND is vastly composed of regulatory interactions. According to figure 24, the regulatory interaction facts table accounts for around 47% of all objects in the CDS. Genes, TFBSs, and operons also make up a significant share of all objects stored in the database, attaining around 47% of all objects. Regulators and motifs are equally represented on the CDS, with around 3% of all objects, indicating that most regulators must have a binding motif. Finally, organisms and other objects account for nearly 1% of all objects in the CDS. The distribution of objects according to their namespace mirrors the graph store model design implemented in the CDS. This graph store model is based on a facts table for regulatory interactions associated with the primary dimensions: organism, regulator, gene, and TFBS. 85
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS Figure 24: Distribution of objects stored in the ProTReND database by their entity. The treemap shows the relative frequency associated with the main ProTReND entities, namely Regulatory Interaction, Gene, TFBS, operons, regulators, motifs, and organisms. Other entities such as effectors, pathways, regulatory families, evidence, and publications are included in the group named ”other”. 4.3.2 Integration report The ETL pipeline reports the results obtained in the extract, transform, integrate and load sub-systems. The reporting tool collects objects at each step for a given regulatory resource integrated into the CDS. Table 6 contains the integration results obtained with the ETL tool. According to figure 25, the number of genes and regulators extracted from RegPrecise has dropped significantly in the transform sub-system. This decline might be associated with the fact that, due to the ambiguity and lack of data at the genome scale, the transformation tool ignored sRNAs from RegPrecise. Consequently, genes associated with these sRNAs have also been ignored. The sRNAs extracted from RegPrecise are identified with the regulatory family name and shared among several organisms. Besides, the knowledge expansion sub-system attained poor results when annotating sRNAs. Another significant decline is observed in genes, operons, and publications extracted from ODB (table 6). The transform tool for ODB removes operons missing connections with the genes available in the CDS. The extract sub-system often includes duplicated data for some entities. For example, figure 25 reports a substantial decrease of TFBS in the DBTBS and regulators in the CollecTF databases due to the redundancy of these objects in the extract sub-system. Regarding the integration sub-system, the number of integrated objects drops significantly in the latest data sources. Figure 25 indicates that multiple organisms, genes, and regulators transformed from Abasy, CoryneRegNet, literature, DBTBS, and RegulonDB already existed in the CDS, as the number of new objects registered in the integration sub-system is lower than in the transform sub-system. On the other hand, CollecTF and RegPrecise were the first resources to be integrated, thus attaining the same numbers in the transform and integration sub-system. However, both TFBSs and regulatory interactions 86
4.3. DATA INTEGRATION RESULTS The knowledge expansion sub-system was designed to enhance the annotation of organisms, regulators, genes, effectors, pathways, and publications often missing relevant data to assemble TRNs at the genome scale. Figure 29 shows that the knowledge expansion sub-system has significantly improved the functional annotation of regulators and genes. In addition, this system retrieved genomics and proteomics data often missing in the extracted regulatory sources. Around 90% of regulators and genes comprehend genomic coordinates, gene sequence, protein sequence, and external references to genomics and proteomics databases, except RefSeq accession, which is present in around 75% of these objects. Furthermore, all organisms integrated into the CDS have been associated with the corresponding NCBI taxonomy identifier, and 99% of the prokaryotes are linked to the GenBank, RefSeq and NCBI assembly databases. Likewise, all publications in ProTReND database are linked to the PubMed database. According to figure 29, around 85% of effectors have been linked to at least one KEGG compound. Nevertheless, most pathways integrated into the database are not associated with any KEGG pathway. 93
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS Figure 29: Results of the analysis of the knowledge expansion sub-system in the ProTReND repository. Properties’ relative frequency is determined by the number of objects having the property divided by the total of objects in the CDS. 4.3.3 CDS topology The analysis of the CDS topology consists of a survey of the TRNs compiled in the data integration system. Figure 30 contains the organism density distribution as a function of the number of regulators, genes, TFBSs, and regulatory interactions. The density distribution, based on the organism-entity outdegree (Kout), indicates how frequently organisms are associated with regulators, genes, TFBSs, and regulatory interactions. For example, organism PRT.ORG.0000012 ( B. subtilis 168) has a regulator outdegree of 246, as this organism is associated with 246 distinct regulators. Nevertheless, the probability 94
4.3. DATA INTEGRATION RESULTS obtained by the density function for a regulator out-degree of 246 can be very low, as few organisms can be associated with 246 (or similar) distinct regulators. In fact, figure 30 contains logarithmized out-degrees (𝑙𝑛𝐾𝑜𝑢𝑡), as a few organisms are associated with numerous regulators, genes, TFBSs, and regulatory interactions. Besides, the range of the regulators’ out-degree is significantly inferior to the range of the genes, TFBSs, and regulatory interactions out-degree. Figure 30: Density distribution of regulators, genes, TFBSs and regulatory interactions per organism. A probability density function estimates the density distribution based on the organism-entity out-degree (Kout). Due to the different range of values among entities, out-degrees were logarithmized (𝑙𝑛𝐾𝑜𝑢𝑡). Moreover, a small share of organisms is associated with numerous regulators, genes, TFBSs, and regulatory interactions, following an exponential distribution. The median out-degree (white dot) between organisms and entities is plotted together with the interquartile range (thick black horizontal bar). The density estimation corresponds to the area of the violin plot. According to figure 30, the median out-degree between organisms and regulators is significantly inferior to the median of out-degrees for genes, TFBS, and regulatory interactions. Organisms are more frequently associated with about ln 18 (2.89) regulators, ln 118 (4.77) genes, ln 71 (4.26) TFBS, and ln 169 (5.13) regulatory interactions. The density distribution also shows a small number of organisms associated with fewer regulators, genes, TFBS, and regulatory interactions. On the other hand, small density values estimated in higher out-degrees indicate that a small number of organisms have out-degrees 95
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS superior to the median values. Organism-specific databases or published TRNs have likely increased the volume of regulatory interactions in these organisms. Figure 31 contains the top 20 organisms in terms of out-degree for regulators, genes, TFBSs, and regulatory interactions, showing the composition of the most well-represented TRNs in the ProTReND database. Figure 31: Organisms having the largest out-degrees regarding regulators, genes, TFBSs and regulatory interactions. Top 20 organisms ranking the highest out-degrees (Kout) for regulators, genes, TFBSs, and regulatory interactions. The organisms are labeled by their scientific name. B. subtilis 168, E. coli K-12 and M. tuberculosis H37Rv are well documented in the organism-specific databases and published TRNs. Consequently, these bacteria have high out-degrees for regulators, genes, TFBS, and regulatory interactions. In detail, B. subtilis 168 is associated with more regulators than E. coli K-12, though the lactic acid bacterium has fewer relationships with genes and TFBSs. Hence, E. coli K-12 96
4.3. DATA INTEGRATION RESULTS TRN has significantly more regulatory interactions than the network of B. subtilis 168. Interestingly, C. glutamicum ATCC 13032 and P. aeruginosa PAO1 are also highly represented in ProTReND. The former bacterium is well documented with regulators, genes, TFBSs, and regulatory interactions in CoryneRegNet, while Abasy contains an extensive TRN for P. aeruginosa PAO1. The regulatory data associated with the remaining organisms are mainly retrieved from RegPrecise and CollecTF. For instance, the regulators associated with the remaining 15 organisms were extracted exclusively from these two data sources. Overall, the out-degree distribution in the remaining 15 organisms is homogeneous, having fewer genes, TFBS, and regulatory interactions than the top 5 bacteria. Regarding the regulators’ out-degree distribution, figure 32 contains the logarithmized out-degrees (𝑙𝑛𝐾𝑜𝑢𝑡) between regulators and genes, TFBSs, and regulatory interactions. As before, a small share of regulators is associated with multiple genes, TFBSs, and regulatory interactions, thus following an exponential distribution. The natural logarithm of the regulator-entity out-degree allows standardizing large values that can hinder the estimation of the density function. 97
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS Figure 32: Density distribution of genes, TFBSs and regulatory interactions per regulator. A probability density function estimates the density distribution based on the regulator-entity out-degree (Kout). Out-degrees were logarithmized (𝑙𝑛𝐾𝑜𝑢𝑡) as a small share of organisms is associated with numerous regulators, genes, TFBSs, and regulatory interactions, following an exponential distribution. The median out-degree (white dot) between organisms and entities is plotted together with the interquartile range (thick black horizontal bar). The density estimation corresponds to the area of the violin plot. Figure 32 shows that median out-degrees are similar across genes, TFBSs, and regulatory interactions. Regulators are more frequently associated with around five (ln 1.61) genes, three (ln 1.1) genes, and seven (ln 1.95) regulatory interactions. Regulators are associated with fewer genes, TFBS, and regulatory interaction, as the density probabilities are higher for smaller out-degrees. Nevertheless, regulators can be related to a large number of interactions. For example, global transcription factors PRT.REG.0000202 (B0683/fur regulator in E. coli ), PRT.REG.0000198 (B3357/crp regulator in E. coli ), and PRT.REG.0011761 (BSU_25200/sigA sigma factor in B. subtilis ) are associated with more than 500 genes each. The most well-represented regulatory families in ProTReND are presented in figure 33. Most families depicted in this figure are well documented in the literature, RegPrecise, and RegulonDB. For instance, the 98
4.4. PROTREND WEB APPLICATION GntR [212] and LacI [213] families attained high out-degrees, being the most prevalent families associated with regulators stored in the CDS. Likewise, TetR [214], Fur [215], and MerR [216] families are also broadly available in the CDS, having relationships with around 600 regulators each. Figure 33: Regulatory families having the largest out-degree regarding regulators. Top 10 regulatory families with the highest out-degrees (Kout) for regulators. 4.4 ProTReND web application 4.4.1 A user-friendly hub of regulatory interactions ProTReND web application is designed to be a user-friendly tool to visualize regulatory interactions available in ProTReND’s database. Besides visualizing organisms, regulators, genes, and interactions, one can download manually or programmatically all regulatory data compiled within ProTReND. The web application allows users to contribute to ProTReND’s database using the user-friendly community’s graphical interface. The next sections will demonstrate the most relevant features of ProTReND’s web application. ProTReND is available at protrend.bio.uminho.pt. 99
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS 4.4.2 Implementation ProTReND web application is implemented using the Django framework in Python. The architecture of this web application is available in figure 34. The web application follows the model-template-views pattern adopted by Django, which encourages the implementation of object-oriented models for handling CRUD operations in databases. Hence, the Django framework is highly compatible with the graph store model adopted in the CDS. Furthermore, the django-neomodel plugin, an extension of neomodel for Django, was used to link ProTReND’s database to the development of the web application. As a result, the web application is based on the data warehouse reconstructed in the data integration system. The Django REST framework plugin was used to implement ProTReND’s RESTful API. This plugin allows serializing database objects into several formats, such as JSON, Extensible Markup Language (XML), CSV, and XLSX, and provides a browsable interface for the API. The web application contains a powerful search engine created with the Whoosh Python package. Organisms, regulators, genes, interactions, effectors, pathways, and regulatory families have been retrieved from the database and indexed as documents to create the search index. The user-friendly community application has been implemented with the django-material plugin. This plugin creates a web-based single-page application supporting CRUD operations in a relational database. Each community object contains a list and detail view based on table-like and form-like layouts. These views were created to visualize, create, update and delete a single table entry in the relational database. Hence, a new database has been designed to store user contributions in the community web application. 100
4.4. PROTREND WEB APPLICATION Figure 34: Architecture of ProTReND web application. The web application retrieves data from the CDS using the Django framework. Regulatory data can also be automatically retrieved using ProTReND API implemented with the Django REST framework. Users can contribute to ProTReND in the community application implemented with the django-material plugin. This user interface performs CRUD operations to a relational database implemented with MySQL DBMS. The web application has been containerized into several autonomous sub-applications. An in-house server hosts the ProTReND web application at protrend.bio.uminho.pt containerized with Docker. 4.4.3 Browse regulatory interactions Users can browse the list of organisms available in ProTReND. In the organism’s view, one can find the ProTReND identifier, scientific name, and NCBI taxonomy identifier and the link to the detailed view of each organism. This view also contains statistics for the organism-regulator distribution, most frequent organisms by regulator number, among others. The detailed view of a given organism includes relevant taxonomy information, such as scientific name, species, strain, and NCBI taxonomy identifier. Figure 35 shows external references that link the organism’s genome and proteome in the following databases: RefSeq, GenBank, NCBI Assembly, and UniProt. The statistics of the prokaryote’s TRN are also available on the organism web page comprising, for instance, regulator-gene distributions. The organism view lists all resources of regulatory information used to compile the prokaryote TRN. The source of the regulatory data is cross-referenced to the organism’s detailed web page in the resource whenever possible. 101
CHAPTER 4. DATABASE OF PROKARYOTIC TRANSCRIPTIONAL REGULATORY NETWORKS Figure 35: Example of the information available for an organism in ProTReND. The detailed web page of an organism (e.g., B. subtilis subsp. subtilis str. 168) contains relevant taxonomy information, such as scientific name, species, strain, and NCBI taxonomy identifier together with external references. TRNs are the main focus of ProTReND web application. The network section contains data tables to visualize and search a given organism’s TRN. As shown in figure 36, these data tables contain information regarding regulators, genes, TFBSs, and regulatory interactions associated with a given organism. More importantly, regulators, genes, and interactions listed in the network section contain links to their detailed web pages or external references (UniProt and NCBI). Figure 36: Example of the organism network section in ProTReND. The detailed web page of an organism (e.g., B. subtilis subsp. subtilis str. 168) includes data tables listing regulators, genes, TFBS, and regulatory interactions available in the TRN. 102
4.4. PROTREND WEB APPLICATION submit a contribution. Once a contribution is made, it is listed in the corresponding data table of the community interface (Figure 43 (B)). One can create a new interaction to establish relationships among new objects in the community interface. Figure 43: Example of ProTReND community application. Example of the effector form that can be used to create a new effector object (A). Example of all effectors added to the ProTReND community application (B). 109
5 Definition and analysis of integrated metabolic-regulatory models The work presented in this chapter was partially published in the following publication: • Pereira, V., Cruz, F., Rocha, M. (2021). MEWpy: a computational strain optimization workbench in Python, Bioinformatics, Volume 37, Issue 16, Pages 2494–2496. 110
5.1. INTRODUCTION 5.1 Introduction The analysis of integrated genome-scale models of metabolism and regulation has been growing in recent years. Methods based on the switch approach, namely rFBA [144] and SR-FBA [145], limit the flux space of solutions with discrete constraints inferred from the state of metabolic and regulatory genes. On the other hand, valve-based techniques, namely PROM [146], IDREAM [150], CoRegFlux [148], and TRFBA [149], are not so deterministic, putting forward continuous constraints derived from gene expression data. Despite the growth of methods to analyze integrated models, most tools are not easy to use out of their scope. These tools tend not to scale well with other case studies, apart from the ones in the original publications. TIGER [152] and FlexFlux [151] toolboxes ease the utilization of modeling techniques such as the mentioned above. Nevertheless, TIGER is available in the MATLAB proprietary language, while FlexFlux is a command-line-based tool with a simple GUI offering limited capabilities. In the latter, model inspection, analysis, and simulation are limited to a few command-line functions. OptFlux [217], a userfriendly tool for constraint-based modeling, allows analyzing integrated models using rFBA or SR-FBA. Still, it lacks the most recent methods based on the valve approach. With this in mind, we have implemented several tools to define, simulate, analyze and optimize integrated models of metabolism and regulation in MEWpy. MEWpy is a metabolic engineering workbench implemented in the Python programming language. This package offers several methods to perform phenotype simulation and strain optimization using constraint-based models, as well as more recent paradigms. In addition, MEWpy allows the prediction of phenotypes using metabolic and regulatoryderived constraints, a feature added in this work. 5.2 MEWpy: a strain optimization workbench in Python MEWpy offers a metabolic modeling framework implemented in Python. This framework includes phenotype simulation and strain optimization algorithms based on GECKO models [218], OptORF [219], and OptRAM [185], circumventing some limitations of other open-source Computational Strain Optimization (CSO) frameworks, such as OptFlux [217] and CAMEO [220]. The architecture of MEWpy comprehends several components, namely model definition, problem representation, phenotype prediction, and optimization, as described in figure 44. 111
CHAPTER 5. DEFINITION AND ANALYSIS OF INTEGRATED METABOLIC-REGULATORY MODELS Figure 44: Overview of MEWpy framework. The MEWpy framework comprehends several components, such as problem representation (targets and strategies), phenotype prediction, and problem optimization (objectives and EAs). The evolutionary computation engine is responsible for suggesting modifications to the targets using a given strategy. These modifications should favor a desired metabolic engineering goal (e.g., compound production) encoded in the objective functions. MEWpy’s problem representation comprehends the following items: • constraint-based modeling framework (metabolic, enzymes, or regulatory constraints); • modification targets (reactions, genes, enzymes, or regulators); • modification strategies (deletion or over/under expression). MEWpy supports COBRApy [130] and Reframed (https://github.com/cdanielmachado/reframed) constraint-based modeling frameworks for model representation and phenotype simulation. These frameworks comprehend useful representations of genes, metabolites, and reactions available in a GEM model. Furthermore, MEWpy uses the phenotype prediction methods available in COBRApy and Reframed to evaluate different phenotypes resulting from over-expression, under-expression, and deletion of genes and reactions. In detail, MEWpy can convert gene modifications into additional flux constraints using the GPR rules available in the model. Regarding reaction modifications, flux constraints are added directly to the problem by altering reactions’ bounds. In addition to the constraint-based modeling frameworks, MEWpy supports the representation of enzymes using GECKO [218] and sMOMENT [221] models. MEWpy can convert enzymatic expression data into additional constraints leading to accurate phenotype predictions. Thus, one can also perform strain optimization based on enzyme modifications, namely over-expression, under-expression, and deletion of enzymes. 112
5.3. A FRAMEWORK FOR INTEGRATED MODELS IN MEWPY Lastly, the integration of gene regulation in GEM models was seamlessly implemented in MEWpy’s ecosystem, in the context of this thesis. The GERM modeling framework comprehends several tools to represent and simulate regulatory and metabolic models. Also, one can perform strain optimization based on regulatory constraints. In detail, MEWpy includes the OptORF strategy that allows the deletion of regulators. Alternatively, OptRAM’s implementation considers the over-expression and under-expression of regulators. The phenotype prediction component includes several methods to predict the behavior of a given strain in several conditions. For example, MEWpy can predict mutant phenotypes encompassing several modifications described above. The different phenotype prediction methods are seamlessly provided by COBRApy or Reframed. Users can use a unified interface to perform the following simulation methods: FBA, pFBA, Minimization of Metabolic Adjustment (MOMA), linear Minimization of Metabolic Adjustment (lMOMA), Regulatory on/off Minimization of Metabolic flux changes (ROOM), and FVA. Alternatively, one can use the mewpy.germ module described in this chapter, for phenotype prediction based on integrated metabolic-regulatory models, as it is fully integrated with the phenotype prediction interface. The optimization component includes methods based on EAs to find modifications favoring a given phenotype. In detail, an EA iteratively generates and combines modifications (population of solutions) using one of the abovementioned strategies. At each generation, the EA selects solutions (sets of modifications) with higher probabilities associated with the fittest candidates and recombines those to create new ones. Solutions are assessed using one or more optimization objectives designed for the metabolic engineering goal. Notably, MEWpy can use Multi-objective Evolutionary Algorithm (MOEA)s to solve strain engineering problems composed of multiple optimization objectives, such as weighted yield, Biomass- Product Coupled Yield (BPCY), product yield, and the number of modifications. MOEAs can attain several modifications favoring the trade-off between different objectives in a single run. MEWpy provides a simple EA interface to handle single (e.g., Genetic Algorithm (GA) and Simulated Annealing (SA)) and multiple objective problems (e.g., Strength Pareto Evolutionary Algorithm (SPEA2), Non-sorting Genetic Algorithm (NSGA), and Hypervolume Estimation algorithm (HypE)) via the Inspyred [222] and JMetalPy [223] engines. 5.3 A framework for integrated models in MEWpy 5.3.1 Overview of the genome-scale regulatory-metabolic model framework The mewpy.germ module supports the definition, simulation, and analysis of integrated models of regulation and metabolism, named GERM models hereafter. For example, the mewpy.germ module includes phenotype prediction methods, such as rFBA, SR-FBA, PROM, and CoRegFlux. Figure 45 provides an overview of the mewpy.germ module. 113
CHAPTER 5. DEFINITION AND ANALYSIS OF INTEGRATED METABOLIC-REGULATORY MODELS Figure 45: Overview of the GERM model framework in MEWpy. Users can load GERM models from separate files, such as SBML and CSV. The model input/output tools can generate a GERM model containing metabolic and regulatory contents. The analysis of GERM models is based on several phenotype predictions methods, such as FBA, pFBA, rFBA, SR-FBA, PROM, and CoRegFlux. A GERM model can represent the integration of a TRN into a GEM model. Accordingly, the GERM model comprehends metabolic variables, such as reactions, metabolites, and genes, as well as regulatory variables, such as interactions, targets, and regulators. Furthermore, the GERM model integrates GPR rules in the GEM model with Boolean algebra expressions defining regulatory interactions in TRNs. The mewpy.germ input/output tools can read GEM models available in the SBML file format and TRNs in the SBML and CSV file formats. In addition, one can load a GERM model using JSON and other structures. The following methods are available in the mewpy.germ module to predict the phenotypic behavior of an organism in a wide range of metabolic, regulatory, and genetic conditions: 114
5.3. A FRAMEWORK FOR INTEGRATED MODELS IN MEWPY • FBA - Computes a flux distribution that achieves the optimal growth rate in metabolic models; • pFBA - Computes a flux distribution that achieves the optimal growth rate while minimizing the total sum of fluxes; • rFBA - Computes a flux distribution that achieves the optimal growth rate though limited by the effect of regulatory interactions in the flux distribution; • SR-FBA - Computes a flux and regulatory distribution simultaneously to attain the optimal growth rate; • PROM - Analysis of regulatory mutants using a continuous approach to limit the flux distribution; • CoRegFlux - Computes a flux distribution that achieves the optimal growth rate based on a continuous approach to limit the flux of reactions using gene expression. 5.3.2 Genome-scale regulatory-metabolic model The mewpy.germ module implements a framework that supports inspecting and manipulating metabolic and regulatory models. On the one hand, this framework includes a set of structures designed to represent the main features of a GEM model. On the other hand, the mewpy.germ module provides a simple interface to work with TRNs. In detail, the Model ecosystem is the main interface to access and manipulate integrated models. Custom Python objects represent the variables available in the TRN and GEM model that live together in the Model class ( mewpy.germ.models ). Figure 46 shows the software architecture responsible for representing integrated models of metabolism and regulation. 115
CHAPTER 5. DEFINITION AND ANALYSIS OF INTEGRATED METABOLIC-REGULATORY MODELS Figure 46: Architecture of a GERM model. The representation of Model , MetabolicModel and RegulatoryModel using UML. In addition, a Model object can be associated with an HistoryManager , a set of Variable s, and LinearProblem s. The Model class defines simple and generic attributes, such as id and name , but misses most of the features available in TRNs and GEM models. In turn, MetabolicModel and RegulatoryModel classes extend the Model parent class to implement specific representations of metabolic and regulatory objects, respectively. A Model object follows a dictionary-like interface that implements the get , add , remove , and update methods. In detail, the add method can store variables in the model containers, namely dictionary-like attributes indexing variables objects by their identifiers (dictionary keys). For example, a MetabolicModel instance contains variables of type Gene in the genes’ container. The remove method is responsible for removing variables from the Model containers. Lastly, the get method retrieves the variable object using its identifier. Model containers implement Python’s property descriptor protocol, so getting and setting routines can use the abovementioned methods. The Serializer class implements serialization routines for the Model framework. All model objects can be serialized and deserialized into dictionaries, JSON, and pickle files. The Serializer is a mix-in 116
5.3. A FRAMEWORK FOR INTEGRATED MODELS IN MEWPY class that both Model and Variable can use. The Serializer class converts relevant Model attributes to native-serializable Python objects. Model instances can be associated with several phenotype prediction methods in the simulators ’ attribute. In detail, the synergy model-simulator follows the observer pattern. The attach method links LinearProblem objects to the model instance and the notify method warns simulators about the latest model changes. That is, multiple LinearProblem instances subscribe to a single Model instance. Then, the Model instance is responsible for notifying the subscribers about the latest news. In this observer pattern, LinearProblem objects must update variables and constraints according to the latest state of the Model instance. Model instances support reversible and temporary changes using the HistoryManager class. This class implements a command pattern to queue redoable and undoable instructions about the operations performed in a single Model instance. The undo , redo , reset and restore methods execute the queued commands according to the related resolution order. The Model factory pattern can generate dynamic model types. For example, the factory constructor can create an integrated MetabolicRegulatoryModel class derived from the MetabolicModel and RegulatoryModel classes. Accordingly, one can dynamically create an object of the MetabolicRegulatoryModel class using the from_types polymorphic constructor. The MetabolicModel class extends the parent Model class to implement the following attributes: • genes : The genes ’ container stores variables of type gene; • metabolites : The metabolites ’ container stores variables of type metabolite; • reactions : The reactions ’ container stores variables of type reaction; • objective : The objective ’s container stores variables that define the objective function. This container keeps variables as keys and coefficients as the corresponding values; • gprs : The GPRs ’ container stores the Boolean algebra expressions associated with reactions; • compartments : The compartments ’ container stores model compartments; • external_compartment : The external_compartment attribute consists of the compartment most well represented in the boundary reactions (unbalanced reactions having reactants or products); • exchanges : The exchanges ’ container stores variables of type reaction. Exchange reactions are boundary reactions (unbalanced reactions having reactants or products) associated with the external compartment; • demands : The demands ’ container stores variables of type reaction. Demand reactions are irreversible boundary reactions not associated with the external compartment; 117
CHAPTER 5. DEFINITION AND ANALYSIS OF INTEGRATED METABOLIC-REGULATORY MODELS • sinks : The sinks ’ container stores variables of type reaction. Sink reactions are reversible boundary reactions not associated with the external compartment. The RegulatoryModel class extends the parent Model class to implement the following attributes: • interactions : The interactions ’ container stores variables of type interaction; • targets : The targets ’ container stores variables of type target; • regulators : The regulators ’ container stores variables of the type regulator; • environmental_stimuli : The environmental_stimuli ’ container stores variables of type regulator; Environmental stimuli (also named effectors) are regulators not regulated by other regulators; • compartments : The compartments ’ container stores model compartments; • regulatory_reactions : The regulatory_reactions ’ container stores variables of type regulator and reaction; • regulatory_metabolites : The regulatory_metabolites ’ container stores variables of the type regulator and metabolite; 5.3.3 Variables of genome-scale regulatory-metabolic models The mewpy.germ.variables sub-module includes several structures representing variables usually found in TRNs and GEM models. These structures provide a clear and straightforward interface to inspect and manipulate the main features of reactions, and interactions, among other variables. Figure 47 shows the software architecture used to represent metabolic and regulatory variables, namely genes, metabolites, reactions, interactions, targets, and regulators. 118
5.3. A FRAMEWORK FOR INTEGRATED MODELS IN MEWPY After building the linear problem, one can use the optimize method to solve the problem. Internally, the optimization is performed using the solve method of the Solver class. Hence, the signature of the optimize method includes a dictionary of solver-specific arguments, such as the objective , constraints , get_values , among others. For example, one can temporarily change the objective function or bounds using the solverspecific arguments. Seldom, phenotype prediction methods implement different versions of the optimize method having additional arguments, such as the initial_state . The optimization returns a ModelSolution instance, including the status, objective, and solution values. Furthermore, the ModelSolution object provides user-friendly methods (e.g., to_frame , to_series , and to_summary ) to visualize the solution. LinearProblem instances are asynchronous by default, meaning constraints are not updated each time the model changes. Therefore, to synchronize a LinearProblem , one must re-run the build method to retrieve the latest state. On the other hand, a Model instance can notify LinearProblem instances about the latest changes using the observer pattern. In this case, variables and constraints are updated before optimization. The FBA class is an extension of the LinearProblem class and implements a mathematical approach to represent and analyze metabolic reactions available in a metabolic network [126]. According to the FBA formulation, the build method infers steady-state mass balance constraints using the model metabolites and reactions. The following techniques extend the FBA class to reuse these mass balance constraints. The pFBA parent class implements a phenotype prediction method to find the optimal distribution of the flow of metabolites that maximizes biomass production, while minimizing the total sum of fluxes in the metabolic network [127]. Accordingly, the build method reformulates the objective function derived from the FBA implementation. rFBA inherits the build method of the FBA class, as both techniques share the same linear problem formulation. However, the rFBA method differs from FBA by accounting for the regulatory state of the model in the flux distribution [144]. The rFBA method is detailed in the 2.9 section. First, rFBA ’s optimize method performs a synchronous evaluation of the regulatory network using an initial regulatory state (effectors’ coefficients). This simulation allows inferring the coefficients of all regulators in the regulatory networks. In the second step, the optimize method performs a second evaluation of all regulatory interactions in the regulatory model to determine the metabolic state (coefficients of target/metabolic genes). GPR rules available in the metabolic model are evaluated next with the resulting metabolic state and translated into a set of constraints limiting the flux of the model reactions. rFBA can infer the initial regulatory state as follows: • If the regulator is a regulatory metabolite, rFBA uses the absolute value of the lower bound of the exchange reaction; • If the regulator is a regulatory reaction, rFBA uses the absolute value of its upper bound; • Otherwise, rFBA uses the maximum coefficient (often one) of a regulator. 125
CHAPTER 5. DEFINITION AND ANALYSIS OF INTEGRATED METABOLIC-REGULATORY MODELS Nevertheless, some initial states might lead to the deletion of essential genes and reactions and yield infeasible solutions. To mitigate conflicts in the initial state of the regulatory network, one can use the mewpy.germ.analysis.find_conflicts function. This method can find regulatory states that lead to deletions of essential genes and reactions, thus hindering optimal growth. SR-FBA is a phenotype prediction method integrating simultaneously regulatory and mass balance constraints [145]. This method is detailed in 2.9 section. The SR-FBA class represents a set of mixedinteger linear constraints retrieved from the integrated model. In detail, the build method creates midterm linear variables and constraints according to the operators and operands of each Boolean algebra expression available in the model (regulatory events and GPR rules). SR-FBA ’s optimization uses MILP to find an optimal flux distribution compatible with regulatory and metabolic constraints. The PROM class implements a probabilistic-based technique to predict the phenotype of regulatory mutants. According to PROM’s description in section 2.9, this method uses the probability of a metabolic gene being active to limit the flux of model reactions [146]. The probability of a metabolic gene being transcribed is calculated for the number of samples in which the gene is active, while the related regulator is inactive. Metabolic gene probability can be calculated using the mewpy.germ.analysis. target_regulator_interaction_probability function. Finally, reaction bounds are proportional to the probability of the related genes. The CoRegFlux technique uses multiple linear regression models to predict the levels of expression of metabolic genes as a function of the regulators’ co-expression (co-activators and co-repressors). According to CoRegFlux’s description in section 2.9, the predicted levels of expression are translated into limiting flux bounds [148]. First, CoRegFlux uses gene expression data and regulators’ influence scores (inferred with CoRegNet [115]) to train linear regression models. Linear regression models can be trained using the mewpy.germ.analysis.predict_gene_expression . Then, these models are used to make predictions in another gene expression dataset. Finally, the optimize method uses a continuous approach to limit the flux distribution according to the soft plus activation of the predicted expression. The mewpy.germ.analysis module also includes several functions to analyze integrated models of metabolism and regulation. For example, one can perform an FVA analysis ( mewpy.germ.analysis.fva or mewpy.germ.analysis.ifva ) using FBA, rFBA, or SR-FBA techniques. Likewise, the analysis module comprises functions to perform fast analysis of reactions, genes, and regulators perturbations. MEWpy’s phenotype prediction component uses external packages, such as COBRApy and Reframed, to evaluate different phenotypes within the CSO framework. Nevertheless, this module provides a common interface to seamlessly integrate other modeling frameworks. In detail, the Simulator class implemented in mewpy.simulation determines an interface for phenotype simulators. For example, the Simulation class available in mewpy.simulation.cobra sub-module implements a phenotype simulator for the COBRApy modeling framework. In this sub-class of Simulator , one has access to simple representations of genes, metabolites, and reactions available in the Model object of COBRApy. Moreover, simulation methods available in the COBRApy package are seamlessly provided in the simulate method of the Simulation class. 126
5.3. A FRAMEWORK FOR INTEGRATED MODELS IN MEWPY The GERM model framework is integratedinto MEWpy’s phenotype prediction module, so users can access a common interface to perform phenotype prediction using GERM, COBRApy, and Reframed models. Moreover, implementing the GERM model simulator allows using this modeling framework in the strain optimization routines. In detail, the Simulation sub-class available in the sub-module mewpy.simulation.germ implements a GERM model simulator by extending the Simulator class. This sub-class implements a simulate method that uses the FBA and pFBA simulation methods implemented in the mewpy.germ.analysis sub-module. Furthermore, one can initiate the GERM model simulator using the mewpy.simulation.get_si- mulator function. This function accepts a GERM model object returning the corresponding simulator. 5.3.6 Strain optimization using genome-scale regulatory-metabolic models MEWpy’s optimization component is based on evolutionary computation to solve an optimization problem. Optimization problems encompass the modeling framework, the objective functions, the modification targets, and strategies. Whereas optimization problems can include a combination of independent objective functions, targets and strategies are sometimes limited to the modeling framework. Yet, mewpy.problems module includes several tools implementing problems for over-expression, underexpression, and deletion of variables in the modeling framework. Table 8 summarizes the optimization problems available in MEWpy according to the modification targets, strategies, and modeling framework. 127
CHAPTER 5. DEFINITION AND ANALYSIS OF INTEGRATED METABOLIC-REGULATORY MODELS Table 8: Optimization problems available in the mewpy.problems module. MEWpy’s optimization problems are described in terms of modeling framework and both modification strategy and target. Optimization problem Target Strategy Modeling framework RKOProblem Reactions Deletion COBRApy, Reframed, and GERM models ROUProblem Reactions Over and under expression COBRApy, Reframed, and GERM models GKOProblem Genes Deletion COBRApy, Reframed, and GERM models GOUProblem Genes Over and under expression COBRApy, Reframed, and GERM models GeckoKOProblem Enzymes Deletion GECKO or sMOMENT models implemented with COBRApy or Reframed GeckoOUProblem Enzymes Over and under expression GECKO or sMOMENT models implemented with COBRApy or Reframed OptORFProblem Regulators Deletion GERM models OptRamProblem Regulators Over and under expression IDREAM integrated network based implementation As the GERM model framework is integrated into MEWpy’s phenotype prediction module, users can create optimization problems that encompass the over-expression, under-expression, and deletion of reactions and genes available in a GERM model. Nevertheless, the GERM model framework is still missing a few phenotype prediction methods, namely MOMA, lMOMA, and ROOM. OptORF is an algorithm for strain optimization that suggests perturbations to genes and regulators simultaneously [219]. This optimization framework proposes evolutionary strain designs using an integrated regulatory and metabolic model. In OptORF’s original formulation, GPR rules are translated directly into linear constraints using a Boolean algebra approach. Consequently, reactions are blocked by deleting the associated genes in the linear problem. Likewise, integrating TRNs into the metabolic network is also implemented using a Boolean algebra approach. Metabolic genes can be switched on or off according to the linear relationship of the associated regulators. These linear relationships are directly added to the 128
5.4. WORKING WITH GENOME-SCALE REGULATORY-METABOLIC MODELS IN MEWPY linear problem through binary variables and constraints obtained from the regulatory network. In the context of this work, the OptORFProblem class implements an adapted version of the original OptORF problem published by Kim and Reed [219]. In this OptORF-adapted version, GPR rules and regulatory interactions are not converted into linear constraints using the Boolean algebra approach. Instead, both regulatory and metabolic networks are evaluated using the binary values suggested for regulators and genes. Then, reactions are removed according to the state of metabolic genes. In detail, the OptORF- Problem class extends the AbstractKOProblem abstract interface, which is the base class for the deletion modification strategy. The adapted version of OptORF is based on the synchronous evaluation of the regulatory network represented in a GERM model. In the first step, the initial regulatory state (effectors’ coefficients) and the candidate state (regulator deletions) are combined to evaluate the regulatory interactions in the GERM model. This simulation determines the coefficients of regulators and target genes. In the second step, the OptORFProblem class solves the metabolic state by evaluating the Boolean GPR rules available in the metabolic model. Finally, the resulting metabolic state is translated into a set of constraints limiting the flux of the model reactions. The OptORFProblem class is seamlessly integrated into the evolutionary computation framework of MEWpy. One can run OptORF’s optimization task using the EA class with several objective functions. At each generation, the EA class suggests new candidate regulatory mutants that favor the desired metabolic engineering goal. OptRAM is an alternative strain optimization method that suggests deletion, over and under expression modifications to metabolic genes and regulators simultaneously [185]. This optimization framework does not require a regulatory network, as it is based on the IDREAM computational tool. IDREAM is an integrated framework that can infer regulatory networks using gene expression data. The expression levels of metabolic genes are inferred using the expression of corresponding regulators. Then, OptRAM can translate the expression levels of metabolic genes into flux constraints using the GPR rules of the GEM model. As regards the strain optimization engine, OptRAM uses simulated annealing to suggest a series of perturbations to the expression of regulators towards the overproduction of the compound of interest. OptRAM has been previously implemented in MEWpy beyond the context of this work. The implementation of OptRAM in MEWpy can use MOEAs to combine different optimization objectives. 5.4 Working with genome-scale regulatory-metabolic models in MEWpy 5.4.1 Model workflow The following section comprises a detailed example of working with an integrated model of metabolism and regulation in MEWpy. In this example, the integrated E. coli core GERM model published by Orth et al. [224] will be used to showcase the capabilities of the GERM model framework. Furthermore, MEWpy 129
CHAPTER 5. DEFINITION AND ANALYSIS OF INTEGRATED METABOLIC-REGULATORY MODELS documentation also includes a more extended version of the examples described in this sub-chapter at MEWpy examples repository and MEWpy documentation. The integrated E. coli core GERM model has been retrieved from the original publication [224] and is available in two separate files: GEM model in the SBML file format (MEWpy examples repository) and TRN in the CSV file format (MEWpy examples repository). The function mewpy.io.read_model was used to read the E. coli integrated model. Figure 50 shows the read_model signature, including a GEM model reader using the MetabolicSBML engine and the TRN reader using the BooleanRegulatoryCSV engine. Note that both readers have been initiated with specific arguments, such as filename, sep, id_col, and rule_col , among others. Figure 50: GERM model loading with the mewpy.io tools. A GERM model can be loaded from two separate files using the GEM model reader ( MetabolicSBML ) and TRN reader ( BooleanRegulatoryCSV ). In the Jupyter Notebook cell, one can visualize the contents of the integrated E. coli core GERM model. The Model representation includes the identifier, name, types, compartments, and the total metabolic and regulatory variables available in the model. Users can inspect metabolic and regulatory containers in Jupyter Notebook. Figure 51 shows a short version of the reactions and interactions available in the integrated E. coli core GERM model. The model 130
5.4. WORKING WITH GENOME-SCALE REGULATORY-METABOLIC MODELS IN MEWPY containers are standard Python dictionaries storing the model variables. A GERM model supports the inspection and manipulation of metabolic and regulatory variables using the get , add , update , and remove methods. For example, figure 51 shows how to access, add, and remove the Crp regulator (b3357) of the E. coli model. In addition, a GERM model supports temporary changes using the with model context manager. Figure 51: GERM model manipulation using the Model interface. Inspection and manipulation of a GERM model is available using the Model containers ( model.interactions and model.reactions ) and operations ( model.get , model.add , and model.remove ). The integrated E. coli core GERM model includes various variables with different attributes. For example, figure 52 shows the characteristics of the ACKr reaction and b0721 regulatory interaction. 131
CHAPTER 5. DEFINITION AND ANALYSIS OF INTEGRATED METABOLIC-REGULATORY MODELS Figure 52: Manipulation of GERM model variables using the Variable interface. Inspection and manipulation of the ACKr reaction and b0721 regulatory interaction using the Variable framework. Variables can be created using the Reaction , Metabolite , Gene , Interaction , Target , and Regulator classes (Figure 53). Alternatively, integrated models often include multi-type variables comprising different groups of attributes. For instance, metabolic genes tend to be the target variables of a TRN. Figure 53 shows the b0001 variable of type gene and target. This variable contains the attributes represented in the Gene and Target classes. Figure 53 also highlights how to create multi-type variables using the from_types polymorphic constructor of the Variable class. Integrating metabolic and regulatory attributes into the same object provides a simple interface for reconstructing and analyzing integrated models. 132
5.4. WORKING WITH GENOME-SCALE REGULATORY-METABOLIC MODELS IN MEWPY Figure 53: Assembly of single- and multi-type GERM model variables using the Variable interface. The b0003 interaction can be created from a Boolean regulatory rule associated with the single-type b0003 target variable. Alternatively, one can create integrated multi-type variables, such as the b0001 metabolic gene and regulatory target. 5.4.2 Model analysis workflow The following section comprises several examples to analyze integrated models of metabolism and regulation in MEWpy. Table 9 includes the case studies used to showcase the capabilities of the mewpy.germ.analysis framework. Furthermore, MEWpy’s documentation comprehends a more extended version of the examples described in this sub-chapter at MEWpy examples repository and MEWpy documentation. Figure 54 shows the main attributes of an SR-FBA instance created with the integrated E. coli core GERM model and the ModelSolution object obtained after the phenotype prediction. In addition, all methods have a fast one-line function to run the phenotype prediction. These functions only return the objective 133
CHAPTER 5. DEFINITION AND ANALYSIS OF INTEGRATED METABOLIC-REGULATORY MODELS Table 9: Case studies used to showcase the GERM model framework. Several GERM models are described in terms of identifier, organism, GEM model, trn , content, and availability. Model Organism GEM model TRN Content Gene expression data Availability E. coli core model Escherichia coli K- 12 MG1655 E. coli core GEM model [224] E. coli core TRN [224] 137 metabolic genes, 95 reactions, and 159 regulatory interactions - Supplementatry material I.9 iMC1010 [144] Escherichia coli K- 12 MG1655 E. coli iJR904 GEM model [225] E. coli iMC1010 TRN [144] 904 metabolic genes, 931 reactions, and 1010 regulatory interactions - Supplementatry material I.10 iNJ661 [146] Mycobacterium tuberculosis H37Rv M. tuberculosis iNJ661 GEM model [226] M. tuberculosis H37Rv TRN published by Balazsi et al. [227] 691 metabolic genes, 1028 reactions, and 2018 regulatory interactions Gene expression dataset with 437 experiments (regulator deletions) [146] Supplementatry material I.11 iMM904 [148] Saccharomyces cerevisiae S288C S. cerevisiae iMM904 GEM model [228] S. cerevisiae S288C TRN inferred by CoRegNet [115] 904 metabolic genes, 1557 reactions, and 3748 regulatory interactions Gene expression dataset of 247 experiments [84], influence scores inferred by CoRegNet [115], and another gene expression dataset of 12-time points [229] Supplementatry material I.12 134