scieee AI-readable full text Open interactive document viewer

M3L: exploring synergies between metabolic modelling and machine learning for studying plants

Sampaio, Marta Sofia Costa

Abstract

Vitis vinifera (videira) é uma das principais árvores de fruto do mundo, sendo amplamente cultivada e comercializada, principalmente para produção de vinho. Como a qualidade do vinho está diretamente relacionada com a qualidade da uva, o estudo do metabolismo da videira é importante para esclarecer os processos subjacentes à composição da uva. Modelos metabólicos à escala genómica têm sido usados no estudo do metabolismo das plantas e vários avanços foram feitos, permitindo a integração de dados ómicos. Por outro lado, abordagens de aprendizagem automática têm sido usadas para analisar e integrar diferentes dados ómicos ao mesmo tempo que a combinação da aprendizagem automática com modelos metabólicos tem mostrado resultados promissores. Neste trabalho, um repositório de dados metabólicos de plantas (iplants) foi criado para centralizar e integrar dados de metabolismo e sequências de genes e proteínas de plantas. A partir deste repositório, o primeiro modelo metabólico à escala genómica da videira foi reconstruído, incluindo 7199 genes, 5399 reações e 5141 metabolitos distribuídos por 8 compartimentos. Modelos metabólicos específicos da folha, caule e uva foram criados a partir do modelo genérico através da integração de dados ómicos do cultivar Cabernet Sauvignon. Adicionalmente, para capturar as mudanças no metabolismo da uva durante o seu desenvolvimento, dois modelos de uva foram criados para representar a uva verde e a uva madura. Estes modelos foram agrupados, criando um modelo de múltiplos tecidos para estudar as interações entre tecidos durante o dia e a noite. O potencial de combinar modelos metabólicos e aprendizagem automática foi explorada ao usar modelos de aprendizagem automática para analisar os dados de fluxómica gerados pelos modelos metabólicos da uva e identificar as reações que mais contribuem para distinguir entre o estado verde e maduro. Além disso, uma análise multi-ómicas foi realizada ao integrar a fluxómica prevista com os dados de RNA-Seq e metabolómica para identificar relações entre genes, reações e metabolitos que podem explicar os diferentes fenótipos. Assim, os modelos metabólicos desenvolvidos aqui são ferramentas úteis para explorar diferentes aspetos do metabolismo das videiras e os fatores que influenciam a qualidade da uva. A integração de dados ómicos, modelos metabólicos e aprendizagem automática realizada mostrou o potencial de aplicar esta estratégia para análises mais completas quando mais dados estiverem disponíveis.

Full text

Universidade do Minho Escola de Engenharia Marta Sofia Costa Sampaio M3L: Exploring synergies between metabolic modelling and machine learning for studying plants April, 2024 UMinho | 2024 Marta Sofia Costa Sampaio M3L: Exploring synergies between metabolic modelling and machine learning for studying plants Marta Sofia Costa Sampaio M3L: Exploring synergies between metabolic modelling and machine learning for studying plants Doctorate Thesis Doctorate in Informatics Work developed under the supervision of: Professor Oscar Dias Professor Miguel Rocha Universidade do Minho Escola de Engenharia April, 2024 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 (v7.1.18) [1]. iv Acknowledgements I would like to thank Fundação para a Ciência e Tecnologia for the Ph.D. studentship I was awarded (SFRH/BD/144643/2019). 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 the resources, facilities, and an excellent working environment. I also want to express my gratitude to mysupervisors, Oscar Dias and Miguel Rocha, for their invaluable guidance, support, and encouragement throughoutthis journey. Their expertise, patience, and mentorship have been instrumental in shaping this thesis and my academic growth. I am immensely grateful to my friends, especially Fernando, Diogo, Fernanda, Alexandre, Emanuel, Sequeira, Capela, Nuno, Pacheco, Daniela and Carla, for all the support, companionship, and shared experiences over these years, which have enriched my academic and personal life. I am also deeply grateful to my family for their unwavering support, love, and understanding throughout this challenging journey. v 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) (Marta Sofia Costa Sampaio) vi Resumo M3L: Explorar sinergias entre modelação metabólica e aprendizagem automática no estudo das plantas Vitis vinifera (videira) é uma das principais árvores de fruto do mundo, sendo amplamente cultivada e comercializada, principalmente para produção de vinho. Como a qualidade do vinho está diretamente relacionada com a qualidade da uva, o estudo do metabolismo da videira é importante para esclarecer os processos subjacentes à composição da uva. Modelos metabólicos à escala genómica têm sido usados no estudo do metabolismo das plantas e vários avanços foram feitos, permitindo a integração de dados ómicos. Por outro lado, abordagens de aprendizagem automática têm sido usadas para analisar e integrar diferentes dados ómicos ao mesmo tempo que a combinação da aprendizagem automática com modelos metabólicos tem mostrado resultados promissores. Neste trabalho, um repositório de dados metabólicos de plantas ( iplants ) foi criado para centralizar e integrar dados de metabolismo e sequências de genes e proteínas de plantas. A partir deste repositório, o primeiro modelo metabólico à escala genómica da videira foi reconstruído, incluindo 7199 genes, 5399 reações e 5141 metabolitos distribuídos por 8compartimentos. Modelos metabólicos específicos da folha, caule e uva foram criados a partir do modelo genérico através da integração de dados ómicos do cultivar Cabernet Sauvignon. Adicionalmente, para capturar as mudanças no metabolismo da uva durante o seu desenvolvimento, dois modelos de uva foram criados para representar a uva verde e a uva madura. Estes modelos foram agrupados, criando um modelo de múltiplos tecidos para estudar as interações entre tecidos durante o dia e a noite. O potencial de combinar modelos metabólicos e aprendizagem automática foi explorada ao usar modelos de aprendizagem automática para analisar os dados de fluxómica gerados pelos modelos metabólicos da uva e identificar as reações que mais contribuem para distinguir entre o estado verde e maduro. Além disso, uma análise multi-ómicas foi realizada ao integrar a fluxómica prevista com os dados de RNA-Seq e metabolómica para identificar relações entre genes, reações e metabolitos que podem explicar os diferentes fenótipos. Assim, os modelos metabólicos desenvolvidos aqui são ferramentas úteis para explorar diferentes aspetos do metabolismo das videiras e os fatores que influenciam a qualidade da uva. A integração de dados ómicos, modelos metabólicos e aprendizagem automática realizada mostrou o potencial de aplicar esta estratégia para análises mais completas quando mais dados estiverem disponíveis. Palavras-chave: aprendizagem automática, dados ómicos, metabolismo da videira, modelos metabólicos à escala genómica, modelos multi-tecidos dia-noite vii Abstract M3L: Exploring synergies between metabolic modelling and machine learning for studying plants Vitis vinifera , also known as grapevine, is one of the most important crops in the world, being widely cultivated and commercialized, mainly to produce wine. As wine quality is directly linked to fruit quality, the study of grapevine metabolism is important to understand the processes underlying grape composition. Towards similar aims, genome-scale metabolic models (GSMMs) have been used for the study of plant metabolism and several advances have been made, also allowing the integration of omics datasets with GSMMs. In this context, Machine Learning (ML) has been used to analyse and integrate omics data, while the combination of ML with GSMMs has shown promising results in different studies but is still scarcely used to study plants. In this work, a repository of plant metabolic data ( iplants ) was created to centralise and integrate metabolic and sequence data from diverse plants. Then, the first GSMM of V. vinifera was reconstructed from iplants , comprising 7199 genes, 5399 reactions, and 5141 metabolites across 8compartments. Tissue-specific models for the stem, leaf, and berry of the Cabernet Sauvignon cultivar were generated from the original model, through the integration of RNA-Seq data. Furthermore, to capture the changes in grape metabolism, two separate models were created representing the grape in both its green and mature states. These models have been merged into diel multi-tissue models to study the interactions between tissues at both light and dark phases. The potential of combining ML with GSMMs was explored by using ML to analyse the fluxomics data generated by the green and mature grape models and provide insights regarding the reactions that contribute the most to distinguishing these states. In addition, a multi-omics analysis was performed by integrating the generated fluxomics data with RNA-Seq and metabolomics data to identify connections between genes, reactions, and metabolites that can explain different phenotypes. Therefore, the models developed in this work are useful tools to explore different aspects of grapevine metabolism and the factors influencing grape quality. The integration of omics data, GSMMs, and ML for studying plant metabolism has shown the potential of applying this approach for more insightful analyses as more data becomes available. Keywords: diel multi-tissue models, grapevine metabolism, genome-scale metabolic models, machine learning, omics data viii Contents List of Figures xiii List of Tables xvi Acronyms xviii 1 Introduction 1 1.1 Context and Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 ResearchObjectives................................ 2 1.3 ReportOutline................................... 3 2 State of the Art 5 2.1 Plantmetabolism ................................. 6 2.2 Constraint-based Modelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2.1 Reconstruction of genome-scale metabolic models . . . . . . . . . . . . . 7 2.2.2 Phenotype Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.2.3 Integration of omics data within genome-scale metabolic models . . . . . . 18 2.2.4 Plant genome-scale metabolic models . . . . . . . . . . . . . . . . . . . 28 2.2.5 Major challenges and limitations in plant metabolic modelling . . . . . . . . 35 2.3 Multi-view learning for multi-omics data integration . . . . . . . . . . . . . . . . . 37 2.3.1 Machine Learning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 2.3.2 Multi-omics integration . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 2.3.3 Combining Constraint-based Modelling and Machine Learning . . . . . . . . 47 2.3.4 Perspective: Machine learning and plant metabolic modelling . . . . . . . . 55 3 iplants repository 58 3.1 Introduction.................................... 59 3.2 Datawarehousing................................. 60 3.3 Overview of the iplants repository . . . . . . . . . . . . . . . . . . . . . . . . . . 61 ix List of Tables 1 Description of the most relevant databases of plant metabolic data. . . . . . . . . . . . 12 2 Description of the most relevant databases of plant omics data. . . . . . . . . . . . . . 20 3 Additional methods for the integration of omics data within metabolic models. . . . . . . 25 4 Description of the most used supervised and unsupervised ML algorithms. . . . . . . . 38 5 Examples of plant multi-omics studies. . . . . . . . . . . . . . . . . . . . . . . . . . 47 6 Hybrid studies combining ML and CBM approaches. . . . . . . . . . . . . . . . . . . 53 7 Description of the most popular NoSQL database models. . . . . . . . . . . . . . . . 61 8 Statistics for the integration of PlantCyc and MetaCyc databases in MongoDB. . . . . . . 80 9 Statistics for the integration of metabolite and reaction contents of the nine plant GSMMs. 81 10 Threshold values tested for each integration strategy for creating tissue-specific models. . 94 11 Distribution of the proteins in the model by EC number class. . . . . . . . . . . . . . . 96 12 Distribution of the proteins in the model by compartment. . . . . . . . . . . . . . . . 98 13 Distribution of the transport proteins in the model by TC number class. . . . . . . . . . 98 14 Protein composition in V. vinifera . ........................... 100 15 DNA composition in V. vinifera .............................. 100 16 RNA composition in V. vinifera .............................. 100 17 Carbohydrate composition in V. vinifera . ........................ 101 18 Cell wall composition in V. vinifera ............................ 102 19 Lipid composition in V. vinifera . ............................ 102 20 Fatty Acid composition in V. vinifera ........................... 102 21 Co-factor composition in V. vinifera . .......................... 103 22 Statistics of the V. vinifera model and other eight plant GSMMs . . . . . . . . . . . . . 106 23 Summary of the phenotype predictions for photosynthesis, photorespiration, and respiration. 110 24 RNA-Seq studies retrieved from GREAT database. . . . . . . . . . . . . . . . . . . . . 111 25 Tissue-specific models created with FASTCORE. . . . . . . . . . . . . . . . . . . . . 114 26 Statistics of the generic and tissue-specific GSMMs. . . . . . . . . . . . . . . . . . . 116 27 Summary of the phenotype predictions for the tissue-specific models . . . . . . . . . . 117 xvi 28 Summary of the phenotype predictions for the diel multi-tissue models of green and mature berries under photorespiration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 29 Fluxes of the metabolites stored between light and dark phases in the diel multi-tissue models. 123 30 Evaluation results of the ML models trained with fluxomics data for the metrics balanced accuracy, precision, recall, and F1 score. . . . . . . . . . . . . . . . . . . . . . . . . 133 31 Evaluation results of the ML models trained with RNA-Seq data for the metrics balanced accuracy, precision, recall, and F1 score. . . . . . . . . . . . . . . . . . . . . . . . . 137 32 Evaluation results of the ML models trained with metabolomics data for the metrics balanced accuracy, precision, recall, and F1 score. . . . . . . . . . . . . . . . . . . . . . . . . 140 33 Average pairwise correlation values between the two components of the three datasets obtainedusingPLS. ................................... 143 34 Average performance on the training set integrating all omics datasets. . . . . . . . . . 143 35 Model performance on the test set integrating all omics. . . . . . . . . . . . . . . . . 144 36 Confusion matrix of DIABLO model from data split 1. . . . . . . . . . . . . . . . . . . 144 37 Confusion matrix of DIABLO model from data split 5. . . . . . . . . . . . . . . . . . . 144 xvii Acronyms ACHR Artificial Co-ordinate Hit and Run (pp. 94, 95, 115, 117, 118) AdaM Adaptation of Metabolism (p. 25) ANN Artificial Neural Network (pp. 38, 53) API Application Programming Interface (pp. 59–62, 65, 69, 71, 73, 75, 76, 86, 150) ATP Adenosine Triphosphate (pp. 6, 15) AUC Area under the ROC Curve (p. 39) BER Balanced Error Rate (pp. 142–144) BLAST Basic Local Alignment Search Tool (p. 12) BRENDA BRaunschweig Enzyme Database (pp. 11, 13, 14) CBM Constraint-Based Modelling (pp. 47–49, 51, 53–57) CCA Canonical Correlation Analysis (pp. 43, 45–47) CDS Central Data Storage (pp. 61, 62, 69, 74, 77) COBRA Constraint-Based Reconstruction and Analysis (p. 11) CORDA Cost Optimization Reaction Dependency Assessment (p. 24) CSV Comma Separated Values (pp. 68, 71, 76, 88) DBMS DataBase Management System (pp. 60–62, 64) DDBJ DNA DataBank of Japan (pp. 19, 20) dFBA Dynamic Flux Balance Analysis (pp. 18, 25, 30, 33, 49, 53) DIABLO Data Integration Analysis for Biomarker discovery using Latent cOmponents (pp. 43, 141– 143, 145, 146, 149, 151, 182) EC Enzyme Commission (pp. 12–14, 65) EFMs Elementary Flux Modes (pp. 25, 48, 49, 53) ENA European Nucletoide Archive (pp. 19, 20) xviii ETL Extract, Transform and Load (pp. 60–62, 74) EXAMO EXploration of Alternative Metabolic Optima (p. 26) FALCON Flux Assignment with Least absolute deviation Convex Objectives and Normalization (p. 25) FastCORE Fast Reconstruction of Compact Context-specific Metabolic Network Model (pp. 24, 27, 93) FBA Flux Balance Analysis (pp. 16–18, 22, 23, 33, 49–51, 53, 54, 56, 86) FCa Flux Capacity (pp. 130, 134) FCGs Flux-Coupled Genes (p. 25) FVA Flux Variability Analysis (pp. 18, 49, 53, 86, 125, 130) GBMDB Global Proteome Machine Database (pp. 19, 21) GDM Golm Metabolome Database (pp. 20, 21) GEMsplice Genome-scale metabolic modelling with splice-isoform integration (p. 27) GEO Gene Expression Omnibus (pp. 19, 20, 59, 68, 69, 71, 73, 74, 76, 77, 92) GIM3E Gene Inactivation Moderated by Metabolism, Metabolomics and Expression (p. 22) GIMME Gene Inactivity Moderated by Metabolism and Expression (pp. 22, 25, 27) GPR Gene-Protein-Reaction (pp. 12, 25, 51, 68, 86–89, 91, 104–106, 108, 135, 153) GREAT GRape Expression ATlas (pp. 93, 110–112) GSMM Genome-Scale Metabolic Model (pp. 1–4, 7, 11, 12, 15–19, 21, 23, 27–30, 32–37, 48–52, 55, 59, 61, 63, 69, 71, 72, 74–77, 79, 85, 86, 91–93, 96, 99, 109, 111, 112, 117, 129, 130, 132, 150–153, 182, 183) GX-FBA Gene-Expression FBA (pp. 23, 27) iMAT Integrated Metabolic Analysis Tool (pp. 23, 24, 26, 27) iNIT Integrative Network Inference for Tissues (pp. 23, 24, 27) IOMA Integrative Omics Metabolic Analysis (p. 27) IPP isopentenyl pyrophosphate (pp. 7, 9) JSON JavaScript Object Notation (pp. 61, 62, 64, 65, 69–71, 73–76, 87) KBase The Department of Energy Systems Biology Knowledgebase (p. 11) KEGG Kyoto Encyclopedia of Genes and Genomes (pp. 11, 12, 14, 59, 78, 79, 104) KNN k-Nearest Neighbors (pp. 38, 53, 131, 134, 135, 137, 139) LASSO least absolute shrinkage and selection operator (p. 54) lbFBA Linear-bounds FBA (pp. 26, 27) MADE Metabolic Adjustment by Differential Expression (pp. 25, 27) xix MassIVE Mass Spectrometry Interactive Virtual Environment (pp. 19, 21) MBA Model Building Algorithm (pp. 24, 26, 27) mCADRE Metabolic Context-specificity Assessed by Deterministic Reaction Evaluation (p. 24) MCMC Markov chain Monte Carlo (p. 18) MEP methylerythritol phosphate (pp. 9, 135, 136, 149, 151) merlin Metabolic Models Reconstruction Using Genome-Scale Information (p. 11) METRADE MEabolic and TRanscriptomics ADaptation Estimator (pp. 22, 27) MEV mevalonic acid (p. 9) miRNA micro RNA (p. 46) MKL Multiple Kernel learning (p. 45) ML Machine Learning (pp. 1–4, 37, 39–44, 47–57, 129–132, 136–138, 141, 149–151, 153, 180, 182) MOMA Minimization of Metabolic Adjustment (p. 18) MS Mass Spectrometry (p. 19) NCBI National Center for Biotechnology Information (pp. 2, 11, 12, 19, 69, 72, 73, 75, 150) NMR Nuclear Magnetic Resonance Spectrometry (p. 19) ODM Object Document Mapper (pp. 61, 68) OGM Object Graph Mapper (pp. 61, 64) oPLS orthogonal PLS (p. 43) ORF Open Reading Frame (p. 12) PCA Principal Component Analysis (pp. 37, 38, 45–48, 51, 53, 54, 56) PEMA Principal Elementary mode Analysis (p. 48) pFBA Parsimonious Flux Balance Analysis (pp. 18, 27, 92, 96, 109, 116, 119) PFMA Principal Metabolic Flux Mode Analysis (p. 48) PGDBs Pathway/Genome databases (p. 12) PLS Partial Least Squares (pp. 43, 45–47, 141, 142) PMN Plant Metabolic Network (pp. 12, 13, 59) PODC Plant Omics Data Center (pp. 19, 20) PPDB Plant Proteomics Database (pp. 19, 21) PRIDE PRoteomics IDEntifications (pp. 19, 20) PROM Probabilistic Regulation Of Metabolism (p. 23) PTMs post-translational modifications (p. 19) RefSeq NCBI’s Reference Sequence Database (pp. 19, 20) RegrEx Regularised Context-specific model Extraction (p. 26) xx ACRONYMS xxi RELATCH RELATive CHange (pp. 26, 27) RF Random Forests (pp. 38, 53, 131, 132, 134, 135, 138, 140) RIPTiDe Reaction Inclusion by Parsimony and Transcript Distribution (p. 27) RMF Required Metabolic Function (pp. 21, 22, 24) ROOM Regulatory on/off Minimization of Metabolic flux changes (p. 18) ROS Reactive Oxygen Species (pp. 147, 149) SBML Systems Biology Markup Language (pp. 11, 16, 68, 71, 91, 182, 183) sCCA sparse CCA (p. 43) SDRF Sample and Data Relationship Format (pp. 68, 69, 71, 76) SHAP SHAPley Additive exPlanations (pp. 131, 134, 135, 137–140) SOFT Simple Omnibus Format in Text (pp. 61, 68, 69, 71, 76) sPLS sparse PLS (pp. 43, 46, 47) SQL Structured Query Language (p. 61) SRA Sequence Read Archive (pp. 19, 20) SUBA SUBcellular location database for Arabidopsis proteins (p. 14) SVM Support Vector Machine (pp. 38, 45, 53, 131, 132, 137, 139) t-SNE T-distributed Stochastic Neighbor Embedding (pp. 37, 38, 93, 94, 111, 112, 115, 117, 118, 131, 132) TAIR The Arabidopsis Information Resource (pp. 11, 14, 70, 72, 78) TC Transport Classification (pp. 12–14) TCA Tricarboxylic acid (pp. 6, 8, 109, 110, 118, 119, 121) TCDB Transporter Classification Database (pp. 11, 13, 14) TEAM Temporal Expression-based Analysis of Metabolism (p. 25) tFBA Transcriptionally Controlled FBA (p. 25) tINIT Task-driven INIT (pp. 23, 24) TPM transcripts per million (pp. 93, 111, 112) TRN transcriptional regulatory networks (p. 23) Troppo Tissue-specific RecOnstruction and Phenotype Prediction using Omics data (p. 27) TXT Text File (p. 68) uFBA unsteady-state flux balance analysis (p. 51) UniProt Universal Protein Resource (pp. 2, 11, 13, 14, 52, 59, 66, 70, 72, 75, 78, 79, 150) XML Extensible Markup Language (pp. 61, 64, 68) 1 Introduction 1.1 Context and Motivation Plants are multicellular eukaryotic photosynthetic organisms indispensable for human life. They are the ultimate food source for almost all animals, including humans (legumes, fruits, cereals, among others), maintain the atmosphere balance by consuming carbon dioxide and releasing oxygen, and provide many materials for human use such as wood, fibres for clothing, drugs, and fuels [2]. As plants are sessile organisms, they can not escape from environmental stresses or pathogens, being forced to face a wide range of adverse environmental conditions and interact with several pathogenic or beneficial organisms. As a result, they have the most complex metabolic networks that produce an enormous diversity of metabolites to help them grow, adapt to the environment, and defend against pathogens. These metabolites are poorly explored and can have potential biotechnological applications. In addition, plants have a significant impact on the economy. Grapevine ( Vitis vinifera ) is cultivated worldwide and has high economic value, mainly due to wine production. In 2022, wine exports reached a value of 37600 million euros [3]. In Portugal, wine exports reached 994 million euros, representing almost 7% of total exports that year [4]. Therefore, as grapevines have high economic interest and fruit quality is intrinsically linked to metabolism, the study of grapevine metabolism is essential for understanding its responses to different environmental conditions that may affect grape metabolic composition. Metabolism has been studied by Systems Biology approaches, which use a Genome-Scale Metabolic Model (GSMM) to represent the metabolic networks of an organism and perform in silico phenotype predictions. GSMMs have been reconstructed mainly for unicellular organisms, like bacteria and yeasts. However, several models are available for plants, including Arabidopsis thaliana , Oryza sativa (rice) and Zea mays (maize) [5]. Despite the challenges in plant genome-scale metabolic modelling, new approaches have emerged to reconstruct more realistic models through the integration of omics data, mainly transcriptomics, and build diel multi-tissue models that allow the study of metabolic interactions between plant tissues in a day-night cycle. Despite the existence of several methods for integrating omics into GSMMs, this is still a challenging and inefficient task. As omics datasets are complex and heterogeneous, Machine Learning (ML) has been widely used to process, analyse and integrate different types of omics and to extract biological knowledge 1 CHAPTER 1. INTRODUCTION from data [6]. Recently, ML and metabolic modelling approaches have been combined to improve the model’s predictions and interpretability, and this strategy has shown promising results [7–11]. ML can be used to extract knowledge from the fluxomics data generated by the models or to integrate the predicted fluxomics data with experimental omics. Thus far, these studies have been mainly applied to bacteria, yeasts, and human cells, but not to plants. Additionally, the existence of a centralised repository to include and organise relevant plant data is of utmost importance for facilitating the study of plant metabolism and the development of new bioinformatics tools. Besides integrating information from plant databases, the repository should contain all relevant data, such as genomes, annotations, metabolic models and omics data to allow the comparison, analysis and integration of information from different sources. In this work, computational tools were developed to assist the reconstruction and analysis of the GSMM of V. vinifera . In the first phase, a repository of plant metabolic data named iplants was built to centralise and integrate the data available in the PlantCyc and MetaCyc databases and plant GSMMs. As the first step in a GSMM reconstruction is genome annotation, sequence data was retrieved from Universal Protein Resource (UniProt) and National Center for Biotechnology Information (NCBI) for the proteins and genes in the repository. The second phase consisted of reconstructing the GSMM of V. vinifera using iplants as the source of metabolic data. This model was tested for the different metabolic processes of plants: photosynthesis, photorespiration, and respiration. After reconstructing the generic model, tissue-specific models were created for the stem, leaf, and berry by integrating omics data to explore the metabolic differences between tissues. Furthermore, to capture the changes in grape metabolism, we created separate models representing the grape in its green and mature states. These models were then merged into a multi-tissue model and the day-night cycle was included to study the interactions between tissues and the light and dark phases. In the last phase, the phenotype predictions obtained with berry models were analysed by ML to identify the reactions that most contribute to the model’s predictions of the grape developmental state. In addition, a multi-view method was used to integrate the flux predictions generated by the models with RNA-Seq and metabolomics data to identify connections between genes, reactions, and metabolites that can help discover biomarkers of the grape developmental state. 1.2 Research Objectives The main goal of this thesis is to develop and apply computational tools towards the reconstruction and analysis of the GSMM of V. vinifera by exploring synergies between ML, omics and metabolic modelling approaches. These tools and the results from their application may improve the knowledge of grapevine’s metabolic phenotypes and factors affecting grape quality. The following scientific and technological objectives will be pursued to accomplish this goal: • Review state-of-art methods for studying plant metabolism, including plant metabolic modelling approaches, methods integrating omics data within GSMMs, tools for integrating and analysing 2 1.3. REPORT OUTLINE multi-omics datasets and studies employing both ML and metabolic modelling approaches; • Create an integrated and unified repository of plant metabolic data that will include the data available in PlantCyc and MetaCyc, the sequence of genes and proteins, and the content of the published plant GSMMs to assist in the model reconstruction; • Reconstruct a generic GSMM of V. vinifera using the genome sequence and the created repository; • Select the best omics datasets to represent the main tissues of V. vinifera , leaf, stem and berry; • Explore different methods and strategies to integrate omics data with GSMMs, including the reconstruction of tissue-specific models by integrating omics data; • Create a multi-tissue model by merging the tissue models and a diel model by integrating a day-night cycle in the multi-tissue model; • Validate the created models by predicting the metabolism under photosynthesis, photorespiration, and respiration, and predicting the behaviour of V. vinifera under different environmental conditions. • Generate fluxomics data using the reconstructed models and apply ML approaches to this data to explore grapevine metabolism. • Perform multi-omics integration using experimental omics and phenotype predictions from the models to identify connections between the variables of the different datasets, providing a comprehensive understanding of the relation between the genotype and phenotype of the grape. 1.3 Report 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 plant GSMMs, mainly V. vinifera . In addition, the main objectives of this work are briefly described as well as the thesis outline; • Chapter 2 introduces the fundamental concepts for understanding plant metabolism, the reconstruction and simulation of GSMMs, the analyses of omics datasets, and the creation and evaluation of ML models. In addition, it provides a detailed description of the available plant GSMMs and their applications, state-of-art methods for omics integration with GSMMs and multi-omics integration, and the recent studies combining ML and metabolic modelling for studying the metabolism. Finally, it discusses the limitations of plant metabolic modelling and the relevance of combining these two approaches in the study of plant metabolism. • Chapter 3 addresses the creation of a unified and integrated repository of plant metabolic data and describes the pipelines created for data extraction, transformation, and update. 3 CHAPTER 1. INTRODUCTION • Chapter 4 describes the steps taken during the reconstruction of the GSMM of V. vinifera and the strategies used for the creation of the tissue-specific and diel multi-tissue models. It also includes the analysis of phenotype predictions generated by these models. • Chapter 5 comprehends the application of ML in the analysis of the fluxomics data predicted by GSMMs to understand the metabolic changes during grape development. In addition, it describes the strategy used to integrate this fluxomics data with experimental omics, mainly transcriptomics and metabolomics data, to identify biomarkers of grape development stages. • Chapter 6 is a brief synopsis of this project, providing an assessment of the results obtained and future tasks that can improve the computational tools and analyses developed in this work. 4 2.2. CONSTRAINT-BASED MODELLING should be provided in a standard format, such as Systems Biology Markup Language (SBML) [21]. Figure 5: The reconstruction of a GSMM involves four main iterative steps: genome annotation, network assembly, model assembly, and model validation. As the reconstruction of GSMMs is considered a laborious and challenging process, several software programs have been developed for improving and automating its tasks, although manual curation of the resulting GSMMs is always required. These software tools include, for instance, Metabolic Models Reconstruction Using Genome-Scale Information (merlin) [22], CarveMe [23], Constraint-Based Reconstruction and Analysis (COBRA) toolbox [24] and ModelSEED [25] implemented in The Department of Energy Systems Biology Knowledgebase (KBase) [26]. merlin is a framework with a user-friendly interface developed to annotate a genome and build a compartmentalised draft GSMM automatically, as well as to assist in the manual curation efforts [22]. During the reconstruction of GSMMs, different biochemical databases are accessed to obtain up-to- date information on the organism, such as whole-genome sequences, genome annotations, biochemical data of metabolic reactions, and functional information on enzymes. This information will support the development and refinement of the metabolic network. The main databases used for GSMM reconstruction are described in the following section. 2.2.1.2 Resources of plant metabolic data Although plant metabolic information is found in different generic metabolic databases, such as Kyoto Encyclopedia of Genes and Genomes (KEGG) [27], some databases are specific to plants or even to a particular species. These databases contain descriptions of metabolic pathways, including valuable details about genes, enzymes, reactions, and metabolites. Table 1 describes the most relevant databases for the study of plant metabolism. KEGG [27] and MetaCyc [28] are the most used generic databases for the analysis of metabolic pathways. NCBI [29], UniProt [30], BRaunschweig Enzyme Database (BRENDA) [31], Transporter Classification Database (TCDB) [32] and PubChem [33] are also generic databases used for extracting detailed information on genomes, proteins, enzymes, transporters, and chemical compounds, respectively. PlantCyc [34], Plant Reactome [35] and MetaCrop [36] are databases with metabolic data for several plants species, whereas SolCyc [37] only includes information for the Solonaceae family and The Arabidopsis Information Resource (TAIR) [38] is specific for Arabidopsis thaliana . Species-specific 11 CHAPTER 2. STATE OF THE ART databases for plants have been created from MetaCyc and are available at the Plant Metabolic Network (PMN) [34]. 2.2.1.3 Step One: Genome Annotation The first step in a GSMM reconstruction is the genome functional annotation of the organism. Highquality annotations are essential to obtain an accurate metabolic network [20] and can be retrieved from databases, such as NCBI and KEGG. In cases where genome annotations are not available or not reliable, the functional annotation has to be carried out with sequence similarity alignment tools, such as Basic Local Alignment Search Tool (BLAST) [39], DIAMOND [40], or HMMER [41]. These tools search for annotated genes of other organisms that are homologous to the unannotated gene under analysis and assign a statistical score to each match, representing the confidence level in such similarity. According to the best score, the unannotated gene should be assigned with cellular function(s), gene or Open Reading Frame (ORF) name, and Enzyme Commission (EC) and Transport Classification (TC) numbers, when available. Both EC and TC are useful for automatic network reconstruction. 2.2.1.4 Step Two: Network assembly The second step in a GSMM reconstruction is the assembly of the network of biochemical reactions and involves several tasks. The first task consists of associating metabolic genes to proteins and reactions through Gene-Protein-Reaction (GPR) associations, which are usually represented by AND or OR Boolean rules. GPR associations must be carefully defined, mainly for isoenzymes, which are sets of proteins catalysing the same reaction, promiscuous enzymes, which are proteins that use different substrates, and for protein complexes and lumped reactions, in which the catalysed reactions should be associated to every gene subunit [20]. Table 1: Description of the most relevant databases of plant metabolic data. Database Ref. Description Data KEGG [27] Generic resource that comprises genomes, metabolic pathways, chemical compounds, diseases, and drugs. Metabolic Data MetaCyc [28] Comprehensive database of extensively curated metabolic pathways, containing information on reactions, enzymes, genes, and compounds for several organisms. Curated metabolic data BioCyc [28] Collection of Pathway/Genome databases (PGDBs), each containing the complete genome and predicted metabolic network of an organism. Organismspecific predicted metabolic data NCBI [29] Online repository containing several databases for genomics and biomedical information and tools for extracting and analyzing the data. Reviewed and unreviewed sequence data Continued on next page 12 2.2. CONSTRAINT-BASED MODELLING Table 1: Continued from previous page Database Ref. Description Data UniProt [30] Resource for protein sequence and related information, including manually reviewed data (Swiss-Prot) and automatic, non-reviewed protein annotations (TrEMBL). Curated and predicted protein data BRENDA [31] Main database of manually annotated enzyme functional data, which uses the EC classification system. Curated enzyme data TCDB [32] Curated database containing information on transport systems from several organisms, including sequence, structure, and function, and uses the TC system to classify transport proteins. Curated transport data PubChem [33] The largest database of chemical information, including molecular structure, physical properties, and biological activities of compounds. Unreviewed chemical data PlantCyc and PMN [34] PlantCyc contains more than 1000 curated metabolic pathways, for at least 350 plant species. This database is the centre of PMN, a resource of plant metabolic databases, and is used as a reference to create plant-specific PGDBs. The current version of PMN (15.0) comprises 126 plantspecific metabolic databases, including curated and predicted databases. Curated and predicted plant metabolic data PlantReactome [35] Manually curated and comparative pathway database for plants, being part of the Gramene, which is a resource for comparative functional genomics [42]. Plant Reactome used O. sativa as a reference species to manually curate metabolic and regulatory pathway data for 97 plant species, also providing a suite of tools for the analysis of large-scale omics datasets. Curated plant metabolic data MetaCrop [36] Repository of detailed and manually curated metabolic information for six major crop plants with agronomic importance. It allows data to be exported automatically for the creation of metabolic models. Curated plant metabolic data SolCyc [37] Collection of PGDBs for the Solanaceae species, including databases for S. lycopersicum (tomato), Solanum tuberosum (potato), Nicotiana tabacum (tobacco), Capsicum annuum (pepper), and Petunia x hybrida (petunia). Curated metabolic data of Solanaceae species Continued on next page 13 CHAPTER 2. STATE OF THE ART Table 1: Continued from previous page Database Ref. Description Data TAIR [38] Database of genetic and molecular data for A. thaliana , including genome sequence and gene structures, products, and expression datasets as well as tools for data visualisation and analysis. Curated genetic and metabolic data of A. thaliana Information on enzymatic reactions can be obtained from online databases, such BRENDA, through the EC number, and transport reactions can be retrieved from the TCDB database through the TC number. After retrieving available information from the databases, the following information should be compiled: gene names or identifiers, protein names, EC and TC numbers and reaction identifiers, reactants and products, equation and stoichiometry. Then, spontaneous and non-enzymatic reactions should be added to finish the draft network assembly. Organism-specific reactions should be sought in the literature, while non-organism specific reactions can be found in generic databases like KEGG. The next task is the compartmentalisation of the network, which consists of assigning the reactions to the subcellular organelle where they take place. This task is particularly important for more complex organisms, such as plants, as they present a vast number of compartments. Similar reactions occurring in different compartments have to be specified by assigning distinct identifiers to the reactions and metabolites, according to the corresponding compartment [20, 43, 44]. Bioinformatics tools, such as TargetP [45], WolfPSort [46], and LocTree3 [47] are used to predict the subcellular location of enzymes based on their sequence. In addition, information on protein localisation can be found in literature and databases, such as UniProt for all organisms, and SUBcellular location database for Arabidopsis proteins (SUBA) [48] and AraPerox [49] for Arabidopsis . Lastly, manual curation and refinement of the network should be performed through the revision of literature and databases, specific to the organism of interest or phylogenetically close organisms [20]. Several issues should be fixed during manual curation, namely the metabolic potential (presence or absence of reactions), presence of generic terms, substrate and cofactor specificity, stoichiometry and mass balance, reaction reversibility and directionality, and gap filling. Gap filling prevents the accumulation of metabolites, associated with missing reactions in the network, known as gaps. 2.2.1.5 Step Three: Model assembly After assembling the metabolic network and before converting it to a stoichiometric model, a reaction representing the biomass formation must be created. This reaction describes all known biomass components and their contribution to the cell biomass by including them as reactants. Typically, biomass components include macromolecules; thus, reactions for the biosynthesis of these molecules must be included in the network [20, 50]. Equation 2.1 represents the biomass formulation. 14 2.2. CONSTRAINT-BASED MODELLING 𝑃 ∑ 𝑘=1 𝐶𝑘.𝑋𝑘→𝑏𝑖𝑜𝑚𝑎𝑠𝑠 (2.1) where: •𝐶𝑘represents the coefficient of a metabolite; •𝑋𝑘represents the metabolite. The biomass reaction is normalised to one gram of biomass; hence, it expresses how many grams of biomass are produced per gram of existing biomass per hour. Therefore, the flux through this reaction represents the growth rate of the organism (ℎ−1) [50]. The detailed biomass composition should be determined experimentally for the organism of interest or estimated from organism-specific literature. When this information is unavailable, the biomass composition of closely related organisms can be used. The growth-associated energy is also included in the biomass reaction, represented as the ATP molecules needed per gram of biomass produced [50]. Additionally, non-growth energy requirements need to be included in the model and are usually represented by an irreversible ATP hydrolysis reaction. The energy requirements can also be found in published literature or determined by experimental data [20]. The final step in GSMM reconstruction is the conversion of the metabolic network into a stoichiometric matrix. According to the classic principles of chemical engineering, changes in metabolite concentration over time can be represented by ordinary differential equations, as represented in Equation 2.2 for a given metabolite. 𝑑𝑋𝑖 𝑑𝑡 = 𝑁 ∑ 𝑗=1 𝑆𝑖𝑗 ∗𝑣𝑗+𝜇𝑋,𝑖 =1, ..., 𝑀 (2.2) where: •𝑋𝑖is the concentration of metabolite 𝑖; •𝑉𝑗is the metabolic flux of reaction 𝑗; •𝑆𝑖𝑗 is the stoichiometric coefficient of the metabolite 𝑖in reaction 𝑗; •𝜇𝑋 is the system growth rate. The prediction of concentration profiles over time requires the kinetic rates of all reactions. Currently, there is still a lack of kinetics data, which hinders the development of dynamic models for most organisms. A pseudo-steady-state, in which the metabolite concentration is constant throughout time, is assumed to overcome this limitation [20]. This approach allows converting the dynamic equations into a stoichiometric matrix, as shown in Equation 2.3. 𝑆∗𝑣=0(2.3) where: 15 CHAPTER 2. STATE OF THE ART •𝑆is the stoichiometric matrix where rows represent metabolites and columns represent reactions. •𝑣is the flux vector. As the number of reactions is usually higher than the number of metabolites in a metabolic network, the set of linear equations is an underdetermined system, which results in an infinite number of solutions that may satisfy the imposed constraints. Therefore, the solution space must be narrowed down to a set of feasible solutions, named the flux cone of solutions, by adding new constraints to the system [50]. These new constraints are related to the reversibility of reactions and represent the bounds that define the minimum and maximal flux through each reaction. Mathematically, these constraints are described by inequalities, as shown in the inequality 2.4. 𝑣𝑚𝑖𝑛𝑗≤𝑣𝑗≤𝑣𝑚𝑎𝑥𝑗, 𝑗 =1, ..., 𝑁 . (2.4) where: •𝑣𝑗is the flux vector; •𝑣𝑚𝑖𝑛𝑗is the lower bound; •𝑣𝑚𝑎𝑥𝑗is the upper bound. Reversible reactions should have bounds set as minus and plus infinity, whereas irreversible reactions should have one bound set to zero, depending on the directionality. Figure 6 represents a metabolic network assembly and its conversion to a stoichiometric model. Lastly, model simulations are compared with experimental data. When not in accordance, the genome annotation, gap filling, and manual curation steps are revised iteratively until the model achieves accurate results. The final model should be saved in the SBML format [21] to perform in silico phenotype predictions using approaches like Flux Balance Analysis (FBA) [51]. 2.2.2 Phenotype Simulation The metabolic phenotypes of the organism under different environmental or genetic conditions can be predicted using the reconstructed GSMM and several constraint-based approaches. FBA is the most popular constrained-based method to simulate GSMMs [51, 52]. This method uses linear programming to solve the system of equations of the GSMM, resulting in an optimal flux solution. Besides the mass balance and flux constraints of the GSMM, FBA requires the definition of a relevant objective function, which represents the maximisation or minimisation of a metabolic flux during the simulation [51]. The linear programming problem can be formulated as follows: 𝑚𝑎𝑥𝑖𝑚𝑖𝑧𝑒 →𝑍(2.5) Subject to: 16 2.2. CONSTRAINT-BASED MODELLING Figure 6: Assembly of a GSMM with four metabolites (A to D) and six fluxes (V1 to v6). The metabolic network and boundaries of a system (e.g. cell) are shown in 1). Fluxes V1 and V6 represent exchange fluxes. Reversible reactions are present with double arrows and irreversible reactions are indicated with a forward arrow. Panel 2) represents the steady-state mass balances and panel 3) shows the constraints for flux values, in which ( ”a” ) represents an uptake rate of the metabolite A. Finally, panel 5) shows the representation of the mass balances in the matrix format. {𝑆∗𝑣=0},(2.6) {𝑣𝑚𝑖𝑛𝑗≤𝑣𝑗≤𝑣𝑚𝑎𝑥𝑗, 𝑗 =1, ..., 𝑁 }(2.7) where: •𝑍is the linear objective function; •𝑣is the flux vector; •𝑆is the stoichiometric matrix (columns represent reaction fluxes and rows the metabolites mass balances); •𝑣𝑚𝑖𝑛𝑗and 𝑣𝑚𝑎𝑥𝑗are the lower and upper bounds, respectively. The most commonly used objective function is the maximisation of the biomass growth, as it was demonstrated that most microorganisms have the purpose of growing as fast as possible [50]. However, this objective function may not be appropriate for most multicellular organisms, which are formed by different cell types with specific objectives and functions [15, 44]. FBA can be used to simulate phenotypes with GSMMs using different carbon or nitrogen sources, to identify the best growth medium, to improve the production of a compound of interest, under different gene knockouts, or to prevent the biosynthesis of a toxic metabolite. Likewise, FBA allows the identification 17 CHAPTER 2. STATE OF THE ART of essential reactions by knocking out a reaction at a time and assessing its impact on biomass production [20, 50]. The genetic manipulations that lead to a metabolic phenotype of interest can be calculated with strain optimisation algorithms, such OptKnock [53] and OptFlux [54], which use evolutionary algorithms to perform systematic gene knockouts or under/overexpression over the GSMM. The solution returned by FBA is not unique, meaning that multiple optimal solutions may exist in the solution space for the defined constraints and objective function. This limitation can be overcome with the Parsimonious Flux Balance Analysis (pFBA) method, which selects the flux distribution that minimises the sum of fluxes while maximising growth [55]. Another formulation named Flux Variability Analysis (FVA) is often used to determine the robustness of GSMMs in simulations [56]. FVA calculates the minimum and maximum flux of each reaction for a defined set of constraints. Two additional optimisation methods, Minimization of Metabolic Adjustment (MOMA) [57] and Regulatory on/off Minimization of Metabolic flux changes (ROOM) [58], have been used to predict metabolic phenotypes of perturbed cells. MOMA uses linear or quadratic optimisation to minimise the effect of the perturbation in the cell by finding the flux distribution closest to the wild-type. ROOM is similar to MOMA, but instead of minimising the total flux value, it minimises the number of altered fluxes. All these methods have been implemented in several bioinformatics tools such as COBRA toolbox [24], COBRApy [59] and ReFramed [60]. In alternative to FBA, sampling methods, such as Markov chain Monte Carlo (MCMC), can be used to explore the metabolic networks without assuming an objective function by uniformly sampling the feasible flux space. These methods generate a chain of feasible solutions satisfying the network constraints until the flux samples accurately represent the solution space. Flux sampling provides information both on the range and probability distribution of feasible flux solutions [61, 62]. The FBA approach was extended to Dynamic Flux Balance Analysis (dFBA) [63] to allow the modelling of changes in metabolic concentrations over time. dFBA assumes that cells rapidly reach an intracellular steady state after environmental changes. Therefore, intracellular metabolites are still assumed to be at a steady state, but exchange metabolites and total biomass are constrained with dynamic equations representing the rates of uptake or excretion. This framework combines constraint-based modelling with a dynamic simulation of the extracellular environment. 2.2.3 Integration of omics data within genome-scale metabolic models The development of high-throughput technologies has revolutionised the field of molecular biology by generating large-scale omics datasets, which have allowed the study of the central dogma through the detection and quantification of genes, transcripts, proteins, and metabolites in biological samples. Such massive and heterogeneous data requires bioinformatics tools to analyse and integrate these data, leading to the rise of Systems Biology. Omics data have been used for a wide range of applications, as they allow the detection and analysis of differential patterns across varied environmental conditions, which can explain metabolic variations 18 2.2. CONSTRAINT-BASED MODELLING occurring in different phenotypes. Although there are many types of omics data, the studies have mainly focused on genomics, transcriptomics, proteomics, or metabolomics data [64, 65]. In the absence of known regulatory rules of gene expression, omics data, mainly transcriptomics, have been integrated within GSMMs to improve the accuracy of the predictions [66]. 2.2.3.1 Resources of plant omics data Genomics data provide information on genome composition, including the characterisation and quantification of all genes and the identification of single nucleotide polymorphisms, copy number variants, and loss of heterozygosity variants. Transcriptomics data describes the total mRNA in a cell, which reflects the expression of genes at a specific time. These omics data have been mainly generated by microarrays and more recently by next-generation sequencing technologies, such as RNA-Seq [64]. The main databases for genomics and transcriptomics data include Sequence Read Archive (SRA) [67], GenBank [68], NCBI’s Reference Sequence Database (RefSeq) [69], Nucleotide [70] and Gene Expression Omnibus (GEO) [71] from NCBI, DNA DataBank of Japan (DDBJ) [72], European Nucletoide Archive (ENA) [73], ArrayExpress [74] and Expression Atlas [75], which are described in Table 2. Regarding plants, Plant Omics Data Center (PODC) [76] was created to integrate large-scale gene expression datasets from mRNA-sequencing. Currently, this resource also provides functional annotations of genes and gene expression networks derived from transcriptomics data of eleven different plants. PlantExpress [77] is another plant omics database that builds gene expression networks from microarray data, but only for O. sativa and A. thaliana . GRape Expression ATlas (GREAT) is a gene expression atlas that integrates all public RNA-Seq experiments of V. vinifera from GEO or Array Express, allowing data analysis and visualisation [78]. In GREAT, the RNA-Seq data is already normalised in transcripts per million (TPM) and the reads were mapped to the new grapevine genome (PN40024.v4) [79]. Proteomics data represent the quantification of expressed proteins in a sample at a specific time. The leading technology used for protein profiling is Mass Spectrometry (MS), though it does not detect all proteins in a sample. The MS output is processed and used for the identification and quantification of proteins and post-translational modifications (PTMs). The final goal is to understand the functional importance of proteins and bridge the gap between the genome and the phenotype [64]. In proteomics data analysis, different databases, such as ProteomicsDB [80], PRoteomics IDEntifications (PRIDE) [81], PeptideAtlas [82], Global Proteome Machine Database (GBMDB) [83] and Mass Spectrometry Interactive Virtual Environment (MassIVE) [84] (Table 2) are available. Concerning plants, Plant Proteomics Database (PPDB) [85] was created to integrate experimentally identified proteomics data of Z. mays and A. thaliana . Metabolomics data reflect the number of small molecules in a sample at a specific condition. MS and Nuclear Magnetic Resonance Spectrometry (NMR) are the leading technologies for quantification of metabolites, but detection cover is lower than for other omics [64]. As the metabolome is the final product of gene expression, its analysis is the closest step to understanding the observed phenotype. 19 CHAPTER 2. STATE OF THE ART Metabolomics data can be found at MetaboLights [86], MetabolomeExpress [87], Metabolomics Work- Bench [88] and Golm Metabolome Database (GDM) [89] databases (Table 2). Table 2: Description of the most relevant databases of plant omics data. Database Ref. Description Data SRA [67] Archive for next-generation raw sequence data. Sequences GenBank [68] Comprehensive collection of all publicly available DNA sequences and respective annotations. Sequences RefSeq [69] A comprehensive, curated, and non-redundant collection of sequences, including genomes, transcripts, and proteins. Sequences Nucleotide [70] A collection of sequences from different sources including GenBank and RefSeq. Sequences GEO [71] Repository of functional genomics data, including raw and processed data with descriptive metadata. Genomics and transcriptomics DDBJ [72] Public database of nucleotide sequences at National Institute of Genetics. Sequences ENA [73] A comprehensive nucleotide sequence resource, including raw sequencing data, assembly information, and functional annotations. Sequences ArrayExpress [74] Database of functional genomics data and respective metadata. Genomics and transcriptomics Expression Atlas [75] A resource for gene and protein expression data for multiple organisms and across different biological conditions. Transcriptomics PODC [76] Database of mRNA-sequencing expression data for plants. Transcriptomics PlantExpress [77] Database of gene expression data from microarrays for O. sativa and A. thaliana . Transcriptomics GREAT [78] Atlas of RNA-Seq experiments of V. vinifera mapped against the PN40024.v4 genome. Transcriptomics ProteomicsDB [80] Database for quantitative Mass Spectrometry (MS)-based proteomics data. Currently, it also includes RNA-Seq expression datasets, drug-target interactions, and protein turnover data. Proteomics PRIDE [81] Repository of MS-based proteomics data, including protein identification and quantification, post-translational modifications, analysed mass spectra, and technical metadata. Proteomics Continued on next page 20 2.2. CONSTRAINT-BASED MODELLING Table 3: Continued from previous page Method Ref. Description GEMsplice [124] Genome-scale metabolic modelling with splice-isoform integration (GEMsplice) is the first to incorporate splice-isoform expression data into GSMMs, and was applied to investigate different metabolic phenotypes of breast cancer. This method uses METRADE to integrate splice-isoform information and to define reaction bounds as a function of the expression level of associated genes. IOMA [125] Integrative Omics Metabolic Analysis (IOMA) incorporates relative proteomics, and absolute metabolomics data, to improve flux predictions following genetic alterations, considering a mechanistic model of reaction rates. This method is formulated as a quadratic programming problem that searches for a steady-state flux distribution, where the flux through reactions with omics data is as consistent as possible with the fluxes kinetically estimated via Michaelis Menten-like equations. The method also requires the estimation of missing kinetic parameters in the optimisation problem. RIPTiDe [126] Reaction Inclusion by Parsimony and Transcript Distribution (RIPTiDe) aims to identify the most efficient usage of metabolism that also represents an organism’s costs in transcription, using transcript abundances and pFBA. This method assigns continuous weights to reactions that reflect the normalised transcriptional abundance of the associated genes. A lower weight represents a higher transcript abundance and a higher probability of including the reaction in the final model. Then, a pFBA simulation is performed by limiting the inclusion of reactions with higher weights in the solution, and the reactions without flux are removed from the model. Finally, flux sampling is performed to find pathway utilisation patterns. Most of the described methods are provided as scripts by the authors but in some cases, their application to new data is very difficult. Some methods for reconstruction of tissue-specific models are included in COBRA toolbox (FastCORE, MBA, GIMME, iNIT and iMAT) of the commercial platform MATLAB, or implemented in open-source Python packages, such as Tissue-specific RecOnstruction and Phenotype Prediction using Omics data (Troppo) [127], which facilitate their use. Machado et al. [91] evaluated the aptitude of seven of these methods to improve metabolic flux predictions, using published data from E. coli and S. cerevisiae , and comparing the results to pFBA predictions. These methods included GIMME, iMAT, MADE, E-flux, RELATCH, GX-FBA and the method by Lee et al. . None of them have consistently outperformed each other nor pFBA under all conditions. lbFBA recently reported improvements over pFBA in specific conditions. These results suggest that gene expression levels do not have a strong correlation with reaction fluxes, and other factors, like post-translational modifications and translation efficiency, may impact flux levels. They have also shown that the use of proteomics rather than transcriptomics data did not improve flux predictions, indicating that enzyme levels have a 27 CHAPTER 2. STATE OF THE ART Figure 7: Distribution of methods for integrating omics data within GSMMs. Methods have been classified as absolute or relative whether they use absolute values for a single condition or differential expression values between conditions, respectively. Methods were also divided into discrete or continuous, according to whether they use discrete or continuous expression values to constrain the model. Additionally, they were also divided according to the output they produce: methods in grey only result in a flux prediction, methods in orange only create a specific model, and methods in blue output both a flux prediction and a specific model. weak correlation with reaction fluxes. Therefore, although there are several methods available, the use of transcriptomics and proteomics data to improve flux predictions is still inaccurate and challenging. On the other hand, gene expression data have been successfully used to create context-specific metabolic models for multicellular organisms [128]. In this case, gene expression levels are expected to be more correlated with metabolic fluxes, as metabolic pathways can be completely activated or deactivated in specific tissues [91]. 2.2.4 Plant genome-scale metabolic models The first plant GSMM was published in 2009 for Arabidopsis thaliana [129]. Several models have been developed since, not just for model plants like A. thaliana , but also for more complex and economically important plants [15], such as Oryza sativa (rice) [130–133] and Zea mays (maize) [134–136]. Figure 8 summarises the plant GSMMs published to date. Generally, these models have proven to be robust and accurately predict specific aspects of central carbon metabolism [15]. The existing plant GSMMs are described below, grouped by organism, and ordered by publication date. 2.2.4.1 Arabidopsis thaliana Poolman et al. [129] reconstructed the first plant GSMM for A. thaliana heterotrophic cell suspension culture. This model was mainly derived from the AraCyc database (version 4.5) [137] and produces biomass components in the proportion observed experimentally in heterotrophic suspension cultures. In 2013, Cheung et al. [138] extended this model to include the subcellular localisation of central metabolic reactions across five compartments (cytosol, plastid, mitochondrion, peroxisome, and vacuole) and to 28 2.2. CONSTRAINT-BASED MODELLING Figure 8: Timeline of the most relevant plant GSMM reconstructions. account for growth, transport, and cell maintenance energy costs, including ATP and reductive costs. They simulated the model under different environmental conditions and discovered that accounting for energy costs of transport and maintenance substantially improves flux predictions, regardless of the objective function used in the simulation. AraGEM [139] was the first plant GSMM to represent the metabolism of a compartmentalised photosynthetic cell (same five compartments as in Cheung’s model [138]), describing photosynthesis, photorespiration, and respiration while identifying metabolic changes between them. This model was updated by Saha et al. [134] and later by Chung et al. [140] to include terpenoid biosynthesis reactions. Recently, Siriwach et al. [141] have combined the AraGEM model with time-series gene expression data, creating condition-specific models of A. thaliana under drought and control conditions to gain insights into the development of tolerant plants. Mintz-Oron et al. [142] have reconstructed the fully compartmentalised GSMM for A. thaliana , which encompasses the subcellular localisation of all reactions, across the five compartments of the AraGEM 29 CHAPTER 2. STATE OF THE ART model, plus the Golgi Complex and Endoplastmatic Reticulum. They extracted ten tissue-specific models from this generic GSMM by integrating protein expression data of eight tissues and cell cultures in light and dark conditions. The authors then used the seed-specific model to predict the genetic knockouts that result in vitamin E overproduction. Töpfer et al. [143, 144] have combined this generic model with timeresolved transcriptomics data from different temperature and light conditions to understand the metabolic acclimation of A. thaliana to stressful environments. An evidence-based model for A. thaliana was reconstructed by Seaver et al. [145] from the generic model available on PlantSEED [146], including the seven compartments mentioned plus the nucleous and the cell wall, and combined with transcriptomics and metabolomics data to extract specific models for eight root tissues at different developmental stages [147]. The tissue-specific models were used to build a multi-tissue model of the root for analysing the flux distribution of hormones indole-3- acetate and trans-zeatin through the root. A more complex model of A. thaliana was developed to represent the leaf metabolism over a daynight cycle [148]. This diel model was reconstructed by duplicating the previous model [138] into two modules, day, and night, and manually adding the transporters between these two phases. The authors simulated both phases in a single optimisation problem by applying constraints specifying that photon influx is allowed during the day (photoautotrophic metabolism) and is set to zero at night (heterotrophic metabolism). This model simulates and clarifies the interactions between the two phases by allowing storage metabolites synthesised during the day to be used at night and vice-versa. More recently, multi-tissue models for A. thaliana were reconstructed to represent different tissues and their interactions. Dal’Molin et al. [149] have developed a framework to create a multi-tissue model comprising the leaf, stem, and root of A. thaliana across the diurnal cycle. In this approach, the tissues exchange metabolites through a shared compartment (common pool) rather than directly transported between two tissues, which can reduce redundancy when more than two tissues are interconnected. Additionally, a storage pool manages the storage and retrieval of metabolites. Therefore, in this framework, a multi-tissue model is defined by a stoichiometric matrix representing the internal reactions and three matrices for the exchange reactions with the environment, the transport reactions through the common pool, and the accumulation of metabolites in the storage pool. The multi-tissue model consisted of three replicates of the AraGEM model (representing root, stem, and leaf) and two common pools, one for exchanges between leaf and stem and another for exchanges between stem and root. To simulate the diurnal cycle, the multi-tissue model was duplicated to represent each state (light and dark), and a storage pool was created, with starch being the only stored metabolite. The model was used to study carbon and nitrogen translocation between tissues. Following this strategy, the diel model was used to build a dynamic multi-tissue diel model (Figure 9) to study metabolic changes across multiple growth stages under different nutrient availability [150]. All reactions of the diel GSMM were replicated to represent the leaf and root model, and the transport between root and leaf was performed through a common pool representing the phloem. This multi-tissue model was simulated by dFBA [63] to explore carbon and nitrogen partitioning between root and leaf over different developmental stages. 30 2.2. CONSTRAINT-BASED MODELLING A different approach was followed by Schroeder et al. [151] to study the evolution of metabolism across the lifecycle of A. thaliana . While previous studies have only considered metabolism at a single point (growth or a single diurnal cycle), this optimisation framework takes a series of “snapshots” of core-carbon metabolism. These snapshots comprise the plant mass, growth rate, and fluxes at onehour intervals across 61 days of growth, including the stages of seed germination, leaf development, flower production, and silique ripening. In this study, a core multi-tissue metabolic model (referred to as p-ath780) comprising leaf, root, seed, and stem tissues was reconstructed. The core model only includes the central metabolic pathways of A. thaliana . The tissue-specific models were built based on the available literature and experimental studies and then merged by OptCom, a framework for modelling microbial communities [152]. The novelty of this method is to simultaneously consider the diurnal cycle, carbohydrate storage, maintenance, and senescence costs, and changes in tissue and whole-plant mass during growth, according to experimental data. Figure 9: Schematic overview of the diel multi-tissue model of A. thaliana , including the leaf and root tissues and the common pool in both light and dark phases [150]. Each tissue module includes five compartments: cytoplasm, mitochondria, vacuole, plastid, and peroxisome. Starch, glucose, sucrose, fructose, malate, fumarate, citrate, and nitrate can accumulate in the light and dark phases of the leaf and root (dashed rectangle between phases). Amino acids can be stored in the light and used in the dark phase. The exchange of amino acids, sucrose, sulfate, nitrate, and phosphate (Pi) was allowed between leaf and root through a common pool using proton pumps. Photon uptake was allowed through the leaf in the light phase while mineral nutrients, such as nitrate, sulfate, and Pi, were allowed through the root in both phases. Exchanges of carbon dioxide and oxygen were allowed through the leaf and root in both phases. 31 CHAPTER 2. STATE OF THE ART 2.2.4.2 Zea mays Dal’Molin et al. made the first efforts towards reconstructing a Z. mays GSMM, combining biochemical information of Sorghum bicolor (sorghum), Z. mays , and Saccharum officinarum to build the C4GEM model [153]. This model represents the two leaf tissues, mesophyll (M) and bundle sheath (BS) cells, where photosynthesis of C4 plants takes place, and the interactions between them. It also includes the main five compartments (cytosol, plastid, mitochondrion, peroxisome, and vacuole). Since then, three more GSMMs were reconstructed for Z. mays leaf. The first model, referred to as iRS1563 [134], was based on AraGEM (with the same five compartments) and Z. mays genome and was used to predict metabolic phenotypes for two natural brown midribs’ (bm) mutants with defective lignin biosynthesis. Another Z. mays leaf model was reconstructed by Simons et al. [135], with a significant increase in the number of genes and reactions, representing secondary metabolism. It comprises the two tissues of the leaf, M and BS cells, and gene expression data was used to identify the active reactions in each tissue. Regarding compartments, it includes the five of C4GEM plus the plasmatic, thylakoid, and inner mitochondrial membranes. This model was used to assess the assimilation of nitrogen within the leaf under different nitrogen conditions and later was constrained by incorporating enzyme activity data to detect metabolic differences between nineteen Z. mays lines [154]. Seaver et al. [145] have also reconstructed an evidence-based model for Z. mays , with the same compartments as the A. thaliana model and it was used to extract tissue-specific models for the leaf, embryo, and endosperm of Z. mays by integrating gene expression data within the model. The most recent Z. mays leaf GSMM (iRB5204) was developed by Bogart et al. [136], based on the CornCyc database (version 4.0) [155] and previous models. They reconstructed a high-confidence model named iRB2140, including only curated reactions and the same compartments of Simons’ model [135], except for the plasmatic membrane. Then, the authors created a two-tissue model to represent M and BS cells of the leaf by duplicating the iRB2140 model and adding transport reactions between the two tissues (Figure 10). They incorporated known nonlinear kinetic constraints and transcriptomics data from more and less differentiated cells to reconstruct a whole-leaf model identified as iEB2140x2x15, representing 15 developmental stages of the maize leaf. 2.2.4.3 Oryza sativa The first GSMM was reconstructed from the RiceCyc database [156] by Poolman et al. [130] and included three compartments: cytosol, chloroplast, and mitochondrion. It was analysed to identify metabolic responses to different light intensities. This model was curated and extended by Chatterjee et al. [131] to encompass the peroxisome compartment and reactions involved in chlorophyll synthesis. Another O. sativa leaf model named iOS2164 was developed by Lakshmanan et al. [133] by adding the vacuole, the endoplasmic reticulum, and the thylakoid as compartments, and all electron-transport reactions. The authors have integrated transcriptomics data within this model to evaluate the metabolic responses to different light conditions. Later, this model was combined with gene expression data of different tissues at different developmental stages to generate tissue-specific models and highlight the 32 2.2. CONSTRAINT-BASED MODELLING Figure 10: Schematic overview of the two-tissue model of Z. mays , representing the M and BS leaf cells of C4 plants [136]. Each cell includes four compartments: cytoplasm, chloroplast, peroxisome, and mitochondrion, and small molecules are directly exchanged between the two tissues by transport reactions. The M cells exchange carbon dioxide and oxygen with the intercellular air space while BS cells exchange sucrose, glutathione, and glycine with phloem and import water and inorganic nutrients from the xylem. This type of model representation is used to understand photosynthesis in C4 plants, mainly the interactions between M and BS cells. metabolic differences between tissues [157]. All these rice models describing the metabolism of O. sativa japonica were reviewed in [158]. Chatterjee et al. [132] reconstructed a GSMM for O. sativa indica , which included cytosol, mitochondrion, peroxisome, and chloroplast compartments, and used this model to characterise the metabolic responses to variations in RubisCO activity and light intensity under different enzymatic cost constraints. 2.2.4.4 Other organisms Other organisms, like Solanum lycopersicum (tomato), Solanum tuberosum (potato), Medicago truncatula (barrelclover), Glycine max (soybean), Setaria viridis (green foxtail) and Quercus suber (Cork oak), have only one GSMM available. For Hordeum vulgare (barley), a dynamic multi-tissue model was created and stoichiometric multi-tissue models were also created from the GSMMs of M. truncatula , G. max , S. viridis , and Q. suber . • Hordeum vulgare . A framework for analysing metabolic dynamics of H. vulgare on a wholeplant scale was developed by integrating a steady-state multi-organ model with dynamic constraints from a functional plant model [159]. Organ-specific models for leaf, stem, and seed were reconstructed by collecting primary metabolism data from literature and databases and combined into one multi-organ model. Next, dFBA was applied and exchange fluxes predicted by the functional plant model were used to constrain FBA at each time interval. This framework allowed studying metabolic interactions between the source and sink organs of H. vulgare , accounting for temporal and environmental changes. • Solanum lycopersicum . The only model of S. lycopersicum , referred to as iHY3410, represents the leaf and enables the analysis of metabolic flux distributions on photorespiration pathways under 33 CHAPTER 2. STATE OF THE ART drought stress [160]. • Solanum tuberosum . Botero et al. [161] reconstructed a GSMM of S. tuberosum late blight to study the effect of this disease on leaf metabolism, suggesting the suppression of photosynthesis. This model encompasses the metabolic pathways of the leaf and the interaction between the plant and Phytophthora infestans through the integration of gene expression data of infected S. tuberosum . • Medicago truncatula . A fully compartmentalised model for M. truncatula was developed by Pfau et al. [162] and allowed the analysis of their rhizobial symbiosis for nitrogen fixation by connecting the plant model to a model of its symbiont and evaluating the effects of the symbiosis in plant growth. Then, a multi-tissue model representing the root and shoot of M. truncatula was reconstructed by integrating tissue-specific gene expression data and connecting the resulting root- and shoot-specific model with a combined biomass reaction and inter-tissue transporters derived from literature. • Glycine max . Moreira et al. [163] reconstructed a GSMM of G. max and duplicated this model to create a multi-tissue model representing two tissues of G. max seedlings: the cotyledons and hypocotyl/root axis. The multi-tissue model was constrained with the biomass compositions observed experimentally over four days of seedling growth to simulate the mobilisation of seed reserves during this period and detect metabolic differences between the two tissues, as well as interactions between them. • Setaria viridis . Similarly, a model of S. viridis [164] was reconstructed and used to create a multi-tissue model representing the C4 leaf (including both M and BS cell types) and stem. These models have identified implications of proton balancing on flux distributions during photosynthesis of C4 leaves and reactions involved in the biosynthesis of cellulose, hemicellulose, and lignin in the stem. • Quercus suber . Recently, a reconciled GSMM for Q. suber was semi-automatically reconstructed by Cunha et al. [165] using merlin [166] and performing extensive manual curation. This is the first model reconstructed for a woody tree. Transcriptomics data was integrated with the model to obtain tissue-specific models for the leaf, inner bark, and phellogen, which were merged into a diel multi-tissue model to predict interactions among tissues at light and dark phases and study the synthesis of suberin monomers. In the future, this model can be extended and used to explore the metabolic patterns associated with high-quality cork, which is economically relevant for Portugal. Overall, the most significant advances in plant metabolic modelling were made first for A. thaliana . AraGEM [139] is the most used plant model and was the first to allow the simulation of photosynthesis and photorespiration metabolic processes, including compartmentalization. Next, a relevant advance was the diel model of Cheung et al. [148], which allows the simulation of the leaf metabolism over the diurnal cycle in a single problem. Then, the creation of the multi-tissue model by Dal’Molin et al. [149] represented a significant improvement of these models. This model allows the analysis of the metabolism 34 2.2. CONSTRAINT-BASED MODELLING across different tissues (leaf, stem, and root) and also the metabolic interactions between them. Although the multi-tissue model of Shaw et al. [150] only comprises two tissues, leaf, and root, its novelty was to include dynamic constraints for the exchange metabolites. Finally, it is important to highlight the integration of omics into models to create tissue- or conditionspecific models to originate more realistic flux predictions. Although transcriptomics data are usually used to reconstruct specific models [141, 143, 144, 147], Mintz-Oron et al. have constrained the models with proteomics [142]. Regarding Z. mays , the models helped study the photosynthesis of C4 plants, which occurs between M and BS cells. Of these models, the one from Simons et al. [135] stands out as it includes more secondary metabolism reactions, more compartments, and constraints based on gene expression. Likewise, iOS2164 [133] is the most complete model for O. sativa , as it contains more compartments and transcriptomics-based constraints. Meanwhile, the advances made for A. thaliana were applied in the reconstruction of complex multi-tissue models for other organisms, such as M. truncatula [162], G. max [163], S. viridis [164], and a woody tree, Q. suber [165]. 2.2.5 Major challenges and limitations in plant metabolic modelling Although several plant GSMMs and studies that successfully use them to understand plant metabolic processes are available, the existing approaches still have limitations as plant metabolic modelling is very challenging [15]. Annotation of plant genomes is incomplete, and database information on plant enzymatic reactions and metabolites is limited, especially for secondary metabolism, resulting in an inaccurate model with network gaps, requiring extensive and time-consuming validation. Most plant metabolic models have been validated to predict changes in plant central carbon metabolism, though generally neglecting secondary metabolism. Therefore, these models cannot correctly predict plant adaptation to the environment and interactions with pathogens [44]. Exceptions are the models from Z. mays [135] and G. max , which present extensive coverage of the secondary metabolism. Another challenge in plant modelling is to place reactions in the correct compartment. Plant cells are composed of multiple compartments, and little is known about the subcellular localisation of reactions and metabolites. Most enzymes of the central metabolism are known to be present in more than one compartment, which makes the modelling process even more difficult. Adding compartments to models raises other problems, such as the lack of information about transport reactions, substrate specificity, and energetic costs [43]. The assignment of reactions to compartments in plant models is typically performed by searching databases and using subcellular localisation prediction tools. As plants are exposed and adapted to several environmental stresses, their cellular objectives are surely much more complex than maximising cell growth. For instance, during environmental changes or pathogen interactions, the fluxes are redirected from the primary metabolism to secondary metabolic pathways to produce the metabolites for the plant’s adaptation and defence [15, 44]. The most used objective functions in plant models are minimising the total flux, minimising the photon uptake, and maximising biomass. Although these objective functions have been successfully applied for simulating the 35 CHAPTER 2. STATE OF THE ART metabolism of plant tissues at specific developmental stages or under certain environmental conditions, they do not apply to all possible scenarios [15]. Therefore, defining an appropriate objective function in plant models remains exceptionally challenging. Another challenge in plant modelling is the definition of constraints affecting plants. Most plant models use biomass synthesis at a defined growth rate as a constraint when the objective function is the minimisation of total reaction fluxes [129, 132, 148, 160, 162, 163]. However, this may not be enough to correctly predict the fluxes, as net biomass synthesis uses only a fraction of the cell’s total energy [15]. Indeed, Cheung et al. [138] proved that accounting for transport and maintenance energy costs increases phenotype predictions’ accuracy, showing that the definition of appropriate constraints is essential for obtaining realistic metabolic predictions. Moreover, plants’ photosynthesis, photorespiration, and respiration add complexity to their metabolic networks and complicate the modelling process [44]. Other factors affecting plant metabolism include complex interactions with symbionts and pathogens, competition mechanisms, and changes in available nutrients. Finally, one of the main problems of plant modelling is that most models are generic and include all reactions known to take place in that plant, regardless of cell type or environmental conditions. As plants contain a wide variety of cell types, each with its specific active metabolism, generic models may lead to wrong interpretations as certain reactions or pathways are inactive in a specific cell type, even though being strongly active in others. Similarly, environmental conditions may influence the expression of metabolic genes; thus, enzymes may be active in specific conditions while inactive in others. Therefore, the reconstruction of context-specific models is crucial to obtain more realistic metabolic flux predictions. As seen before, several studies have integrated transcriptomics data with generic plant GSMMs to improve flux predictions and create plant tissue- and condition-specific models [133, 142–145, 154, 157]. However, as gene expression levels generally do not strongly correlate with reaction fluxes [91], the use of omics to improve the GSMMs is still challenging and inaccurate. Tissue-specific models can be merged to form a multi-tissue model that simulates metabolic interactions between tissues [150, 167]. However, reconstructing multi-tissue models raises the challenge of defining the metabolites transported between tissues, highlighting the lack of information regarding this topic. As depicted above, there are already several multi-tissue models of plants. In most models, the different tissues replicate the original model, with few metabolic differences, and are connected by inter-tissue reactions or a common compartment. Light availability is a common constraint to differentiate context-specific models, for instance, leaves and roots, or diurnal and nocturnal leaves. The huge advantage of these multi-tissue models is that they simulate metabolic interactions between different tissues and organs, providing insights into complex resource allocation processes occurring in plants [167]. Despite the several challenges of plant metabolic modelling, significant advances have been made in the last years, which have allowed the reconstruction of more accurate plant generic, context-specific, and multi-tissue metabolic models. These have been successfully applied for simulating phototrophic and heterotrophic metabolism, improving the production of metabolites of interest, and understanding metabolic phenotypes under different environmental conditions or at different developmental stages. Therefore, 36 2.3. MULTI-VIEW LEARNING FOR MULTI-OMICS DATA INTEGRATION [181, 182, 184–187]. These approaches are based on different statistical and ML methods, which are adapted and extended to the set of omics under analysis. Most of the available studies are dedicated to the integration of genomics and transcriptomics data and are based on dimension-reduction methods, like Canonical Correlation Analysis (CCA), and Partial Least Squares (PLS), network-based methods, and kernel-based methods. 2.3.2.1 Dimension-reduction methods CCA is a versatile multivariate statistical method, developed to investigate the associations between two sets of variables [188]. It decomposes each set into linear combinations of variables (loading factors) that best explain the variability within each set while maximising the correlation between sets. Traditional CCA is not valid for analysing omics datasets due to their high dimensionality [185]. Thereby, this approach has been adapted for omics data analysis through the introduction of sparsity regularisation, resulting in sparse CCA (sCCA) methods, which select smaller loading factors that maximise the correlation between sets. PLS is another multivariate statistical technique for the identification of the fundamental relationships between two sets [189]. This approach tries to find the loading factors that maximise the covariance between predictors and the response. PLS is widely used to reduce the set of predictive variables; however, for high-dimensional omics data, sparse solutions are usually required to facilitate data interpretation [185]. For this reason, extensions of PLS were developed, such as sparse PLS (sPLS) [190] that includes regularisation, and orthogonal PLS (oPLS) [191], that removes the systematic variation of predictors not correlated to the response, facilitating the interpretation. Additionally, oPLS was extended to O2PLS [192], which also models the uncorrelated variation of predictors. This approach has been explored for the integration of plant omics data [193]. These methods and their extensions are incorporated in the mixOmics R package for integration of multi-omics datasets with a focus on variable selection. Another popular method available in the mixOmics R package is Data Integration Analysis for Biomarker discovery using Latent cOmponents (DIABLO). DIABLO [194] is the first multivariate integrative classification method for the identification of biomarkers. It is based on PLS and uses sparse generalized CCA to maximise the correlation between variables of different datasets and project the data into linear combinations of variables (latent components) while discriminating between the output groups. The output class of new data is predicted for each omics dataset based on distance scores. As different omics datasets can predict different classes, the consensus class is determined using majority vote or weighted vote functions. Three distance metrics are calculated: maximum, centroid, and Mahalanobis distances. The maximum distance predicts the output class with the highest score for a new observation. For the other two metrics, a centroid is calculated for each output class based on the training examples. The predicted class of a new observation is the one where the distance between its centroid and the latent components is minimal based on the Euclidean (Centroids) or Mahalanobis distances [195]. The analysis of variable loading weights on each component allows identifying the most important variables for the classification that can represent biomarkers of an output group. In addition, 43 CHAPTER 2. STATE OF THE ART the calculated correlations allow for defining relationships between variables from different datasets. 2.3.2.2 Network-based methods Network-based methods have also been used to integrate multi-omics data and provide an intuitive way to model the interactions between biological molecules. Networks are usually used to represent biological systems and modelled as graphs, wherein nodes are biological entities, such as genes or proteins, and edges are links between two entities, representing their interactions. Multi-omics data can be integrated as attributes of nodes and edges, and graph measures, like degree and connectivity, can be useful for the identification of valuable biological information. There are several biological networks with different features, such as protein-protein interaction networks, representing undirected physical interactions between proteins, and gene-co expression networks, which represent the correlations between gene expression levels across different conditions. Additionally, multiplex and heterogeneous multilayered networks have been developed to connect multiple biological domains. Both types are composed of different layers and interactions between them, represented by inter-layer links, as well as interactions between nodes within the same layer. However, while in multiplex networks, each layer represents a different characterisation of the same nodes, multilayered networks are composed of layers of different node types [196] (Figure 14). These networks represent a flexible framework to integrate multi-omics data, in which each layer represents a type of omics data, and inter-layer links represent correlations between different omics types. Network diffusion and other ML algorithms have been used for integrative analysis of multi-omics networks and were recently reviewed in [196, 197]. Figure 14: Multiplex and heterogeneous multilayered networks. A) A multiplex network is composed of layers with different measurements for the same set of nodes (e.g. genes). B) A heterogeneous multilayered network consists of layers of different sets of nodes (e.g. genes, proteins, and metabolites). Both types of networks include connections within the same layer and between layers. 44 2.3. MULTI-VIEW LEARNING FOR MULTI-OMICS DATA INTEGRATION 2.3.2.3 Kernel-based methods Kernel-based methods are a class of pattern analysis algorithms that have been widely used in classification, regression, clustering, and feature extraction approaches [182]. These methods map the original data to a higher-dimensional space, called the feature space, using kernel functions, which measure the similarity between data observations as the inner product between representations in the feature space [181]. The main advantages of kernel-based methods are that they only require defining the kernel function, can integrate several data types, and are dimension-free, meaning that optimisations do not depend on the number of data features [181, 182]. The most popular kernel-based algorithm is Support Vector Machine (SVM) [198] described above, which has been widely applied to prediction problems in biology [199]. In the context of multi-omics data, as the definition of the optimal kernel function can be difficult, Multiple Kernel learning (MKL) approaches [200] have been used. MKL technique first computes a kernel matrix for each omics type and combines these matrices to generate a single kernel matrix of integrated omics data. All kernel matrices must be projected on the feature space to be correctly combined. Therefore, as this method performs a transformation-based integration, the detection of interactions between different omics types can be more difficult, which represents the main limitation of kernel-based methods [181]. 2.3.2.4 Multi-omics studies in plants As plant responses to biotic and abiotic stresses are complex mechanisms that require strong regulation and multiple interactions between different cellular components, studies integrating different levels of omics are extremely important to provide a comprehensive view of plant acclimation. Most multi-omics studies of plants perform parallel or post-analysis data integration, in which the different omics datasets are analysed individually, and then key features of each dataset are combined into a new dataset or network 5. Furthermore, simple correlation analyses, such as Pearson or Spearman methods, have also been put forward for integrating and comparing two different omics datasets [201]. For example, the work of Ghan et al. [202] has integrated transcriptomics, proteomics, and metabolomics data to analyse and differentiate biochemical features from different grapevine cultivars. Dimensionality reduction of each dataset was achieved by PCA and the relationship between transcript and protein abundances was assessed through linear regression models and pairwise computation of Pearson’s correlations. Another example is the study of Zaini et al. , which used transcriptomics, proteomics, and metabolomics data to analyse the mechanisms underlying the response of Vitis vinifera to Xylella fastidiosa infection. In this case, the authors calculated Pearson’s correlation between all pairs of samples of all datasets, and samples of the same omics dataset showed a higher correlation than the samples of the same group of grapevines (infected vs non-infected grapevine) [203]. Thus, although these studies comprise more than one omics dataset, they are still limited as only pairwise correlations between samples were performed, not considering interactions between different samples or omics types. However, more sophisticated correlation methods and regression models, such as CCA, PLS and 45 CHAPTER 2. STATE OF THE ART O2PLS, and multi-omics networks have been applied to study plants 5. Rajasundaram et al. [204] have studied the relation between cell wall polysaccharide composition and the characteristics of cotton fibres by integrating phenomics measurements and glycomics data. CCA was applied globally and simultaneously to model the association between glycan measurements and multiple fibres’ characteristics. Then, sPLS was used to predict the cell wall polysaccharides that play a crucial role in the development of fibre characteristics. Bylesjo et al. [193] has investigated the effects of different light conditions on wild-type Populus tremula x Populus tremuloides (hybrid aspen) by applying the O2PLS method to integrate transcriptomics and metabolomics measurements under long and short-day conditions, identifying the key transcripts and metabolites that defined most of the systematic variation across the two datasets. A previous study has integrated transcriptomics, proteomics, and metabolomics data to identify stagespecific biomarkers for berry development and withering. First, PCA and pairwise O2PLS discriminant analysis were applied to each dataset to group observations and identify variables and putative biomarkers associated with those groups. The predictive latent variables identified for each dataset were integrated pairwisely by O2PLS to identify correlated variables across different datasets [205]. Later, the O2PLS method was extended to the OnPLS method [206], which generalises to more than two datasets. This extension was used to integrate transcriptomics, proteomics, and metabolomics data from wild-type and mutant hybrid aspen plants, to study multi-level oxidative responses in plants [207]. Anesi et al. [208] have studied the effect of environmental factors ( terroir ) on berry composition in grapevines of seven different vineyards over three years, using transcriptomics and metabolomics data. Exploratory and correlation analysis were performed with PCA and PLS-based discriminant analyses to investigate differences in the berry metabolome composition for each vineyard and identify the metabolites that best differentiate between terroirs . Another multi-omics study has analysed gene expression data, metabolomics, and proteomics to predict phenotypic traits of S. tuberosum (potato) [209]. Random Forests were applied to each dataset to identify the features that significantly explained the variation in each quality trait. These features were used to construct a partial correlation network for each trait, with genes, metabolites, proteins, and traits as nodes and correlation values as edges. Network analysis was also used to investigate the phenylpropanoid composition of berries, integrating gene co-expression data and interactions between micro RNA (miRNA) and genes and long non-coding RNA and genes. The integrated network includes genes, transcription factors, and both RNA types as nodes and the interactions and correlation values as edges [210]. Another example is the work of Jiang et al. [211], who have combined genomics, transcriptomics, proteomics, and phenomics data from Z. mays and built a multi-omics network to obtain insights into its development. First, weighted networks were created, one for each data type, and then these were fused into the final weighted network by iteratively updating each network with data from other networks, making them more similar at each step. Finally, time-series gene expression datasets from the Chlamydomonas reinhardtii microalgae under 46 2.3. MULTI-VIEW LEARNING FOR MULTI-OMICS DATA INTEGRATION light and dark conditions were analysed to discover functional links between conditions [212]. Each condition was considered a dataset, and co-expression networks were built for each dataset, which were then aligned into a single network and clustered to identify the genes linking functions from different datasets [212]. Table 5: Examples of plant multi-omics studies. Author Ref. Application Method Omics Ghan 2015 [202] Assess biochemical differences in V. vinifera cultivars PCA, Pearson Correlations transcriptomics, proteomics, metabolomics Zaini 2018 [203] Analyse V. vinifera metabolic response to Xylella fastidiosa infection Pearson Correlations transcriptomics, proteomics, metabolomics Rajasundaram 2014 [204] Study the relation between cell wall polysaccharide composition and cotton fiber characteristics CCA, sPLS glycomics and phenomics Bylesjo 2007 [193] Analyse the effects of different light conditions on P. tremula x tremuloides O2PLS transcriptomics and metabolomics Zamboni 2010 [205] Predict biomarkers for berry development in V. vinifera O2PLS transcriptomics, proteomics and metabolomics Srivastava 2013 [207] Study oxidative responses in P. tremula x tremuloides OnPLS transcriptomics, proteomics and metabolomics Anesi 2015 [208] Analyse the terroir effect on berry composition of V. vinifera PCA, PLS, O2PLS transcriptomics and metabolomics Acharjee 2016 [209] Predict phenotypes of S. tuberosum Random Forest, Network analysis transcriptomics, proteomics and metabolomics Jiang 2019 [211] Study Z. mays development Network analysis genomics, transcriptomics, proteomics and phenomics Nguyen 2019 [212] Study the relation between day and night metabolism in C. reinhardtii Network analysis transcriptomics light and dark conditions 2.3.3 Combining Constraint-based Modelling and Machine Learning So far, ML and Constraint-Based Modelling (CBM) approaches have been mostly applied independently in biological and biomedical research. However, their combination holds great potential due to their common formulations and complementary characteristics. Recently, the first studies combining ML and CBM approaches have emerged and were previously reviewed in [8–10, 168, 169, 213–215] The integration of ML and CBM comprises three main cases: fluxomics analysis, multi-omics analysis, and generation of constraint-based models and fluxomics (Figure 15). In fluxomics analysis, the flux 47 CHAPTER 2. STATE OF THE ART distribution predicted by CBM methods is analysed by ML methods. In multi-omics analysis, omics data can be included as GSMMs’ constraints to create context-specific models and generate more accurate flux predictions. The predicted fluxes can be integrated with experimental omics to be jointly analysed by ML methods. In the third case, ML is trained with experimental omics data to predict metabolic models and fluxomics data. All three cases can apply supervised or unsupervised ML methods. Thus far, these studies were mainly applied to bacteria, yeast, and human cells, but not to plants. In the following sections, we review the representative studies of the field and summarise them in Table 6. Figure 15: Type of analyses combining constraint-based modelling and machine learning. Fluxomics analysis consists of applying ML to the fluxomics data predicted by metabolic models’ simulations. In multi-omics analysis, omics data can be integrated within metabolic models to generate context-specific fluxomics data, which can be analysed by ML in combination with omics data from high-throughput technologies. Alternatively, ML can be trained with omics datasets to produce or improve metabolic models or fluxomics data. 2.3.3.1 Fluxomics analysis In the following examples, fluxomics data is generated by CBM methods and analysed by ML. Although PCA has been widely applied to simplify and identify patterns in metabolic data, its results are complex and difficult to interpret biologically. Therefore, two approaches, named Principal Elementary mode Analysis (PEMA) [216] and Principal Metabolic Flux Mode Analysis (PFMA) [217], have combined PCA and CBM to identify the flux modes that explained most flux variance and have minimum deviations from a steady-state condition. The PEMA approach was extended to dynamic conditions using supervised ML (dynEMR-DA) in a subsequent work [218]. Here, dynamic EFMs were defined as partially activated EFMs at each time point of the simulation. A small kinetic model of S. cerevisiae was simulated under different conditions. The 48 2.3. MULTI-VIEW LEARNING FOR MULTI-OMICS DATA INTEGRATION non-steady-state flux distributions were decomposed into a set of dynamic EFMs, which were examined by discriminant analysis to identify the pathways that best differentiated between conditions. Hierarchical clustering was used by Magnusdottir et al. [219] to predict ecological interactions between human gut bacteria. The models were simulated alone and paired with every other model to represent cogrowth under different fibre diets and oxygen conditions. The relative fitness was calculated for each pair of organisms and used to define the type of interaction. Lastly, the ratio of pairwise interaction types was clustered per condition and per taxonomy, which has resulted in three main clusters comprising microbes with different carbohydrate fermentation capabilities, suggesting that this capability may define the types of interactions between microbes. Interactions of human gut bacteria were also predicted by DiMucci et al. [220] but using supervised ML and dFBA. Single and pairwise simulations were performed using dFBA, and the relative final biomass was used to classify the interactions as negative or non-negative. A random forest (RF) classifier was trained with vectors representing the presence or absence of exchange reactions in each organism to predict potential interactions between two microbes and identify relevant fluxes for the prediction. Another example is the study of Shaked et al. [221] that has used ensemble learning to predict drug side effects. A human GSMM was used to calculate the flux bounds of the reactions through FVA after knocking out the genes that represent drug targets. These reaction bounds were used as features to an ensemble of Support Vector Machines (SVMs), where each model represented a side effect, resulting in a list of all potential side effects of the metabolically acting drug. Other studies have trained ML models with fluxomics data obtained by CBM methods to predict microbial production rates under different bioprocess settings [222, 223]. Recently, this strategy was used to predict amino acid concentrations in a fed-batch Chinese hamster ovary (CHO) cell culture. The metabolic model was constrained with experimental measurements and predicted the initial amino acid consumption rates. Then, the flux predictions were refined and extended by linear regressions to a timecourse profile [224]. Another study tried to clarify the glycosylation process by training Artificial Neural Networks (ANNs) with the fluxes of the reactions involved in nucleotide sugar donor synthesis, which were calculated by a stoichiometric model of CHO cells, to predict the glycan distribution of the antibodies produced [225]. 2.3.3.2 Multi-omics analysis Multi-omics analysis involves the integration of predicted fluxomics with experimental data using ML. For instance, this approach was used to predict essential genes [226] and reactions [227] and yielded better results than using only CBM methods. Li et al. [228] have created condition-specific models by integrating gene expression data of cancer cell lines under different environments within a human GSMM. These models were simulated through FBA, and the K-nearest neighbors (KNN) model used the resulting fluxes to predict new targets for cancer drugs. 49 CHAPTER 2. STATE OF THE ART Following a two-stage data integration strategy, Kim et al. [229] have developed a normalised, wellannotated multi-omics database for E. coli to provide high-quality data for data-driven predictive analysis. Hence, ML models were trained with experimental data, including transcriptomics, proteomics, metabolomics, and growth rates, and with fluxomics data obtained by condition-specific models, which resulted from the integration of proteomics and transcriptomics with a GSMM. This work was the first to integrate a comprehensive set of omics to train an ML model. Recently, Culley et al. [230] have integrated transcriptomics and fluxomics data of different S. cerevisiae mutants to predict growth, using three different strategies: early, intermediate, and late integration. The strain-specific fluxomics data were obtained by simulating the models constrained with the transcriptomics data. Gene expression and fluxomics were analysed separately and as a single dataset by ML models and feature selection was applied to reduce dimensionality for the early integration. In the intermediate integration, two multi-view methods were applied: Bayesian Efficient Multiple-Kernel Learning (BEMKL), which creates and combines different kernel matrices for each dataset, and a multimodal artificial neural network (MMANN), that contains a layer for each dataset fused via additional layers. Finally, RFs trained with each dataset independently were combined in an ensemble model for the late integration. The authors concluded that adding fluxomics to gene expression makes the results more accurate and biologically interpretable. This study was extended by Magazzù et al. [231] who showed that regularised linear models could outperformed MMANN in multi-omics analyses and highlighted the relevance of using fluxomics for better understanding the interactions among genes and phenotypes. Lewis et al. [232] have integrated predicted fluxomics with experimental omics to overcome the lack of metabolomics in cancer datasets and created an ML classifier to identify biomarkers for radiation resistance. Context-specific models were generated by integrating transcriptomics and mutation data from radiation-resistant and non-resistant tumours. The FBA-predicted fluxomics were integrated with experimental omics using the late integration approach: multiple classifiers were trained on an individual dataset and combined in a meta classifier that calculates the final probability of radiation resistance. Regarding drug side effects, Guebila et al. [233] have integrated drug-induced gene expression data within a metabolic model of the small intestine epithelial cells to generate drug-specific fluxomics data. Gene expression and the predicted fluxomics were trained by a multilabel SVM to predict gastrointestinal drug effects and the drugs were clustered according to their metabolic and transcriptomic profiles which give new insights into the adverse reactions in the gut. In another study, Vijayakumar et al. [213] proposed a pipeline that applies FBA and ML to improve phenotypic prediction in cyanobacteria. Condition-specific models were constrained by transcriptomics data and simulated using multi-objective FBA with three goals: biomass, photosystems I and II, and ATP maintenance reactions. Then, ML was trained with transcriptomics and predicted fluxomics which allowed the identification of key genes and reactions related to each condition. This pipeline clarified the mechanisms used by cyanobacteria to deal with variations in light intensity and salinity that could not be detected using transcriptomics alone. Kavvas et al. [234] presented the Metabolic Allele Classifier (MAC), a metabolic model-based ML classifier that uses FBA to predict allele-specific antimicrobial resistance. MAC was formulated within the 50 2.3. MULTI-VIEW LEARNING FOR MULTI-OMICS DATA INTEGRATION FBA structure but using allele-specific flux capacity constraints and antibiotic-specific objective functions. This method takes the genome sequence of a Mycobacterium tuberculosis strain as input and classifies the strain as either resistant or susceptible to a specific antibiotic by optimising the antibiotic-specific objective function. Thus, MAC uses linear programming that acts as an ML classifier, in which the predicted flux state corresponds to each class, elucidating the biochemical processes leading to antibiotic resistance. Lastly, a deep-learning approach, entitled DeepMetabolism, was developed to predict E. coli phenotypes, using CBM, biological knowledge, and gene expression data to define the neural network structure [235]. The first step is unsupervised pre-training and consists of an autoencoder with five layers: the first three represent gene expressions, protein abundances, and phenotypes, respectively, while the fourth and fifth layers are decoders representing reconstructed protein and gene layers, respectively. The layers were connected using biological knowledge: GPR rules from the GSMM connected the first and second layers, and GSMM’s simulations identified essential reactions for each phenotype to connect the second and third layers. The second step consists of supervised training, using the same autoencoder model, though only with the first three layers trained to predict phenotypes. 2.3.3.3 Generation of constraint-based models and fluxomics Instead of using ML to analyse fluxomics data, ML models can be trained with experimental data, and the results can be used to create models or improve flux predictions [96, 236–238] For instance, a web-based platform called Mflux was developed to predict the central bacterial metabolism fluxes using ML models [236]. The models, namely SVM, KNN, and decision trees, were trained with experimental fluxomics data under different conditions to predict the flux of the central metabolism reactions and associate metabolic fluxes with the conditions. As the fluxes predicted by ML may not follow the stoichiometry of metabolic networks, quadratic programming was applied to adjust the predicted fluxes to satisfy the stoichiometric constraints. ML can also be used to preprocess omics data and define additional constraints for CBM. For instance, Brunk et al. [237] presented a workflow that combines ML, metabolomics, and a GSMM to characterise E. coli strain variation. PCA is applied to reduce the dimensionality of metabolomics data and identify key metabolites driving strain variation. Then, the preprocessed metabolomics data were used to adjust the flux bounds of the GSMM of E. coli to achieve a better characterisation of the flux network of each strain. Another example is the unsteady-state flux balance analysis (uFBA) workflow for integrating timecourse metabolomics to predict metabolic fluxes in dynamic conditions [96]. The first step is to discretise nonlinear metabolomics data into time intervals of linear metabolic states using PCA. Then, the authors perform a linear regression to estimate the change rate for each metabolite for a specific state, using a 95% confidence interval of the rate as reaction flux bounds in a constraint-based model. As metabolomics data can be incomplete due to experimental errors, uFBA also implements a relaxation algorithm to determine the minimum number of unmeasured metabolites whose concentration needs to vary for the model to be feasible. Finally, another study has trained ANN models with experimental enzyme concentrations to predict the 51 CHAPTER 2. STATE OF THE ART fluxes for the NADH consumption by glycerol-3-phosphate dehydrogenase in the upper part of glycolysis. In this case, no kinetic parameters or stoichiometric constraints were considered but a large and diverse dataset of enzyme concentrations is needed to obtain accurate flux predictions [238]. 2.3.3.4 Other applications ML has also been indirectly applied to other steps of GSMM reconstruction, namely genome annotation and gap-filling [8]. For instance, an approach used several multiclassification ML models to classify enzymatic reactions using a dataset of hydrolysis and redox reactions. The ML models predicted whether oxidoreductases or hydrolases catalysed specific reactions and the subclasses for each type [239]. Another method named DeepAnnotator applies deep learning models trained with DNA embeddings to identify genes and annotate prokaryotic genome sequences [240]. Regarding gap-filling, a set of ML models predicted the pathways present in an organism [241]. The models were trained with curated information on which pathways are present and absent in six organisms, achieving performance similar to other pathway prediction algorithms. Another approach uses association rule mining trained with UniProt entries to predict metabolic pathways in prokaryotes [242]. As mentioned above, using datasets with a large number of samples is crucial to obtain good ML models. The studies cited in Table 6 show that the number of samples used varies greatly depending on the type of ML and the application, ranging from a few dozen to thousands of samples. Generally, unsupervised studies use datasets with fewer samples, except for the study of Magnusdottir et al. [219], which includes over 200000 samples. Furthermore, the studies for bacteria and yeast usually have more samples than those using human data, which is expected as data acquisition is cheaper and more accessible for smaller organisms. The study of Lewis et al. [232] was the human study that used the most extensive dataset, including data for 915 patient tumours. The problem of having datasets with few samples is even more evident for plants due to the lack of efforts to collect, integrate and standardise plant omics datasets and experimental conditions. Usually, some procedures are adopted to deal with small datasets. First, it is common to choose simpler models with few parameters, such as logistic regression, to avoid overfitting. In addition, the use of regularization techniques and the creation of ensemble models enhances the power of generalisation. Second, it is also important to remove outlier observations and to select the relevant features to decrease the bias in the dataset. Another strategy that can improve the results is to extend the dataset by creating synthetic observations or integrating data from other sources, which is still very challenging. If the dataset is unbalanced, one solution is to perform an oversampling, which consists of increasing the number of observations of the minority class [243]. Finally, choosing the method for model validation is also important to get realistic performance metrics. For instance, the Nested Cross Validation approach was proven to make an unbiased performance evaluation [244]. Furthermore, other strategies have been developed to overcome the low-quality data problem in diverse applications, such as decomposition methods to generate extra data samples and impute missing features [245]. 52 3.1. INTRODUCTION 3.1 Introduction The development of high-throughput technologies has revolutionised the field of molecular biology by generating huge amounts of data that can give insights regarding the gene, protein, or metabolite content of biological samples, which may lead to new knowledge. This rise in data and knowledge has led to an increase in the number of available biological databases that store, organise and facilitate access to all biological information. As described before, plant metabolic data can be found in different generic metabolic databases, such as KEGG [27], MetaCyc [28], and PlantCyc [34], or in species-specific databases created from MetaCyc, such as AraCyc for A. thaliana , available at PMN [34]. These databases are very important to assist in the study of metabolism, but there are still some limitations that hamper the integration of information from different sources, which is crucial for the reconstruction of GSMMs. First, a database Application Programming Interface (API) is missing or limited to a set of functions that do not allow a flexible extraction of all the information needed for reconstructing a GSMM. Also, the same metabolite, reaction, protein, or pathway has different names and identifiers in the different sources, and cross-references between databases are not always available, which makes the automatic integration of data almost impossible. In addition, after database updates, some identifiers are removed or updated to new identifiers without keeping track of the different versions. Hence, the old identifiers in the GSMMs cannot be found in the new versions of the database and available crossreferences in other databases would be outdated too. This leads to the existence of incomplete and inconsistent information in the different databases that cannot be integrated. Maintaining the data updated and clean in all these databases requires a combined and time-consuming human effort, which is not always possible. Therefore, the use of data management systems to store large volumes of biological data is very relevant and can help to overcome the current limitations [248]. With this in mind and intending to reconstruct plant GSMMs, a repository named iplants was developed in this work to integrate metabolic data from PlantCyc and MetaCyc databases, enzyme data from UniProt, as well as the content of plant GSMMs. The repository includes tools to extract and transform data from different sources and unify the same entities into common objects. Also, a pipeline was created to allow for automatic database updates and to keep track of older versions. In addition, an API was created with important functions that facilitate automatic access to the repository and the collection of the data needed for metabolic model reconstruction. Usually, after reconstructing a generic plant GSMM, omics data, mainly transcriptomics, are integrated with the model to create specific models for the different tissues of the plant. Therefore, another pipeline was developed to extract the metadata of the omics datasets available on GEO and ArrayExpress and save the information in iplants to facilitate the analysis of available omics datasets and the selection of the most suitable dataset for the integration with the GSMM. This pipeline can be run every time new datasets become available in the source databases to keep the iplants information up to date. 59 CHAPTER 3. IPLANTS REPOSITORY 3.2 Data warehousing The creation of a repository that integrates data from multiple sources requires extensive planning, schematisation, and standardisation to deal with different levels of data heterogeneity. As these tasks are usually not straightforward and extremely laborious, several tools and procedures were created to ease the process of data integration. Data warehousing is a system that processes and centralises large amounts of dispersed data from different sources into a unified repository, easing the extraction of valuable insights from data [249]. This methodology resorts to Extract, Transform and Load (ETL) tools, which are responsible for extracting data from multiple sources, transforming the data into predefined formats and structures, and finally loading the transformed data into a unified and standardised repository [250]. Usually, these steps are performed sequentially in a pipeline, as represented in Figure 16. Figure 16: A simplified ETL-based pipeline to extract, transform, and load heterogeneous data from different sources into a data warehouse. The first step consists of extracting data from different external sources which can be flat files or databases that can be accessed through APIs. The unfiltered, untransformed data is usually stored in a staging area, which can be a non-integrated database or a simple file folder. This data is then transformed into a specific format that matches the schema of the target system. As different data sources often have distinct representations and formats, several procedures, such as filtering and joining, are adopted to standardise data attributes. Finally, the transformed data is loaded into the target database after verifying data integrity, which guarantees that key fields are not missing and that previously loaded data is not affected. Data maintenance greatly benefits from the implementation of ETL tools, as these allow periodic automatic updates of the database as well as the integration of new data sources without affecting the existing system [250]. However, ETL only offers the generic guidelines for creating a data warehouse. Specialised knowledge of the data and the purpose of the repository is required to define the adequate database schema and data integration rules. A data warehouse is based on a DataBase Management System (DBMS) which is responsible for defining the database schema and managing and querying the stored data. Traditionally, the relational DBMS is the most used. It is based on the relational model [251], which organises data into tables that can 60 3.3. OVERVIEW OF THE IPLANTS REPOSITORY be linked based on a common attribute between tables. This model offers great data integrity, consistency, and low redundancy, and is suitable for well-structured data. Data can be stored, manipulated, and extracted using Structured Query Language (SQL) [252]. In recent years, NoSQL databases (standing for ”not only SQL”) [253] have become more popular as these are non-tabular databases that allow for more flexible schemes and horizontal scalability, being more suitable for large volumes of unstructured data, which is the case of biological data. The most popular NoSQL DBMSs are described in Table 7. Table 7: Description of the most popular NoSQL database models. NoSQL database models Description Example Key-value store Data is stored as key-value pairs, mapping unique keys to associated records Redis [254] Document store Data is stored in flexible documents with formats like JavaScript Object Notation (JSON) or Extensible Markup Language (XML) MongoDB [255] Column store Data is stored by columns instead of rows Cassandra [256] Graph store Data is stored in graphs with nodes and edges representing relationships in data Neo4j [257] 3.3 Overview of the iplants repository The data warehouse proposed in this work includes ETL tools to extract, transform, and integrate data to build a repository of plant metabolic data relevant to the reconstruction of GSMMs, as well as to collect and organise the metadata of plant omics datasets. This repository is also composed of two NoSQL databases, a graph store model using Neo4j [257] and a document store model using MongoDB [255]. The subsystems of this repository are schematised in Figure 17 and include data extraction, data transformation, data integration, data loading, data lake, and the Central Data Storage (CDS). In addition, an API was created to allow access to the CDS. First, data is automatically extracted from relevant sources of metabolic or omics data, including database flat files and metabolic models, which are saved in the data lake. Then, transformers process the collected data by cleaning, filtering, and converting it into the predefined schema. This module includes parsers for reading the files in the DAT and Simple Omnibus Format in Text (SOFT) formats and uses CobraPy [258] to read the metabolic models. The transformed data is stored in JSON files in the data lake subsystem. Before the loading process, integration rules are applied to check if the new object identifiers already exist in the database or not, and decide which objects should be created or updated. Finally, the loading subsystems perform CRUD (Create, Read, Update, and Delete) operations with Django and using Neomodel, an Object Graph Mapper (OGM) for the Neo4j database, and Mongoengine, an Object Document Mapper (ODM) for MongoDB. 61 CHAPTER 3. IPLANTS REPOSITORY These ETL actions are organised into pipelines that are managed by Luigi, which is a Python package that manages data processing workflows, handling task dependencies and failure resolution. In addition, an API was created to allow access to the CDS. This API is based on Django and Django REST framework and includes useful functions to retrieve the data needed for model reconstruction. The tools and databases in this repository were containerised using Docker. In detail, the two databases are running in two containers, and the ETL tools and API are available in another container running in parallel. These tools are available at the https://github.com/martaS95/iplantsdb and https: //github.com/martaS95/iplantsdb_omics GitHub repositories. Figure 17: Overview of the iplants repository. The extraction subsystem downloads the relevant data sources, which are saved in the data lake subsystem. The transformation subsystem reads and transforms the collected data and saves the transformed data in the data lake as JSON files. The integration subsystem integrates data through a set of rules that ensure data uniqueness. Lastly, the integrated data is loaded to the CDS by the loading subsystems using Neomodel for Neo4j and Mongoengine for MongoDB. In addition, an API is available to allow user access to the data. The tools and the databases are deployed in Docker containers and the pipelines are managed by Luigi. 3.3.1 Central Data Storage Subsystem The CDS subsystem comprises two databases, the Neo4j graph store and the MongoDB document store. Both databases save information about the same objects, but the Neo4j database focuses on the relationships between the different data objects, such as reactions and enzymes, while MongoDB saves the metadata of each object. The idea of using two different databases for storing the data was to speed up the extraction of the relationship information between objects from Neo4j. 3.3.1.1 Neo4j Neo4j is the most popular DBMS of the graph store model. In a graph database, data is organised as nodes and edges of a graph. Usually, nodes represent the entities while edges are the relationships between node entities. Both nodes and relationships can have properties, which are attributes describing 62 3.3. OVERVIEW OF THE IPLANTS REPOSITORY the objects. Cypher is the query language used to perform CRUD operations in a Neo4j database. Neo4j databases can be easily extended due to their simple and flexible schemes that prioritise the representation of connections in the data [257]. The Neo4j database structure follows generic rules adapted from graph theory. A database object is an instance of an entity, such as a metabolite or reaction, with a unique identifier associated with a namespace related to the entity. An object can have many properties (attributes) with several data types. A relationship is a directed edge between two different objects. It is also associated with a namespace according to the type of interaction between the two objects and can have many properties with different types as well. Two objects can have several relationships in the same namespace . Also, two objects are considered different only if they have different identifiers and namespaces . Hence, the Neo4j database of iplants comprises a single universal graph containing all objects and relationships, including 7entities and 13 relationship types. Each entity represents a namespace in the graph and all objects are associated with a single namespace . In detail, the Neo4j database is composed of the following entities: •Metabolite: A metabolite object represents a chemical compound transformed by a given reaction. •Reaction: A reaction object represents a biochemical reaction occurring in an organism. •Enzyme: An enzyme object represents a protein that catalyses a given biochemical reaction. •Pathway: A pathway object represents a biochemical pathway composed of a set of reactions. •Gene: A gene object represents a segment of DNA responsible for expressing a given protein. •Organism: An organism object represents a biological living system. •Metabolic Model: A metabolic model object represents a plant GSMM from which metabolite and reaction data were extracted. These entities, except for the metabolic model, are characterised by the following properties: entry_id , defining the object identifier, name , defining the name of the entity, database_version , defining the source from which the object was collected and timestamp defining the date and time the object was created or updated. It should be noted that not all objects have the property name as this information could be missing from the original data source. The metabolic model entity is defined by a model identifier ( model_id ), the organism , the author of the model, the year of reconstruction, and the timestamp . All entities and relationships between them are schematised in Figure 18. The reaction object is connected to the metabolite by two relationship types, ”REAC_USES_MET” and ”REAC_PRODUCES_MET” to distinguish the reactants and products of a reaction, respectively. Both relationships have the property stoichiometry that saves the quantity of a metabolite used or produced in a reaction. An enzyme object is linked to the reactions it catalyses through the relationship ”ENZ_CATALYSES_REACT”. Also, as an enzyme can be a protein complex composed of several monomers, an enzyme object can be linked to another enzyme object by the relationship ”COMPOSED_BY”, which stores the number of monomers in the property number . A pathway object is also connected to the reactions that belong to it, through the relationship ”PATH_HAS_REAC”. A gene object is linked to the enzymes it expresses, using the relationship ”GENE_EXPRESSES_ENZ”. The organism entity is linked to enzymes, genes, and pathways by the relationships ”ORGANISM_HAS_ENZ”, ”ORGANISM_HAS_GENE” and ”ORGANISM_HAS_PATH”, 63 CHAPTER 3. IPLANTS REPOSITORY respectively. Similarly, the metabolic model object is connected to an organism through the relationship ”BELONGS_TO” and to the metabolites, reactions, and enzymes it contains by the relationships ”MODEL_HAS_MET”, ”MODEL_HAS_REAC”, and ”MODEL_HAS_ENZ”, respectively. Figure 18: Neo4j database schema representing the relationships between the data. This includes the nodes for metabolites, reactions, enzymes, pathways, genes, organisms, and metabolic models. The nodes are defined by four attributes: database identifier, name, timestamp, and database version, except for the metabolic model node, which includes a model identifier, organism, author, year, and timestamp. 13 relationship types are represented in the database: reactions are linked to metabolites by two different types of relationships, defining their reactants and products, to enzymes, and pathways. These two nodes and genes are also linked to the organism node. Enzymes are linked to genes and can be linked to other enzymes, in the case of protein complexes that are composed of protein monomers. Finally, the metabolic model node is linked to an organism and to metabolites, reactions, and enzymes, which define its content. The Neo4j database was built with Django and using Neomodel, which is an OGM for the Neo4j graph database built on top of Python’s Neo4j driver. Neomodel is based on object-oriented programming and allows performing CRUD operations using simple Python objects instead of using Neo4j’s query language, Cypher. 3.3.1.2 MongoDB MongoDB is the most popular DBMS of the document store model. Document databases store data in flexible documents instead of using tables with fixed rows and columns. A document is a record in the database that stores data and related metadata of an object. Here, data is organised in field-value pairs, where field names are strings and values can have several data types, such as strings, numbers, arrays, or dictionaries. Documents can be written in several formats, such as JSON, XML, or YAML (Ain’t Markup Language), but JSON is the most popular choice for representing data. A collection is a group of documents that have similar schemes but can have different fields. For instance, an object of the metabolite collection can be added without the name attribute. Therefore, document databases offer an intuitive and fast way of storing unstructured data and can be easily extended with new data due to 64 3.3. OVERVIEW OF THE IPLANTS REPOSITORY their flexibility [253]. MongoDB saves documents as binary JSON (BSON) files as it allows for more data types. It has its own query language and API methods for performing CRUD operations but has support for several programming languages, such as Python [255]. In MongoDB, each document requires a unique identifier field ( _id ) that acts as a primary key. If the _id is not defined by the user, an automatic value is generated by MongoDB. In iplants , the object identifiers match the identifiers of the source database. In total, MongoDB includes eight collections, matching the different entities in Neo4j, and a collection for saving the metadata of transcriptomics datasets. The saved attributes differ depending on the collection and are described below. Not all documents of a collection have these fields. The value data type for each field is also indicated: str stands for string , which is a sequence of characters, int stands for integer , which is a whole number (not a fraction), dict is a dictionary, and boolean only takes two possible value: ”true” or ”false”. Metabolite •entry_id ( str ): identifier of the metabolite in the database •common_name ( str ): name of the metabolite in the database •synonyms ( list ): other names for the metabolite •crossrefs ( dict ): cross-references of the metabolite in other databases •met_type ( list ): compound classes •formula ( str ): chemical formula of the metabolite •inchi ( str ): inchi representation of the metabolite •inchikey ( str ): inchikey representation of the metabolite •smiles ( str ): smiles representation of the metabolite •models ( dict ): metabolic models that contain the metabolite •state ( str ): ”deprecated” if the metabolite is not in the new database version •database_version ( dict ): database version from which the metabolite data was retrieved •timestamp ( datetime ): date and time of the document creation or update Reaction •entry_id ( str ): identifier of the reaction in the database •common_name ( str ): name of the reaction in the database •synonyms ( list ): other names for the reaction •crossrefs ( dict ): cross-references of the reaction in other databases •direction ( str ): reaction directionality (reversible or irreversible) •ecnumber ( str ): EC number associated with the reaction •in_pathway ( dict ): pathways in which the reaction participates •reactants ( dict ): reactants of the reaction and respective stoichiometry •products ( dict ): products of the reaction and respective stoichiometry •genes ( dict ): genes associated with the reaction 65 CHAPTER 3. IPLANTS REPOSITORY •enzymes ( dict ): enzymes that catalyse the reaction •reaction_type ( str ): type of the reaction (enzymatic or transport) •by_complex ( boolean ): ”True” if the reaction is catalysed by a complex protein, otherwise ”False” . •sub_reactions ( dict ): lumped reactions that combined form this reaction •lower_bound ( int ): lower bound for the reaction in the model •upper_bound ( int ): upper bound for the reaction in the model •compartment ( dict ): compartments of the reaction •models ( dict ): metabolic models that contain the reaction •state ( str ): ”deprecated” if the reaction is not in the new database version •database_version ( dict ): database version from which the reaction data was retrieved •timestamp ( datetime ): date and time of the document creation or update Enzyme •entry_id ( str ): identifier of the enzyme in the database •common_name ( str ): name of the enzyme in the database •synonyms ( list ): other names for the enzyme •crossrefs ( dict ): cross-references of the enzyme in other databases •genes ( dict ): genes that encode the enzyme •reactions ( dict ): reactions catalysed by the enzyme •organisms ( dict ): organisms known to express the enzyme •protein_type ( str ): type of the enzyme (complex or peptide) •component_of ( dict ): complex proteins of which the enzyme is a subunit •components ( dict ): subunits of the enzyme •uniprot_status ( str ): status of the enzyme entry in the UniProt database •uniprot_product ( str ): name of the enzyme in the UniProt database •uniprot_function ( list ): functions of the enzyme in the UniProt database •uniprot_location ( list ): subcellular location of the enzyme in the UniProt database •sequence ( str ): amino acid sequence of the enzyme •state ( str ): ”deprecated” if the enzyme is not in the new database version •database_version ( dict ): database version from which the enzyme data was retrieved •timestamp ( datetime ): date and time of the document creation or update Gene •entry_id ( str ): identifier of the gene in the database •common_name ( str ): name of the gene in the database •synonyms ( list ): other names for the gene •crossrefs ( dict ): cross-references of the gene in other databases •reactions ( dict ): reactions catalysed by enzymes encoded by the gene 66 3.3. OVERVIEW OF THE IPLANTS REPOSITORY •enzymes ( dict ): enzymes encoded by the gene •sequence ( str ): nucleotide sequence of the gene •state ( str ): ”deprecated” if the gene is not in the new database version •database_version ( dict ): database version from which the gene data was retrieved •timestamp ( datetime ): date and time of the document creation or update Pathway •entry_id ( str ): identifier of the pathway in the database •common_name ( str ): name of the pathway in the database •synonyms ( list ): other names for the pathway •organisms ( dict ): organisms that contain the pathway •reactions ( dict ): reactions included in the pathway •super_pathways ( list ): pathway class •pathway_links ( dict ): pathways that this pathway is linked to •state ( str ): ”deprecated” if the pathway is not in the new database version •database_version ( dict ): database version from which the pathway data was retrieved •timestamp ( datetime ): date and time of the document creation or update Organism •entry_id ( str ): identifier of the organism in the database •common_name ( str ): name of the organism in the database •scientific_name ( str ): scientific name of the organism •taxid ( int ): taxonomy identifier of the organism •species ( str ): species of the organism •genus ( str ): genus of the organism •family ( str ): family of the organism •order ( str ): order of the organism •org_class ( str ): class of the organism •phylum ( str ): phylum of the organism •kingdom ( str ): kingdom of the organism •superkingdom ( str ): superkingdom of the organism •genes ( dict ): genes of the organism •pathways ( dict ): pathways of the organism •enzymes ( dict ): enzymes of the organism •database_version ( dict ): database version from which the organism data was retrieved •timestamp ( datetime ): date and time of the document creation or update Metabolic Model 67 CHAPTER 3. IPLANTS REPOSITORY •model_id ( str ): identifier of the metabolic model in the database •organism ( str ): name of the species •taxid ( int ): taxonomy identifier of the organism •year ( int ): year of model reconstruction •author ( str ): the author of model reconstruction •annotation ( dict ): results of DIAMOND annotation •genes ( list ): genes in the model •enzymes ( list ): enzymes in the model •reactions ( list ): reactions in the model •metabolites ( list ): metabolites in the model •pathways ( list ): pathways in the model •gprs ( list ): GPR rules in the model •timestamp ( datetime ): date and time of the document creation or update Transcriptomics •accession_number ( str ): database identifier for the omics dataset •database ( str ): database where the dataset is stored: GEO or ArrayExpress •title ( str ): title of the omics dataset •data_type ( str ): type of transcriptomics data •organism ( str ): species from which data was collected •platform_id ( list ): database identifier of the platform used •contributors ( list ): names of the authors of the omics study •overall_design ( str ): small description of how the dataset was obtained •samples ( dict ): samples in the dataset and their description •last_update_date ( datetime ): date and time of the document creation or update The MongoDB database was also built with Django but using Mongoengine, which is an ODM for the MongoDB document database and Python. Mongoengine is also based on object-oriented programming, allowing to perform CRUD operations using simple Python objects. 3.3.2 Data lake subsystem A data lake is a storage repository that saves large amounts of structured and unstructured data in its raw format as extracted from different sources. As data lakes store the original data, there is no need for predefined schemes or transformation functions. Then, the collected data, or a part of it, can be used for further analysis. The data lake in this repository consists of folders that save all the source raw files, which include several formats, such as DAT, Text File (TXT), Comma Separated Values (CSV), and FASTA, as well as the SBML or XML format of the metabolic models, and SOFT and Sample and Data Relationship Format 68 3.3. OVERVIEW OF THE IPLANTS REPOSITORY extracts and integrates the metabolic content of plant GSMMs into the repository (Figure 24). The first two pipelines are managed by Luigi, which executes all the tasks automatically and consecutively in the correct order, handling dependencies and errors. The last pipeline can not be run automatically because a manual curation step is required for accurate data integration. Figure 22: Pipeline for metabolic data update in iplants . The DAT files are downloaded from PlantCyc or MetaCyc databases and stored in the data lake folder. These files are parsed and the relevant information is filtered and transformed into objects with the same structure as database objects, which are saved in JSON files. Details on the organisms are not available on the DAT files. This information is retrieved from BioCyc through its API and NCBI Taxonomy database using the taxoniq Python package. The JSON files with the transformed data are parsed, and data is integrated and loaded according to the set of rules that ensure data uniqueness and consistency. In the case of a new Enzyme object, additional information is retrieved from UniProt when the cross-reference is available, mainly the amino acid sequence, function, protein name, and subcellular location. For new Gene objects, the nucleotide sequence is retrieved from NCBI databases. Finally, data is loaded into the databases using Neomodel for Neo4j and Mongoengine for MongoDB. This pipeline is managed by Luigi which allows the automatic execution of these tasks in the correct order, managing the dependencies and handling the errors. 3.3.8 Application Programming Interface The repository was built to serve as a metabolic data source for reconstructing plant GSMMs. Hence, this repository should allow other applications to access the data. Thus, an API was built to facilitate access to the repository data through programmed requests. In practice, two APIs were created, one for MongoDB and one for Neo4j, using Mongoengine and Neomodel, respectively, to perform CRUD operations in the databases. These were implemented using Django and Django REST framework that allows serializing database objects into several formats, like JSON, and provides a browsable interface for the API. This API is available at https://iplantsdb.bio.di.uminho.pt/ and includes a documentation schema created with the drf-spectacular package. Different views were created for each database: Neo4j was used to get the relationships between objects while MongoDB was used to get the metadata of an object. For instance, the reactions associated with a certain enzyme are retrieved from Neo4j while enzyme sequences are retrieved from MongoDB. The APIs include views to get all objects in the repository, details of an object, and create a new metabolic model object and link it to the related reactions, metabolites, and enzymes in the database. In addition, a view is available for updating the database. However, as MetaCyc requires a paid subscription, details of a subscribed account are required as input to update the MetaCyc data in the repository. 75 CHAPTER 3. IPLANTS REPOSITORY Figure 23: Pipeline for omics metadata update in iplants . The Biopython Python package is used to remotely access the GEO database and get the accession numbers of the studies of interest, filtering by organism and dataset type. Then, the GEOparse package is used to extract the SOFT files from the retrieved accession numbers. BioStudies database is accessed through its API to get the metadata of ArrayExpress studies and again, the accession numbers are filtered by organism and study type. These accession numbers are compared to the previous ones of GEO and the ones in common are ignored in this step as their metadata has already been extracted. For the unique accession numbers, metadata is extracted in JSON and SDRF formats. The files are then parsed and filtered in the transformation step and saved into JSON files with the desired structure to be loaded to MongoDB using Mongoengine. No integration rules are defined as only the objects with new accession numbers are loaded. This pipeline is managed by Luigi which executes these steps automatically and handles the dependencies and errors. Figure 24: Pipeline for integrating the content of plant GSMMs in iplants . Plant GSMMs are manually downloaded and parsed using CobraPy or pandas packages. The relevant information is filtered from the models and saved into CSV files with the desired fields for integration. A manual curation step is mandatory for correct data integration in the repository. A new column named ”biocyc” must be added to the CSV files to define the object identifier in MetaCyc or PlantCyc databases. After manual curation, the CSV files are then transformed into JSON files with the desired structure. Before integrating the data, a new object representing the metabolic model needs to be created in both databases. Then, the objects are loaded according to the integration rules and are linked to the metabolic model. This pipeline is not performed automatically because of the manual curation step that is crucial for correct data integration. 76 3.4. DATA INTEGRATION RESULTS 3.4 Data integration results 3.4.1 Central Data Storage statistics The CDS is mainly composed of metabolites, reactions, and enzymes as well as the relationships between these entities. The number of instances of each entity is present in Figure 25 for both MongoDB and Neo4j. According to the figure, the metabolite, reaction, and enzyme instances in MongoDB account for nearly 80% of all objects in the database. Genes represent 17% of the database objects while pathways and organisms represent only 4% each. These results also reflect the integration of nine plant GSMMs into the databases as well as the omics metadata in MongoDB. In total, 221 objects were created to save the metadata of V. vinifera omics datasets. Of these, 193 were from GEO and only 28 were retrieved from ArrayExpress . Most of these objects were related to experiments using microarray data (67%). Figure 25: Distribution of database objects by entity for MongoDB and Neo4j. The stacked bars show the relative frequency of the objects for each entity, namely metabolite, reaction, enzyme, pathway, gene, and organism. Metabolic model and omics objects are not shown as these represent less than 1% of database objects. Regarding Neo4j, similar results are observed at the node level. The number of metabolite, reaction, enzyme and organism instances is different in MongoDB and Neo4j because in Neo4j nodes are also created for entries that are not listed in the list of objects but are associated with another object. For instance, a reaction can have a product that is not included in the metabolite list. Hence, a new node is created for this metabolite and linked to the reaction node. In MongoDB, the product is listed in the products attribute of the reaction but no metabolite instance is created as no metadata is available for this metabolite. In total, Neo4j has more 1779 metabolites, 768 reactions, 20 enzymes, and 9organisms than MongoDB. In addition, Neo4j includes 247332 relationships between nodes which represent 72% of all database objects (nodes and edges) (Figure 26). From these relationships, more than 50% are between reactions and metabolites (42%) and reactions and enzymes (13%). The interactions between pathways and reactions account for 7% of the edges in the database while 14% represent the relationships of organisms with enzymes and pathways. The links of metabolic models with metabolites and reactions represent 13% of all relationships in the database. As the final goal is to use the repository for reconstructing plant GSMMs, the sequence content in the database is very important to allow for a genome annotation as accurate and complete as possible. In 77 CHAPTER 3. IPLANTS REPOSITORY Figure 26: Distribution of relationships in Neo4j. The pie chart represents the relative frequency of each relationship type in the database. MongoDB, 72% of enzymes have amino acid sequences and 40% of genes have nucleotide sequences. Improving these results is a very challenging task as it requires mapping the iplants identifiers with the identifiers from the genome annotation and this mapping is not always available. Usually, during model reconstruction, there is the need to search for additional information on a reaction or enzyme in other databases. Hence, it is important to map the identifiers of this repository with the identifiers of other databases. This mapping was saved in the cross-references attribute for different databases, such as KEGG, MetaNetX, ChEBI, PubChem, and UniProt. In addition to the sequence, location and function data of enzymes was retrieved from UniProt to improve object annotation. Figure 27 shows the relative frequency of metabolites, reactions, and enzymes that have some attributes that are specific to the entity. All objects in the database have the entry_id that is the identifier in the created repository. Almost all metabolites have a name, and more than 60% have cross-references for PubChem and MetaNetX databases. This percentage is lower for ChEBI (50%) and even lower for KEGG (only 34%). Regarding reactions, fewer objects have the attributes under analysis: 73% have an EC number, 65% a MetaNetX identifier, but only 30% have a KEGG identifier and only 14% have a name. Enzymes in the database were further annotated using data from UniProt when a UniProt identifier was available, which was the case for 63% of the enzymes. From these, 62% had an associated function, 48% had a protein name (product) and 27% had a subcellular location defined. In addition, 80% of all enzymes in the database have a name, and, as stated before, 72% have a protein sequence that was extracted from UniProt or TAIR, or databases. Hence, these results show that extracting UniProt data has significantly improved the functional annotation of the enzymes and it was crucial to get protein sequence 78 3.4. DATA INTEGRATION RESULTS Figure 27: Relative frequency of objects having each attribute. The analysed attributes depend on the entity. For metabolites, the attributes include entry_id , name, and the identifiers for KEGG, ChEBI, PubChem, and MetaNetX databases. For reactions, the same attributes entry_id , name, KEGG, and MetaNetX identifiers were analysed as well as the EC number. Finally, the enzyme attributes include entry_id , name, UniProt identifier, function, location, product, and sequence. data. Regarding organisms (Figure 28), the species belonging to the Viridiplantae kingdom represent 18% of all organisms in the database. 60% of the organisms are bacterial species while 10% are fungi. Archaea and Metazoa represent 5% and 4% of the organism objects. The remaining organisms are other eukaryotes (3%) and viruses (0.4%). More than 50% of the enzymes in the database are from bacteria while only 21% are from plants. This reflects that the knowledge about bacterial metabolism is way larger than that of plant metabolism. Figure 28: Distribution of organism and enzyme nodes by kingdom/ superkingdom. The stacked bars show the relative frequency of the objects distributed by different kingdoms/superkingdoms of life, mainly Viridiplantae, Archaea, Bacteria, Fungi, Metazoa, Eukaryota, and Viruses. 3.4.2 Integration results The integration results are shown in the following tables for both sources (Table 8) and the nine plant GSMMs (Table 9). As the results were similar, the statistics were retrieved from MongoDB. The only difference between databases is the extra number of nodes created in Neo4j, as explained before, which did not affect the integration results. All 19096 objects from PlantCyc were loaded into the database. The number of objects from MetaCyc was significantly higher, surpassing the 88000 objects. Of these, 16745 79 CHAPTER 3. IPLANTS REPOSITORY objects were also on PlantCyc, so their data from both sources was integrated according to the integration rules. Then, 71259 new objects were created when loading MetaCyc. Therefore, MetaCyc objects represent a large part of the database. Most objects from PlantCyc were also in MetaCyc. For metabolites, reactions, pathways, and organisms of PlantCyc, more than 90% were also on MetaCyc while for genes and enzymes, this percentage is lower but still higher than 70%. In total, 24333 metabolites were loaded, 19% of which are shared between the two sources. Regarding the other entities, 24% of reactions, 31% of pathways, 15% of enzymes, 14% of genes, and 17% of organisms were present in both sources. Table 8: Statistics for the integration of PlantCyc and MetaCyc databases in MongoDB. The table describes the number of objects of each source that were loaded into the database and shared by both sources. These numbers are distributed by entity, namely metabolites, reactions, enzymes, genes, pathways, and organisms. number of objects metabolites reactions enzymes pathways genes organisms total PlantCyc objects after loading 4807 5234 4216 1163 2974 702 19096 MetaCyc objects before integration 24185 20183 21506 3445 14976 3709 88004 unique to MetaCyc 19526 15284 18217 2356 12822 3054 71259 unique to PlantCyc 148 335 927 74 820 47 2351 objects shared by both sources 4659 (19%) 4899 (24%) 3289 (15%) 1089 (31%) 2154 (14%) 655 (18%) 16745 (19%) total objects loaded to iplants 24333 20518 22433 3519 15796 3756 90335 Regarding model integration, the results are available in Table 9. These results only include the integration of the objects in the metabolic models with the objects in iplants and not with objects from other models. Only the metabolites and reactions in the models were integrated with the database as protein or gene identifiers in models were not standardised and the mapping was not possible. In the transform step, the number of metabolites and reactions in the model decreases, as these objects are grouped by the BioCyc identifier. For instance, the same metabolite can be in more than one compartment in the model but it corresponds to only one entry in the database. In fact, medicago2018 model had the highest difference between the number of objects in the model and the database as it includes more metabolites and reactions in different compartments. In total, the plant models included 4210 metabolites and 5695 reactions. From these, 91% of the metabolites and 74% of the reactions had a match in the database, meaning that these objects were also on PlantCyc or MetaCyc sources. This percentage is not higher for reactions due to the lack of standardisation in defining identifiers for transport reactions. In Neo4j, 200 extra model metabolites matched the extra metabolites in the database. 80 3.4. DATA INTEGRATION RESULTS The model with more objects integrated into the database (around 95%) was the athaliana2009 model while the medicago2018 model was the one with a lower percentage of integrated objects, around 82%. This was expected as the medicago2018 model has more compartments and transport reactions than the other models. These two models were also the ones with the highest and lowest number of reactions integrated, respectively. Regarding metabolites, the tomato2015 model has the highest integration percentage while the rice2017 has the lowest. Table 9: Statistics for the integration of metabolite and reaction contents of the nine plant GSMMs. The table describes the number of metabolite and reaction objects of each model integrated into iplants . number of objects before transforming before integration integrated metabolites reactions metabolites reactions metabolites reactions A. thaliana 2009 [129] 1297 1406 1234 1359 1211 (98%) 1264 (93%) A. thaliana 2013 [138] 2739 2769 2275 2581 2155 (95%) 2168 (84%) O. sativa 2013 [130] 1535 1735 1433 1693 1382 (96%) 1477 (87%) O. sativa 2017 [132] 1380 1136 1224 1092 1014 (83%) 971 (89%) S. lycopersicum [160] 2078 2143 1656 1964 1631 (98%) 1669 (85%) Z. mays [136] 1125 1535 943 1383 876 (93%) 1157 (84%) M. truncatula [162] 2884 2909 1374 2014 1235 (90%) 1554 (77%) S. viridis [164] 2429 2473 2055 2308 1958 (95%) 2037 (88%) G. max [163] 2814 3001 2402 2779 2255 (94%) 2377 (86%) Then, the metabolite and reaction contents of the models were compared pairwisely between models, and the results are depicted in the heatmaps of Figure 29. Regarding metabolites (Figure 29 A), the soybean2019 and setaria2019 models share the highest number of metabolites, around 1790, which corresponds to 74% of all soybean2019 metabolites and 87% of setaria2019 metabolites. The athaliana2009 model was the one with the highest percentage of shared metabolites, around 93%, with the other model of A. thaliana ( athaliana2013 ). The remaining models also share more metabolites with the athaliana2013 than with the others. Finally, the athaliana2013 model shares more metabolites with the soybean2019 model. All of the metabolites of setaria2019 are shared with at least one other model. The rice2017 model has the highest number of metabolites not shared with any model, around 124 (10%). Regarding reactions (Figure 29 B), soybean2019 and setaria2019 models are once again the ones that share the highest number of reactions, around 1919, which corresponds to 69% of all reactions from soybean2019 and to 83% of all reactions from setaria2019 . Again, the athaliana2009 model shares the highest percentage of reactions (88%) with the athaliana2013 model. The remaining models also share more reactions with the athaliana2013 than with the others, except for the rice2013 model that shares more reactions (67%) with the tomato2015 model. Finally, the athaliana2013 model shares more reactions with the soybean2019 model. The athaliana2009 model shares almost all of its reactions with at least one other model (around 98%) while medicago2018 has the highest number of reactions not shared with any model that corresponds to 16% of its reactions. Once again, this can be explained by the fact that this model has a higher number of transport reactions whose identifiers do not match the identifiers in the other models. 81 CHAPTER 3. IPLANTS REPOSITORY Although two models of A. thaliana and O. sativa are being compared, the athaliana2013 model shares more content with the soybean2019 model than with the other A. thaliana model, and the models of O. sativa share more content with those of A. thaliana and S. lycopersicum than between each other. Therefore, although these models were reconstructed from the genome of different species, they are based on the same metabolic information available in the databases, mainly of A. thaliana . Figure 29: Heatmap representation of the comparisons between the integrated plant models at metabolite (A) and reaction (B) levels. The values of each row were divided by the total number of metabolites/ reactions in each model, which corresponds to the value in the diagonal of the matrix. Hence, the shown values represent the percentage of metabolites/reactions in a model that are in common with each of the other models. Different rows correspond to different models so the percentages are not comparable between rows. Additionally, the out-degree of metabolites and reactions to a metabolic model was determined (Figure 30). The out-degree of an object is represented by the number of outgoing relationships with other objects. In this case, the out-degree was determined for metabolite and reaction nodes by the relationships associated with metabolic models. This way, it is possible to obtain the number of metabolic models that most metabolites and reactions are linked to. In this analysis, only the metabolites and reactions associated with at least one model were considered. As expected, most metabolites and reactions are only present in one metabolic model and the number of objects decreases as the out-degrees increase until reaching the value 7. Then, there’s an increase in the number of objects present in eight and nine models, which is more evident for the metabolites. This means that more metabolites are shared between the nine models than between only seven models. 82 3.4. DATA INTEGRATION RESULTS Figure 30: Out-degree frequency data of metabolites (A) and reactions (B) to metabolic models in the database. The number of outgoing relationships towards the metabolic model nodes calculates the out-degree of metabolites and reactions. 83 4 Reconstruction of a genome-scale metabolic model for Vitis vinifera The work presented in this chapter has also been partially included in the publication submitted (available as a pre-print) and waiting for revision: Sampaio, M., Rocha, M., and Dias, O. A diel multi-tissue genome-scale metabolic model of Vitis vinifera. Submitted. Pre-print available at: https://doi.org/10.1101/2024.01.30.578056 84 4.2. MODEL RECONSTRUCTION However, as this data is not available for V. vinifera , the biomass composition and the energy requirements were defined based on previously published plants GSMMs and available literature [139, 160, 165, 269]. The details for the biomass composition are available in Supplementary File 4. Biomass is composed of macromolecules labelled ”e-metabolites”, which are required for cell growth. Based on the previous models, the biomass equation for V. vinifera model includes RNA, DNA, proteins, carbohydrates, lipids, co-factors, and cell wall components. Reactions for producing each of these macromolecules were created. The monomer contents for the production of DNA, RNA, and proteins were calculated from the genome sequence using the e-Biomass tool [270]. This tool allows the estimation of biomass composition in amino acid and nucleotide content from genomic information, without the need for experimental data. With this information, the reactions for producing DNA, RNA, and proteins were created. The reactions for the production of carbohydrates, lipids, cell wall components, and co-factors were adapted from A. thaliana [139] and Q. suber [165] models. The e-Cofactor metabolite includes several universal cofactors, such as NAD(H), vitamins, and pigments. The content of carbohydrates was adapted to reflect the grape composition described in the literature. Although fatty acids are not directly included in the biomass reaction, they are components of lipids and are needed for biomass production. Hence, a metabolite representing the average fatty acid composition ( Fatty_Acids ) was created as well as the reaction to produce it. The molecular weight of this metabolite allowed determining the molecular weight of the lipids. Similarly, growth and non-growth energy requirements were retrieved from previous plant models, mainly A. thaliana [139] and Q. suber [165] models, as no experimental data was available for V. vinifera . Hence, the growth energy requirement was added to the biomass reaction whereas the non-growth energy was included in the model in a simple ATP hydrolysis reaction. The main exchange reactions were defined based on previous models that include the essential metabolites for biomass production. These are light, iron(II), magnesium, sulfate, nitrate, phosphate, water, oxygen, carbon dioxide, protons, amino acids, and sugars, such as sucrose, glucose, fructose, and maltose. Later, more exchange reactions were manually added for produced metabolites, according to the transporters in the metabolic network and the expected behaviour. The draft model was then exported in the SBML format to be validated, using the method from the ModelReconstruction class. This method connects to MongoDB’s API to get all the data needed for creating the model, including the list of metabolites, reactions, pathways, GPR rules, and compartments. 4.2.4 Model Validation The first step of model validation was to ensure that biomass was produced. BioISO [271] was used to accomplish this goal, as it verifies the production of each biomass substrate to see which ones are missing. Each gap affecting biomass production was manually analysed and filled when necessary for the production of a biomass precursor. During this process, in addition to finding and filling the gaps of missing enzymatic or transport reactions, errors in the genome annotation and reaction reversibility 91 CHAPTER 4. RECONSTRUCTION OF A GENOME-SCALE METABOLIC MODEL FOR VITIS VINIFERA were also detected and fixed. Literature and biological databases, such as KEGG [27], BRENDA [31], and UniProt [30], were consulted to assist this process. Then, dead-end metabolites and blocked reactions were identified using CobraPy. Each blocked reaction was analysed and fixed resorting once again to other databases. When no information was available, the blocked reactions were kept in the model. In addition, some reactions were added to the model to assure the production of certain metabolites that are known to be produced by V. vinifera , according to the literature or metabolomics datasets, even when no gene associations were found. Also, it was assured that growth did not occur without photon and carbon sources, and no futile cycles were present. Finally, it was verified that the model was able to simulate the different metabolic processes of photosynthesis, photorespiration, and respiration, as desired. 4.2.5 Phenotype Predictions Phenotype predictions were performed by pFBA, using two different strategies as applied in other plant models [139, 165], and based on A. thaliana experimental measures [272]. The first consisted of fixing the biomass growth rate to 0.11h-1 and the minimisation of the photon/sucrose uptake was set as the objective function. The second strategy defined the biomass growth rate as the objective function and fixed the photon uptake to 100 mmmolphoton.gDW-1.h-1 for photosynthesis and photorespiration and the sucrose uptake to 1 mmmolsucrose.gDW-1.h-1 for respiration. Photorespiration was simulated by constraining the carboxylation (RIBULOSE-BISPHOSPHATE-CARBOXYLASE-RXN) and oxygenation (RXN-961) reactions by Rubisco with a flux ratio of 3:1 [139, 165]. The fixed biomass growth rate, the uptake rates of photon and sucrose, and the RUBISCO ratio were retrieved from the AraGEM model [139] of A. thaliana as no rates were available for V. vinifera in the literature. 4.2.6 Tissue-specific Models The reconstructed iMS7199 model is generic and includes all reactions known to occur in V. vinifera , regardless of the tissue, which can lead to wrong interpretations as plants are composed of a wide variety of cell types with specific metabolisms. Thus, certain pathways can be active in some tissues and inactive in others. Therefore, after curation of the generic model of V. vinifera , omics data were integrated with this model to create tissue-specific models for stem, leaf, and berry. 4.2.6.1 Omics Data Available RNA-Seq transcriptomics data from different tissues were used to create specific GSMMs for stem, leaf, and berry. As there was not a single study with RNA-Seq data for these three tissues, two different studies were used. Leaf and stem data were retrieved from the healthy samples of V. vinifera Cabernet Sauvignon cultivar from the study of Massonnet et. al [273], which is available on GEO under the accession GSE97900. The goal of this study was to analyse the transcriptional response of grapevines to Neofusicoccum parvum infection. RNA-Seq data for C. Sauvignon berries was obtained from the study of 92 4.2. MODEL RECONSTRUCTION Fasoli et al. [274] (GEO accession: GSE98923), which included berry samples at different developmental stages. In this study, both transcriptomics and metabolomics data were retrieved from the berries to identify key events controlling berry formation and ripening. These samples were retrieved from GRape Expression ATlas (GREAT)). The RNA-Seq data was already normalised in transcripts per million (TPM) and the reads were mapped to the new genome (PN40024.v4) [78]. In the case of berries, the data was discretized to obtain samples representing the green and mature states of grapes. Samples until time point 4 were considered to be in the green state, while samples after time point 4 were considered to be mature. Although sample time 4 was collected seven days after veraison, it was still considered to be in the green phase. Given the need to use samples from different studies to create tissue-specific models, an additional analysis was performed to see if samples from different studies had intrinsic noise created by the sequencing platforms and experimental procedures used, or if they could be compared to each other. Therefore, additional leaf and berry samples from other studies (GSE89113, GSE74428, GSE97960, GSE76256, GSE89113, and GSE74428) were retrieved from GREAT and joined with the aforementioned samples in the same dataset. Then, a comprehensive analysis was performed using t-SNE to visualise all the data and verify if the data was grouped by sequencing platform or study. Before applying t-SNE, the data values were transformed by log2 and scaled to z-scores. This analysis has shown that data normalisation in GREAT allows samples from different studies to be used and compared. Hence, a dataset with the chosen samples from stem, leaf, and berry and respective metadata was built. Finally, the gene identifiers in the datasets were mapped to the protein identifiers present in the model to allow for omics integration. 4.2.6.2 Models Tissue-specific models for stem, leaf, green berry, and mature berry were reconstructed through the integration of the RNAseq dataset with the iMS7199 model, using the FastCORE algorithm [275] implemented in Troppo [276]. First, the biomass composition of stem, leaf, and berry, and the energy requirements for each tissue were defined based on previously published plant GSMMs [139, 160, 165] and available literature [269, 274, 277]. In addition, the biomass of the mature berry was adjusted according to the literature and the metabolomics data of the berry samples [274]. Then, the reconstructed generic model and the omics dataset were used as input for the FastCORE algorithm. The biomass reaction was included in the protected reactions of the algorithm so that all tissue-specific models would be able to produce biomass. In addition, different strategies were used to define the thresholds for data integration. The default strategy does not apply any preprocessing step to the omics dataset before integration with the model. The only threshold defined is the one used by the integration algorithm. Recently, Lewis et. al [278] proposed three thresholding approaches that prepare the omics dataset before integration, defining additional thresholds (Figure 35): 93 CHAPTER 4. RECONSTRUCTION OF A GENOME-SCALE METABOLIC MODEL FOR VITIS VINIFERA •global: in this strategy, the genes with an expression above the global threshold are considered active while the others are inactive. The threshold value is the same for all the genes. •local T1: this strategy defines a global threshold and genes whose expression is below this value are considered to be inactive. Genes with expressions above this threshold may be active and are further analysed by comparing their expressions with a local threshold. This is a gene-specific threshold that accounts for the expression levels of each gene over all the samples. •local T2: this strategy is similar to local T1 but uses two global thresholds, upper and lower. Genes whose expression is below the lower threshold are considered to be inactive while genes whose expression is above the upper threshold are considered to be active. Genes with expressions between these two thresholds are further analysed and classified according to the local threshold. Figure 35: Representation of the three thresholding strategies for omics integration: global, local T1 and local T2. Adapted from [278]. These global and local thresholds usually represent the percentiles of the gene expression data. The different threshold values tested in this work are presented in Table 10 for the different strategies. The choice of the threshold values was based on the data and the results from Lewis et. al [278]. Table 10: Threshold values tested for each integration strategy for creating tissue-specific models. The global and local thresholds correspond to the percentiles of the gene expression data. Strategies integration thresholds global threshold 1 global threshold 2 local threshold Default 6, 8, 10 - - - Global 0 50%, 75% - - Local T1 0 50% - 50%, 75% Local T2 0 25% 75% 50%, 75% The different strategies for the creation of tissue-specific models were compared by generating flux sampling data with the Artificial Co-ordinate Hit and Run (ACHR) sampler [279] from CobraPy with a thinning factor of 100 and a sample size of 3000. From these, 1000 random samples were selected to facilitate data visualisation. Reactions with a flux of 0across all samples were removed from the dataset and data was scaled to z-scores. The resulting datasets from the different models were visualised using t-SNEs with a perplexity of 50 to see the effect of the threshold strategy on the flux distributions of the models. 94 4.2. MODEL RECONSTRUCTION 4.2.6.3 Differential Flux Analysis After selecting the tissue-specific models, differential flux analysis (DFA) between them was performed using the approach of Nanda et. al [280]. In this approach, sample fluxes for the tissue models were generated using ACHR sampler from CobraPy, with a thinning factor of 100 and a sample size of 10000 for each model. Pairwise Kolmogorov-Smirnov tests were used to compare the flux distribution of the tissue models. The flux change (FC) of each reaction between two models was also calculated as shown in the formula 4.1. 𝑆𝑚𝑜𝑑𝑒𝑙1and 𝑆𝑚𝑜𝑑𝑒𝑙2represent the mean of the flux distributions for a reaction in model1 and model2 , respectively. Reactions with an absolute FC value less than 0.82 (equivalent to a 10-fold change in flux) were considered insignificant. For reactions that are absent in a model, their flux is assumed to be zero in that model, and bootstrapping is used to estimate the 95% confidence interval of their fluxes. If zero is outside the interval, the reactions are considered to have differential flux in the two models. In addition, the p-values of altered reactions were adjusted by a Benjamini-Hochberg correction, with a significance level of 0.05. 𝐹𝐶 = 𝑆𝑚𝑜𝑑𝑒𝑙1−𝑆𝑚𝑜𝑑𝑒𝑙2 |𝑆𝑚𝑜𝑑𝑒𝑙1+𝑆𝑚𝑜𝑑𝑒𝑙1|(4.1) The differential pathways between models were obtained using hypergeometric enrichment tests that select the pathways that are actually over-represented due to the higher number of altered reactions and not by chance. Once again, t-SNE was used to visually compare the sampling flux data of the tissue models. Before applying t-SNE, the flux data was filtered, keeping only the reactions with significantly different flux between models, and scaled to z-scores. 4.2.7 Diel Multi-tissue Models The final tissue-specific models for stem, leaf, and berry were merged and connected to create multi-tissue models. These models allow the study of complex metabolic behaviours of higher organisms that involve interactions between multiple tissues. A Python class named Multitissue was created for this end, following the previous approach [149]. It includes the creation of two common pools to connect the tissues: common pool 1 between stem and leaf and common pool 2 between stem and berry. Transport reactions between tissues and common pools were manually added when required for model functionality. In addition, a reaction for the total biomass was defined, representing the sum of the biomass of all tissues. As no model for the root was created, the uptake of minerals was assumed to take place in the stem. Exchanges of water, oxygen, and carbon dioxide were allowed in all tissues, and light absorption was done only by the leaf. Two multi-tissue models were created, one with the berry in the green phase and the other with the mature berry. Then, diel models were also created to account for light and dark phases. All reactions and metabolites from the multi-tissue models were duplicated for each phase, and new reactions were added to allow the 95 CHAPTER 4. RECONSTRUCTION OF A GENOME-SCALE METABOLIC MODEL FOR VITIS VINIFERA exchange of some metabolites between the two phases. These are called storage metabolites and include the 20 amino acids, nitrate, citrate, malate, glucose, sucrose, fructose, and starch, which can be produced in one phase and used in the other, as previously described [148]. Phenotype predictions of diel multi-tissue models were also performed with pFBA using the first strategy mentioned in the Phenotype predictions subsection for photorespiration conditions, but with a photon uptake of 300 mmmol.gDW-1.h-1 as flux values were very low with 100 mmmol.gDW-1.h-1. As in other plant diel models [148, 150, 165], the nitrate uptake was constrained to a ratio of 3:2 in the light/ dark cycle. 4.3 Model Reconstruction Results 4.3.1 Genome Annotation 4.3.1.1 Enzymes The first GSMM for V. vinifera was reconstructed from the PN40024.v4 genome (annotation version 1) [79]. DIAMOND similarity searches against iplants resulted in 10840 protein matches, representing 26% of the 41160 proteins in the genome, which is in line with the percentage of metabolic genes described for the A. thaliana ’s genome (between 25-30%) [281]. From these matches, 811 enzymes were not associated with any reaction in the iplants database. Hence, only 10029 proteins were included in the model, reflecting 1577 different EC numbers. After manual curation, some annotation errors were fixed, some reactions were added to the model and others were removed, reducing the number of proteins in the model to 6421, representing 1358 different EC numbers. The distribution of the proteins in the model by EC number class is shown in Table 11. 2% of the proteins in the model were not associated with an EC number while some proteins were associated with more than one class of EC numbers. Table 11: Distribution of the proteins in the model by EC number class. EC class EC numbers (%) EC-1: Oxidoreductases 33.7 EC-2: Transferases 31.4 EC-3: Hydrolases 18.1 EC-4: Lyases 9.6 EC-5: Isomerases 3.8 EC-6: Ligases 3.6 EC-7: Translocases 2.1 Oxidoreductases and transferases are the most representative classes in the model, including 65% of the proteins. Oxidoreductases are responsible for the oxidation and reduction of several substrates using cofactors, mainly NAD+ and NADH, and are essential for maintaining the redox balance in cells. Transferases facilitate the transfer of functional groups between molecules. The model includes different 96 4.3. MODEL RECONSTRUCTION RESULTS types of transferases, such as kinases, methyltransferases, and aminotransferases, which are important for the metabolism of carbohydrates, nucleotides, and amino acids. Then, hydrolases represent 18% of the proteins in the model, which are mainly involved in the hydrolysis of ester and glycosidic bonds, which are important for lipid and carbohydrate metabolism, respectively. Lyases, isomerases, ligases, and translocases represent less than 10% of the proteins in the model each. Most lyases in the model cleave carbon-carbon bonds (EC 4.1), like decarboxylases, or carbon-oxygen bonds (EC 4.2), like dehydratases, being involved in several important pathways, such as glycolysis and photosynthesis. Regarding isomerases, the main classes in the model are intramolecular transferases (mutases), which transfer functional groups from one part of a molecule to another, like the enzyme phosphoglucomutase, and intramolecular oxidoreductases, which are involved in the production of stereoisomers, such as dihydroxyacetone phosphate (DHAP) and D-glyceraldehyde 3-phosphate in glycolysis. Most ligases in the model form carbon-oxygen bonds (EC 6.1), carbon-sulfur bonds (EC 6.2), and carbon-nitrogen bonds (EC 6.3). The first subclass includes only aminoacyl-tRNA ligases, which catalyse the attachment of amino acids to the corresponding tRNA molecule during protein synthesis. The second class includes proteins that are mainly involved in the addition of a coenzyme A molecule to the substrate. The proteins of the third class are mainly involved in the biosynthesis of amino acids. Finally, translocases catalyse the movement of ions or molecules across membranes, being important for maintaining overall cellular homeostasis. In the model, most translocases are involved in the active transport of protons (H+) across the membranes. The model contains 82 incomplete EC numbers, 2.4.1 and 1.14.14 being the most represented. The first represents hexosyltransferases that are involved in the biosynthesis of complex carbohydrates, such as oligosaccharides and cytokinins, as well as glycoproteins, and glycolipids, which are essential components of cellular membranes. The latter are oxidoreductases that use a reduced flavoprotein as a donor, being involved in the biosynthesis of plant hormones and alkaloids. 4.3.1.2 Compartments Eight different compartments were identified using WolfPSort [46] and Loctree3 [47] tools. Manual curation of the results was required as these tools exhibited contradictory outcomes. For instance, some enzymes catalysing the reactions of the sphingolipid biosynthesis, like serine C-palmitoyltransferase (SERINE- C-PALMITOYLTRANSFERASE-RXN) and dihydroceramide fatty acyl 2-hydroxylase (RXN-7796) reactions, were predicted to be on the endoplasmic reticulum by Loctree3 and in the chloroplast or cytosol by Wolf- PSort. In this case, the annotations collected from UniProt were considered and the location of these enzymes was defined to be the endoplasmic reticulum. When no information was available, the protein was assumed to be in the cytosol. Many proteins were predicted to occur in more than one compartment. The proteins in the model were distributed by the cytosol, chloroplast, mitochondria, peroxisome, endoplasmic reticulum, Golgi complex, vacuole, and extracellular space (Table 12). As expected, most proteins are in the cytosol, followed by the chloroplast. The thylakoidal and mitochondrial intermembrane 97 CHAPTER 4. RECONSTRUCTION OF A GENOME-SCALE METABOLIC MODEL FOR VITIS VINIFERA compartments were added manually for the photosynthesis and oxidative phosphorylation reactions, respectively. Table 12: Distribution of the proteins in the model by compartment. Compartment Number of proteins cytosol 8951 chloroplast 3412 mitochondria 1595 peroxisome 723 endoplasmic reticulum 2625 Golgi complex 429 vacuole 405 extracellular space 1135 4.3.1.3 Transporters TranSyt [268] was used to automatically predict the transport proteins in the V. vinifera genome and get the associated transport reactions. Of the 7199 proteins in the model, 824 were identified as transporters and were associated with 1087 transport reactions that were added to the model. The distribution of these proteins across TC Number classification is shown in Table 13. Table 13: Distribution of the transport proteins in the model by TC number class. EC class EC numbers (%) TC-1: Channels 31.1 TC-2: Secondary transporters 65.2 TC-3: Primary Active Transporters 26.6 TC-4: Group translocators 0.73 More than half of the transport proteins are secondary carrier-type facilitators. These proteins can catalyse different transport mechanisms using only the energy stored in ion gradients. The transport mechanisms include uniport, in which a single molecule is transported by facilitated diffusion, antiport, where two or more molecules are transported in opposite directions, and symport, when transporting two or more molecules in the same direction. Transport through channels represents 31.1% of the transport reactions included in the model. These proteins have transmembrane channels and catalyse facilitated diffusion without spending energy. Around 26% of the proteins are primary active transporters, which use a primary source of energy to perform active transport of a molecule against a concentration gradient. Finally, less than 0.73% of the proteins catalyse group translocation transports, where the transported substrate is modified during the transport process. In the model, these proteins are involved in the secretion of cellulose. No proteins were identified belonging to the remaining TC classes (TC-5, TC-8, TC-9). Then, as plant cells are highly compartmentalised, 537 transport reactions were manually added to the model to ensure network connectivity and biomass production. Given the complexity of the network and the high number of new transporters, these reactions were not associated with any genes. 98 4.3. MODEL RECONSTRUCTION RESULTS 4.3.2 Biomass Composition As mentioned before, the biomass equation for V. vinifera includes seven different reactants, labelled as ”e-Metabolites”, that represent the complex macromolecules produced by the plant to grow. These include RNA, DNA, proteins, carbohydrates, lipids, co-factors, and cell wall components. As experimental data was not available for V. vinifera , the biomass composition and the energy requirements were defined based on previously published plant GSMMs and available literature [139, 160, 165, 269] (Figure 36 and Supplementary File 4). The differences between biomass compositions observed in the figure can be explained by the fact that the AraGEM model does not include any co-factors in the biomass equation and the percentage of e-lipids is lower than in the other models, as this model only includes the biosynthesis of palmitic acid. Also, the Q. suber model has a higher percentage of ecarbohydrates and a lower percentage of e-cell wall components because cellulose and xylose metabolites are included in the e-carbohydrate reaction while, in the other models, these are included in the e-cell wall reaction. Figure 36: Biomass composition of A. thaliana in the AraGEM model, Q. suber and V. vinifera. Then, reactions for producing each macromolecule were created. The amino acid and nucleotide compositions were estimated from the genome using the e-biomass tool to create the reactions that produce protein, DNA, and RNA (Tables 14, 15, and and 16, respectively). Leucine, serine, glycine, and glutamate are the amino acids with higher stoichiometry while cysteine and tryptophan present the lowest concentrations. Glutamate and aspartate were reported to be the most abundant amino acids in plants and methionine and tryptophan were reported as the less abundant [282]. This was not verified here for aspartate and methionine. Regarding nucleotides, dTTP and dATP for DNA, and UTP and ATP for RNA were predicted to be the most abundant in V. vinifera . The reactions for the production of carbohydrates, cell wall, lipids, fatty acids, and co-factors were also adapted from A. thaliana [139] and Q. suber [165] models. The carbohydrate composition is described in Table 17 and includes starch, UDP-glucose, fructose, sucrose, and the organic acids tartrate, malate, succinate, and citrate. The stoichiometry was adapted to reflect the grape composition described in the 99 CHAPTER 4. RECONSTRUCTION OF A GENOME-SCALE METABOLIC MODEL FOR VITIS VINIFERA Table 14: Protein composition in V. vinifera . Reactants Model identifier Stoichiometry (mmol/g-DNA) L-Alanyl-tRNA (Ala) Charged-ALA-tRNAs 0.496 L-Arginyl-tRNA (Arg) Charged-ARG-tRNAs 0.406 L-Asparaginyl-tRNA (Asn) Charged-ASN-tRNAs 0.335 L-Aspartyl-tRNA (Asp) Charged-ASP-tRNAs 0.404 L-Cysteinyl-tRNA (Cys) Charged-CYS-tRNAs 0.152 L-Glutaminyl-tRNA (Gln) Charged-GLN-tRNAs 0.288 Glutamyl-tRNA (Glu) Charged-GLT-tRNAs 0.511 Glycyl-tRNA (Gly) Charged-GLY-tRNAs 0.506 L-Histidyl-tRNA (His) Charged-HIS-tRNAs 0.191 L-Isoleucyl-tRNA (Ile) Charged-ILE-tRNAs 0.413 L-Leucyl-tRNA (Leu) Charged-LEU-tRNAs 0.787 L-Lysyl-tRNA (Lys) Charged-LYS-tRNAs 0.463 L-Methionyl-tRNA (Met) Charged-MET-tRNAs 0.190 L-Phenylalanyl-tRNA (Phe) Charged-PHE-tRNAs 0.319 L-Prolyl-tRNA (Pro) Charged-PRO-tRNAs 0.378 L-Seryl-tRNA (Ser) Charged-SER-tRNAs 0.694 L-Threonyl-tRNA (Thr) Charged-THR-tRNAs 0.362 L-Tryptophanyl-tRNA (Trp) Charged-TRP-tRNAs 0.102 L-Tyrosyl-tRNA (Tyr) Charged-TYR-tRNAs 0.207 L-Valyl-tRNA (Val) Charged-VAL-tRNAs 0.488 Table 15: DNA composition in V. vinifera . Reactants Model identifier Stoichiometry (mmol/g-RNA) dTTP TTP 0.672 dGTP DGTP 0.355 dCTP DCTP 0.355 dATP DATP 0.672 Table 16: RNA composition in V. vinifera . Reactants Model identifier Stoichiometry (mmol/g-protein) UTP UTP 0.590 GTP GTP 0.458 ATP ATP 0.574 CTP CTP 0.398 100 4.3. MODEL RECONSTRUCTION RESULTS Figure 38: Venn diagrams comparing the reaction content of V. vinifera model with other seven plant models. thaliana , which share 1324 (38%) and 1339 (36%) reactions with iMS7199, respectively. The most distant model is the one from O. sativa , sharing only 624 reactions (20%). In total, V. vinifera has 785 reactions that are not present in any other model. These reactions were analysed to identify the associated pathways and gene annotation. The pathways with more unique reactions are presented in Figure 39. Reactions without pathway associations were not considered. Figure 39: Pathway distribution of the reactions included in the V. vinifera model and not in the other plant models analysed. 107 CHAPTER 4. RECONSTRUCTION OF A GENOME-SCALE METABOLIC MODEL FOR VITIS VINIFERA As shown in Figure 39, the biosynthesis of secondary metabolites is the pathway class associated with more unique reactions, around 140, followed by fatty acid biosynthesis (88 reactions), protein glycosylation (35 reactions), and fatty acid and lipid degradation (17 reactions). These pathway classes comprise several specific pathways. Other specific pathways with more than four unique reactions include cholesterol biosynthesis and diacylsucrose biosynthesis. Hence, the V. vinifera model represents a great advance compared to the previous plant models, as it comprises new reactions, especially for the secondary metabolism, which is often underrepresented in plant models. On the other hand, the other plant models include 661 secondary reactions not available in iMS7199. This number can be explained by the fact that 380 reactions are not associated with GPR rules in the models. Moreover, 93 are sub-reactions of others that are included in the V. vinifera model. Of the 188 reactions that have GPR rules, 155 have a corresponding enzyme sequence in the iplants database, which had a match in the DIAMOND annotation but were not the first hit for any query protein (Supplementary File 9). This data is made available and may be used in the future to improve the model by performing further manual curation. Regarding genome annotation, 27% of the proteins that catalyse these unique reactions were annotated based on the genome of A. thaliana . These proteins or reactions were probably not in the metabolic databases when the A. thaliana models were reconstructed, which can explain why they are missing from these models. Besides A. thaliana ,12% of the unique proteins matched human proteins, and around 27% were annotated based on proteins from more than 100 different plant species, including Solanum lycopersicum , Solanum tuberosum , Catharanthus roseus , Petunia x hybrida , Medicago truncatula , Glycine max , and V. vinifera . As A. thaliana is a reference organism for plants, much enzymatic and metabolic information of A. thaliana is available in databases, like PlantCyc and UniProt. On the other hand, data for more complex plants is scarce. Therefore, it was expected that a large percentage of V. vinifera proteins would be annotated based on homologous proteins from A. thaliana . However, as V. vinifera is a much more complex plant, gene annotations may be wrong or missing. In addition, several proteins are similar to human proteins, which was also expected as various pathways, mainly related to lipid metabolism, are more characterised in humans than in plants. 4.3.4.1 Secondary Metabolic Pathways Secondary metabolites are economically very important as they have many relevant applications. However, the pathways that produce them are very complex and diverse, and the knowledge in this subject is still very limited [44]. The production of the main secondary metabolites in the model, terpenoids and phenylpropanoids , is schematised in the Figures 4 and 3, respectively, of the State of the Art chapter. Grapes are known to have a high content of phenolic compounds and different grape varieties usually have different phenolic compositions, which leads to different wine flavours and aromas [287]. The reconstructed V. vinifera model contains complete pathways for the biosynthesis of several terpenoids and phenylpropanoids, which include flavonoids, such as quercetin, myricetin, kaempferol (and derivatives), and anthocyanins, like cyanidin and delphinidin. Anthocyanins usually accumulate during grape 108 4.3. MODEL RECONSTRUCTION RESULTS maturation and are responsible for the grape colour in red grapevine varieties, being absent in white varieties [288]. Another important group of phenylpropanoids in grapes are stilbenes, such as resveratrol, which protects grapes from intense UV light. As resveratrol is an antioxidant agent, it has high economic importance, being used in the pharmaceutical and cosmetic industry [261]. The complete pathway of resveratrol biosynthesis is described and included in the model, but there are many gaps in the biosynthetic pathways of resveratrol derivatives, such as viniferins, which are not included in the model but are important for wine flavour and aroma. This model also contains complete pathways for the biosynthesis of other aroma compounds, such as linalool, 1,3,5-trimethoxybenzene (TMB), and 3,5-dimethoxytoluene, the latter two being only described for Rosa chinensis . In addition, complete secondary pathways for the biosynthesis of plant hormones, such as jasmonates, cytokinins, gibberellins, ethylene, and auxins, are available in the model. For instance, jasmonates are known to regulate seed germination, and flower and fruit development, as well as to defend the plants against some pathogens [289]. Cytokinins usually control cell growth and differentiation [290]. Although the reconstructed GSMM does not represent the action of these hormones, it can show the metabolic potential of the network to produce these hormones. In short, the reconstructed model of V. vinifera contains several pathways representing secondary metabolism. However, further curation is necessary to fill the existing gaps and increase the number of secondary metabolites in the model. 4.3.5 Phenotype Predictions The iMS7199 model was simulated using pFBA under different conditions: photosynthesis, photorespiration, and respiration. The first simulation strategy was used, which consisted of fixing the biomass growth rate to 0.11h-1 and minimising the photon/sucrose uptake as the objective function. Table 23 shows the summary of the phenotype predictions, proving that the model is capable of predicting metabolic behaviour under both phototrophic and heterotrophic conditions. In photosynthesis and photorespiration, the leaf uptakes light, carbon dioxide, water, nitrate, and sulfate to produce biomass, and releases oxygen and phosphate, as expected. Iron II and magnesium (Mg) are also captured but with very low fluxes (less than 1-5 mmmol.gDW-1.h-1). Light uptake is significantly higher in photorespiration than in photosynthesis (41.40 mmmol.gDW-1.h-1 vs 29.73 mmmol.gDW-1.h-1), which was also expected as the latter process is known to be more efficient for energy production. In both cases, the pathways of the central metabolism are the most active: photosynthesis, Calvin cycle, glycolysis, starch and amino acid biosynthesis, and oxidative phosphorylation. Also, the photorespiration reactions are only active under photorespiration conditions. During both processes, TCA cycle is incomplete: citrate is converted to isocitrate and this is converted to 2-oxoglutarate, which is used for the biosynthesis of glutamate and glutamine instead of being used to produce succinate. Fumarate is produced from arginine biosynthesis, instead of being produced from succinate, and enters the cycle. This result is consistent with the results observed from other plant models 109 CHAPTER 4. RECONSTRUCTION OF A GENOME-SCALE METABOLIC MODEL FOR VITIS VINIFERA under light conditions [148, 165] and with isotope labelling experiments, which stated that a cyclic TCA only happens when the demand for ATP is high. The photosynthetic ATP production reduces that demand [291, 292]. In respiration, the leaf uptakes sucrose, nitrate, sulfate, and oxygen, and releases hydrogencarbonate, water, and phosphate. The main active pathways include glycolysis, complete TCA cycle, starch and amino acid biosynthesis, and oxidative phosphorylation, as expected. Table 23: Summary of the phenotype predictions for photosynthesis, photorespiration, and respiration. This table shows the metabolites that are consumed and produced by the models. The fluxes of the metabolites are in mmol.gDW-1.h-1 while for biomass are in h-1. photosynthesis photorespiration respiration uptake SUCROSE - - 0.55 Light 29.73 41.4 - NITRATE 0.37 0.37 0.37 OXYGEN-MOLECULE - - 1.79 PROTON 5.89 5.89 3.69 SULFATE 0.02 0.02 0.02 WATER 2.84 2.84 - CARBON-DIOXIDE 4.41 4.41 - production OXYGEN-MOLECULE 4.79 4.79 - WATER - - 0.98 HCO3 - - 2.16 PPI 0.05 0.05 - Pi - - 0.09 e-Biomass 0.11 0.11 0.11 4.4 Tissue-specific Models 4.4.1 RNA-Seq Data As no study was available with RNA-Seq data for the three tissues of interest, leaf, stem, and berry, there was a need to use data from different studies. As mentioned above, the chosen datasets were retrieved from the GREAT database, where leaf and stem data belonged to the same study [273], and berry data was from another study [274], both from V. vinifera Cabernet Sauvignon cultivar. The first study was chosen because it includes data from two different tissues, and the last was chosen as it includes both gene expression and metabolomics data for a large number of grape samples under different developmental stages. As samples from different studies could have intrinsic noise created by the sequencing platforms or experimental protocols used, an additional analysis was performed to validate if these samples could be 110 4.4. TISSUE-SPECIFIC MODELS compared and give meaningful insights regarding the metabolic differences between tissues without external bias. Hence, for a more comprehensive analysis, more control samples were retrieved from GREAT for leaf and berry tissues of the Cabernet Sauvignon cultivar (GEO accessions: GSE97960, GSE76256, GSE89113, and GSE74428). The data collected is characterised in Table 24. In total, six studies were used comprising the expression values of 35336 V. vinifera genes and 217 samples from three different sequencing platforms and three countries. The gene expression values were normalised as TPM and log-transformed (log2). Most samples are from berries (around 77%) from the study of Fasoli et al. [274], which used the Illumina HiSeq 1000 as the sequencing platform. Table 24: RNA-Seq studies retrieved from GREAT database to check if their samples are comparable. The studies in bold are the ones selected for omics data integration with the GSMM. Study (GEO Accession) Tissue Country Sequencing technology Year Number of samples GSE76256 Grape skin China Illumina HiSeq 2500 2015 12 GSE97960 Grape pericarp Italy Illumina HiSeq 2000 2011 36 GSE98923 Green and mature grape California Illumina HiSeq 1000 2012, 2013, 2014 120 GSE97900 Stem and leaf California Illumina HiSeq 2500 2017 42 GSE89113 Leaf China Illumina HiSeq 2000 2015 3 GSE74428 Leaf China Illumina HiSeq 2000 2015 4 t-SNE was used to comprehensively visualise the data and verify if the data distribution is influenced by the study or sequencing platform (Figure 40). Analysing the t-SNE projections, the samples of the same tissue grouped well together, which was not verified for the samples of the same study or platform. These results indicate that data normalisation performed by the GREAT authors seems to be effective in removing intrinsic sample noise, allowing meaningful comparisons of samples from different studies. Therefore, a dataset with samples from the two chosen studies was created and filtered to include only the genes in the V. vinifera model. Figure 40: t-SNE projections of the RNA-Seq data coloured by platform (A), study (B), and tissue (C). Data was retrieved from the GREAT database, including the TPMs of 35336 V. vinifera genes across 217 samples from six different studies. 111 CHAPTER 4. RECONSTRUCTION OF A GENOME-SCALE METABOLIC MODEL FOR VITIS VINIFERA In total, the final dataset contained the expression of 6018 genes across 162 samples. The time-point metadata for these samples was grouped into two developmental stages, green and mature, to create a metabolic model for each state. The sample distribution and the t-SNE projections for the final RNA-Seq dataset are shown in Figure 41. Figure 41: RNA-Seq data for all tissues: leaf, stem, and berry in the green and mature states. A. Distribution of samples across the different tissues. B. t-SNE visualisation of the RNA-Seq data for all tissues: leaf (orange dots), stem (blue dots), and berry in green (green dots) and mature (red dots) states. Data was retrieved from the GREAT database, including the TPM of the V. vinifera genes in the model across 162 samples. Mature berry is the most represented tissue in the dataset with 46% of the samples (75 samples), 28% of the samples are from green berries (45 samples), while stem and leaf represent 13% of the samples each (21 samples). Analysing the t-SNE plot, the data grouped well by tissue: leaf samples are the most well-grouped, followed by stem samples, while berry samples are more scattered. Green berries partially overlap mature berry samples and some separation exists between mature berry samples. The overlap was expected as these samples were retrieved every week from fruit set to maturity. Thus, samples a week before and a week after veraison, which is when the maturation phase starts, may be similar in metabolism. 4.4.2 Biomass Composition Before integrating the omics dataset with the GSMM of V. vinifera , the definition of tissue-specific biomass compositions is crucial for obtaining good models capable of simulating the specific metabolism of each tissue. Ideally, experimental data should be used to define biomass composition for different tissues. However, as these data are not available for V. vinifera , the biomass content was estimated based on other plant models and insights from the literature [269, 277]. 112 4.4. TISSUE-SPECIFIC MODELS The biomass compositions of each tissue are represented in Figure 42. The biomass formulation for leaf and green berry was considered to be equal to the generic biomass previously defined, which was used as a reference to define the biomass composition of the other tissues. According to other plant models, like Q. suber [165] and A. thaliana [149], the stem is expected to have a higher cell wall and carbohydrate content and lower protein and lipid levels. The biomass of mature berry was adjusted according to the literature and the metabolomics data available [274], which states that mature berries have higher sugar and amino acid content than the other tissues. Figure 42: Biomass composition of the leaf and green berry, stem, and mature berry. These values were adapted from available plant models and the literature. The reactions for producing each macromolecule in the tissue-specific models were considered to be the same as those in the generic model and across tissue models, except for the e-Cofactor reaction, as chlorophylls and plastoquinol were only included in the e-Cofactor reaction of the leaf, and the e- Carbohydrate reaction for mature berry, in which the contents of sugars and organic acids were adjusted to reflect the changes in berry composition during maturation, and some secondary metabolites were added based on metabolomics data [274]. These metabolites are found in mature grapes and mainly include anthocyanins, such as malvidin 3-glucoside, peonidin 3-O-glucoside, and petunidin-3-O-glucoside. In short, the tissue-specific biomass compositions reflect that leaf and green berries present high levels of carbohydrates and proteins, the stem is mainly composed of carbohydrates and cell wall precursors, and mature berries present high amounts of sugars and proteins but fewer amounts of organic acids. 4.4.3 Omics Integration The created omics dataset was integrated with the reconstructed generic model of V. vinifera to create specific models for different tissues: stem, leaf, green berry, and mature berry. Omics integration was performed using the FASTCORE algorithm and different thresholding strategies. In total, nine models of each tissue were created, and the number of genes, reactions, and unique reactions of the models excluding drains is summarised in Table 25. Three models were created using the default strategy and 113 CHAPTER 4. RECONSTRUCTION OF A GENOME-SCALE METABOLIC MODEL FOR VITIS VINIFERA different thresholds for the gene expression: 6,8, and 10. The higher the threshold, the lower the number of reactions and genes included in the models. Thresholds of 8and 10 resulted in very small models, with less than 1100 reactions, which were not considered for the following analysis. Global models were created using the 50 (global_50) and 75 (global_75) percentiles as global thresholds for pre-filtering the RNA-Seq data. This resulted in two sets of identical models, which included more reactions than the default models but fewer unique reactions across tissues. The local T1 strategy was used with the percentile 50 as the global threshold and both 50 (local T1_50_50) and 75 (local T1_50_75) percentiles as the local threshold, resulting in two different sets of models, the last of which included slightly smaller models but with more unique reactions across tissues. Finally, the local T2 strategy was applied with the 25 and 75 percentiles as global thresholds, and 50 (local T2_25_75_50) and 75 (local T2_25_75_75) as local thresholds, resulting in two equal sets of models that were bigger than local T1 models. Table 25: Tissue-specific models created with the FASTCORE algorithm implemented in Troppo and different thresholding strategies. Default models were created using three different integration thresholds: 6 (default_t6), 8 (default_t8), and 10 (default_t10). Global models were created using the 50 (global_50) and 75 (global_75) percentiles as global thresholds, which resulted in two equal sets of models. Similarly, the local T2 strategy with the 25 and 75 percentiles as global thresholds, and 50 (local T2_25_75_50) and 75 (local T2_25_75_75) as local thresholds resulted in the same sets of models. Finally, local T1 was used using the percentile 50 as the global threshold and both 50 (local T1_50_50) and 75 (local T1_50_75) percentiles as the local threshold, resulting in two different sets of models. Models Leaf Stem Green berry Mature berry default_t6 reactions 2302 2211 2468 2144 unique reactions 392 169 169 140 genes 4670 4787 4942 4446 default_t8 reactions 1084 984 1179 1234 unique reactions 210 95 88 144 genes 3008 2967 3035 3127 default_t10 reactions 722 590 642 666 unique reactions 161 15 25 186 genes 2105 1773 2089 2140 global_50 global_75 reactions 4463 4436 4402 4253 unique reactions 59 89 8 18 genes 6889 6869 6861 6640 local T1_50_50 reactions 3603 3420 4094 3289 unique reactions 60 94 12 19 genes 6309 6324 6562 5882 local T1_50_75 reactions 3148 2693 3003 2604 unique reactions 469 314 413 273 genes 5771 5636 5401 5151 local T2_25_75_50 local T2_25_75_75 reactions 4266 4140 4251 4028 unique reactions 124 97 26 19 genes 6701 6602 6657 6312 As the choice for the best tissue-specific models is not straightforward, flux sampling data for all sets of models were generated and t-SNEs were used to visualise this data and check which strategy better distinguishes the different tissues (Figure 43). Overall, all strategies resulted in models whose fluxes are 114 4.4. TISSUE-SPECIFIC MODELS well separated across tissues in the t-SNE projections. Regarding the models created with the local T1 strategies, the flux samples of the same tissue appear to be better grouped. The projections for default, global, and local T2 strategies create additional sample groups by separating fluxes of the same tissues, mainly of the mature berry and stem. Therefore, the models created with local T1 strategies seem to be the ones that best separate the fluxes by tissue. Although this approach does not provide an objective assessment of which set of tissue models is the best, it seems to be the best way to visualise this data. The local T1_50_75 model contents were analysed and some important reactions from the core metabolism were removed from the tissue models, such as the transketolase reaction from the pentose phosphate pathway and glyceraldehyde-3-phosphate dehydrogenase and 6-phosphofructokinase from glycolysis. Hence, the models created by the local T2_25_75_50 strategy were chosen for the following analysis as these include all important reactions and this strategy was described by Lewis et. al [278] as the one creating more realistic models. Figure 43: t-SNE projections of the flux sampling data generated by the tissue-specific models created with different strategies: default_t6 (A), global_50 (B), local T2_25_75_50 (C), local T1_50_50 (D), and local T1_50_75 (E). The flux sampling data was obtained using the ACHR sampler with a thinning factor of 100 and a sample size of 3000. From these, 1000 random samples were selected to facilitate data visualisation. Reactions with a flux of 0 across all samples were removed from the dataset and data was scaled to z-scores. The resulting data was visualised with t-SNE using a perplexity of 50. Overall, the flux data grouped well by tissue. 115 CHAPTER 4. RECONSTRUCTION OF A GENOME-SCALE METABOLIC MODEL FOR VITIS VINIFERA 4.4.4 Final Models According to the previous analysis, the tissue-specific models chosen were the ones created with the local T2 strategy. The statistics of these models are shown in Table 26. All models have the same 244 exchange reactions. Table 26: Statistics of the generic and tissue-specific GSMMs. Generic model Leaf Stem Green Berry Mature berry Genes 7199 6701 6602 6657 6312 Metabolites 5141 4456 4310 4399 4181 Reactions 5399 4510 4384 4495 4272 Transport 1624 1295 1315 1324 1305 Unique reactions - 124 97 26 19 Metabolic Reactions 3531 2971 2825 2927 2723 - Cytosol 1434 1154 1092 1113 1059 - Chloroplast 793 745 701 725 684 - Mitochondria 335 313 318 320 314 - Endoplasmic reticulum 568 410 370 417 353 - Peroxisome 165 158 152 153 151 - Vacuole 52 49 47 48 32 - Golgi apparatus 54 41 41 50 50 - Extracellular 130 101 104 101 80 The number of reactions is similar across all tissue-specific models. Even so, the mature berry model is the smallest one, while the leaf model is the largest, having a higher number of reactions in the chloroplast, as well as more unique reactions, as expected. The list of pathways in each tissue model, as well as the number of reactions belonging to each pathway, are available in Supplementary File 10. No significant differences were found between models at the pathway level. Most pathways that differ between tissues only have one or two reactions. For instance, 2,4,6-trinitrotoluene degradation and 2-methylketone biosynthesis pathways are only present in the leaf, and the taxol and oleanolate biosynthesis pathways were only found in the stem. No unique pathways were found in green and mature berries. The tissue-specific models were simulated using pFBA and the first strategy described before of fixing the biomass growth rate to 0.11h-1 and minimising the photon/sucrose uptake as the objective function. Additional drain reactions were added to the models to allow for the production of all metabolites in the network as well as essential transporters without associated genes. A summary of the phenotype predictions is presented in Table 27 and full results are available in Supplementary File 11. The leaf tissue was simulated for all processes: photosynthesis, photorespiration, and respiration, while the other tissues were simulated for respiration only. Photosynthesis can also occur in green berries, but not at significant levels [293]. Hence, in this analysis, the leaf was considered to be the only photosynthetic tissue. In photosynthesis and photorespiration, the leaf uptakes the same nutrients described before for the 116 4.5. DIEL MULTI-TISSUE MODELS Table 29: Fluxes of the metabolites stored between light and dark phases in the diel multi-tissue models. Positive fluxes indicate that the metabolites are stored in the light phase to be used in the dark while the metabolites with negative fluxes are stored in the dark to be used during the day. The fluxes are in mmmol.gDW-1.h-1 reaction green mature leaf CIT__vacu_leaf_light_dark_storage -1.354 -1.834 CYS__cyto_leaf_light_dark_storage 0.009 0.009 ILE__cyto_leaf_light_dark_storage 0.025 0.024 MAL__vacu_leaf_light_dark_storage 1.168 1.272 MET__cyto_leaf_light_dark_storage 0.011 0.011 NITRATE__vacu_leaf_light_dark_storage -0.020 -1.059 PRO__cyto_leaf_light_dark_storage 0.360 1.143 Starch__chlo_leaf_light_dark_storage 0.374 0.365 SUCROSE__vacu_leaf_light_dark_storage 0.020 - THR__cyto_leaf_light_dark_storage 0.051 0.028 stem CIT__vacu_stem_light_dark_storage -0.261 -0.160 CYS__cyto_stem_light_dark_storage 0.003 0.003 ILE__cyto_stem_light_dark_storage 0.009 0.008 MAL__vacu_stem_light_dark_storage 0.060 0.044 MET__cyto_stem_light_dark_storage 0.015 0.004 NITRATE__vacu_stem_light_dark_storage -0.745 - PRO__cyto_stem_light_dark_storage 0.276 - SUCROSE__vacu_stem_light_dark_storage - 0.027 Starch__chlo_stem_light_dark_storage 0.009 - berry CIT__vacu_berry_light_dark_storage --0.021 CYS__cyto_berry_light_dark_storage 0.009 0.013 ILE__cyto_berry_light_dark_storage 0.025 0.035 MAL__vacu_berry_light_dark_storage - 0.021 MET__cyto_berry_light_dark_storage - 0.016 THR__cyto_berry_light_dark_storage - 0.031 PRO__cyto_berry_light_dark_storage 0.162 - Starch__chlo_berry_light_dark_storage 0.013 0.011 its components decreased. For instance, the maximum flux value of biomass decreased from 0.149 h-1 to 0.08 and 0.02 h-1 with a nitrate uptake of 0.5and 0.1mmmol.gDW-1.h-1, respectively. Conversely, the fluxes for the production of fatty acids have increased. The maximum flux for the production of fatty acids in the leaf during the day increased from 0.41 to 0.97 and 1.46 mmmol.gDW-1.h-1, with a nitrate uptake of 0.5and 0.1mmmol.gDW-1.h-1, respectively. Hence, as expected, the metabolism was redirected to the production of compounds that do not contain nitrogen. Other pathways with decreased flux include the biosynthesis of phosphopantothenate, 4-aminobenzoate, tetrahydrofolates, nucleotides, and some amino acids, like histidine and tryptophan. The maximum possible flux for storage between light and dark phases also decreased under lower values of nitrate uptake. On the other hand, there was an increase in the flux of primary pathways, comprising sucrose and starch biosynthesis and degradation, gluconeogenesis, and glycolysis. In addition, the pathways for DNA, RNA, uracil, glutathione, and amino acid degradation were increased to raise nitrogen availability. However, 123 CHAPTER 4. RECONSTRUCTION OF A GENOME-SCALE METABOLIC MODEL FOR VITIS VINIFERA the biosynthesis of some amino acids was also increased, such as the biosynthesis of phenylalanine, which is the precursor for the phenylpropanoid pathway. As described in the literature, most secondary metabolic pathways had an increase in the maximum flux, including the biosynthesis of phenylpropanoids (flavonoids, anthocyanins, stilbenes), isoprenoids, and gibberellins. The maximum flux of secondary reactions increased as nitrate uptake decreased. For instance, the flux for resveratrol synthase reaction during the day was 0.41 mmmol.gDW-1.h-1 in the unrestricted phenotype prediction and increased to 1.14 mmmol.gDW-1.h-1 when restricting the uptake of nitrate to 0.5mmmol.gDW-1.h-1 and to 1.78 mmmol.gDW-1.h-1 with a nitrate uptake of 0.1 mmmol.gDW-1.h-1. For high nitrogen uptake values (5and 10 mmmol.gDW-1.h-1), most pathways presented lower maximum fluxes than in the unrestricted phenotype prediction, except for some reactions of photosynthesis, chlorophyll, tetrahydrofolate, and ATP biosynthesis, as well as the biosynthesis of some amino acids, such as histidine. The maximum flux for the total biomass reaction decreased from 0.149 h-1 to 0.142 and 0.134 h-1 with a nitrate uptake of 5and 10 mmmol.gDW-1.h-1, respectively. A decrease in the flux was observed in the producing reactions of all biomass components as well as most secondary pathways. The flux of the resveratrol synthase during the day slightly decreased from 0.41 mmmol.gDW-1.h-1 to 0.39 and 0.36 mmmol.gDW-1.h-1 with a nitrate uptake of 5and 10 mmmol.gDW-1.h-1, respectively. The maximum flux for the storage of some amino acids, such as serine and glutamate, decreased while it increased for others, such as valine and leucine. Despite these small changes in metabolism, the effects of low nitrate values appear to be more significant than the effects of high nitrate. The results for the multi-tissue model with the mature berry were very similar. The decrease in total biomass was slightly higher in the green berry model for both low and high levels of nitrate. Conversely, with low nitrate values, the increase in the maximum flux was slightly higher in the mature berry for most secondary reactions. Therefore, nitrate availability greatly affects plant metabolism, including secondary pathways. Controlling the levels of nitrate at certain stages of grape development is important to help control grape phenolic and sugar content, which will influence the flavour and quality of grapes. 4.5.0.2 Sulfate Assimilation Sulfur is another important nutrient taken up by plants from the soil in the form of sulfate, and it is the key element of the amino acids cysteine and methionine. Thus, the major part of sulfate is used for protein biosynthesis. Sulfur is also a component of glutathione, which is an important antioxidant agent, and S-adenosyl methionine and coenzyme A, which are cofactors for several enzymes. Elemental sulfur (S0) is the oldest pesticide applied to grapevines and it is still widely used nowadays, being particularly effective against powdery mildew disease, one of the most common diseases affecting grapevines that is caused by the fungus Erysiphe necator . In addition, sulfur dioxide (SO2) is usually used as a conservative of table grapes or in winemaking to prevent oxidation and microbial contamination. 124 4.5. DIEL MULTI-TISSUE MODELS Figure 46: Simplified schema of the main metabolic pathways in the model affected by varying nitrate levels. Pathways with increased maximum flux under low nitrate conditions are highlighted with a thick blue arrow while pathways with increased flux under high nitrate conditions are highlighted with a thick yellow arrow. Pathways with decreased flux in both conditions are represented by a thin grey arrow. Plant exposure to high sulfur levels can lead to the accumulation of sulfur-derived compounds or affect the metabolism of phenolic compounds, which can change the flavour, aroma, and texture of grapes and wine [269, 297]. It was observed that residual sulfur on berries can lead to the formation of undesirable flavors, such as hydrogen sulfide (H2S), during wine fermentation [297]. The same approach was used to assess the effect of different sulfate concentrations in the V. vinifera model. In this case, FVA was performed with two sulfate uptake values, 0.01 and 10 mmmol.gDW-1.h-1, and compared to the unrestricted phenotype predictions. Similar results were obtained for the multitissue with green and mature berry. Thus, only the results for the green multi-tissue are described. The full results are available in Supplementary File 15 and schematised in Figure 47. With high sulfate (10 mmmol.gDW-1.h-1), the maximum flux for biomass production decreased from 0.149 to 0.138 h-1. Similarly, the production of all biomass components also decreased. As expected, the maximum fluxes of the reactions involved in sulfate assimilation and oxidation, and glutathione biosynthesis have increased. Surprisingly, in the model, the biosynthesis of cysteine and methionine decreased with high sulfate levels. During sulfate reduction, the reaction that produces H2S has a higher maximum flux but the reaction that uses it to produce cysteine has a lower flux, which leads to a big increase in the flux of the H2S exchange reaction. This could mean that when plants are exposed to high sulfur levels they try to adapt to these conditions by adjusting their metabolism, leading to the accumulation of H2S or other sulfur compounds that can alter the flavour and aroma of the grapes. In addition, the primary pathways 125 CHAPTER 4. RECONSTRUCTION OF A GENOME-SCALE METABOLIC MODEL FOR VITIS VINIFERA carried less flux in high sulfur conditions. The fatty acid metabolism has also decreased, as well as the metabolism of nucleotides, amino acids, and chlorophylls. Some photosynthesis light reactions presented a higher minimum flux. However, the downstream reactions from the Calvin cycle had lower maximum flux values as well as the aerobic respiration pathway. The biosynthesis of secondary metabolites was also limited by higher levels of sulfur, which will also affect the flavour of grapes. As the biosynthesis of amino acids decreased, the maximum flux for amino acid storage also decreased with high sulfate levels. When plants are under a sulfate deficiency, the production of biomass and all its components also decreases. For a sulfate uptake of 0.01 mmmol.gDW-1.h-1, the maximum production of biomass decreased from 0.149 to 0.018 h-1. In addition, the biosynthesis of phosphopantothenate, cysteine, methionine, and coenzyme A, also decreased. As observed previously for nitrogen deficiency, in low sulfur conditions, the plant has an excess of carbon and nitrogen skeletons, which are not being used for protein biosynthesis and are available for the synthesis of secondary metabolites. Therefore, there was an increase in the production of secondary metabolites, plant hormones, and amino acids that are precursors of secondary compounds, like phenylalanine. For instance, the maximum flux for resveratrol synthase reaction during the day increased from 0.41 to 1.75 mmmol.gDW-1.h-1. In addition, there was a great increase in the maximum flux for the storage of all amino acids, except for cysteine and methionine. Again, the changes in metabolism are more significant under low sulfate values. Hence, as for nitrogen, sulfur levels in the soil can greatly influence grapevine metabolism and affect the flavour and aroma of grapes by sulfide or sulfur-compounds accumulation or changes in the phenolic content in grapes. 126 4.5. DIEL MULTI-TISSUE MODELS Figure 47: Simplified schema of the main metabolic pathways in the model affected by varying sulfate levels. Pathways with increased maximum flux under low sulfate conditions are highlighted with a thick blue arrow while pathways with increased flux under high sulfate conditions are highlighted with a thick yellow arrow. Pathways with decreased flux in both conditions are represented by a thin grey arrow. 127 5 Combining omics and genome-scale metabolic models with machine learning The analysis of fluxomics with machine learning of this chapter was included in the publication submitted (available as a pre-print) and is waiting for revision: Sampaio, M., Rocha, M., and Dias, O. A diel multi-tissue genome-scale metabolic model of Vitis vinifera. Submitted. Pre-print available at: https://doi.org/10.1101/2024.01.30.578056 The multi-omics data integration in this chapter was included in the publication submitted to the 10th IFAC International Conference on Foundations of Systems Biology in Engineering and is waiting for revision: Sampaio, M., Rocha, M., and Dias, O. A multi-omics approach for understanding grape metabolism throughout development. Submitted. 128 The development of novel technologies has allowed the collection of different molecular data from the same samples, such as gene expression, DNA methylation, protein abundance, and metabolite levels, resulting in multiple omics (multi-omics) datasets. Integrating multi-omics allows the identification of interactions between omics layers that can help identify complex biological relationships responsible for specific phenotypes. These interactions between omics are not considered when analysing omics data from a single type. However, as omics datasets have different biological contexts, numerical scales, formats, and noisiness, their integration is still a challenging task. ML has been used to process, analyse, and integrate different types of omics. ML models can perform data reduction, identify underlying patterns in data, and select relevant features, allowing the extraction of new biological insights from the data. However, ML can be hard to interpret, which can lead to wrong inferences. The combination of ML and GSMM has been explored recently and holds much promise as these approaches are complementary and the combination of both could help overcome the intrinsic limitations of each [8–11, 168]. On the one hand, ML is crucial for interpreting large omics datasets and extracting knowledge, but does not take into account the existing knowledge and can be difficult to interpret. On the other hand, GSMMs are reconstructed based on prior knowledge about the metabolic pathways and are easy to interpret but generally present many gaps in the networks and do not include the regulatory effects. Therefore, combining both approaches can help generate more accurate predictions and result in more meaningful insights from the data. With this in mind, the fluxomics data obtained from reconstructed berry models were analysed by ML. Although the quality of the fluxomics data depends greatly on the quality of the model network, the model can be constrained with gene expression data to produce more realistic simulations. A significant number of samples is required to train ML models to provide a more diverse and realistic representation of the problem and improve the model’s ability to generalise to new data. However, omics datasets usually have few samples and a high number of features, which results in complex overfitted models with poor generalisation power. Therefore, the idea of using ML to analyse fluxomics data focuses mainly on the study of the impact of the features on the output class, rather than the creation of accurate predictive models, due to the low data dimensions that make model validation difficult. The RNA-Seq dataset used to create the grape-specific models in the previous chapter is the largest public RNA-Seq dataset of V. vinifera , containing 219 grape samples with replicate measurements for each biological sample at different developmental stages [274]. Additionally, metabolomics data is available for the same samples. In the previous chapter, only samples from Cabernet Sauvignon were used. In this analysis, the samples of Pinot Noir cultivar were also included to increase the number of samples in the dataset. Therefore, ML was applied to fluxomics data generated from V. vinifera GSMMs that were constrained by the RNA-Seq data to predict the grape developmental state, green or mature. ML was also applied to the RNA-Seq and metabolomics datasets separately, to compare the results with those obtained with fluxomics and see whether fluxomics data can add more value to the classification task. 129 CHAPTER 5. COMBINING OMICS AND GENOME-SCALE METABOLIC MODELS WITH MACHINE LEARNING As these grape samples included both gene expression and metabolomics data, and now also generated fluxomics data, the relationships between genes, metabolites, and reactions during grape development were further analysed by integrating the different types of omics available. The rationale for integrating fluxomics from the GSMMs with experimental omics is to improve the interpretability of the omics analysis and provide a cellular state closer to the phenotype, which can lead to meaningful insights into the biological processes linking the genotype to the phenotype. 5.1 Machine Learning and Omics data 5.1.1 Creation of the fluxomics dataset The complete RNA-Seq dataset from Fasoli et al. [274] was used to create the fluxomics data for each sample. It contains 219 grape samples with replicate measurements for each biological sample at different developmental stages. The dataset was transformed by log2 and the mean value of all replicates was calculated to represent each sample. In total, the dataset included 73 samples, 55% from Cabernet Sauvignon and 45% from Pinot Noir, and it was filtered to include only the expression of the 6018 genes in the model. As performed before, the time-point metadata for these samples was discretized into two developmental stages, green and mature, which represent the output class to be predicted by the models. Samples until time point 4 were considered to be in the green state, while samples after time point 4 were considered mature. Hence, this dataset presents a small class imbalance, where 59% of samples belong to the mature state and 41% are green. Then, the final RNA-Seq dataset was integrated with the generic V. vinifera model to create GSMMs representing each sample in the dataset. Thus, 73 models were created using the FASTCORE algorithm [275] as described in the previous chapter for the tissue-specific models and using the same strategy. The resulting sample-specific models were simulated using FVA and the Flux Capacity (FCa) of each reaction was calculated by subtracting the maximum and minimum flux obtained for each reaction while keeping 80% of the maximum biomass value. Before running FVA, all reactions were made irreversible to facilitate the interpretation of results. Thus, all reversible reactions were split into two irreversible reactions, forward and backward reactions, whose lower bound is equal to or greater than zero. The reactions absent in the models were considered to have an FCa of 0. 𝐹𝑙𝑢𝑥 𝐶𝑎𝑝𝑎𝑐𝑖𝑡𝑦(𝐹𝐶𝑎)=𝐹𝑙𝑢𝑥max −𝐹𝑙𝑢𝑥min (5.1) 5.1.2 Machine learning pipeline The analysis of omics with ML was performed in Python (v. 3.11), using mainly the package scikit-learn (v. 1.2.2). The scripts are available at the https://github.com/martaS95/MM_ML GitHub repository. First, 130 5.1. MACHINE LEARNING AND OMICS DATA the original RNA-Seq data was log-transformed (by log2) and included the expression of 35336 genes of V. vinifera . For the unsupervised analysis (Figure 48), datasets were filtered to remove the features with low variance across all samples. The replicate samples in RNA-Seq and metabolomics were kept in the datasets. The fluxomics dataset was standardized to z-scores. t-SNE was applied to visualise the data distribution. For the supervised analysis (Figure 49), the mean value of all replicates of each sample was calculated for the RNA-Seq and metabolomics datasets. The 73 samples were divided into train and test sets using cross-validation with 10 folds and repeated 10 times. In each iteration, feature selection was performed using VarianceThreshold with a threshold of 0.001, and, for RNA-Seq and fluxomics datasets, as the number of features was still high, the SelectKBest function was used to select the 500 most relevant features based on ANOVA F-values. For metabolomics, only the VarianceThreshold filter was applied. In addition, the resulting datasets were also scaled by StandardScaler . Then, an ML model fitted the train data and predicted the output classes for the test set. Given the reduced number of samples in the dataset, simpler ML architectures were chosen. These included Logistic Regression (LR), KNN, decision trees (DT), SVM, and RF. These models were assessed by different metrics, such as recall (equation 2.9), precision (equation 2.10), balanced accuracy (equation 2.12), and f1 score (equation 2.13), which were averaged across all train-test splits. The importance of each feature in predicting the output was analysed by calculating the SHAPley Additive exPlanations (SHAP) values for each classifier. SHAP values are defined based on the contribution of each feature to the prediction of each sample and are used to increase the interpretability of ML models. Features with larger absolute SHAP values have a larger effect on the prediction [298]. The SHAP values for each fold of the repeated cross-validation were calculated, and the average SHAP values for each sample were obtained to give a more stable representation of the feature contributions. Figure 48: Schema used for the unsupervised analysis of omics data. The original datasets were filtered using VarianceThreshold and the fluxomics dataset was scaled. Then, t-SNE was used to visualise the data. 131 CHAPTER 5. COMBINING OMICS AND GENOME-SCALE METABOLIC MODELS WITH MACHINE LEARNING Figure 49: ML pipeline for the supervised analysis. Repeated cross-validation with 10 folds and 10 repeats was applied to split the train and test sets several times and increase the robustness of the results. These sets were filtered and scaled and the ML model was applied in each iteration. 5.1.3 Results of fluxomics analysis Fluxomics data was obtained from the 73 GSMMs and analysed by ML to predict the grape developmental phase, green or mature. For unsupervised analysis, data was preprocessed and explored using t-SNE for visualisation. The VarianceThreshold filter greatly reduced the dataset from 8632 to 2322 features. The results of the t-SNE are plotted in Figure 50. A clear separation between the two states is shown as all green samples are located at the top of the plot, while most mature samples are at the bottom. However, six mature samples were grouped with the green ones. These comprise Cabernet Sauvignon samples from time points 5 and 6 and Pinot Noir samples from time point 5. As samples of time point 4 were still considered green phase, these results indicate that not many differences exist at the fluxomics level between green and early mature samples. Even so, fluxomics seems to distinguish well the remaining green and mature samples. For the supervised analysis, repeated stratified cross-validation with 10 folds and 10 repeats was used to evaluate the models. The average evaluation results for all models are shown in Table 30. According to these results, the models performed well in predicting the grape developmental stage with this fluxomics dataset. The model’s performances across the different folds are robust, indicating that the models can learn meaningful patterns in the data and handle data variations well. Overall, RF obtained higher values for all metrics, while the SVM model presented the worst performance. Despite the results being good and the models being able to generalise correctly on the test set of each fold, the dataset is very small (73 samples), which is a common problem when working with omics data. Larger datasets are 132