scieee AI-readable full text Open interactive document viewer

PhageAnnotate viral genome classifier

Duarte, António Nuno Carrilho Canatário

Abstract

The advent of bacterial strains resistant to virtually all currently available antibiotic agents is indubitably alarming. Hence, alternative strategies for efficaciously combating such multi-drug resistant bacterial strains ought to be considered. Bacteriophages (phages), the most abundant biological entities on Earth, may play a key role in such a therapeutic revolution. Phage therapy exploits the evolutionary context of phages and bacteria: millions of years of host-parasite coevolution made phages lethal bacterial predators. Nonetheless, the process of “recruiting” phages that competently combat bacterial infections is pro foundly dependent on the thorough understanding of their biology and safety. Yet, under the tremendous diversity of phage’s genomes, most of their genes cannot be assigned to functions via homology-based techniques, significantly hindering such fundamental insights. PhageAnnotate, a phage annotation system powered by machine learning (ML), constitutes an attempt to transcend these obstacles. In order to confidently assemble a robust computational tool, several model architectures were put to test, namely Naïve, Linear, Hierarchical and Hierarchical-X. Such models, differing both at organizational and structural levels, were trained on a collection of 368.436 phage DNA sequences, and carry out a quite straightforward task: given a phage DNA sequence, assign it to a label representing a functional role. Naïve and Linear encompass a single gradient boosting (GB) model, solely differing in the organization and strictness of the labels concerning functional roles. Hierarchical adds a layer of complexity to the prob lem at hand: prior to assigning functional roles to DNA sequences, it crudely classifies them in one of six umbrella functional classes (i.e., DNA-modification, DNA-replication, lysis, lysogeny-repressor, packaging and structural); only then, and depending on the ascertained functional class, a more fine-grained func tional role labeling is performed. Such structuring translates in the construction of seven ML models: one discerning functional classes and six distinguishing functional roles. Hierarchical-X behaves identically to the latter, and stems from unsurely enlarging the sequence database utilized for training the ML models. A cautious evaluation of these model architectures dictated that PhageAnnotate ought to be embodied by Hierarchical. PhageAnnotate’s predictions are, as a result, guided by a GB model discerning functional classes, three GB models distinguishing functional roles pertaining the functional classes DNA modification, DNA-replication and structural, and three support vector machine (SVM) models discerning functional roles concerning the functional classes lysis, lysogeny-repressor and packaging. The F1 scores attained by each of these models, constituting proxy measures for their competency, were 87.57%, 82.17%, 83.38%, 84.77%, 97.30%, 83.72% and 98.14%, respectively. A thorough assessment of PhageAnnotate, and subsequent juxtaposition with current, well-established phage annotation tools revealed the indisputable usefulness of the system, being able to produce functional annotations that clearly stand out relative to those of its direct competitors.

Full text

Universidade do Minho Escola de Engenharia António Nuno Carrilho Canatário Duarte PhageAnnotate Viral Genome Classifier October 2023 UMinho | 2023 António Duarte PhageAnnotate Viral Genome Classifier University of Minho School of Engineering António Nuno Carrilho Canatário Duarte PhageAnnotate Viral Genome Classifier Masters Dissertation Master’s in Bioinformatics Dissertation supervised by Doctor Hugo Alexandre Mendes de Oliveira Doctor Óscar Manuel Lima Dias october 2023 Copyright and Terms of Use for Third Party Work This dissertation reports on academic work that can be used by third parties as long as the internationally accepted standards and good practices are respected concerning copyright and related rights. This work can thereafter be used under the terms established in the license below. Readers needing authorization conditions not provided for in the indicated licensing should contact the author through the RepositóriUM of the University of Minho. License granted to users of this work: CC BY-NC-ND https://creativecommons.org/licenses/by-nc-nd/4.0/ i Agradecimentos Embora se trate de um estudo científico de autoria única, a colaboração de várias pessoas foi indispensável para a sua elaboração. Assim, não podia deixar de assinalar o meu profundo agradecimento a todos os que, de alguma forma, contribuíram para a sua realização. Para todos os que os que se envolveram de uma forma mais direta no desenvolvimento deste trabalho, deixo um agradecimento especial. Ao meu orientador, Doutor Óscar Dias, manifesto o meu agradecimento pela sua crítica oportuna e pelas esclarecidas sugestões no delineamento deste estudo. Ao meu coorientador, Doutor Hugo Oliveira, agradeço pelo acompanhamento empenhado e permanente na elaboração deste trabalho, evidenciando sempre disponibilidade para prestar o seu inestimável apoio. Aos meus colegas de curso, agradeço por todo o companheirismo que demonstraram ao longo destes dois anos de Mestrado. Um enorme obrigado aos meus estimados colegas de Licenciatura, André, Francisca e João, com quem mantenho até hoje uma bonita relação de amizade. Finalmente, um agradecimento muito especial a quem verdadeiramente me deu a oportunidade de concretizar o trabalho do qual estas palavras são consequência. Obrigado à minha família, por todo o amor, carinho, e pelo apoio incansável em todo o meu percurso académico. Obrigado por me ampararem quando tudo à minha volta parecia inevitavelmente desmoronar-se. Obrigado por toda a paciência que manifestaram em relação às minhas (inúmeras) indecisões, e pela abertura para tolerar e aceitar as minhas vontades mais desatinadas. No fundo, um sentido obrigado por tudo, “porque alguma coisa sempre escapa à ordem dos nossos discursos; qualquer tentativa de organizá-los, deixa sempre algo de fora”. Em memória do meu avô João ii 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 University of Minho. University of Minho, Braga, october 2023 António Nuno Carrilho Canatário Duarte iii Assinado por: António Nuno Carrilho Canatário Duarte Num. de Identificação: 14739756 Data: 2023.10.31 20:50:19 +0000 Abstract The advent of bacterial strains resistant to virtually all currently available antibiotic agents is indubitably alarming. Hence, alternative strategies for efficaciously combating such multi-drug resistant bacterial strains ought to be considered. Bacteriophages (phages), the most abundant biological entities on Earth, may play a key role in such a therapeutic revolution. Phage therapy exploits the evolutionary context of phages and bacteria: millions of years of host-parasite coevolution made phages lethal bacterial predators. Nonetheless, the process of “recruiting” phages that competently combat bacterial infections is profoundly dependent on the thorough understanding of their biology and safety. Yet, under the tremendous diversity of phage’s genomes, most of their genes cannot be assigned to functions via homology-based techniques, significantly hindering such fundamental insights. PhageAnnotate , a phage annotation system powered by machine learning ( ML ), constitutes an attempt to transcend these obstacles. In order to confidently assemble a robust computational tool, several model architectures were put to test, namely Naïve , Linear , Hierarchical and Hierarchical-X . Such models, differing both at organizational and structural levels, were trained on a collection of 368.436 phage DNA sequences, and carry out a quite straightforward task: given a phage DNA sequence, assign it to a label representing a functional role. Naïve and Linear encompass a single gradient boosting ( GB ) model, solely differing in the organization and strictness of the labels concerning functional roles. Hierarchical adds a layer of complexity to the problem at hand: prior to assigning functional roles to DNA sequences, it crudely classifies them in one of six umbrella functional classes (i.e., DNA-modification , DNA-replication , lysis , lysogeny-repressor , packaging and structural ); only then, and depending on the ascertained functional class, a more fine-grained functional role labeling is performed. Such structuring translates in the construction of seven ML models: one discerning functional classes and six distinguishing functional roles. Hierarchical-X behaves identically to the latter, and stems from unsurely enlarging the sequence database utilized for training the ML models. A cautious evaluation of these model architectures dictated that PhageAnnotate ought to be embodied by Hierarchical . PhageAnnotate’s predictions are, as a result, guided by a GB model discerning funciv tional classes, three GB models distinguishing functional roles pertaining the functional classes DNA- modification , DNA-replication and structural , and three support vector machine ( SVM ) models discerning functional roles concerning the functional classes lysis , lysogeny-repressor and packaging . The F1scores attained by each of these models, constituting proxy measures for their competency, were 87.57%, 82.17%, 83.38%, 84.77%, 97.30%, 83.72% and 98.14%, respectively. A thorough assessment of PhageAnnotate , and subsequent juxtaposition with current, well-established phage annotation tools revealed the indisputable usefulness of the system, being able to produce functional annotations that clearly stand out relative to those of its direct competitors. Keywords Bacteriophages, Machine learning, Genome annotation v Resumo O surgimento de estirpes bacterianas resistentes a praticamente todos os agentes antibióticos atualmente disponíveis é indubitavelmente alarmante. Por conseguinte, devem ser consideradas estratégias alternativas para combater eficazmente estas estirpes multirresistentes. Os bacteriófagos (fagos), as entidades biológicas mais abundantes na Terra, podem, potencialmente, vir a desempenhar um papel fundamental nesta revolução terapêutica. A terapia fágica explora o contexto evolutivo dos fagos e das bactérias: milhões de anos de coevolução hospedeiro-parasita tornaram os fagos predadores letais de bactérias. Um conhecimento profundo da biologia dos fagos e da sua segurança é absolutamente essencial para que o seu “recrutamento” com destino ao combate a infeções bacterianas seja eficaz. Porém, dada a enorme diversidade dos genomas de fagos, não é possível atribuir funções à grande maioria dos seus genes através de técnicas baseadas em homologia de sequências, dificultando significativamente a aquisição de tais conhecimentos basilares. O PhageAnnotate , um sistema de anotação funcional de fagos baseado em machine learning ( ML ), constitui uma tentativa de transcender estas adversidades. Com o intuito de compor uma ferramenta computacional robusta, testaram-se diversas arquiteturas de modelos: Naïve , Linear , Hierarchical e Hierarchical-X . Estes modelos, que diferem tanto a nível organizacional como estrutural, foram treinados a partir de um conjunto de 368.436 sequências de DNA de fagos, e executam uma tarefa elementar: dada uma sequência de DNA de fagos, atribuem-lhe uma label correspondente a uma função. Os modelos Naïve e Linear integram um único modelo gradient boosting ( GB ), diferindo apenas na organização e no rigor das labels relativas a funções. O modelo Hierarchical acrescenta uma camada de complexidade ao problema: antes de atribuir funções às sequências de DNA , classifica-as de forma “grosseira” numa de seis classes funcionais (i.e., DNA-modification , DNA-replication , lysis , lysogeny-repressor , packaging e structural ); posteriormente, dependendo da classe funcional estabelecida, é efetivada uma identificação mais precisa da função destas sequências. Tal organização traduz-se na construção de sete modelos de ML : um que distingue classes funcionais e seis que diferenciam funções. O modelo Hierarchical-X opera de forma idêntica ao modelo Hierarchical , e resulta de um processo arrojado de vi 5[Continuation] Functional classes, functional roles and the corresponding number of sequences. For legibility reasons, the names of gene products are omitted. For the full portrayal of these names (i.e., the list of gene product names associated to each functional role), see Appendix’s Table A1................................ 54 6Depiction of a few relevant characteristics regarding some of the more prominent phage annotation tools. In particular, note the pertinence of Input format , Type sequence and Usage for the effective manipulation of these systems. ................. 63 7Evaluation of Naïve. Note the discrepancy between the values attained for the accuracy score and the remaining evaluation metrics. .......................... 65 8Evaluation of the models fed on all.csv. GB, gradient-boosting ; RF, random-forest ; NB, naive-bayes ; KNN, k-nearest-neighbors ; NN, neural-network ; SVM, support-vector-machine ;DT, decision-tree ...................................... 67 9Evaluation of the models fed on dna_modification.csv. GB, gradient-boosting ; RF, randomforest ; NB, naive-bayes ; KNN, k-nearest-neighbors ; NN, neural-network ; SVM, support-vector- machine ;DT, decision-tree ................................ 68 10 Evaluation of the models fed on dna_replication.csv. GB, gradient-boosting ; RF, randomforest ; NB, naive-bayes ; KNN, k-nearest-neighbors ; NN, neural-network ; SVM, support-vector- machine ;DT, decision-tree ................................ 68 11 Evaluation of the models fed on lysis.csv. GB, gradient-boosting ; RF, random-forest ; NB, naive-bayes ; KNN, k-nearest-neighbors ; NN, neural-network ; SVM, support-vector-machine ;DT, decision-tree ...................................... 69 12 Evaluation of the models fed on lysogeny_repressor.csv. GB, gradient-boosting ; RF, random-forest ; NB, naive-bayes ; KNN, k-nearest-neighbors ; NN, neural-network ; SVM, supportvector-machine ;DT, decision-tree ............................. 70 13 Evaluation of the models fed on packaging.csv. GB, gradient-boosting ; RF, random-forest ; NB, naive-bayes ; KNN, k-nearest-neighbors ; NN, neural-network ; SVM, support-vector-machine ; DT, decision-tree ..................................... 71 14 Evaluation of the models fed on structural.csv. GB, gradient-boosting ; RF, random-forest ; NB, naive-bayes ; KNN, k-nearest-neighbors ; NN, neural-network ; SVM, support-vector-machine ; DT, decision-tree ..................................... 71 xiii 15 Evaluation of the definitive models comprising Hierarchical. Datasets: ALL, all.csv ; DNA-mod, dna_modification.csv ; DNA-rep, dna_replication.csv ; Lysis, lysis.csv ; Lys-rep, lysogeny_repressor.csv ; Pack, packaging.csv ; Struct, structural.csv .ML algorithms: GB, gradient-boosting ; SVM, support-vector-machine .................................. 72 16 Number of selected features regarding each dataset feeding Hierarchical. For the full listing of selected features, visit Appendix’s Tables A17 to A23. ............ 73 17 Optimized hyper-parameter configurations for each model comprising Hierarchical. Datasets: ALL, all.csv ; DNA-mod, dna_modification.csv ; DNA-rep, dna_replication.csv ; Lysis, lysis.csv ; Lys-rep, lysogeny_repressor.csv ; Pack, packaging.csv ; Struct, structural.csv .ML algorithms: GB, gradient-boosting ; SVM, support-vector-machine ................. 73 18 Evaluation of Linear. Remember that Linear is comprised of a sole gradient-boosting model; hence the compact nature of the present table. ...................... 76 19 Best hyper-parameter configuration found for Linear. Remember that Linear is comprised of a sole gradient-boosting model; hence the compact nature of the present table. .... 76 20 Portrayal of the number of “uninformative” functional role classifications for each functional class. Note that, in the present context, “uninformative” predictions pertain to functional role categorizations yielding the expression “other-function” ............. 83 21 Depiction of the number of “informative” predictions regarding each functional role. Note that, in this context, “informative” predictions correspond to functional role classifications not yielding neither the expression “other-function” nor “” (i.e., the empty string ). .. 84 21 [Continuation] Depiction of the number of “informative” predictions regarding each functional role. Note that, in this context, “informative” predictions correspond to functional role classifications not yielding neither the expression “other-function” nor “” (i.e., the empty string ). 85 22 Juxtaposition of the number of training sequences feeding Hierarchical and Hierarchical- X. Note that, in Hierarchical’s case, for each functional role, the number of training sequences is equivalent to 80% of the sequences retrieved for that functional role. (Remember that Hierarchical’s train-test split obeyed the proportions 80%/20%. Moreover, the split was performed in a stratified fashion, that is, functional role proportions in the training and testing sets are kept according to those observed in the unsplit datasets.) .................... 86 xiv 22 [Continuation] Juxtaposition of the number of training sequences feeding Hierarchical and Hierarchical-X. Note that, in Hierarchical’s case, for each functional role, the number of training sequences is equivalent to 80% of the sequences retrieved for that functional role. (Remember that Hierarchical’s train-test split obeyed the proportions 80%/20%. Moreover, the split was performed in a stratified fashion, that is, functional role proportions in the training and testing sets are kept according to those observed in the unsplit datasets.) ........... 87 23 Evaluation of the models comprising Hierarchical-X. Datasets: ALL, all.csv ; DNA-mod, dna_modification.csv ; DNA-rep, dna_replication.csv ; Lysis, lysis.csv ; Lys-rep, lysogeny_repressor.csv ; Pack, packaging.csv ; Struct, structural.csv .ML algorithms: GB, gradient-boosting ; SVM, support-vector-machine .................................. 88 24 Percentage of data used for testing purposes regarding each dataset feeding Hierarchical- X. Note that the absolute difference in percentage points between 20% and each depicted percentage reflects sequence distribution affluence: larger percentage point differences convey larger ratios newly-allocated-sequences / original-number-of-sequences . This reveals Hierarchical’s bias towards some functional classes. ............................. 89 25 Number of selected features regarding each dataset feeding Hierarchical-X. For the full listing of selected features, visit Appendix’s Tables A25 to A31. ............ 89 26 Optimized hyper-parameter configurations for each model comprising Hierarchical- X. Datasets: ALL, all.csv ; DNA-mod, dna_modification.csv ; DNA-rep, dna_replication.csv ;Lysis, lysis.csv ; Lys-rep, lysogeny_repressor.csv ; Pack, packaging.csv ; Struct, structural.csv .ML algorithms: GB, gradient-boosting ; SVM, support-vector-machine ............... 91 27 Portrayal of the average annotation coverages regarding each set of probability thresholds in T.Note that the set [0.65,0.65] imposes an average annotation coverage that virtually matches that established as reference (i.e., 50%). ................. 94 28 Depiction of the annotation coverages attained via manual annotation and by PhageAnnotate’s predictions, and the error associated to the latter. Note that the errors, although considerably high, are computed under very specific conditions. ........... 95 29 Depiction of the annotation coverages attained via manual annotation and by PhageAnnotate’s predictions, and the error associated to the latter. Contrary to the previous analysis, a set of unrestrictive probability thresholds (i.e., [0.00,0.00]) is employed to guide the predictions of the system. ................................ 96 xv 30 Depiction of the annotation coverages attained via manual annotation and by Prokka’s predictions, and the error associated to the latter. Note that Manual coverage exactly matches that of Table 29. ................................ 97 31 Depiction of the annotation coverages attained via manual annotation and by Pharokka’s predictions, and the error associated to the latter. Note that Manual coverage exactly matches that of Table 29. ................................ 97 32 Depiction of the annotation coverages attained via manual annotation and by PhANNs’ predictions, and the error associated to the latter. Note that Manual coverage exactly matches that of Table 29. Error (structural) portrays PhANNs’ error exclusively regarding structural proteins. ..................................... 98 33 Depiction of the annotation coverages attained via manual annotation and by DeePVP’s predictions, and the error associated to the latter. Note that Manual coverage exactly matches that of Table 29. Error (structural) portrays DeePVP’s error exclusively regarding structural proteins. ..................................... 98 34 Weighted and unweighted average prediction errors. PhageAnnotate’s errors are depicted for the predictions marshaled by the sets of probability thresholds [0.00,0.00] (i.e., PhageAnnotate [0.00,0.00]) and [0.65,0.65] (i.e., PhageAnnotate [0.65,0.65]). ....... 99 A1 Gene product names pertaining to each functional role. ...............113 A1 [Continuation 1] Gene product names pertaining to each functional role. ......114 A1 [Continuation 2] Gene product names pertaining to each functional role. ......115 A2 Listing of selected features for Naïve. ........................116 A3 Listing of selected features for Hierarchical’s ALL (preliminary). ..........117 A4 Listing of selected features for Hierarchical’s DNA-modification (preliminary). ...118 A5 Listing of selected features for Hierarchical’s DNA-replication (preliminary). ....119 A6 Listing of selected features for Hierarchical’s lysis (preliminary). ..........120 A7 Listing of selected features for Hierarchical’s lysogeny-repressor (preliminary). ..121 A8 Listing of selected features for Hierarchical’s packaging (preliminary). .......122 A9 Listing of selected features for Hierarchical’s structural (preliminary). .......123 A10 Optimized hyper-parameter configurations for Hierarchical’s ALL (preliminary). ..124 A11 Optimized hyper-parameter configurations for Hierarchical’s DNA-modification (preliminary). ......................................124 xvi A12 Optimized hyper-parameter configurations for Hierarchical’s DNA-replication (preliminary). ......................................125 A13 Optimized hyper-parameter configurations for Hierarchical’s lysis (preliminary). ..125 A14 Optimized hyper-parameter configurations for Hierarchical’slysogeny-repressor (preliminary). ......................................126 A15 Optimized hyper-parameter configurations for Hierarchical’s packaging (preliminary).126 A16 Optimized hyper-parameter configurations for Hierarchical’s structural (preliminary). 127 A17 Listing of selected features for Hierarchical’s ALL (definitive). ...........128 A18 Listing of selected features for Hierarchical’s DNA-modification (definitive). ....129 A19 Listing of selected features for Hierarchical’s DNA-replication (definitive). .....130 A20 Listing of selected features for Hierarchical’s lysis (definitive). ...........131 A21 Listing of selected features for Hierarchical’s lysogeny-repressor (definitive). ....132 A22 Listing of selected features for Hierarchical’s packaging (definitive). ........133 A23 Listing of selected features for Hierarchical’s structural (definitive). ........134 A24 Listing of selected features for Linear. ........................135 A25 Listing of selected features for Hierarchical-X’s ALL. ................136 A26 Listing of selected features for Hierarchical-X’s DNA-modification. .........137 A27 Listing of selected features for Hierarchical-X’s DNA-replication. ..........138 A28 Listing of selected features for Hierarchical-X’s lysis. ................139 A29 Listing of selected features for Hierarchical-X’s lysogeny-repressor. .........140 A30 Listing of selected features for Hierarchical-X’s packaging. .............141 A31 Listing of selected features for Hierarchical-X’s structural. .............142 xvii Acronyms AI Artificial intelligence. API Application programming interface. ASCII American Standard Code for Information Interchange. BLAST Basic Local Alignment Searching Tool. CDS Coding sequence. CM Confusion matrix. CNN Convolutional neural network. csv Comma-separated values. CTD Composition, transition, distribution. DDBJ DNA DataBank of Japan. DNA Deoxyribonucleic acid. DT Decision Tree. ENA European Nucleotide Archive. FN False negative. FP False positive. gb GenBank. GB Gradient Boosting. xviii HTTP Hypertext Transfer Protocol. INSDC International Nucleotide Sequence Database Collaboration. KNN K-Nearest Neighbors. ML Machine learning. MLP Multilayer Perceptron. NB Naïve Bayes. NCBI National Center for Biotechnology Information. NIH National Institute of Health. OOP Object-oriented programming. ORF Open reading frame. ovo one-versus-one classification. ovr one-versus-rest classification. PC Principal Component. PCA Principal Component Analysis. PDB Protein Data Bank. R-M Restriction-modification. RAM Random Access Memory. RBF Radial basis function. RBP Receptor binding protein. ReLU Rectified linear unit. RF Random Forest. RFE Recursive Feature Elimination. xix RNA Ribonucleic acid. RNN Recurrent neural networks. SLP Single-layer Perceptron. SVM Support Vector Machine. TN True negative. TP True positive. TPA Third Party Annotation. t-SNE t-distributed Stochastic Neighbor Embedding. txt Text. UMAP Uniform Manifold Approximation and Projection. xx Chapter 1 Introduction 1.1 Motivation Not long ago, medical treatment addressing any bacterial-induced infectious disease was taken for granted. Meanwhile, the repeated misapplication of such treatment (i.e., antibiotics) led to profound repercussions on bacterial life on Earth. The tremendous evolutionary pressures imposed on these organisms (elicited by the excessive usage of antibiotics) forced an expeditious adaptive response that culminated in the advent of bacterial strains resistant to virtually all currently available antibiotic agents. Indubitably, alternative strategies for efficaciously combating such multi-drug resistant bacterial strains ought to be considered. A promising candidate for complementing (or even replacing) antibiotic administration is bacteriophage (phage) therapy. Phages, the most abundant biological entities on the planet (as well as the most genetically diverse), are natural bacterial predators resulting from millions of years of host-parasite coevolution, making them obvious contenders for instituting this therapeutic revolution. In recent years, remarkable advances in genome sequence technologies have revolutionized the field of genomics, allowing for the sequencing of a vast and highly diverse set of phage genomes at exponentially decreasing costs [1]. These high-throughput sequencing technologies grant access to an enormous amount of data, ready to be examined and interpreted by biologists and bioinformaticians. However, sequencing only constitutes the first step of a genome’s analysis, as the information it generates has limited biological meaning. The process of selecting phages which can potentially be effective antibacterial agents heavily depends on the understanding of their biology (e.g., replication cycles, specificity, etc.) and safety. However, under the tremendous diversity of phage’s genomes, most of their genes cannot be assigned to functions. This constitutes a major bottleneck for phage therapy, as poor-quality annotations of phage genomes hamper the assessment of candidates to be used for therapy. Genome annotation can be bisected into structural annotation and functional annotation. Structural 1 annotation corresponds to the identification and demarcation of structural elements of sequences, including open reading frames ( ORFs ), promoters, and regulatory elements, among others. Functional annotation is concerned with attributing function to these structural elements [2]. Both these procedures can be automated through computational tools, avoiding the laborious task of manually annotating sequences, which require sustained supervision by the researcher [3]. Thus, in current days, the development of computational tools that rigorously execute these annotation tasks is of invaluable worth in the fields of genomics, transcriptomics and proteomics. The development of computational tools capable of performing excellent quality structural annotations, namely for the identification of protein-coding genes, has been able to keep pace with the frantic rate at which genomes are sequenced nowadays. Most of these tools are based on complex probabilistic models (e.g., Markov models), which tend to be highly sensitive and reliable. Examples of such tools include GLIMMER (mainly utilized for the structural annotation of viral and prokaryote genomes) [4], and GeneMark (which can be used for the structural annotation of any biological entity’s genome) [5]. However, the development of new computational tools capable of producing accurate functional annotations of biological sequences has not been so evident. Current implementations follow one of two annotation approaches: homology-based and non-homology-based. The former makes use of algorithms such as BLAST (Basic Local Alignment Searching Tool) [6], grounded on the fact that proteins coded by genes with similar nucleotide sequences are likely to perform similar functions within the organism. For this reason, the performance of this kind of algorithm is greatly dependent on the quality of the annotations present in biological databases. Moreover, they are immensely dependent on the volume of available information regarding organisms phylogenetically close to the subject of study [7]. Given the ubiquity of phages, it is inevitable that an immense genetic and morphological variability arises among them. In addition, the fact that horizontal gene transfer is a very common phenomenon among phages ends up creating an extremely complex network of phylogenetic relationships. Furthermore, the number of phage genomes available in biological databases is scarce. Consequently, adopting a homology-based strategy to solve this problem results in an inadequate functional annotation of 50-90% of phage genes [8]. Under these circumstances, the development of non-homology-based tools (e.g., using machine learning techniques) for the functional annotation of phage genomes is of utmost importance, as the feasibility of biotechnological applications founded on these biological entities will immensely depend on the degree of knowledge available about them. Specifically, the study of phage-derived proteins is at the vanguard of biotechnology research, enabling their application in technologies related to molecular biology research 2 distinct magnitudes, as features with a higher span end up dominating features with narrower ranges when computing distances between data points. A standard scaler (transforms each feature value by “removing” the mean and scaling the data to unit variance, i.e., makes the mean equal to 0and the standard deviation equal to 1) or a minmax scaler (scales the data so that all feature values lie in the range [0,1]) are often employed to uniformize feature ranges, thus making them equally relevant (Equations 2.3 and 2.4). xstandard =xj−µj σj ,(∀j∈X)(2.3) xminmax =xj−min(xj) max(xj)−min(xj),(∀j∈X)(2.4) Hierarchical clustering works by iteratively building a tree of clusters which groups instances of the dataset based on their similarity. This tree is built bottom-up (i.e., each data instance starts in its own cluster and more similar clusters are grouped first) or top-down (i.e., all data examples start in one cluster and least similar clusters are partitioned first), with similarities between clusters of examples being computed by one of three ways: 1. Single linkage – the distance between clusters is the minimum distance between a pair of examples of each cluster. 2. Complete linkage – the distance between clusters is the maximum distance between a pair of instances of each cluster. 3. Average linkage – the distance between clusters is the average distance between all examples of both clusters. Finally, k-means is an algorithm that iteratively groups data examples in a pre-defined number of k clusters. Commonly, to initialize each of the kclusters, kdata examples are randomly selected as cluster centers (usually referred to as centroids). Then, the algorithm iteratively groups data instances by assigning them to their closest centroid, whose coordinates are updated by computing the mean coordinates of the examples grouped at each centroid. In its most simple form, convergence is declared when there is no change in instance assignment between two iterations of the algorithm. The initial random choice of centroid coordinates does not guarantee an optimal solution, which would only be attainable by trying all possible combinations of kdata examples as cluster centers. This approach is not feasible, as the number of total combinations exponentially increases as the number of instances grows. To surpass this issue, 9 the algorithm is often run some pre-determined number of times and the best solution found (i.e., the one which minimizes the distances between each cluster center and the respective data instances) is selected. 2.1.2 Model selection and evaluation The process of model selection and evaluation is of major importance in any ML workflow, having, in many cases, the potential to significantly enhance the model’s predictive capacity. In this section, four essential topics pertaining model selection and evaluation are addressed, namely feature selection, cross-validation, hyper-parameter tuning and model assessment. Feature selection Feature selection refers to the process of selecting a subset of the dataset’s features to be used for training a given ML model. The idea behind such a process is to remove features which are either redundant (i.e., with a high degree of similarity with other feature(s) of the dataset) or irrelevant (i.e., show no relationship with the output variable or have low variability). This operation, carried out over the entire feature space, is often useful for a wide variety of reasons, mainly related to model performance and interpretability [24]: • Reducing the number of free variables leads to a decrease in the model’s complexity, allowing for an easier interpretation of the mechanisms which produced it. • Training times are shorter, as the number of mathematical operations to be performed is smaller. • A reduced set of features prevents the model from overfitting to the data (i.e., performing well on training data, while behaving poorly on unseen testing data) as complexity gets lower. • Prevents subpar performance of clustering methods and supervised learning algorithms which compute distances in the training process, as a high dimensional feature space leads to an increased risk of data instances seeming to be equidistant from all others. Ideally, to solve this problem, a brute-force approach (i.e., exhaustive search) would be employed. However, determining all possible subsets of features over the feature space and training a model based on each one of these subsets becomes computationally intractable as the number of attributes grows. For this reason, some less computationally expensive methods are utilized to tackle this issue. These methods can be divided into three main categories [25]: 1. Wrapper methods make use of a predetermined ML model to score subsets of features according to the respective predictive power. The search for the best subset of features is usually done via 10 greedy algorithms, not guaranteeing an optimal choice of features. Common examples of wrapper methods for feature selection include forward feature selection, backward feature elimination and recursive feature elimination ( RFE ). 2. Filter methods, instead of searching for a subset of features, use statistical measures to rank individual features with respect to their inherent variability or based on the strength of their relationship with the outcome variable (label). Usually, either a predetermined number or percentage of features is selected based on these rankings. Filter methods may, sometimes, be preferable over wrapper methods, as they are faster and, since selection is independent of the ML model to be employed, provide a more generic way of selecting attributes. However, for this same reason, they often offer lower predictive performance. A useful approach is to employ filter methods as a preprocessing step for wrapper methods, allowing for the latter to be efficiently used on larger datasets. Examples of measures used to rank features are mutual-information , Pearson correlation and Spearman correlation . 3. Embedded methods comprehend a group of techniques in which feature selection is itself a component of the model training process. Generally, these methods employ regularization/penalty terms that reduce the importance of each feature at each step of training. Embedded methods are only applicable to ML algorithms which associate coefficients/weights to each attribute, making them less flexible when compared to the previously mentioned methods. Examples of embedded methods include Lasso / L1 regularization, Ridge / L2 regularization and elastic net regularization, which combines the penalties of Lasso and Ridge . Cross-validation Whenever a particular dataset contains a large number of examples, it is common practice to divide the data into three subgroups: training data, testing data and validation data. The latter is used to adjust the ML model by computing scoring metrics on the model’s predictions (extended description of scoring metrics used in classification problems available in Metrics for model assessment) and tweaking it accordingly (more on this topic in Hyper-parameter tuning). Testing data is exclusively utilized at the last step of an ML workflow, sufficing as a final validation procedure to be taken prior to model deployment. However, if the dataset is small (i.e., contains few data instances), it may be prohibitive to have both validation and test sets. To solve this problem, a technique called cross-validation is often employed. This method allows for the dataset to be split into only two subsets, training and testing, with data examples 11 which would normally be included in the validation set being encompassed on the training set, obviously granting access to more data to train the model on. Cross-validation is then used on the training set to simulate a validation set [16]. Distinct types of cross-validation are available, which can be divided into two major subcategories: exhaustive and non-exhaustive cross-validation. Nonetheless, they are all based on the idea of using different portions of the training set to train and validate the model over a pre-determined number of iterations. This repeated process allows to assess, with statistical significance, how well the model is able to generalize, as scoring metrics are computed several times. For instance, computing the mean and the standard deviation of model scores permits a more robust comparison between different models, as significance tests can be performed based on these measures. Exhaustive cross-validation refers to the process of dividing the original training set into training and validation in all possible ways according to a given rule. Leave-one-out and leave-p-out cross-validation are further discussed. In leave-one-out cross-validation, the model is trained on all data except for one example, which is used for validation. This procedure is carried out a fixed number of times, equal to the number of data instances in the original training set. Leave-p-out cross-validation operates is a similar way. However, instead of just utilizing one data example for validation it uses a pre-established number pof data examples to do so. This approach becomes computationally intractable as pincreases, as the model is validated on all possible combinations of pdata examples (the total number of combinations is given by CN p, with Ncorresponding to the number of examples in the original training set). Unlike the previous methods, non-exhaustive (also referred to as stochastic/randomized) cross-validation methods, do not use all possible partitions of the data to train and validate the model. Instead, they perform a pre-determined number kof random splits on the initial data, and the model is only trained ktimes. These methods are, therefore, approximations of leave-p-out cross-validation, which get closer to the true “exhaustive” result as kgets higher. Also, varying results are produced depending on the random splits the cross-validation algorithm generates. 2The non-exhaustive k-fold and repeated random sub-sampling cross-validation methods are analyzed next. The former starts by randomly splitting the training set 3into kequally sized data partitions/folds. Then, for every fold p, validation is set to pand the remaining k−1 folds are used for training (Figure 2). Repeated random sub-sampling cross-validation also makes use of a parameter kto determine the number of times the original training set is split. Yet, contrary to k-fold , these splits are randomly created at each iteration of the algorithm, meaning that the proportion of data instances used in training and validation is not dependent on k, and that validation subsets might (and 2Reproducible results may be attained by seeding the random split generator. 3If data points are not clustered, that is, not ordered by their labels, the training data can be linearly divided, and the stochastic component of the cross-validation algorithm is disregarded. 12 Figure 2: Diagram representation of a 5-fold cross-validation routine. Adapted from [26]. At each iteration, the model fitted on the training sets is evaluated on the test/validation set by computing the error associated with its predictions. At the last step of the algorithm, the errors are averaged so that a more robust evaluation of the model is attained. most probably will) overlap between distinct iterations. Hyper-parameter tuning A model hyper-parameter is a non-trainable parameter (i.e., its value cannot be estimated from data) used to guide/control the learning process. Depending on the ML algorithm, distinct and well-defined settings are required for it to operate, evidencing that distinct ML algorithms are parameterized by different sets of allowable hyper-parameters. Although the hyper-parameters of a model cannot be trained, their tuning is a common model selection procedure. There is a myriad of methods developed to accomplish this task, all based on testing different combinations of hyper-parameter values and finding the combination which minimizes the error associated with the model’s predictions. Four customary methods, which usually employ cross-validation to increase the robustness of their outputs, include grid-search , halving-grid-search , randomized-search and Bayesian-search . Grid-search is an exhaustive hyper-parameter tuning method in which all possible combinations of hyper-parameter values are tested. The range of values chosen for each hyper-parameter must be carefully picked by the ML practitioner, as the number of possible combinations exponentially increases with the number of values considered for each hyper-parameter (thus making the process computationally infeasible). Halving-grid-search tuning [27], [28], is an iterative procedure that uses successive halving of hyperparameter combinations at each iteration of the algorithm. In the first iteration, it tests all possible hyperparameter combinations using very limited resources (i.e., few data instances are used when training 13 the model, allowing for significantly reduced running times), and the worst-performing combinations are discarded. In subsequent iterations, only the remaining combinations are tested, and increasingly larger amounts of data are used to train the ML model. In the last step, two hyper-parameter combinations are tested, and all data points are used for training. It is important to note that the proportion of discarded combinations and the factor by which the number of data points used in training is incremented at every iteration are themselves tunable. Halving-grid-search allows for a wider range of values to be tested when compared to the exhaustive grid-search . However, contrary to the latter, does not guarantee an optimal combination of hyper-parameter values. Randomized-search tuning is the most widely employed method for hyper-parameter optimization. The philosophy behind it is very similar to grid-search . However, the number of hyper-parameter combinations to test (k) is determined prior to the tuning. These combinations are randomly sampled over the entire hyper-parameter search space, allowing for arbitrarily large value ranges across all evaluated hyper-parameters, as the computational cost of tuning is not dependent on their span. As before, an easily identifiable drawback associated with randomized-search lies in the fact that an optimal combination of hyper-parameter values is not guaranteed. Bayesian-search , contrary to all previous methods, “memorizes” past model evaluation results, which are then used to build a continuously adjusted stochastic model which approximates the actual objective (i.e., error) function by linking hyper-parameter combinations to a score/error probability (Figure 3). Such a probabilistic model is usually called a surrogate model for the objective function. The surrogate is evaluated in a considerably more efficient way than the objective function itself. Hence, to minimize the use of computational resources, each hyper-parameter combination is assessed by the surrogate function before it is tested as a model hyper-parameter setting. This iterative process includes 5general steps: 1. Build a surrogate stochastic model for the actual objective function. 2. Find the hyper-parameter combination which generates the best results on the surrogate . 3. Try the previous combination as a model hyper-parameter setting 4. Adjust the surrogate model to account for the preceding results. 5. Repeat steps 2-4until a maximum number of iterations or a time limit is exceeded. By carefully choosing the most promising combinations, Bayesian-search often yields better results than halving-grid-search and randomized-search . Also, it generally produces very similar results to the exhaustive grid-search in less time [29]. 14 Figure 3: Objective function approximation via a surrogate model. From [29]. Initially, the surrogate model may not be a good approximation of the objective function. However, usually, after a few iterations, the probabilistic model almost exactly matches it. Black line , surrogate model estimate; gray area , uncertainty of the surrogate estimate; red dotted line , true value of the objective function; black dots , iterations of the Bayesian-search algorithm. Metrics for model assessment All metrics used in ML classification problems are computed based on a contingency table usually referred to as a confusion matrix ( CM ). A CM is a 2-by-2table, whose values represent the relationships between the true labels of data instances and the outputs predicted by a given ML model based on these same instances. This 2-by-2design assumes a binary classification setting, with the two classes often being denoted as Positive and Negative . This could be troublesome whenever the problem at hand is of multiclass classification. However, the outputs of such type of problem can be easily adjusted to fit a binary output. In this scenario, assessment metrics are not directly computed by observing the CM values, usually being determined as follows: 1. For a given class in the set of possible values the label can take, fix it as Positive and consider all other classes as Negative . 2. Compute the desired metrics based on the previous settings. 3. Average the attained results. 4. Repeat steps 1-3for the remaining classes. Commonly, the rows of a CM represent the true labels of the data examples and its columns denote the outputs of the model (predicted values). The Positive and Negative instances correctly predicted by 15 the model are called True Positives ( TP ) and True Negatives ( TN ), respectively, whereas wrongly predicted examples are denoted by False Positives ( FP ) if the model predicted Positive and the actual label is Negative , and by False Negatives ( FN ) in cases where the true label is Positive and the model’s output is Negative . Every classification assessment metric is determined by utilizing a combination, usually in the form of a ratio, of the previously described concepts, the most conventional ones being the accuracy score, the precision score, the recall score and the F1score (Equations 2.5 to 2.8). Depending on the problem, different metrics might be selected to assess the quality of the model’s predictions. accuracyscore =TP +TN TP +TN +FP +FN (2.5) precisionscore =TP TP +FP (2.6) recallscore =TP TP +FN (2.7) F1score =2×precision ×recall precision +recall =TP TP +1 2×(FP +FN)(2.8) The accuracy score corresponds to the fraction of examples correctly classified by the model. It is often a good indicator of the quality of the model’s predictions, immediately rejecting models which underperform relative to it. Nevertheless, a cautious interpretation of this metric is advised, as it might lead to erroneous assumptions about the quality of the model whenever a satisfactory score is attained. This is especially relevant whenever, within a given dataset, one class completely dominates the other(s), as a high score can be easily obtained by building a model which always predicts data instances to belong to the over-represented class. For instance, consider a dataset divided into two classes A and B , and such that 99% of the examples belong to class A . If the model invariably predicts a new data instance to belong to class A , a very optimistic accuracy score of 99% would be attained. Such imbalanced datasets are frequent; therefore, the previously mentioned metrics, that is precision , recall and F1score, should also be taken into account for a more robust evaluation of the ML model. The precision score corresponds to the ratio between the examples correctly labeled as Positive ( TP ) and all data instances classified as Positive ( TP + FP ) by the model, that is, the percentage of examples predicted as Positive that actually belong to this class. Its emphasis on False Positives makes this metric particularly useful whenever the risk of wrongly predicting an example as Positive is high. For instance, a model that predicts whether a patient should undergo heart surgery must be highly precise, as the level 16 of risk associated with this kind of surgery is considerable; therefore, it obviously must not be performed on healthy subjects. The recall score is the fraction of actual Positive examples ( TP ) correctly identified by the ML model, over the universe of all true Positive instances ( TP + FN ). A strong capacity to correctly recognize Positive cases ( sensitivity ) is of immense value whenever the risk of missing any true Positive case is significant. For instance, an ML model which tries to predict whether a patient suffers from breast cancer based on a screening test must excel at identifying all Positive cases, as wrongly classifying a case as Negative might be fatal. The F1score computes the harmonic mean of the precision and recall scores, also being considered a measure of a model’s accuracy on a dataset. A drawback associated to this metric is that it equally weighs precision and recall in its calculation, which might not be useful whenever different types of misclassifications have distinct costs [30]. Yet, in such cases, this problem is easily solved by slightly adjusting the F1score formula (Equation 2.9), in which a parameter βis used to differentially weigh the precision and recall scores. If β=1, precision and recall are considered to be equally important; if β>1, more importance is attributed to recall ; if β<1, more relevance is given to precision . Relative to the accuracy score, it has the disadvantage that is not as easily interpreted. However, it is a significantly more robust metric in cases where there is a large class imbalance and/or there are distinct costs associated with wrongly predicting Positive and Negative cases [31]. Fβscore = (1 + β)2×precision ×recall (β2×precision)+recall =(1 + β2)×TP (1 + β2)×TP +β2×FN +FP (2.9) 2.1.3 Algorithms for classification problems In recent years, as the field of ML expanded, so did the number of learning algorithms available to ML practitioners, sometimes making the task of assessing the adequacy of a learning algorithm for a specific problem rather difficult. In an ideal world, where time and computational resources are not limited, all algorithms would be tested and the most promising one would be ultimately chosen. However, this is generally not the case, and the choice of learning algorithm(s) to use must be rationalized. Some aspects to be considered include [16]: • Explainability and performance – there is usually a trade-off, as algorithms which produce more accurate predictions typically result in less explainable models, and more interpretable models are commonly less accurate. 17 • Available memory – it might not be possible to load the entire dataset into Random Access Memory ( RAM ). • Number of examples and features – some learning algorithms thrive on large numbers of data examples and features, whilst others have a very limited capacity. • Linearity of the data – algorithms which require the data to be linearly separable underperform on non-linear datasets. • Training and prediction speeds – a compromise must be reached, as training and prediction times are frequently inversely proportional. In the following subsections, some widely used classification algorithms are introduced and briefly explained. K-Nearest Neighbors K-Nearest Neighbors ( KNN ) is perhaps the simplest learning algorithm, being referred to as KNN Classifier in a classification setting. It is a non-parametric algorithm which entirely skips the training step, only storing the training dataset and, therefore, producing a model that is not explicitly learned from the data. The label of a new (unseen) data point xis predicted by firstly computing its distance (e.g., Minkowski distance or cosine similarity ) to all examples of the training set, and determining the kclosest examples to x. Then, the labels of the kclosest examples are registered and, by majority vote, the most prevalent is assigned to the unclassified data instance. The most simplistic version of the algorithm assumes k=1, although considering a single nearest neighbor is not advised, as it may result in misclassifications arising from the fact that outliers might exist in the training dataset. For instance, if the nearest neighbor to a new data instance is an outlier which belongs to a class whose data points would not normally be located close to the new point, the chance that the latter is misclassified is very high. Beyond using a greater value of k, KNN may be enriched by weighing each kneighbors based on their distance to the unseen data example. A common procedure is to weigh each neighbor by ranking their distances to the new example: from nearest to furthest, each neighbor is weighted by a factor of (k–i+ 1),i∈1,2,3,…,k[16], [32]. KNN is computationally very expensive, as, although the training process is trivial, it is often the case that very large amounts of data need to be stored, occupying a sometimes-infeasible amount of RAM storage. Moreover, the distances between all new data points and every data instance of the training dataset must be computed, resulting in very slow prediction speeds. There are heuristics which improve on this brute-force approach but are still generally slow and only guarantee approximate kclosest data instances 18 Figure 6: MLP comprising a single hidden layer. From [24]. At the hidden layer, a 4 -dimensional feature space Xis non-linearly mapped onto a 5 -dimensional feature space A, which, in turn, directly maps onto the output y. ( SLPs ), are considered. At the input layer, each neuron Xp(p∈{1,2,…,P},P= number of features in the dataset) signals information to the hidden layer A, where each neuron Ak5is computed via a linear regression model fed on Xand activated by a pre-specified non-linear activation function. The latter step is essential to introduce non-linearity to the model, which would otherwise only be able to capture linear relationships between X and y. At hidden layers, the sigmoid activation function (Equation 2.15) or the ReLU ( rectified linear unit ) activation function (Equation 2.16) are commonly utilized. g(z)sigmoid =ez 1+ez=1 1+e−z(2.15) g(z)ReLU =0 if z < 0else z (2.16) To map Aonto the output y, yet another linear regression model is employed, whose output activation is dependent on the nature of the problem at hand. Moreover, the number of output neurons is also dependent on the particular task. In regression problems, the output is spuriously activated by the identity activation function, which simply returns its input, that is g(z)=z. At the output layer, the network collapses to a single neuron comprising the predictions of the model on each feature vector of X. On the other hand, in classification tasks, the activation function to be employed depends on the number of distinct classes kpresent in y. If k=2, the sigmoid function is generally used, as its output can be 5Note that the number of neurons Kis a tunable hyperparameter of the SLP . 25 interpreted as the probability that a given data instance belongs to class 0or 16. At the output layer, a single neuron “decides” the labels (y∈{0,1}) of each data example. Otherwise, if k>2, the softmax activation function (Equation 2.17) is applied, generalizing the output of the sigmoid function for an arbitrary number of classes. Here, for each data instance x,ak-dimensional vector f(x)is produced, where each element f(x)i,i∈{1,2,…,k}, corresponds to the probability of class ibeing the true label yof x. The number of neurons at the output layer is the same as the number of distinct classes in y. g(z)softmax =ezm #k i=1 ezi ,(∀m∈y)(2.17) To train the model, the previously described computations are performed a pre-defined number of times, usually referred to as epochs. At each epoch, the SLP is fitted on the same data. However, its parameters (those regarding the linear regression models) are slightly adjusted based on the error attained at the previous epoch. To do so, the error attained at each epoch is backpropagated through the network layers and the model parameters are tweaked accordingly. This process is generally carried out via gradient descent techniques, involving the calculation of partial derivatives of the error at each layer with respect to the parameters to be adjusted [24]. 2.2 Case study – Bacteriophages Bacteriophages, also known as phages, constitute a class of viruses that exclusively infect and kill bacterial cells to replicate. They are the most abundant and diverse biological entities on the planet, adding up to an estimated number of 1031 phage particles, and inhabiting a very diverse set of ecosystems [40]. Like all other types of viruses, phages are highly specialized, usually infecting only one species of bacteria. 7This high specificity is conferred by gene-encoded receptor binding proteins ( RBPs ), which are responsible for the recognition and attachment to host cells during viral entry [41]. Following recognition of their hosts, phages adopt one of three replication strategies, which can be differentiated in terms of bacterial survival, phage survival, phage genome replication, phage virion production and phage progeny release [42]. Each type of strategy and their respective characteristics are summarized in Table 1. Nevertheless, phage infections are typically divided into two distinct categories: lytic and lysogenic (Figure 7). 6If needed, the binary classification problem is easily adjusted to fit these classes. 7Although some phages infect many species or even bacteria from other genera. 26 Table 1: Phage infection strategies. Adapted from [42]. (a) Phage particles are released upon lysis of the host cell. (b) Virion release occurs via extrusion or budding. Infection type Bacterial survival Phage survival Phage genome replication Phage virion production Phage progeny release lytic no yes yes yes lysis (a) chronic yes yes yes yes chronic (b) lysogenic yes yes yes no no Phages’ ubiquity makes it inevitable that an immense genetic and morphological variability arises among them. This incredible diversity is strongly related to genetic mosaicism phenomena 8, differing from the traditional phylogenetic hierarchy observed in more complex organisms [44]. Moreover, their genomes can be organized in single-stranded RNA / DNA ( ssRNA / ssDNA ) or double-stranded RNA / DNA ( dsRNA / dsDNA ), with sizes varying from approximately 2.000 bp to 540.000 bp . The genomes are packed into a capsid (a protein envelope), which can take several distinct forms: polyhedric ( Microviridae , Corticoviridae , Tectiviridae , Leviviridae and Cystoviridae families), filamentous ( Inoviridae family), pleomorphic ( Plasmaviridae family), or connected to a tail ( Caudoviricetes class) [44]. Despite all variability, phagecoded proteins are usually split into three categories depending on their function: DNA modification and replication , cellular lysis , and structural . To illustrate the previous point, Figure 8 shows a typical phage genome, whose genes code for proteins that fit the previously mentioned categories. Since their discovery, by the British bacteriologist Frederick William Twort in 1915, they have been raising a lot of interest within the scientific community. Two years after their discovery, they were, for the first time, recognized as potential antimicrobial agents. At this time, this discovery ended up not having a significant impact, as it coincided with the advent of antibiotics, which naturally gained protagonism in the combat of bacterial infections [45], [46]. Since then, the number of biotechnological applications associated with phages has been rapidly increasing. Peculiarly, amidst all these applications, the one that has been gathering the most attention is phage therapy, after being recognized and practically discarded over one century ago. This renewed interest is mainly due to the emergence of a serious global public health crisis: bacterial resistance to antibiotics [47]. In these circumstances, phage therapy is on the front line to complement or even substitute the use of antibiotics for the treatment of bacterial infections. 8Adjacent regions of a phage’s genome may have distinct evolutionary histories due to recombination events mediated by horizontal gene transfer between species with different ancestry. 27 Figure 7: Lytic and lysogenic replication cycles. (a) Lytic strategy: the viral particle recognizes its host, injects its DNA into the bacterial cell and makes use of the host’s enzymatic machinery to replicate its genetic material; multiple copies of the virus are assembled and released upon lysis of the host. (b) Lysogenic strategy: after recognizing and infecting the host, the viral genetic material is integrated into the host’s genome (prophage) and replicated without causing cellular lysis. (c) Depending on the environmental conditions/stimuli, one cycle can be converted into the other [43]. Figure 8: Genomic map of the phage 3043-K38. 3043-K38’s genes are differentially colored depending on the functional role of the respective proteins. Clearly, a significant portion of 3043-K38’s genome is still not adequately annotated. 28 Phage research is, then, of vital importance in this day and age. A deep understanding of the molecular mechanisms associated with these biological entities may have, in the near future, a great impact in the biotechnology industry, potentially ensuring the preservation of millions of, otherwise condemned, lives. 2.2.1 Phage proteins Despite all the genetic and morphological variability associated with phages, their proteins are often grouped in three major functional types/classes: DNA modification and replication, structural, and cellular lysis. In the next subsections, a brief description of each of these categories is provided. DNA modification and replication Immediately after injecting their DNA inside the host cell, phages take over the host’s protein machinery to express their own gene products. This is still an emerging field and only a few proteins have been identified to inhibit or divert key metabolic host functions, such as impacting the host’s replication (e.g., the gene product Gp8 of phage N4 against E. coli’s DNA polymerase HolA ), DNA transcription (e.g., Gp2 from E. coli phage T7 against RNA polymerase RpoD ), and cell division machinery (e.g., T7’s Gp0.4 targeting the cell division protein FtsZ )[48]. In parallel, to prevent their DNA from being cleaved by diverse host immunity systems (the most common being restriction-modification , R-M , systems), phages have evolved to encode proteins that incorporate base modification systems to keep their genome resistant to the bacterial R-M systems. For instance, T4 phages transform their genome’s cytosines via two distinct types of modification, 5 -hydroxymethylation and glucosylation, making them highly resistant to virtually all the restriction endonucleases of E. coli [49]. Additionally, phages utilize a set of DNA replication proteins (e.g., DNA binding, DNA polymerase and DNA helicase) which make them capable of overexpressing their genes upon replication of the host’s genetic material. DNA binding proteins, as their name suggests, refer to proteins which possess DNA binding domains, having affinity for specific regions of the DNA molecule. Examples of such proteins include transcription factors, which modulate the process of transcription by down-regulating or up-regulating the expression of genes. DNA polymerases are the proteins which are fundamentally responsible for the replication of DNA molecules. To catalyze the synthesis of DNA , polymerases repeatedly add nucleotides to the nascent DNA molecule only incorporating those which are complementary to the nucleotides of the original DNA molecule (template). Lastly, DNA helicases are responsible for disrupting the hydrogen bonds which hold the two stands of DNA together. This unwinding process allows to rearrange the DNA molecule in such a way that it can serve as a bipartite template for its replication [50]. 29 Figure 9: Morphologies of three Caudoviricetes families. Adapted from [51]. From left to right, Myovirus ( T4 ), Podovirus ( P22 ) and Siphovirus ( p2 ) morphologies. Structural As their name might suggest, structural proteins are responsible for the structuring of phage particles. Most phages belong to the Caudoviricetes class, having a dsDNA genome confined within a polyhedral head (capsid), to which a tail is attached. Depending on their family (within Caudoviricetes ) they may have slightly distinct morphological organization (Figure 9). However, independent of their morphology, structural proteins can be subdivided into three functional modules (capsid, capsid-tail connectors and tail), which can be further subdivided into ten main structural functions: major capsid , minor capsid , portal , head-tail joining , collar , major tail , tail sheath , minor tail , baseplate and tail fiber [51], [52]. A brief description of these ten major functional classes is provided below. Major capsid proteins constitute the phage’s head. Minor capsid proteins are responsible for decorating/stabilizing the head. Portal proteins form a ring at the base of the head, setting up a channel for bidirectional passage of DNA and providing an attachment surface for the phage’s tail. Head-tail joining proteins form rings, which are inserted between the portal and the tail. Collar proteins are located at the top of the phage’s tail and are responsible for controlling the contraction of the tail fibers. Major tail proteins form the inner portion of the tail tube, whereas tail sheath proteins constitute the outer portion of the tail. Minor tail proteins comprise a wide range of proteins responsible, among others, for the assembly of the tail. Baseplate proteins are located at the bottom of the tail, connecting it to the tail fibers, which have the functional role of determining the host range/specificity [52]. 30 Figure 10: Bacterial cell envelopes. Adapted from [55]. (a) Gram-positive bacteria; (b) Gram-negative bacteria. CM , cytoplasmic membrane; PG , peptidoglycan; OM , outer membrane. Cellular lysis At the last stage of phage infection, newly assembled phage particles must have the capacity to let go of their bacterial hosts. To do so, they must be able to surpass the physical barriers imposed by bacteria. Such barriers, arranged in a multi-layered structure, are composed of a cytoplasmic membrane, a cell wall and, in the case of Gram-negative bacteria, an outer membrane (Figure 10). Both membranes are constituted by a hydrophobic phospholipidic bilayer, which prevents leakage of cell constituents and protects the cell from exterior aggressions [53]. In turn, the cell wall, mainly constituted by peptidoglycan, is responsible for the maintenance of the bacterial cell shape, and for conferring mechanical resistance to osmotic pressure (preventing the cell from lysing) [54]. Phages which infect Gram-positive bacteria overcome these barriers by employing a two-step strategy to lyse their hosts. First, endolysins (phage encoded peptidoglycan hydrolases) steadily accumulate in the bacterial cytoplasm during development of new phage particles. As endolysins are not capable of crossing the cytoplasmic membrane of bacteria, holins opportunely induce the formation of holes in this structure, allowing endolysins to be released to the cell wall and rapidly degrade it. Not able to cope with the increasing osmotic pressure, the bacterial cell ends up bursting, and the phage particles are freed [55]. Gram-negative bacteria infecting phages have a third obstacle to surpass: the bacterial outer membrane. Recent studies revealed that another type of protein, namely spanins , is left with this task. This process is carried out not by a degradative mechanism, but by achieving a topological solution, where a spanin complex is responsible for the fusion of the cytoplasmic and outer membranes, allowing for the holin - endolysin pathway to be carried out [56]. 31 2.3 Databases and Python Libraries Just like any other “high-level” computational system, PhageAnnotate is built upon preexisting databases and software. A brief description of such building blocks is provided in the next sections: 2.3.1. Databases presents NCBI , a highly influential bioinformatics resource encompassing a series of biological databases, and hosting tools and services relevant for the execution of bioinformatics analyses; 2.3.2. Python and Libraries introduces the Python programming language and presents some libraries crucial for the development of the envisioned ML system. 2.3.1 Databases NCBI [57] is a highly valuable resource for bioinformatics research. It is mainly comprised of a large group of biological databases which are highly relevant to the field of biotechnology. Additionally, it provides an extensive set of bioinformatics tools for the analysis of biological sequences (e.g., BLAST ). Some of its most popular databases include PubMed (a bibliographic database for biomedical literature), Nucleotide (a database for DNA sequences and their annotations) and Protein (a database for protein sequences and respective annotations). Below, Nucleotide , a database playing a pivotal role in the development of PhageAnnotate is further dissected. Nucleotide The Nucleotide database comprehends an extensive set of DNA records (i.e., sequences and the respective annotations) gathered from several sources. Such sources include, among others, GenBank and RefSeq . GenBank is the National Institute of Health ( NIH ) database for genetic sequences, comprising the complete set of all publicly available DNA sequences. Along with the DNA DataBank of Japan ( DDBJ ) and the European Nucleotide Archive ( ENA ), it is a member of the International Nucleotide Sequence Database Collaboration ( INSDC ), which promotes the exchange of data between these three organizations on a daily basis (i.e., sequence information submitted to one of these databases is promptly made available to the remaining members of the consortium). GenBank’s most recurrent source of data is direct submissions from scientists, depending on the quality and reliability of their contributions to keep the database as “comprehensive, current and accurate as possible”. RefSeq constitutes a comprehensive, non-redundant and well-annotated collection of taxonomically diverse sequences records (including sequences from plasmids, organelles, viruses, archaea, bacteria and eukaryotes), providing a stable reference for tasks pertaining genome annotation, gene identification 32 and characterization, or gene expression studies. Sequence records regarding a restricted set of organisms (primarily mammals) are curated by NCBI staff, improving on the reliability of the database. Other databases, such as TPA ( Third Party Annotation ) and PDB ( Protein Data Bank ) also contribute to the collection of sequences present in Nucleotide . Nonetheless, and without disregarding their meritorious contributions, these databases are not further discussed. 2.3.2 Python and Libraries Python [58] is a high-level, highly versatile programming language, that may be applied to an extensive set of problem classes. Created in the late 80s and released to the public in the early 90s, it was originally conceived by the Dutch computer scientist Guido van Rossum, and its name derives (contrary to what one may think) from the popular British comedy troupe Monty Python . Since its creation, it has gained a lot of popularity among the computer science community, as its design philosophy clearly emphasizes on code readability and ease of use, making Python an excellent choice for novice programmers unfamiliar with the task of coding. The language comes with a series of pre-installed built-in functions and data types, and additional, more specific functionality may be easily imported from the vast set of modules available upon installation of Python . For example, the Python library os implements a very straightforward interface with the computer’s file system, allowing for the user to easily navigate, create and modify files and directories. Moreover, independently installing libraries such as NumPy [59], pandas [60] and SciPy [61] allows for an effective use of Python in scientific computing, and libraries like Biopython provide more domain-specific functionality. Importantly, Python follows a programming paradigm usually referred to as object-oriented programming ( OOP ), although it also supports other paradigms, including procedural and functional programming (e.g., classic functional procedures such as map,filter and reduce are available as built-in functions in Python ). At the heart of OOP is the concept of class, which allows for the programmer to specify new data types whose implementation is hidden from the end-user, constructing an abstraction barrier that clearly isolates the use of programs from their internal representation. A class then serves as a template for creating specific instances, usually called objects, all sharing the same state variables (the class attributes) and behavior (the class methods implementing the so-called basic operations on the new type). As a rule of thumb, although this principle is not enforced by Python , an object must only be interacted with via the methods (basic operations) available to it. 33 The next subsections briefly describe a few third-party libraries crucial for the development of PhageAnnotate . Biopython and propy3 Biopython [62] is a Python library which allows for the processing and analysis of sequence records, as well as their retrieval from biological databases such as NCBI . Some of Biopython’s features include Python classes for better handling biological data, parsers for widely used file formats in the bioinformatics community (e.g., FASTA and GenBank ), methods for accessing online databases (e.g., NCBI ) and modules for sequence clustering (e.g., hierarchical clustering and k-means clustering). Additionally, it provides a module, namely SeqUtils.ProtParam.ProteinAnalysis, implementing several protein analysis metrics (e.g., for a given protein sequence, metrics such as the molecular weight , the aromaticity or the isoelectric point may be computed). A complete description of all Biopython’s functionalities may be found in [63]. The library propy3 [64] complements the set of protein analysis metrics offered by Biopython . Using its functionality, a large number of protein descriptors may be computed. These descriptors include, among others, the amino acid composition , the di-peptide and tri-peptide compositions , and the CTD ( composition, transition, distribution ) descriptors. Among the set of descriptors jointly provided by Biopython and propy3 , a few stand out for their virtually universal application in biotechnological ML systems encompassing the annotation of biological sequences. Such descriptors, which allow to represent sequences as feature vectors, are briefly described below. •Amino acid composition (20 features). The relative frequency of each amino acid in the protein sequence. •Dipeptide composition (400 features). The relative frequency of each of the 400 (20 ×20) possible dipeptides in the amino acid sequence. •Molecular weight (1feature). The molecular weight of the protein corresponding to the amino acid sequence. •Aromaticity (1feature). The aromaticity value of the protein. Corresponds to the summation of the relative frequencies of the amino acids phenylalanine , tyrosine and tryptophan in the protein sequence. •Instability index (1feature). A proxy measure of in vivo protein stability based on the stabili- 34 characters) format. The process of transforming the sequences to a representation adequate for feeding the ML models is usually denoted by sequence featurization . MLDataset is, again, implemented as a Python class, and its constructor takes in four mandatory arguments: file,prot_name,ttable and icodons.file corresponds to the name of the FASTA file containing the DNA sequences to be featurized; prot_name specifies the common name of the protein coded by the sequences present in <file>;ttable is the identifier of the translation table to be used when translating DNA sequences to amino acid sequences; icodons is the set of possible initiation codons given the translation table <ttable>. For each DNA sequence in <file>, the featurization process is carried out by computing a set of 581 descriptors quasi-entirely implemented in Biopython and propy3 (see Table 3). This set of descriptors will ultimately constitute the feature vectors representing each DNA sequence in the input file. Note that all the descriptors except for the nucleotide composition are calculated for proteins, which are attained via translation of the respective DNA sequences. Two supplemental columns are added to the resulting dataset of featurized sequences. A column Description specifies, for each sequence, the description associated with the respective FASTA entry in <file>, and a column Function is included for labeling each sequence according to its functional role (all rows of Function are populated with <prot_name>). The construction of a dataset is triggered via calling the single, unparameterized MLDataset’s method build_dataset. 3.1.4 MLModel Having constructed the datasets, MLModel is ready to be put into operation. The module is implemented as a Python class whose constructor takes four obligatory arguments and three optional arguments. The required arguments are data_path,models_dir,algorithm and test_size. The optional arguments consist of random_state,init and final_model.data_path is the path to the csv (comma-separated values) file containing the data feeding the model; models_dir corresponds to the name to be given to the directory that will eventually store the models; algorithm specifies the name of the ML algorithm to be used 5;test_size represents the proportion of the data to be used for testing; random_state defaults to 0, and controls the split of the dataset into training, testing and validation; init defaults to the Boolean value True , and specifies (quite mysteriously at this point) the “category” to which the model being built belongs; final_model defaults to the Boolean False , and clarifies whether 5Note that the choice of algorithm is restricted to { gradient-boosting , random-forest , naive-bayes , k-nearest-neighbors , neural-network , support-vector-machine , decision-tree }. 41 Table 3: Compendious listing of computed descriptors for each sequence record. For more details on each descriptor, visit 2.3.2. Python and Libraries – Biopython and propy3 . Note that the descriptors Length (i.e., the number of amino acids composing a given protein sequence) and Nucleotide composition (i.e., the relative frequency of each nucleotide in the DNA sequence) are “manually” computed. Sequence descriptor Number of computed features Length 1 Nucleotide composition 4 Amino acid composition 20 Dipeptide composition 400 Molecular weight 1 Aromaticity 1 Instability index 1 Isoelectric point 1 Molar extinction coefficient 2 Secondary structure fraction 3 CTD descriptors 147 the model being built is definitive (which translates to the model being saved after training). The process which evolves by instantiating MLModel involves the sequential execution of a few elementary tasks conventionally carried out in any ML pipeline, and is elicited via calling MLModel’s unparameterized method build_model. 1. Reads the data contained in the csv file pointed to by <data_path>. 2. Executes a stratified train-test split on the data using sklearn’s train_test_split function. Stratification allows to maintain the proportions of labels upon splitting the data. The proportion of data used for testing is defined by test_size and the arrangement of data instances between the training and testing sets is controlled by random_state. The train-test split is accomplished rather differently whenever init is set to False (more details on this peculiarity in 3.2.4. Case study – Enhancing Hierarchical). 3. Scales the data via instantiating an sklearn’s MinMaxScaler object. The scaler is fitted to the 42 training data and the resulting object is used to transform both the training and testing sets. 4. Selects the more relevant features. This is achieved by instantiating an sklearn’s SelectFromModel object and fitting it on a fitted sklearn’s RandomForestClassifier (RFC) estimator. The selector is specifically fitted on an RFC estimator, since RFC, upon instantiation, initializes an attribute feature_importances_ that is necessary for fitting SelectFromModel. The selector then works by only keeping the features whose absolute value of importance is greater than or equal to a pre-specified threshold that defaults to the mean value of the “importances” of all features. 5. Searches for the best combination of hyper-parameters of the model. The search is executed via instantiating an skopt’s [67]BayesSearchCV object (implementing Bayesian-search), and its exhaustiveness and robustness is established by the value of final_model. The hyper-parameters to be optimized depend on algorithm and may be consulted at Table 4. 6. Fits an estimator (determined by algorithm) on the training data using the best combination of hyper-parameters found in 5, and saves it to a joblib [68] file if final_model is set to True ; 7. Evaluates the estimator fitted in 6on the testing data by computing the accuracy score, the precision score, the recall score and the F1score. These scores are calculated by making use of the sklearn’s functions accuracy_score,precision_score,recall_score and f1_score, respectively; It is noteworthy to mention that, given that final_model is set to True , apart from the estimator itself, some information computed upon the process of model construction is also saved. Namely, the scaler object and the support vector 6attained via feature scaling and selection, respectively, are stored in joblib files. The scaler objects and the support vectors are essential when making predictions on new data instances. Storing the scaler allows for transforming these new data points without explicitly computing information (i.e., the maximum and minimum value of each feature) on them. The support vectors permit to fix the dimensionality of new data instances by filtering their feature vectors, that is, by only keeping the features used for training the respective ML model. Moreover, assuming that init is also set to True , the testing data is saved in csv format (once again, more information concerning this matter may be found in 3.2.4. Case study – Enhancing Hierarchical). 6A vector of Boolean values specifying which features are to be kept and disregarded. 43 Table 4: Set of optimized hyper-parameters for each ML algorithm. In some cases, the range of each hyper-parameter is accompanied by the terms Integer and Real . Whenever neither of these terms is specified, the range collapses to the exact stated values. Integer , integer values spanning the defined range; Real , real values uniformly distributed over the specified range. Algorithm Hyper-parameter Range gradientboosting learning_rate Real [0.05,0.2] max_iter Integer [100,300] max_leaf_nodes Integer [15,63] min_samples_leaf Integer [10,30] randomforest n_estimators Integer [100,300] criterion {gini, entropy} min_samples_split Integer [2,5] min_samples_leaf Integer [1,3] max_features {sqrt, log2} k-nearest- neighbors n_neighbors Integer [3,8] algorithm {ball_tree, kd_tree} p Integer [1,2] neuralnetwork num_layers Integer [1,6] activation {relu, tanh} solver {adam, sgd} learning_rate {constant, invscaling} learning_rate_init Real [0.001,0.01] max_iter Integer [200,2000] supportvector- machine C Real [0.1,10] kernel {linear, poly, rbf} degree Integer [2,6] decision_function_shape {ovo, ovr} decisiontree criterion {gini, entropy} min_samples_split Integer [2,5] min_samples_leaf Integer [1,3] 44 3.1.5 PredictFunction Lastly, an interface whose participation in model construction is confined to 3.2.4. Case study – Enhancing Hierarchical, and whose utilization is restricted to hierarchical models predicting both functional classes and specific functions (see 3.2.2. Hierarchical model and 3.2.4. Case study – Enhancing Hierarchical), is succinctly depicted. PredictFunction, once again materialized as a Python class, serves the purpose of predicting the function associated to the sequences it takes as input. Its constructor accepts five compulsory arguments, namely path,models_dir,thresholds, ttable and icodons.path specifies the relative path to a FASTA file containing the sequences whose function is to be predicted; models_dir corresponds to the name of the directory containing the joblib files storing the ML models; thresholds is a list of two thresholds determining whether a prediction on the functional class and specific function of a given sequence is satisfactory; ttable is the identifier of the translation table to be used when translating DNA sequences to amino acid sequences; icodons is the set of possible initiation codons given the translation table <ttable>. Initializing a PredictFunction object and calling its sole public method predict, initiates a process that results in the construction of a csv file containing the predictions made on the input sequences. predict is parameterized by name, which dictates the name to be given to the output csv file. PredictFunction operates as follows: 1. Featurizes the sequences present in the FASTA file pointed to by <path>. The process of sequence featurization is carried out via instantiating an MLDataset object whose parameters file and prot_name are set to <path> and “unknown” , respectively. The resulting dataset is then filtered to exclude the columns Description and Function , that is, only the feature vectors representing the sequences are kept. 2. Collects the descriptions bound to each sequence present in the FASTA file pointed to by <path>. 3. Predicts the functional class associated to each sequence represented by the feature vectors computed in 1. The process involves scaling and selecting the new data’s features using the appropriate scaler and support vector, respectively, before performing the predictions per se . Having scaled the data and filtered the features, the adequate model (i.e., a sole model discriminating functional classes) is then applied to each individual transformed feature vector to arrive at a prediction. Two scenarios come up upon predicting the functional class of a given sequence: the predicted class has a probability of being true class of the sequence greater than or equal to the threshold established 45 for functional classes (i.e., the first threshold in <thresholds>), or the probability is less than this threshold. Assuming that the first condition is met, one may confidently assume the prediction is correct and the sequence is bound to the predicted functional class. Otherwise, the sequence is labelled, by default, as “other” . All information relevant for this task, including the scaler and the support vector to be employed, and the model to be applied to the data instances, is retrieved from <models_dir>. 4. Predicts the specific function associated to each sequence. The process evolves quite similarly to the one elicited upon predicting the functional class of the sequences. However, for each sequence, all model information to be retrieved from <models_dir> is dependent on the predicted functional class for that sequence. For a given sequence, two distinct scenarios emerge: the predicted functional class is either a “valid” functional class or corresponds to “other” . The latter scenario eliminates the need for predicting the specific function of the sequence, bypassing this step and automatically labelling the sequence with “” (i.e., an empty string ). On the other hand, similarly to 3, the second threshold in <thresholds> is used to determine whether the prediction is satisfactory: if the prediction is sufficiently good, the sequence is classified according to the predicted specific function; otherwise, it is labelled, by default, with “other-function” . 5. Saves the results to a csv file. The resulting csv has a number of rows equivalent to the number of sequences in <path>, and is constituted by 3columns, namely Description , Functional-Class and Function . 3.2 Model assembly Having erected the “low-level” interfaces that will constitute the skeleton of any process entailing the construction of ML models, the task of building models per se becomes more tangible. The “high-level” programs using these interfaces simply exploit their functionality without ever “caring about” their internal representation (i.e., at this point, any program using these “low-level” modules is solely interested in their behavior upon instantiation). This provides a high degree of flexibility when designing an ML pipeline, as distinct approaches to model construction almost exclusively depend on the inputs provided to the interfaces. In this section, the construction of four sets of models, all relying, at least, on some of the “low-level” interfaces, is carefully explained. These models, differing both at structural and organizational levels, are presented in the order by which they were constructed. 46 It is noteworthy to mention that, given its inherent invariability, the process of downloading records from NCBI was performed a single time. The records were retrieved on the 19th of May of 2023 via instantiating DownloadRecords with the following inputs: •database – “nucleotide” •base_dir – “../records” •taxid – “2731619” •num_ids –100.000 The process originated by calling DownloadRecords’s method download culminated in the creation of a records database “../records” 7composed of 95.845 genomes of phages belonging to the class Caudoviricetes . Each individual genome was stored in gb format. 3.2.1 Naïve model Naïve model is a first attempt of bringing about the system that will eventually become PhageAnnotate . As its name suggests, it follows a rather unsophisticated approach that essentially groups sequences together according to their associated names, and fits a single model labelling new data instances with one of these names. It may be regarded as a baseline model, serving as a guideline that can be used as reference throughout the development of the program. The construction of the model is carried out via executing the Python script _build_naive.py, which makes use of three “low-level” modules, specifically CollectSequences,MLDataset and MLModel. The computational process emerging from the execution of this script evolves as described in the subsections below. Sequence retrieval The intent here is to collect the whole set of DNA sequences present in the genome records downloaded from NCBI . Such a routine simply boils down to instantiating a CollectSequences object with the following arguments: •db – “naive/sequences/all” •cname – “all” •terms – [“not a protein name”] 7Note that the two dots preceding the name records entail the creation of the records database in the parent directory of PhageAnnotate’s source code directory. 47 •negatives – True Given that negatives is associated to the Boolean True , the rationale behind the choice of value for terms comes from the realization that no sequence in the records database has the name “not a protein name” associated to it. Consequently, all sequences are indeed retrieved. A total of 4.520.664 sequences, of which 1.341.209 constitute duplicate sequence records, were collected, resulting in the construction of a sequence database composed of 3.179.455 unique sequences. Sequence featurization and filtering Ensuing sequence retrieval, the resulting DNA sequences must be featurized to be able to feed the algorithms responsible for building ML models. Again, such a procedure is quite straightforward, almost exclusively involving the instantiation of an MLDataset object. Firstly, the names associated to each sequence present in the sequence database are collected and stored. An MLDataset object is then instantiated by providing the following arguments to its constructor: •file – “naive/sequences/all/txid2731619_all.fasta” •prot_name – “unknown” •ttable – “11” •icodons – (“TTG”, “CTG”, “ATT”, “ATC”, “ATA”, “ATG”, “GTG”) The resulting dataset is quite uninformative in what concerns sequence labelling (i.e., the dataset’s Function column is filled with the name “unknown” ). Hence, the corresponding column is replaced by the list of names preliminarily collected. Finally, one last processing step must be performed to add robustness to the database of featurized sequences. These sequences will eventually be split in training and testing sets, so, to ensure that each name present in the label vector has a satisfactory representativeness in both sets, the database is filtered to only include featurized sequences whose associated name occurs at least 100 times. For example, if the proportion of data to be used for testing is set to 20%, it is guaranteed that no name in the labels vector of the testing set (and, by extension, of the training set) occurs less than 20 times. The filtering did not result in a significant loss in the number of sequences – about 10% of the originally retrieved sequences were lost 8. 8In other words, approximately 10% of phage’s DNA sequences are associated to names whose absolute frequency of occurrences is less than 100. 48 Model construction Having built the dataset of featurized sequences, the process of model construction is, once more, carried out effortlessly. It simply involves the creation of an MLModel object and calling its sole method build_model upon instantiation. The arguments provided to MLModel’s constructor are: •data_path – “naive/database/all.csv” •models_dir – “naive/models” •algorithm – “gradient-boosting” •test_size –0.2 •init – True •final_model – True It is important to note that hyper-parameter optimization was not performed for Naïve . This decision was taken founded on two premises: the model merely serves as a baseline for the yet to be constructed models; the computational cost of training models on such a large database is immense. Moreover, the choice of the ML algorithm used to model the data was not arbitrary, as gradient boosting usually yields models whose performance at a given predictive task either matches or surpasses the best scoring models, while taking considerably less time to train (see 2.1.3. Algorithms for classification problems – Decision Trees, Random Forests and Gradient Boosting ). 3.2.2 Hierarchical model The depiction of the present model, opportunely designated Hierarchical , introduces the key set of ideas establishing the architecture of PhageAnnotate . In reality, as its name might hint, Hierarchical is a collection of models composing a systematized, stratified configuration rather than a sole model single handedly responsible for the forthcoming predictive task. In its workings, it makes use of three “low-level” interfaces, specifically CollectSequences, MLDataset and MLModel. However, contrary to Naïve , and although these interfaces certainly aid in the structuring of the program, building Hierarchical still involves a quite intricate sequence of steps. In the following subsections, the process resulting in the construction of Hierarchical is carefully explained. Additionally, Figure 11 presents an infographic that clearly depicts the processes involved in Hierarchical’s construction. 49 Figure 11: Portrayal of the methodology leading to Hierarchical’s construction. On the left, the “lowlevel” interfaces abstracting general tasks pertaining the assembly of ML models. On the right, the “high-level” Python scripts “consuming” these interfaces. 50 forward, is fed on a single dataset whose label vector is composed of functional roles, that is, the idea of grouping functional roles in functional classes prior to model construction is transiently abandoned. Having built the datasets feeding Hierarchical , the task of constructing Linear comes to be quite trivial. Sequence retrieval is plainly disregarded and the assembly of the dataset feeding the model reduces to the concatenation of all the datasets, except for the dataset discerning functional classes (i.e., all.csv ), consumed by Hierarchical . The process of building Linear is then, also straightforwardly, initiated via instantiating an MLModel’s object: •data_path – “linear/database/<dataset>” •models_dir – “linear/models” •algorithm – “gradient-boosting” •test_size –0.2 •init – True •final_model – True Note that, as with Naïve , gradient boosting was selected to model the data (for more details on the reasons behind such preference, see 2.1.3. Algorithms for classification problems – Decision Trees, Random Forests and Gradient Boosting and 3.2.1. Naïve model). However, contrary to Naïve ,a robust and exhaustive hyper-parameter optimization (i.e., final_model is set to True ) was performed. 3.2.4 Case study – Enhancing Hierarchical Given the mechanics of sequence retrieval, as described in 3.2.2. Hierarchical model, the vast majority of phage DNA sequences ends up being discarded. The task of manually grouping a highly restricted set of gene product names into functional roles makes this loss of information inevitable; however, some of the overlooked sequence records may be recovered. To do so, the models comprising Hierarchical are exploited to confidently classify each sequence record not included in the database. The resulting expanded database is then used to train a new set of models, from this point forward designated by Hierarchical-X , that expectedly enhance the performance of their Hierarchical counterparts. Such an endeavor encompasses some quite convoluted tasks regarding sequence collection, classification, distribution and depuration. Sequence featurization and model construction comprise, on the other hand, somewhat uninvolved processes that evolve quite similarly to Hierarchical’s . The details pertaining the construction of Hierarchical-X are thoroughly inspected below. 57 Sequence retrieval, classification, distribution and depuration Prior to carrying out the construction of the datasets that are to be consumed by Hierarchical-X , four pivotal tasks must be undertaken: sequence retrieval, classification and distribution of those sequences, and subsequent depuration. Sequence retrieval. Of the tasks to be completed, sequence retrieval is undoubtably the easier. The process regarding sequence collection simply entails grouping all most frequent gene product names (i.e., all gene product names associated to all functional classes) and creating a CollectSequence’s object. The outcome of such a process is the generation of a FASTA file comprised of sequences that may be categorized into one of three groups: 1. Hypothetical sequences, that is, sequences whose associated function is either utterly unknown or is already identified but misannotated as hypothetical . 2. Sequences, other than hypothetical sequences, whose corresponding function is not compatible with any of the ascertained functional roles. 3. Sequences, other than hypothetical sequences, associated toa gene product name that is congruent with a particular functional role, but whose absolute frequency of occurrences across all phage’s genomes is less than the established threshold (i.e., 1.000). Given their inherent heterogenicity, such sequences are conveniently called miscellaneous . Assuming that the list of the most frequent gene product names is denoted by protein_names , miscellaneous sequences are readily attained via instantiating a CollectSequences’ object: •db – “../_miscellaneous” •cname – “miscellaneous” •terms – <protein_names> •negatives – True Note, once again, the usefulness of parameterizing CollectSequences with negatives. By setting negatives to True , there is no need to enumerate all gene product names whose number of occurrences is less than the stipulated threshold. Sequence classification. Sequence classification involves, for the first time, the utilization of the “lowlevel” interface PredictFunction. It encompasses a series of steps that, together, are performed 58 iteratively until a pre-defined stopping criteria is met. Such steps entail the identification of an “optimal” set of PredictFunction’s thresholds, and are carefully depicted below: 1. Pick thresholds establishing the degree of confidence in the classifications performed by PredictFunction (note that lower thresholds are advised in early iterations, since they allow for a larger number of “informative” predictions). 2. Predict the functional class and the functional role of the previously collected miscellaneous sequences. The predictive task is carried out by exploiting the Hierarchical models, and is accomplished via instantiating a PredictFunction’s object by providing the following arguments to its constructor: •path – <path to miscellaneous sequences> •models_dir – “../models” •thresholds – <selected thresholds> •ttable – “11” •icodons – (“TTG”, “CTG”, “ATT”, “ATC”, “ATA”, “ATG”, “GTG”) 3. Filter the csv file generated via executing the previous step (for more details on the output of PredictFunction, visit 3.1.5. PredictFunction) to solely include “informative” predictions, that is, eliminate all rows from the resulting csv that either contain the expression “other” in the column Functional-Class or the expression “other-function” in the column Function . Moreover, the column Description must not include ambiguous terms (e.g., “hypothetical” , “unknown” , etc.) upon filtering. 4. Sample the persisting rows to only include 100 examples of the whole set of “informative” entries (note that appointing larger sample sizes would progressively reduce the viability of the upcoming task). 5. Initialize two counters, good_preds and bad_preds , and juxtapose the original description (present in the column Description ) of each sampled entry with the corresponding functional role predicted by Hierarchical (present in the column Function ). If there is a match, good_preds is incremented by one unit; otherwise, one unit is added to bad_preds . 6. Compute the error associated to the sampled ”informative” predictions by evaluating the expression: bad_preds / (good_preds + bad_preds) . 59 7. Use the previous error to verify whether the stopping criteria is met. If so, the “optimal” set of thresholds is presumably encountered and the iterative process may stop; otherwise, slightly increment one or both thresholds and proceed to step 2. The process of finding a suitable set of thresholds is of utmost importance for the successful consummation of Hierarchical-X , as correctly adjusting these thresholds allows to establish an adequate degree of confidence in the predictions “powered” by Hierarchical . Such adequacy is recommended in order to avoid the introduction of excessive amounts of noise to the already constructed database of sequences, since miscellaneous sequences associated to “informative” predictions will eventually be distributed by the appropriate FASTA files according to the respective predicted functional roles (further details in the next subsection). Having established the sequence of steps comprising threshold “optimization”, the stopping criteria may be disclosed. Here, it is pertinent to establish a value for the error associated to the thresholds that, in theory, allows to include new sequences in the sequence database by only marginally increasing its inherent noise. An opportune idea is to establish an error value that matches the error of the worst performing model among the models comprising Hierarchical . Such error value is attained by evaluating, for each model h_model comprising Hierarchical , the expression (1 – F1 -score(<h_model>)) , and choosing the maximum value emerging from these computations. Sequence distribution. The process of distributing “informative” miscellaneous sequences by the appropriate FASTA files is, akin to sequence retrieval, quite straightforward. Upon establishing the “optimal” set of thresholds, a definitive instance of PredictFunction is initialized: •path – <path to miscellaneous sequences> •models_dir – “../models” •thresholds – <optimal thresholds> •ttable – “11” •icodons – (“TTG”, “CTG”, “ATT”, “ATC”, “ATA”, “ATG”, “GTG”) According to the resulting predictions, each sequence associated to an informative prediction is placed in the appropriate FASTA file in the sequence database. That is, assuming that a given sequence belongs to the functional class func_class and is associated to the functional role func_role , it is placed at “../sequences_cs/<func_class>/txid2731619_<func_role>.fasta” . The process leading to sequence distribution is carried out via executing the Python script _distribute_seqs.py. Note that, before 60 the introduction of miscellaneous sequences, “../sequences_cs” is merely a duplicate folder of “../sequences” . Such copying is performed to ensure the preservation of the information used for training the original Hierarchical models. Once again, to devoid “../sequences_cs” of redundant sequences, the program cd-hit-est is executed for each FASTA file in the database via executing the Python script _cdhit_clean.py. Sequence depuration. The reasons for storing information on the testing data upon model construction (see 3.1.4. MLModel for more details) are unveiled in the present subsection. Given the nature of the process leading to the construction of Hierarchical-X , in order to reliably compare its performance with Hierarchical’s , the exact same sets used for testing the latter must be utilized to test Hierarchical-X . Such procedure might, at first glance, appear to be trivial; however, a closer inspection of the problem uncovers some technicalities that, if marginalized, may culminate in biased, deceitful conclusions regarding Hierarchical-X’s predictive capacity. To reliably test Hierarchical-X , upon model construction, any sequence represented in each of the training sets must not be redundant relative to their testing counterparts. This requires the assembly of a sequence database purely comprised of sequences to be used for training, whose construction is dependent on the sequences used for testing Hierarchical . Given that, upon saving the testing data, only information concerning the descriptions of the respective sequences is available, a database of testing sequences must be reconstructed from them. Such task, accomplishable given the unequivocal nature of the descriptions associated to each retrieved sequence, is performed via executing the Python script _build_test_db_cs.py. Running the program results in the construction of a database of testing sequences, denoted by “../sequences_test_cs” , having the exact same structural organization of “../sequences_cs” . Right away, redundancy in “../sequences_cs” relative to “../sequences_test_cs” may be dealt with. By executing the Python script _build_train_db_cs.py, which, under the hood, makes use of the program cd-hit-est-2d [70], a database of training sequences, designated by “../sequences_train_cs” , devoid of redundancy relative to “../sequences_test_cs” , is assembled. Featurization of training sequences Ensuing the construction of a sequence database solely comprised of non-redundant training sequences, the succeeding logical step entails the featurization of those sequences. The emerging process is, this time, quite straightforward, exclusively involving the instantiation of an MLDataset’s objects for each ascertained functional class. Considering the similarities of the present routine relative to the one leading 61 to the construction of the Hierarchical datasets, further explanations concerning sequence featurization are omitted. Nonetheless, it is important to note that sequence featurization is carried out via execution of the Python script _build_db_cs.py, and results in the construction of “../database_cs” . Model construction Having constructed the datasets feeding Hierarchical-X , model construction is, too, rather unsophisticated. Due to time constraints, contrary to Hierarchical , a preliminary evaluation of all ML algorithms is not executed for each dataset. Consequently, each dataset is modeled by the best performing ML algorithm as determined in 3.2.2. Hierarchical model – Model construction . Then, for each dataset d_set in “../database_cs” , an MLModel’s object is instantiated by providing the following arguments to its constructor: •data_path – “../database_cs/<d_set>” •models_dir – “../models_cs” •algorithm – <best performing ML algorithm for d_set> •test_size –0.2 •init – False •final_model – True Note the distinction, aside from data_path and models_dir, between MLModel’s instantiation patterns of Hierarchical and Hierarchical-X . All Hierarchical-X’s models are instantiated by setting the argument init to False . Such an arrangement is reflected in the way the training and testing sets are attained. Contrary to Hierarchical , whose train-test splits are part of the process regarding model construction, Hierarchical-X’s are simply performed by loading the pre-computed sets to memory. That is, for each dataset d_set in “../database_cs” , the training and testing sets are loaded from the csv files “../database_cs/<d_set>.csv” and “../models/test-data-<d_set>.csv” , respectively. 3.3 Evaluation of phage annotation tools In recent years, several tools for the functional annotation of phage genomes have been proposed. Most of these systems follow a homology-based approach, not being able to produce satisfactory annotations. Such tools see their performance significantly hampered by virtue of two major aspects percolating phage’s taxonomic classes: there is tremendous genetic variability among phages; phage sequences are scarce 62 in biological databases. Nonetheless, some homology-based systems, namely Prokka [71] and Pharokka [72], are still capable of providing fairly good annotations. Despite the prevalence of homology-based tools, in recent times, non-homology-based frameworks employing ML techniques in their inner workings have been gaining traction. Among these tools, PhANNs [52], a densely connected neural network model, and DeePVP [73], a convolutional neural network ( CNN ) model, standout relative to the remaining ML annotation tools available. However, such tools are still limited in the sense that they are designed to only identify and classify proteins belonging to a single functional type, namely structural proteins. Table 6 presents some attributes that summarily portray the above-mentioned systems. Table 6: Depiction of a few relevant characteristics regarding some of the more prominent phage annotation tools. In particular, note the pertinence of Input format , Type sequence and Usage for the effective manipulation of these systems. System Published in Type of annotation Input format Type of sequence Usage Prokka 2014 Homology FASTA Genome Linux Pharokka 2022 Homology FASTA Genome Linux PhANNs 2020 ML FASTA Proteins Web server DeePVP 2022 ML FASTA Proteins VirtualBox A comprehensive and rigorous evaluation of these frameworks is to be carried out via assessing the quality of their predictions on an invariable set of unpublished, semi-annotated phage genomes. A performance comparison between these frameworks and PhageAnnotate is also provided. 63 Chapter 4 Results and Discussion 4.1 Model evaluation Having undertaken the strenuous task entailing the construction of a varied set of models, and having undergone through a somewhat prolix description of the rather eclectic nature of their structure and organization, it is now time to analyze and discuss the outcomes of such an endeavor. For each model (i.e., Naïve , Hierarchical , Linear and Hierarchical-X ), a depiction of the end results attained upon their construction, along with a comprehensive analysis of the ensuing ramifications of these results, is provided in the following subsections. It is important to mention that, unless explicitly stated otherwise, the evaluation metric F1score is utilized when comparing the performance of the models, that is, models which score higher on this particular metric are considered to possess greater predictive capacity than the alternatives. 4.1.1 Naïve model Given the highly unsophisticated nature of the methodology leading to the construction of Naïve , the expectations regarding its performance were, from its inception, fairly low. Regardless of this premeditated inevitability, it is worthwhile to remember the reader of the intentions pertaining the construction of this model. Via constructing Naïve , one immediately has access to a baseline model whose predictive abilities may be juxtaposed to the capabilities of models “powered” by more ingenious architectures, serving as a reference that may be used for a more robust evaluation of these models. The values attained for each evaluation metric regarding Naïve may be consulted at Table 7. The model was trained on a selection of 98 features (see full listing of these features in Appendix’s Table A2), and 20% of the data was utilized for testing purposes. Even though Naïve is simply regarded as a guideline for the performance of more elaborate models, it 64 Table 7: Evaluation of Naïve. Note the discrepancy between the values attained for the accuracy score and the remaining evaluation metrics. accuracy precision recall F1 Naïve 59.78%0.05%0.07%0.06% is important to address some factors certainly contributing to such subpar predictive abilities. In reality, the mechanics of Naïve’s label attribution (i.e., the mapping between each sequence and the respective label) may be masking latent capabilities of an actually competent model. Given that all retrieved sequences are simply labelled according to the respective gene product names, a significant complication may instantly be detected: sequences representing the exact same functional role may be associated to distinct gene product names. Two easily identifiable causes for the emergence of this problem immediately come to mind: 1. Distinct gene product names (i.e., distinct sequences of characters) might represent the exact same functional role. For example, the expressions “helicase” and “DNA helicase” certainly pertain to the same functional role, but are regarded as distinct labels. 2. Gene product names might contain typos or extra punctuation. For example, the terms “endolysin” and “endolisin” evidently correspond to the same functional role; however, these terms are regarded as distinct labels. On the other hand, and although the sequence database was filtered to only include sequences whose associated gene product occurs a minimum of 100 times across all phage’s genomes, some labels still lack representativeness. More frequent labels (e.g., the term “hypothetical protein” shows up a total of 2.661.883 times in the genome records database) end up completely dominating less recurrent ones, which are left marginalized upon classification by Naïve . This assertion is evidently corroborated by the results attained by testing Naïve . Given the simplistic mechanism involved in the computation of the accuracy score, it may camouflage the incompetency of an actually weak predictor under some circumstances. In Naïve’s case, given the huge disparity observed in the number of occurrences of the gene product name “hypothetical protein” with respect to the remaining names, a model that simply predicts a new data instance (i.e., a new sequence) to belong to the class “hypothetical protein” could easily be built and produce satisfactory results. The evidence suggests that Naïve is doing exactly that. The attained accuracy score (i.e., 59.78%), virtually corresponds to the relative frequency of sequences labelled as “hypothetical pro- 65 tein” , clearly indicating a rather suspicious behavior. More robust metrics (such as the F1score), as ostensibly demonstrated by the results presented in Table 7, are immune to such inconveniences. 4.1.2 Hierarchical model Prior to addressing the performance of Hierarchical , it is opportune to remember the reader of the logistics regarding its construction. There are two central ideas worthwhile retaining: 1. The model is organized in a stratified structure. Such organization entails the construction of seven models: one model discerning between six functional classes (i.e., DNA-modification , DNA- replication , lysis , lysogeny-repressor , packaging and structural ), and six models, one for each functional class, distinguishing between functional roles pertaining a functional class. 2. At first, seven distinct ML algorithms (i.e., gradient-boosting , random-forest , naive-bayes , k-nearest- neighbors , neural-network , support-vector-machine and decision-tree ) are exploited to model each of the seven datasets, resulting in the construction of 49 models. Only after attesting the predictive capacity of each ML algorithm regarding each dataset, a definitive set of seven models (one for each dataset) is more robustly built. In light of the latter consideration, it seems to be pertinent to bisect the present section. Firstly, a succinct depiction of the results attained for each combination {ML algorithm, dataset} is provided. Having established the best performing ML algorithms, the outcomes of the definitive set of models are presented and discussed. Preliminary evaluation of ML algorithms ALL. Firstly, the outcomes of modeling all.csv (i.e., the dataset discerning functional classes) by exploiting the whole set of ML algorithms are summarily analyzed. Table 8 shows, for each ML algorithm, the scores attained for each evaluation metric. It is noteworthy to mention that each model was fed on a subset of the data comprised of 157 features (see Appendix’s Table A3 for the full listing of selected features), and tested on 20% of the data. It is clear that k-nearest-neighbors and support-vector-machine stand out from the remaining algorithms. Even though the difference regarding the respective F1scores is marginal, in absolute terms, k-nearest-neighbors still produces a more competent model. Nonetheless, considering the size of all.csv , and given the time constraints imposed by institutional deadlines, retraining a model “powered” by knearest-neighbors or support-vector-machine would certainly be infeasible. Moreover, exploiting k-nearest- 66 Table 16: Number of selected features regarding each dataset feeding Hierarchical. For the full listing of selected features, visit Appendix’s Tables A17 to A23. Dataset Number of selected features all.csv 152 dna_modification.csv 176 dna_replication.csv 165 lysis.csv 99 lysogeny_repressor.csv 130 packaging.csv 70 structural.csv 154 Table 17: Optimized hyper-parameter configurations for each model comprising Hierarchical. Datasets: ALL, all.csv ; DNA-mod, dna_modification.csv ; DNA-rep, dna_replication.csv ; Lysis, lysis.csv ; Lys-rep, lysogeny_repressor.csv ; Pack, packaging.csv ; Struct, structural.csv .ML algorithms: GB, gradient-boosting ; SVM, support-vector-machine . Hyper-parameter configurations ALL GB {’learning_rate’: 0.0994 , ’max_iter’: 260 , ’max_leaf_nodes’: 63 , ’min_samples_leaf’: 30 } DNA-mod GB {’learning_rate’: 0.0517 , ’max_iter”’: 284 , ’max_leaf_nodes’: 32 , ’min_samples_leaf’: 18 } DNA-rep GB {’learning_rate’: 0.1055 , ’max_iter’: 297 , ’max_leaf_nodes’: 20 , ’min_samples_leaf’: 19 } Lysis SVM {’C’: 0.1 , ’decision_function_shape’: ’ovr’, ’degree’: 6 , ’kernel’: ’poly’} Lys-rep SVM {’C’: 2.7947 , ’decision_function_shape’: ’ovo’, ’degree’: 5 , ’kernel’: ’poly’} Pack SVM {’C’: 8.5690 , ’decision_function_shape’: ’ovo’, ’degree’: 4 , ’kernel’: ’poly’} Struct GB {’learning_rate’: 0.0802 , ’max_iter’: 300 , ’max_leaf_nodes’: 63 , ’min_samples_leaf’: 25 } 73 probabilistic dimension, that, dangerously coming across as tautological, eradicates all orderliness and exactitude hallmark of deterministic equivalents (e.g., Grid-search). One then might ask to what end is Bayesian-search selected in detriment of a deterministic search algorithm. The answer is quite straightforward: probabilistic algorithms allow to enlarge the hyper-parameter search space without compromising runtime efficiency. Contrary to deterministic algorithms, Bayesian-search solely tests a pre-determined number of hyper-parameter configurations according to the ranges specified for each particular hyper-parameter. Although these configurations are not blindly chosen (see 2.1.2. Model selection and evaluation – Hyper-parameter tuning for more details), a larger number of iterations (i.e., the number of hyper-parameter settings tested by the algorithm) does not guarantee a superior hyper-parameter configuration. Directing this insight to the problem at hand, a more exhaustive search comprised of 32 iterations of the algorithm does not imperatively lead to a better hyper-parameter arrangement than its less exhaustive 16-iteration analog. 2. Secondly, the repercussions of employing k-fold cross-validation upon attesting hyper-parameter settings are analyzed. The argument has two disparate dimensions. First, k-fold cross-validation is, too, a stochastic algorithm. This means that, when splitting the training set into k-folds, more or less favorable partitions may emerge. In practice, a 5-fold version of the k-fold cross-validation may or may not lead to better dataset partitions than its 3-fold counterpart. In fact, putative benefits regarding any particular partition (i.e., partitions yielding better scoring metrics) are completely independent on k. Second, a more robust version of k-fold cross-validation might unveil model deficiencies that are not manifested upon less thorough testing. In essence, and momentarily disregarding the stochastic component of the algorithm, the higher the value of k, the more reliable its outcomes (for a more extensive discussion on the topic, consult 2.1.2. Model selection and evaluation – Cross-validation ). Conjectured causes for the apparent lower predictive abilities regarding some of the models comprising Hierarchical may then be split into three main categories: 1. The hyper-parameter configurations are superior, but a more robust k-fold cross-validation unveiled inferior predictive abilities. 2. Although more advantageous partitions were attained upon a more robust k-fold cross-validation, the selected hyper-parameter settings hampered the model’s predictive capacity. 3. The optimized hyper-parameter configurations yield less competent models, and a more robust k-fold cross-validation led to unfavorable dataset partitions. 74 Figure 12: Depiction of the results regarding the initial (Hierarchical-init) and final (Hierarchicalfinal) stages of Hierarchical’s construction. Datasets: ALL, all.csv ; DNA-mod, dna_modification.csv ; DNA-rep, dna_replication.csv ; Lysis, lysis.csv ; Lys-rep, lysogeny_repressor.csv ; Pack, packaging.csv ; Struct, structural.csv . It is also worthwhile noting that, contrary to the F1scores, the accuracy scores generally ramped up in the context of a more robust and exhaustive cross-validation process. On the other hand, performance regarding the precision scores and recall scores fluctuates between model construction instances. Figure 12 depicts such results. Lastly, it is important to mention the tremendous discrepancy between the outcomes of Naïve and Hierarchical . Although one may argue that such models may not be directly compared given their rather distinct architectures, it is still an indication that PhageAnnotate is developing in the right direction. 4.1.3 Case study – Disarraying Hierarchical Next in order, the results attained via testing Linear are depicted and analyzed. The rationale leading to the construction of Linear is compelling: to confidently attest the efficiency of the architecture engineering Hierarchical , its disarrayed analog should also be put to test. In simple terms, Linear plainly bypasses functional class categorization, only classifying new sequences according to a pre-determined set of func- 75 tional roles. Although such an architecture is clearly more proficuous than Hierarchical’s insofar as runtime efficiency is concerned, this “linearized” scheme still comes at a cost: the model must be able to discern between a much larger number of distinct labels. The outcomes of testing Linear may be consulted at Table 18. Linear was fed on 152-dimensional feature vectors (see Appendix’s Table A24 for the full listing of selected features), and subsequently tested on 20% of the data examples. Additionally, the best hyper-parameter configuration found for Linear (note that Linear is solely “powered” by gradient-boosting ) is presented at Table 19. Table 18: Evaluation of Linear. Remember that Linear is comprised of a sole gradient-boosting model; hence the compact nature of the present table. accuracy precision recall F1 Linear 76.42%67.61%63.31%64.53% Table 19: Best hyper-parameter configuration found for Linear. Remember that Linear is comprised of a sole gradient-boosting model; hence the compact nature of the present table. Hyper-parameter configurations Linear {’learning_rate’: 0.05 , ’max_iter’: 300 , ’max_leaf_nodes’: 63 , ’min_samples_leaf’: 30 } In view of the evident structural divergence observed for Linear and Hierarchical architectures 1, the task of juxtaposing the results attained for these models may not be regarded as trivial. Although such disparity solely holds with respect to the models’ structural dimension, it is certainly not negligible, and justifies a sensible interpretation of the respective results. Linear merely entails a sole predictive endeavor, inasmuch as it is comprised of a single model “powered” by gradient-boosting . The error associated to this model is, then, effortlessly attained via computing the symmetric of the respective F1score taking the numeral 0.5as reference for the calculation: ErrorLinear =1−0.6463 = 35.73% On the other hand, Hierarchical encompasses a pair of interconnected predictive tasks that, riskily stumbling into redundancy, may not be regarded as independent. This holds to be true on account of the scheme architected upon making predictions on unseen data: functional role classification of a sequence 1Note that this contrast is clearly reflected in the anatomy of the corresponding Tables. 76 relies upon its functional class categorization. Factoring in this insight, sequence misclassification may occur for two disparate motives: 1. For a given sequence, Hierarchical incorrectly predicts the corresponding functional class. The probability of such an event occurring is, again, given by the symmetric of ALL’s (i.e., the model discerning functional classes) F1score with respect to the numeral 0.5, that is: P1=1−0.8757 = 12.43% 2. Hierarchical correctly predicts the functional class of a sequence, but misclassifies its functional role. Here, the word “but” entails a conjunction of events: in a first instance, an accurate classification and then an incorrect categorization. The probability associated to the first event is simply dictated by ALL’s F1score, that is, there in a 87.57% chance that Hierarchical accurately predicts the functional class of a sequence. Meanwhile, the probability associated to the latter event is not computed as easily. In fact, it depends on the individual scores attained by each of the six models discerning functional roles. As a consequence, the overall probability of misclassifying functional roles may not be regarded as a singular entity; rather, it entails a collection of probabilities. Such probabilities may be deduced from Table 15, and, for legibility reasons, are hereinafter represented as a closed interval. The highest and lowest F1scores (i.e., the scores of models distinguishing functional roles concerning packaging proteins and DNA- modification proteins, respectively) establish the lower and upper bounds of this interval, which is given by [1–0.9814,1–0.8217] = [1.86%,17.83%]. In the light of the previous computations, the range of probabilities emerging from the conjunction of events may then be attained via multiplying the probabilities pertaining each event: P2= 87.57%×[1.86%,17.83%] = [1.63%,15.61%] Having established the reasons leading to sequence misclassification, and having computed the respective associated probabilities, the error associated to Hierarchical’s predictions is unhesitatingly calculated. The error is simply computed by adding the probabilities pertaining to each determinant leading to misclassification: ErrorHierarchical =P1+P2= 12.43%+ [1.63%,15.61%] = [14.06%,28.04%] Evidently, Hierarchical’s performance surpasses that of Linear . Without loss of generality, solely the lower and upper bounds of the error associated to Hierarchical are compared to Linear’s error. In the 77 worst-case scenario, Hierarchical’s error is still significantly lower than Linear’s , improving the quality of the latter’s predictions by approximately 20%. On the other end of the spectrum, Hierarchical sees a tremendous increase in performance relative to Linear’s , enhancing the latter’s predictive capacity by about 60%. It is worthwhile noting that such results exclusively suffice the purpose of roughly contrasting these models: although tempting, it would be far from wise to dogmatically affirm that Hierarchical outperforms Linear regarding the categorization of the whole set of functional roles. Nonetheless, it seems to be sensible to favor Hierarchical upon assembling PhageAnnotate . Meanwhile, it is opportune to reflect on the causes for the apparent inferior predictive abilities of Linear . As discussed in 3.2.2. Hierarchical model – Sequence retrieval , the reasons for architecting Hierarchical in a stratified scheme may simply be reduced to the plain intuition that lower-dimensional predictive tasks should result in more satisfactory outcomes. Such an insight is especially relevant whenever treebased ML algorithms (i.e., decision-tree , random-forest and gradient-boosting ) are exploited to materialize a solution to the problem at hand. Generally, one may assume that the larger the set of unique labels, the deeper the tree(s) modeling the data eventually get, in turn, often resulting in over-fitted predictors that do not perform well when confronted with unseen data. In Linear’s case, by casting away the instrumentation responsible for discerning functional classes, an arrangement that, at maximum, had to discern 14 distinct labels (i.e., the functional class DNA-modification includes 14 functional roles) is abandoned and replaced by a system that accounts for severalizing 44 unique labels. Such an increase in the number of labels to be discerned by a tree-based model (i.e., gradient-boosting ) may potentially be decisive for the undisputable discrepancy between the predictive abilities of Hierarchical and Linear . However, and although the previous insight must certainly be considered, the extent to which Hierarchical’s predictive capacity surpasses that of Linear indicates that further determinants are crucial for making Hierarchical a superior predictor (e.g., the structural organization of the model). Lastly, contrary to Hierarchical , Linear may easily be compared to Naïve , as these models solely differ at organizational levels. Even though they perform quite similarly insofar as the accuracy score is concerned, as previously noted, one should cautiously interpret the outcomes of this evaluation metric. To uncloak the actual predictive abilities of any model, other scoring metrics must be analyzed. By doing so, the disparity between Linear’s precision, recall and F1scores, and Naïve’s equivalents is immediately perceived: Linear’s scores are two orders of magnitude larger than Naïve’s . At the very least, and without disregarding Linear’s latent capabilities, such results demonstrate the (up to this point, putative) power of organizing gene product names according to a pre-specified set of categories (i.e., functional roles). 78 4.1.4 Case study – Enhancing Hierarchical Lastly, the results obtained via assessing Hierarchical-X are presented and discussed. Virtue of the intricacies inherent to the construction of this model, mainly by reason of the rather complex processes involving the retrieval, classification, distribution and depuration of miscellaneous sequences, it appears to be adequate to bisect the present section. Firstly, the intermediate outcomes attained upon handling miscellaneous sequences are briefly examined. Then, Hierarchical-X’s performance is depicted, analyzed and compared to that of the previous models. Handling miscellaneous sequences In the interest of coherence and legibility, the structuring of the present subsection reflects that of its methodological analog (i.e., 3.2.4. Case study – Enhancing Hierarchical – Sequence retrieval, classification, distribution and depuration ). That is, the proposed scheme for the forthcoming analysis encompasses four distinct segments: Sequence retrieval , Sequence classification ,S equence distribution and Sequence depuration . Given the brevity of some of these segments (e.g., Sequence retrieval ), such a division may seem inappropriate; nonetheless, it certainly makes it easier to establish a parallel between the upcoming intermediate results and the respective operational/methodological efforts. Sequence retrieval. The process encompassing the collection of miscellaneous sequences is quite straightforward. Its analytical equivalent fittingly reflects such circumstance. Sequence retrieval resulted in the generation of a FASTA file comprised of 2.670.993 unique sequence records, a collection of records seven times as large as that existent in Hierarchical’s sequence database. Note the immense potential to expand the latter sequence database (and, consequently, to construct more competent models) by unveiling the functional classes and functional roles of some of these sequences. Opportunely, the ensuing step constitutes an attempt to fulfill this rather favorable prospect. Sequence classification. In order to confidently expand the sequence database, one must be extremely cautious when injecting novel, unrefined information into it. Such prudence eliminates the risk of adding to much noise to the already assembled database, consequently reducing the likelihood of producing less competent models. Provided that miscellaneous sequences are to be classified by Hierarchical , its predictions must be marshaled by some mechanism that ensures their trustiness. Sequence classification involves, then, a preliminary proceeding encompassing the identification of an adequate set of two probability thresholds that, to some extent, represents the degree of confidence in the model’s predictions. The first threshold denotes the trustiness on functional class predictions. The second threshold establishes 79 Figure 13: Depiction of the results regarding the number of “informative” predictions and the error associated to each set of thresholds in T.Note that, for reasons of clarity, each set of thresholds is represented by a single numeral. the reliability of functional role predictions. Next, a collection of 10 pre-defined thresholds are tested and analyzed. For simplicity reasons, each set of thresholds is composed of equivalent values, that is, all tests assume an identical degree of confidence in functional class and functional role categorizations. The collection of thresholds is given by T: T= [0.50,0.50],[0.55,0.55],[0.60,0.60], ..., [0.85,0.85],[0.90,0.90],[0.95,0.95] For each set of thresholds in T, the iterative process described in Sequence classification’s methodological counterpart is carried out. Figure 13 depicts the corresponding results, that is, the classification error attained for each set of thresholds. Furthermore, the number of “informative” predictions produced by each set of thresholds in Tis also presented. 2 As expected, the number of “informative” predictions monotonically decreases as the values representing each set of thresholds increase (note that each set of thresholds is depicted as single numeral in Figure 13). This holds to be true since predictions are always made on the same set of sequence records; hence, increasing the confidence (even in the slightest degree) on Hierarchical’s classifications invariably generates either an equivalent or reduced collection of “informative” predictions. The same scenario should be observed for the evolution of Hierarchical’s classification error, that is, increasing the confidence on the model’s predictions (via increasing the thresholds’ values) ought to be accompanied by a decrease in the corresponding error. Overall, this assumption holds; nonetheless, in some cases, increasing the thresholds’ values resulted in slightly larger classification errors. A pair 2Note that “informative” predictions pertain to sequences whose associated descriptions do not contain ambiguous terms, and whose functional class and functional role categorizations do not coincide with “other” and “other-function” , respectively. 80 of putative explanations for the emergence of such an unanticipated circumstance immediately come to mind: 1. Contrary to determining the number of “informative” predictions, computing the error associated to a particular set of probability thresholds involves a stochastic process. Juxtaposing the true and predicted labels for the entire set of “informative” predictions in plainly infeasible. For example, in the worst-case scenario, determining the error associated to the set of thresholds [0.50,0.50] would entail the comparison of 475.630 true and predicted labels. Assuming (rather hopefully) that someone is able to execute a comparison at a frequency of 1 hertz , five days and a half of uninterrupted work would be needed to tediously complete such an enterprise. Hence the decision to uniformly sample “informative” predictions: for each set of thresholds, a sample of 100 records is randomly selected. This sampling process comes at a cost. For reasons of clarity, the downsides of sampling such an economized number of records from the set of “informative” predictions is explained via a fictitious example. Suppose that the sampling process pertaining “informative” predictions is carried out for two sets of thresholds, namely [0.50,0.50] and [0.55,0.55]. There is something that definitely holds true for these samples: the degree of confidence associated to the respective predictions is larger than or equal to 0.50 and 0.55, respectively. Yet, given the inherent probabilistic nature of the sampling process, it is impossible to ensure that the average confidence level on individual predictions present in the sample pertaining the set of thresholds [0.55,0.55] is larger than that on the particular predictions guided by the set of thresholds [0.50,0.50]. For example, and without violating the sole presupposition imposed by the rules established by particular sets of thresholds, average confidence levels of 0.75 and 0.70 may be attained when employing the set of thresholds [0.50,0.50] and [0.55,0.55], respectively. 3A conceivable result of the latter circumstance would be the counter-intuitive emergence of a larger error when employing a more “trustworthy” set of thresholds (i.e., [0.55,0.55]). 2. Although a filtering routine was carried out to exclude ambiguous true labels from the set of “informative” predictions, some abstruseness inevitably persists. Such ambiguous true labels include: • Terms alike to “phage protein” , “uncharacterized protein” or “structural protein” 4. • Cryptic codes regarding protein domains. • Extremely specific terms whose categorization into one of the ascertained functional roles is 3Note that such issue might be mitigated by resorting to larger samples; however, by doing so, the immediate process would eventually be hindered. 4Note that the name of a functional class may not be compared to any specific functional role. 81 utterly unachievable. • Long descriptions of the chemical, structural or functional nature of the protein coded by the respective sequence. Predictions regarding records whose true label is congruent to any of these ambiguous categories are immediately assumed to be wrong. Since the collection of true labels emerging from a sample of “informative” predictions is independent of the set of probability thresholds employed to perform the predictions in the first place, it may be the case that larger, more “trustworthy” thresholds originate “informative” predictions that, when sampled, generate a set of records whose true labels are more abstruse than those produced by less reliable sets of probability thresholds. Such a source of error may, then, be considered to be independent on the particular set of thresholds used to guide Hierarchical’s predictions, and, therefore, eventually occur more prominently for more “trustworthy” sets of probability thresholds. Having analyzed some potential reasons for the rather curious shape of the error function depicted in Figure 13, time has now come to consciously decide which particular set of thresholds to employ upon classifying the whole set of 2.670.993 miscellaneous sequences. The choice is quite straightforward: although all sets of thresholds in T“produced” an estimated error larger than or equal to that established as baseline, the set [0.95,0.95] is naturally selected. 5Given that the error associated to the set [0.95,0.95] is still reasonably higher than the pre-established reference, to legitimate such a choice, the second reason proposed for the counter-intuitive variation of the classification error is, again, invoked. Considering the ambiguity of many of the true labels associated to the sample of “informative” predictions guided by the set [0.95,0.95], the respective classification error is potentially overestimated. That is, the real error associated to the latter set of thresholds is presumably located in the vicinity of the error appointed as baseline. Sequence distribution. Sequence distribution, contrary to the latter proceeding, constitutes a quite trivial step. The process of classifying the whole set of 2.670.993 miscellaneous sequences yields a csv file that shall be filtered to only include entries/records whose predictions are congruent to the ascertained functional roles (i.e., entries whose associated predicted functional roles are neither “other-function” nor “” , that is, the empty string ). Upon filtering the latter file, a total of 150.550 records persisted. The sequences corresponding to such records must now be distributed by the appropriate FASTA files. This task simply entails, for each persisting record, gathering the corresponding functional class func_class 5Remember that, in order to avoid injecting excessive amounts of noise to the already constructed database, Hierarchical’s predictions guided by a particular set of probability thresholds should have an estimated associated error smaller than or equal to the error of the worst performing model comprising Hierarchical . 82 Table 24: Percentage of data used for testing purposes regarding each dataset feeding Hierarchical- X. Note that the absolute difference in percentage points between 20% and each depicted percentage reflects sequence distribution affluence: larger percentage point differences convey larger ratios newly-allocated-sequences / original-number-of-sequences . This reveals Hierarchical’s bias towards some functional classes. Dataset % of data used for testing all.csv 16.44% dna_modification.csv 17.87% dna_replication.csv 17.18% lysis.csv 8.28% lysogeny_repressor.csv 19.50% packaging.csv 17.41% structural.csv 17.19% Table 25: Number of selected features regarding each dataset feeding Hierarchical-X. For the full listing of selected features, visit Appendix’s Tables A25 to A31. Dataset Number of selected features all.csv 136 dna_modification.csv 171 dna_replication.csv 146 lysis.csv 92 lysogeny_repressor.csv 130 packaging.csv 67 structural.csv 152 attained by its more “compact” counterpart (i.e., Hierarchical ). Solely the estimators modeling packaging.csv and structural.csv exhibit marginally superior predictive abilities to those of its Hierarchical’s “versions”. Figure 14 juxtaposes the results of the models comprising Hierarchical and Hierarchical-X . The discrepancy between Hierarchical and Hierarchical-X is particularly evident in regard to the estimators modeling all.csv , dna_modification.csv and dna_replication.csv . Even though the respective precision 89 Figure 14: Depiction of the results attained by the models comprising Hierarchical and Hierarchical- X. Datasets: ALL, all.csv ; DNA-mod, dna_modification.csv ; DNA-rep, dna_replication.csv ; Lysis, lysis.csv ; Lys-rep, lysogeny_repressor.csv ; Pack, packaging.csv ; Struct, structural.csv . 90 Table 26: Optimized hyper-parameter configurations for each model comprising Hierarchical-X. Datasets: ALL, all.csv ; DNA-mod, dna_modification.csv ; DNA-rep, dna_replication.csv ; Lysis, lysis.csv ; Lys-rep, lysogeny_repressor.csv ; Pack, packaging.csv ; Struct, structural.csv .ML algorithms: GB, gradient-boosting ; SVM, support-vector-machine . Hyper-parameter configurations ALL GB {’learning_rate’: 0.1014 , ’max_iter’: 300 , ’max_leaf_nodes’: 63 , ’min_samples_leaf’: 30 } DNA-mod GB {’learning_rate’: 0.05 , ’max_iter’: 259 , ’max_leaf_nodes’: 43 , ’min_samples_leaf’: 29 } DNA-rep GB {’learning_rate’: 0.0661 , ’max_iter’: 300 , ’max_leaf_nodes’: 15 , ’min_samples_leaf’: 30 } Lysis SVM {’C’: 8.2795 , ’decision_function_shape’: ’ovo’, ’degree’: 3 , ’kernel’: ’poly’} Lys-rep SVM {’C’: 0.2529 , ’decision_function_shape’: ’ovr’, ’degree’: 6 , ’kernel’: ’poly’} Pack SVM {’C’: 7.1099 , ’decision_function_shape’: ’ovr’, ’degree’: 5 , ’kernel’: ’poly’} Struct GB {’learning_rate’: 0.0653 , ’max_iter’: 300 , ’max_leaf_nodes’: 56 , ’min_samples_leaf’: 30 } scores are virtually equivalent, the analogous recall scores were significantly hampered upon expansion of the datasets. An immediate insight one may see reflected on such results is that the estimators modeling these datasets lost, to some extent, the ability to correctly categorize new data instances, that is, on average, more False negative (FN) instances emerged from the corresponding predictions. Even though the process entailing classification, and subsequent distribution of miscellaneous sequences was cautiously carried out, the results suggest that enlarging the datasets feeding the models injected some noise to the already assembled database. This ought to be the case since the expanded sequence database was freed of redundancy before feeding the models comprising Hierarchical-X , that is, new information that would conceivably be of help upon discerning each dataset’s classes was definitely added to the database. On this ground, and by mindfully observing the marginal differences between the models comprising Hierarchical and Hierarchical-X , one may confidently assume that a significant portion of the information injected in the database ended up “confounding” these models. 91 Hence, Hierarchical is naturally selected to embody PhageAnnotate . From this point onwards, PhageAnnotate is, then, assumed to be assembled and, therefore, to be an entity by itself, independent of intricacies inherent to its construction. 4.2 Evaluation of phage annotation tools Having assessed PhageAnnotate’s performance relative to the data allocated for testing purposes 7, it is certainly proficuous to evaluate its competence by emulating its yet to come predictive endeavors. Moreover, in order to gauge the utility of the system, it must be compared to already existent and well-established phage annotation tools. Both tasks are accomplished by exploiting a set of four unpublished, semi-annotated phage genomes. These genomes pertain to phages infecting three distinct bacterial genera: Acinetobacter ( Gram-negative ), Providencia ( Gram-negative ) and Staphylococcus ( Gram-positive ). From this point forward, such phages are referred to as Acinetobacter phage , Providencia phage , Staphylococcus phage 1 and Staphylococcus phage 2 . Firstly, PhageAnnotate is evaluated. The evaluation process entails the uncovering of an “optimal” set of probability thresholds representing, once again, the degree of confidence in the model’s predictions. 8 The decisive assessing effort is to be performed by guiding the system’s predictions according to these thresholds. Secondly, alternative phage annotation tools are evaluated and juxtaposed to PhageAnnotate . 4.2.1 Evaluating PhageAnnotate To fully exploit PhageAnnotate’s latent capabilities, the “optimal” degree of confidence in its predictions must be established. Once again, such degree of confidence is proxied by a set of two probability thresholds: one representing the reliability of functional class annotations, and other determining the trustiness of functional role categorizations. For reasons of simplicity, the assessed sets of thresholds, given by T, are equivalent to those employed when establishing the “optimal” set of probability thresholds for the classification miscellaneous sequences, that is: T= [0.50,0.50],[0.55,0.55],[0.60,0.60], ..., [0.85,0.85],[0.90,0.90],[0.95,0.95] For each set of thresholds in T, PhageAnnotate classifies the DNA sequences present in the FASTA files representing each above-mentioned phage. However, contrary to the analog proceeding carried out 7It is worthwhile remember the reader that such data was retrieved from NCBI’s Nucleotide , and allotted for testing upon model construction. 8Note that this process evolves quite similarly to that exposed at 3.2.4. Case study – Enhancing Hierarchical – Sequence retrieval, classification, distribution and depuration . 92 Figure 15: For each phage genome, a depiction of the percentage of “informative” predictions for all sets of probability thresholds in T.Note that, for reasons of clarity, each set of thresholds is represented by a single numeral. prior to the classification of miscellaneous sequences, the selection of the “optimal” set of probability thresholds is governed by a reputedly ideal percentage of expected “informative” predictions. Such a rationale of rather arcane resonance is founded by the fact that, as mentioned earlier, 50 −90% of phage genes do not have an assigned function. Therefore, an auspicious strategy is to adjust these probability thresholds such that 50 −90% of the genome is “uninformatively” annotated. Since “uninformative” annotations (e.g., “hypothetical protein” , “unknown function” , etc.) come to be both by reason of the unrecognizable functional nature of several phage proteins and by virtue of the inability of current phage annotation tools to properly annotate phage genomes, the lower bound of the afore mentioned interval (i.e., 50%) is chosen to represent this “ideal” percentage. That is, the set of probability thresholds is selected such that approximately 50% of the phage’s genomes are “informatively” annotated. Figure 15 depicts the outcomes of testing, for each phage genome (i.e., Acinetobacter phage , Providencia phage , Staphylococcus phage 1 and Staphylococcus phage 2 ), all sets of intervals in T. As expected, the sets of probability thresholds that guarantee an annotation coverage of approximately 50% slightly vary between phage genomes. Nonetheless, the set [0.65,0.65] imposes, on average, the closest annotation coverage to the established reference. Table 27 explicitly presents the average anno- 93 tation coverages regarding each set of probability thresholds in T. Table 27: Portrayal of the average annotation coverages regarding each set of probability thresholds in T.Note that the set [0.65,0.65] imposes an average annotation coverage that virtually matches that established as reference (i.e., 50%). Set of probability thresholds Average annotation coverage [0.50,0.50] 74.00% [0.55,0.55] 66.25% [0.60,0.60] 55.50% [0.65,0.65] 49.50% [0.70,0.70] 43.00% [0.75,0.75] 39.25% [0.80,0.80] 33.50% [0.85,0.85] 27.75% [0.90,0.90] 19.75% [0.95,0.95] 14.25% Naturally, the set of probability thresholds [0.65,0.65] is exploited to guide the predictions made by system. Utilizing this set of thresholds, PhageAnnotate may then make definitive predictions about each of the four phage genomes, upon which the corresponding errors are calculated. It is noteworthy to mention that the error is determined by computing the fraction of unambiguously annotated sequences whose PhageAnnotate’s categorization is incorrect. 9Table 28 depicts, for each phage genome, the errors associated to PhageAnnotate’s predictions. Moreover, the annotation coverages attained via manual annotation and by PhageAnnotate’s predictions are also presented. Unarguably, and quite unexpectedly, the errors associated to PhageAnnotate’s predictions are significant. Nonetheless, such errors are computed under very restricted circumstances that certainly conceal PhageAnnotate’s genuine predictive capabilities. A triad of such hampering conditions may easily be detected: 1. PhageAnnotate’s predictions are guided by a set of probability thresholds that, on average, guarantees an annotation coverage of about 50%. The fact that the system’s predictions are dependent 9Note that solely unambiguously annotated sequences are considered for computing the error associated to the system’s predictions, since it is plainly impossible to determine the correctness of predictions whose associated manual annotation is unclear. 94 Table 28: Depiction of the annotation coverages attained via manual annotation and by PhageAnnotate’s predictions, and the error associated to the latter. Note that the errors, although considerably high, are computed under very specific conditions. Genome Manual coverage System coverage Error Acinetobacter phage 42.11%38.60%70.83% Providencia phage 35.19%55.56%31.58% Staphylococcus phage 1 33.08%48.46%44.19% Staphylococcus phage 2 55.00%55.00%36.36% on this particular set of thresholds may suppress categorizations that are actually correct, but are plainly disregarded. This point is illustrated through a fictitious example. Suppose that a given gene is manually annotated as “major capsid” . Likewise, suppose that PhageAnnotate predicts the functional role associated to this gene to be, as well, “major capsid” . However, the degree of confidence in the system’s functional role prediction is merely 60%, which is not enough to permeate the sieve imposed by the pre-established set of probability thresholds (i.e., [0.65,0.65]). Consequently, PhageAnnotate classifies the gene’s functional role to be “other-function” , and the prediction is regarded as incorrect. 2. PhageAnnotate makes “informative” predictions on DNA sequences that may not be compared to the analogous manual annotations given the latter’s abstruseness. Such predictions are straightly overlooked upon computing the error, which may significantly hinder the true error associated to the system. For example, assume that PhageAnnotate confidently categorizes a sequence as “endolysin” . Yet, given the inability to assuredly assign a function to this sequence through homologybased methods, its manual annotation ends up being “hypothetical protein” . PhageAnnotate’s prediction may actually be correct, but it must not be considered when computing the system’s error. 3. Manual annotations unveil functions that are not contemplated in PhageAnnotate’s ascertained functional roles. In such cases, any prediction made by the system, either “informative” or “uninformative”, is evidently regarded as incorrect. The consequences of the second and third circumstances are inexorable. Nonetheless, to approximate the “computable” error to the actual error associated to PhageAnnotate’s predictions, one may easily 95 circumvent the repercussions of pre-establishing a somewhat restrictive set of probability thresholds. By establishing a set of thresholds equivalent to [0.00,0.00], the system “informatively” classifies all its input sequences. That is, all input sequences are forcedly assigned to functional classes and functional roles other than “other” and “other-function” , respectively. The results of such a disarrayed predictive endeavor are portrayed in Table 29. Table 29: Depiction of the annotation coverages attained via manual annotation and by PhageAnnotate’s predictions, and the error associated to the latter. Contrary to the previous analysis, a set of unrestrictive probability thresholds (i.e., [0.00,0.00]) is employed to guide the predictions of the system. Genome Manual coverage System coverage Error Acinetobacter phage 42.11%100.00%45.83% Providencia phage 35.19%100.00%31.58% Staphylococcus phage 1 33.08%100.00%30.23% Staphylococcus phage 2 55.00%100.00%18.18% As expected, the errors associated to PhageAnnotate’s predictions, although still considerably high, almost universally decreased. 10 The latterly attained errors more reliably reflect the real PhageAnnotate’s prediction errors. Nonetheless, to confidently make predictions on new data (i.e., phage DNA sequences in FASTA format), the originally established set of probability thresholds (i.e., [0.65,0.65]) should be employed by default. 4.2.2 Juxtaposing phage annotation tools Having thoroughly analyzed PhageAnnotate’s predictive abilities regarding a collection of four unpublished phage genomes (and, hence, constituting novel information immune to producing biased results), it is pertinent to conduct the exact same examination with respect to alternative, well-established phage annotation tools. To assess these tools, namely Prokka , Pharokka , PhANNs and DeePVP (briefly described in 3.3. Evaluation of phage annotation tools), predictions are carried for each phage genome, and the respective errors are calculated consistent to the rules employed upon computing PhageAnnotate’s errors. That is, solely predictions made on sequences whose manual annotation is unambiguous are considered when computing errors. Hence, the repercussions of conditions 2and 3pointed out for the presumably inflated PhageAnnotate’s errors also apply for these tools. Table 30 and Table 31 depict 10 Note that, naturally, no error increased in value; solely the error attained upon predictions on Providencia phage remained unaltered. 96 the outcomes of homology-based systems, that is, Prokka and Pharokka , respectively. On the other hand, Table 32 and Table 33 present the results of ML -powered tools (i.e., PhANNs and DeePVP , respectively). The latter tables include an extra column relative to the former: since PhANNs and DeePVP exclusively “informatively” categorize structural proteins, it is pertinent to compute errors uniquely concerning this functional class. Hence, Error (structural) depicts the fraction of manually annotated structural proteins whose corresponding predictions (produced by PhANNs or DeePVP ) are incorrect. Table 30: Depiction of the annotation coverages attained via manual annotation and by Prokka’s predictions, and the error associated to the latter. Note that Manual coverage exactly matches that of Table 29. Genome Manual coverage System coverage Error Acinetobacter phage 42.11%5.26%87.50% Providencia phage 35.19%27.78%31.58% Staphylococcus phage 1 33.08%3.08%93.02% Staphylococcus phage 2 55.00%5.00%90.91% Table 31: Depiction of the annotation coverages attained via manual annotation and by Pharokka’s predictions, and the error associated to the latter. Note that Manual coverage exactly matches that of Table 29. Genome Manual coverage System coverage Error Acinetobacter phage 42.11%40.35%16.67% Providencia phage 35.19%38.89%26.32% Staphylococcus phage 1 33.08%32.31%20.93% Staphylococcus phage 2 55.00%30.00%63.64% Overall, these tools evidenced fairly large errors regarding the whole set of phage genomes. Even though such errors must be interpreted with some reservation (given the very restricted conditions imposed upon their computation), they still reflect the unequivocal inability of PhageAnnotate’s alternative tools to produce satisfactory annotations. Moreover, each of these alternative systems invariably provides genome annotation coverages inferior to those obtained via manual annotations laboriously propelled by tools such 97 Table 32: Depiction of the annotation coverages attained via manual annotation and by PhANNs’ predictions, and the error associated to the latter. Note that Manual coverage exactly matches that of Table 29. Error (structural) portrays PhANNs’ error exclusively regarding structural proteins. Genome Manual coverage System coverage Error Error (structural) Acinetobacter phage 42.11%26.32%87.50%71.43% Providencia phage 35.19%25.93%94.74%66.67% Staphylococcus phage 1 33.08%16.92%83.72%54.55% Staphylococcus phage 2 55.00%35.00%72.73%71.43% Table 33: Depiction of the annotation coverages attained via manual annotation and by DeePVP’s predictions, and the error associated to the latter. Note that Manual coverage exactly matches that of Table 29. Error (structural) portrays DeePVP’s error exclusively regarding structural proteins. Genome Manual coverage System coverage Error Error (structural) Acinetobacter phage 42.11%1.75%95.83%85.71% Providencia phage 35.19%12.96%89.47%66.67% Staphylococcus phage 1 33.08%8.46%88.37%54.55% Staphylococcus phage 2 55.00%20.00%72.73%57.14% as BLAST and HHpred [74]. Consequently, and although extremely demanding, manual annotations are still preferred over the majority of PhageAnnotate’s alternatives. Nevertheless, a particular annotation system stands out from the competition virtue of its quite satisfactory predictive abilities: Pharokka . Not only it was able to achieve significantly superior annotation coverages when compared to its alternatives (excluding PhageAnnotate ), it also generally generated prediction errors considerably lower than its equivalents (on this occasion, slightly transcending PhageAnnotate’s performance). For a more enlightening comparison between all the afore mentioned phage annotation tools, the average (both weighted and unweighted) errors associated to each of these systems are portrayed in Table 34. PhageAnnotate’s errors 11 are also included in the immediate analysis. Weighted errors are 11 Those attained via employing the sets of probability thresholds [0.00,0.00] and [0.65,0.65] to guide the system’s predictions. 98 a “linearized” model architecture might be of help concerning the immediate predictive task, additional ML algorithms, immune to the latter complication, must be considered (e.g. neural-network and support-vector-machine ). 5. Alternative ML algorithms should be exploited for modeling the already established datasets. Although the algorithms powering PhageAnnotate’s models unequivocally performed well, more contemporary (and potentially more competent) designs ought to be put to test. Examples of such algorithms include, among others, convolutional neural networks ( CNNs ) and recurrent neural networks ( RNNs ). Overall, and despite all the evident PhageAnnotate’s inconveniences, the usefulness of the system appears to be indisputable. Additionally, it (hopefully) lays the foundations for the emergence of more competent phage annotation tools. The Python code instrumental in bringing about PhageAnnotate , as well as instructions for installing and utilizing the system, may be encountered in the GitHub’s repository https://github.com/anccduarte/ PhageAnnotate. 105 Bibliography [1] M. Kircher and J. Kelso, “High-throughput dna sequencing–concepts and limitations,” Bioessays , vol. 32, no. 6, pp. 524–536, 2010. [2] L. A. Bright, S. C. Burgess, B. Chowdhary, C. E. Swiderski, and F. M. McCarthy, “Structural and functional-annotation of an equine whole genome oligoarray,” in BMC bioinformatics , BioMed Central, vol. 10, 2009, pp. 1–8. [3] D. Turner, E. M. Adriaenssens, I. Tolstoy, and A. M. Kropinski, “Phage annotation guide: Guidelines for assembly and high-quality annotation,” Phage , vol. 2, no. 4, pp. 170–182, 2021. [4] S. L. Salzberg, A. L. Delcher, S. Kasif, and O. White, “Microbial gene identification using interpolated markov models,” Nucleic acids research , vol. 26, no. 2, pp. 544–548, 1998. [5] J. Besemer and M. Borodovsky, “Genemark: Web software for gene finding in prokaryotes, eukaryotes and viruses,” Nucleic acids research , vol. 33, no. suppl_2, W451–W454, 2005. [6] S. F. Altschul, W. Gish, W. Miller, E. W. Myers, and D. J. Lipman, “Basic local alignment search tool,” Journal of molecular biology , vol. 215, no. 3, pp. 403–410, 1990. [7] X. Dai, Z. Xu, Z. Liang, et al. , “Non-homology-based prediction of gene functions,” 2019. [8] R. A. Edwards and F. Rohwer, “Viral metagenomics,” Nature Reviews Microbiology , vol. 3, no. 6, pp. 504–510, 2005. [9] J. McCarthy, “What is artificial intelligence?,” 2004. [10] W. S. McCulloch and W. Pitts, “A logical calculus of the ideas immanent in nervous activity,” The bulletin of mathematical biophysics , vol. 5, pp. 115–133, 1943. [11] A. M. Turing, Computing machinery and intelligence . Springer, 2009. [12] A. L. Samuel, “Some studies in machine learning using the game of checkers,” IBM Journal of research and development , vol. 44, no. 1.2, pp. 206–226, 2000. 106 [13] F. Rosenblatt, “The perceptron: A probabilistic model for information storage and organization in the brain.,” Psychological review , vol. 65, no. 6, p. 386, 1958. [14] O. AI, “Gpt-4 technical report,” arXiv preprint arXiv:2303.08774 , 2023. [15] B. E. Board, Is chatgpt the start of the ai revolution? [Accessed 26-October-2023], 2022. [Online]. Available: https://www.bloomberg.com/opinion/articles/2022-12-09/is-chatgpt-the- start-of-the-ai-revolution#xj4y7vzkg. [16] A. Burkov, The hundred-page machine learning book . Andriy Burkov Quebec City, QC, Canada, 2019, vol. 1. [17] K. Pearson, “Liii. on lines and planes of closest fit to systems of points in space,” The London, Edinburgh, and Dublin philosophical magazine and journal of science , vol. 2, no. 11, pp. 559–572, 1901. [18] H. Hotelling, “Analysis of a complex of statistical variables into principal components.,” Journal of educational psychology , vol. 24, no. 6, p. 417, 1933. [19] L. Van der Maaten and G. Hinton, “Visualizing data using t-sne.,” Journal of machine learning research , vol. 9, no. 11, 2008. [20] L. McInnes, J. Healy, and J. Melville, “Umap: Uniform manifold approximation and projection for dimension reduction,” arXiv preprint arXiv:1802.03426 , 2018. [21] J. H. Ward Jr, “Hierarchical grouping to optimize an objective function,” Journal of the American statistical association , vol. 58, no. 301, pp. 236–244, 1963. [22] S. Lloyd, “Least squares quantization in pcm,” IEEE transactions on information theory , vol. 28, no. 2, pp. 129–137, 1982. [23] J. MacQueen et al. , “Some methods for classification and analysis of multivariate observations,” in Proceedings of the fifth Berkeley symposium on mathematical statistics and probability , Oakland, CA, USA, vol. 1, 1967, pp. 281–297. [24] D. Witten and G. James, An introduction to statistical learning with applications in R . springer publication, 2013. [25] I. Guyon and A. Elisseeff, “An introduction to variable and feature selection,” Journal of machine learning research , vol. 3, no. Mar, pp. 1157–1182, 2003. 107 [26] R. Patro, Cross-validation: K fold vs monte carlo , [Accessed 26-October-2023], 2021. [Online]. Available: https://towardsdatascience.com/cross-validation- kfold-vs- montecarlo- e54df2fc179b. [27] K. Jamieson and A. Talwalkar, “Non-stochastic best arm identification and hyperparameter optimization,” in Artificial intelligence and statistics , PMLR, 2016, pp. 240–248. [28] L. Li, K. Jamieson, G. DeSalvo, A. Rostamizadeh, and A. Talwalkar, “Hyperband: A novel banditbased approach to hyperparameter optimization,” The journal of machine learning research , vol. 18, no. 1, pp. 6765–6816, 2017. [29] W. Koehrsen, A conceptual explanation of bayesian hyperparameter optimization for machine learning , [Accessed 26-October-2023], 2018. [Online]. Available: https://towardsdatascience.com/ a-conceptual-explanation-of-bayesian-model-based-hyperparameter-optimization-for- machine-learning-b8172278050f. [30] D. Hand and P. Christen, “A note on using the f-measure for evaluating record linkage algorithms,” Statistics and Computing , vol. 28, pp. 539–547, 2018. [31] T. Wood, F-score , [Accessed 26-October-2023]. [Online]. Available: https : / / deepai . org / machine-learning-glossary-and-terms/f-score. [32] S. Badillo, B. Banfai, F. Birzele, et al. , “An introduction to machine learning,” Clinical pharmacology & therapeutics , vol. 107, no. 4, pp. 871–885, 2020. [33] E. Fix and J. L. Hodges, “Discriminatory analysis. nonparametric discrimination: Consistency properties,” International Statistical Review/Revue Internationale de Statistique , vol. 57, no. 3, pp. 238– 247, 1989. [34] T. Cover and P. Hart, “Nearest neighbor pattern classification,” IEEE transactions on information theory , vol. 13, no. 1, pp. 21–27, 1967. [35] W. Wei, S. Visweswaran, and G. F. Cooper, “The application of naive bayes model averaging to predict alzheimer’s disease from genome-wide data,” Journal of the American Medical Informatics Association , vol. 18, no. 4, pp. 370–375, 2011. [36] J. N. Morgan and J. A. Sonquist, “Problems in the analysis of survey data, and a proposal,” Journal of the American statistical association , vol. 58, no. 302, pp. 415–434, 1963. [37] T. K. Ho, “Random decision forests,” in Proceedings of 3rd international conference on document analysis and recognition , IEEE, vol. 1, 1995, pp. 278–282. 108 [38] L. Breiman, “Arcing the edge,” Citeseer, Tech. Rep., 1997. [39] B. E. Boser, I. M. Guyon, and V. N. Vapnik, “A training algorithm for optimal margin classifiers,” in Proceedings of the fifth annual workshop on Computational learning theory , 1992, pp. 144–152. [40] S. Chibani-Chennoufi, A. Bruttin, M.-L. Dillmann, and H. Brüssow, “Phage-host interaction: An ecological perspective,” Journal of bacteriology , vol. 186, no. 12, pp. 3677–3686, 2004. [41] F. Gonzalez and B. E. Scharf, “Identification of receptor binding proteins in flagellotropic agrobacterium phage 7-7-1,” Viruses , vol. 13, no. 7, p. 1267, 2021. [42] S. T. Abedon, Bacteriophage ecology: population growth, evolution, and impact of bacterial viruses . Cambridge University Press, 2008, vol. 15. [43] L. M. Kasman and L. D. Porter, “Bacteriophages,” in StatPearls [Internet] , StatPearls Publishing, 2022. [44] M. B. Dion, F. Oechslin, and S. Moineau, “Phage diversity, genomics and phylogeny,” Nature Reviews Microbiology , vol. 18, no. 3, pp. 125–138, 2020. [45] J. R. Clark and J. B. March, “Bacteriophages and biotechnology: Vaccines, gene therapy and antibacterials,” Trends in biotechnology , vol. 24, no. 5, pp. 212–218, 2006. [46] M. R. Clokie, A. D. Millard, A. V. Letarov, and S. Heaphy, “Phages in nature,” Bacteriophage , vol. 1, no. 1, pp. 31–45, 2011. [47] W. H. Organization et al. , “Containing antimicrobial resistance,” World Health Organization, Tech. Rep., 2005. [48] B.-o. Kim, E. S. Kim, Y.-J. Yoo, H.-W. Bae, I.-Y. Chung, and Y.-H. Cho, “Phage-derived antibacterials: Harnessing the simplicity, plasticity, and diversity of phages,” Viruses , vol. 11, no. 3, p. 268, 2019. [49] A. L. Bryson, Y. Hwang, S. Sherrill-Mix, et al. , “Covalent modification of bacteriophage t4 dna inhibits crispr-cas9,” MBio , vol. 6, no. 3, pp. 10–1128, 2015. [50] S. W. Matson, D. W. Bean, and J. W. George, “Dna helicases: Enzymes with essential roles in all aspects of dna metabolism,” Bioessays , vol. 16, no. 1, pp. 13–22, 1994. [51] D. Veesler and C. Cambillau, “A common evolutionary origin for tailed-bacteriophage functional modules and bacterial machineries,” Microbiology and Molecular Biology Reviews , vol. 75, no. 3, pp. 423–433, 2011. [52] V. A. Cantu, P. Salamon, V. Seguritan, et al. , “Phanns, a fast and accurate tool and web server to classify phage structural proteins,” PLoS computational biology , vol. 16, no. 11, e1007845, 2020. 109 [53] J. H. Weiner, D. Sambasivarao, and R. A. Rothery, “Bacterial cytoplasmic membrane,” eLS , 2001. [54] W. Vollmer, D. Blanot, and M. A. De Pedro, “Peptidoglycan structure and architecture,” FEMS microbiology reviews , vol. 32, no. 2, pp. 149–167, 2008. [55] M. J. Catalao, F. Gil, J. Moniz-Pereira, C. Sao-Jose, and M. Pimentel, “Diversity in bacterial lysis systems: Bacteriophages show the way,” FEMS microbiology reviews , vol. 37, no. 4, pp. 554–571, 2013. [56] M. Rajaure, J. Berry, R. Kongari, J. Cahill, and R. Young, “Membrane fusion during phage lysis,” Proceedings of the National Academy of Sciences , vol. 112, no. 17, pp. 5497–5502, 2015. [57] E. W. Sayers, E. E. Bolton, J. R. Brister, et al. , “Database resources of the national center for biotechnology information,” Nucleic acids research , vol. 50, no. D1, p. D20, 2022. [58] P. S. Foundation, The python language reference, version 3.11 , [Accessed 26-October-2023], 2023. [Online]. Available: https://docs.python.org/3.11/reference/index.html. [59] C. R. Harris, K. J. Millman, S. J. Van Der Walt, et al. , “Array programming with numpy,” Nature , vol. 585, no. 7825, pp. 357–362, 2020. [60] W. McKinney et al. , “Data structures for statistical computing in python,” in Proceedings of the 9th Python in Science Conference , Austin, TX, vol. 445, 2010, pp. 51–56. [61] P. Virtanen, R. Gommers, T. E. Oliphant, et al. , “Scipy 1.0: Fundamental algorithms for scientific computing in python,” Nature methods , vol. 17, no. 3, pp. 261–272, 2020. [62] P. J. Cock, T. Antao, J. T. Chang, et al. , “Biopython: Freely available python tools for computational molecular biology and bioinformatics,” Bioinformatics , vol. 25, no. 11, p. 1422, 2009. [63] B. Chapman and J. Chang, “Biopython: Python tools for computational biology,” ACM Sigbio Newsletter , vol. 20, no. 2, pp. 15–19, 2000. [64] D.-S. Cao, Q.-S. Xu, and Y.-Z. Liang, “Propy: A tool to generate various modes of chou’s pseaac,” Bioinformatics , vol. 29, no. 7, pp. 960–962, 2013. [65] G. Govindan and A. S. Nair, “Composition, transition and distribution (ctd)—a dynamic feature for predictions based on hierarchical structure of cellular sorting,” in 2011 Annual IEEE India Conference , Ieee, 2011, pp. 1–6. [66] F. Pedregosa, G. Varoquaux, A. Gramfort, et al. , “Scikit-learn: Machine learning in python,” the Journal of machine Learning research , vol. 12, pp. 2825–2830, 2011. 110 [67] scikit-optimize, User guide , [Accessed 26-October-2023]. [Online]. Available: https : / / scikit - optimize.github.io/stable/user_guide.html. [68] Joblib, Joblib: Running python functions as pipeline jobs , [Accessed 26-October-2023]. [Online]. Available: https://joblib.readthedocs.io/en/stable/. [69] F. Abramovich and M. Pensky, “Classification with many classes: Challenges and pluses,” Journal of Multivariate Analysis , vol. 174, p. 104 536, 2019. [70] L. Fu, B. Niu, Z. Zhu, S. Wu, and W. Li, “Cd-hit: Accelerated for clustering the next-generation sequencing data,” Bioinformatics , vol. 28, no. 23, pp. 3150–3152, 2012. [71] T. Seemann, “Prokka: Rapid prokaryotic genome annotation,” Bioinformatics , vol. 30, no. 14, pp. 2068–2069, 2014. [72] G. Bouras, R. Nepal, G. Houtak, A. J. Psaltis, P.-J. Wormald, and S. Vreugde, “Pharokka: A fast scalable bacteriophage annotation tool,” Bioinformatics , vol. 39, no. 1, btac776, 2023. [73] Z. Fang, T. Feng, H. Zhou, and M. Chen, “Deepvp: Identification and classification of phage virion proteins using deep learning,” GigaScience , vol. 11, giac076, 2022. [74] J. Söding, A. Biegert, and A. N. Lupas, “The hhpred interactive server for protein homology detection and structure prediction,” Nucleic acids research , vol. 33, no. suppl_2, W244–W248, 2005. [75] P. Terzian, E. Olo Ndela, C. Galiez, et al. , “Phrog: Families of prokaryotic virus proteins clustered using remote homology,” NAR Genomics and Bioinformatics , vol. 3, no. 3, lqab067, 2021. 111 Appendix A Supplementary tables Table A1: Gene product names pertaining to each functional role. Functional role Gene product names nuclease ”hnh endonuclease”, ”exonuclease”, ”hnh homing endonuclease”, ”cas4 family exonuclease”, ”putative exonuclease”, ”putative hnh endonuclease”,”endonuclease”, ”homing endonuclease”, ”nuclease”, ”endonuclease vii”, ”putative homing endonuclease”, ”restriction endonuclease”, ”pd-(d/e)xk nuclease superfamily protein”, ”recombination endonuclease vii”, ”intron associated endonuclease”, ”exonuclease”, ”hnh endonuclease bacteriophage, hnh endonuclease, dna.52a” deaminase ”deoxycytidylate deaminase”, ”dcmp deaminase”, ”deaminase” thymidylate synthase ”thymidylate synthase” dUTPase ”dutpase” kinase ”polynucleotide kinase”, ”thymidine kinase”, ”nucelotide kinase”, ”kinase”, ”deoxynucleoside monophosphate kinase” phosphoesterase ”metallophosphoesterase”, ”phosphoesterase” reductase ”dihydrofolate reductase”, ”ribonucleotide reductase”, ”anaerobic ribonucleoside triphosphate reductase”, ”reductase”, ”phosphoadenosine-phosphosulfate reductase” methylase ”dna methylase”, ”adenine-specific methyltransferase”, ”dna adenine methylase”, ”cytosine specific methyltransferase”, ”dna n-6-adenine-methyltransferase”, ”methylase” ATPase ”atpase” nucleotidohydrolase ”nucleotidohydrolase”, ”deoxyuridine 5’-triphosphate nucleotidohydrolase” transferase ”nucleotidyltransferase”, ”glycosyltransferase”, ”methyltransferase”,”adenine specific dna methyltransferase”, ”transferase” phosphohydrolase ”nucleoside triphosphate pyrophosphohydrolase”, ”phosphohydrolase” glutaredoxin ”glutaredoxin” ribonuclease ”endodeoxyribonuclease i”, ”endodeoxyribonuclease rusa”, ”ribonuclease”, ”endodeoxyribonuclease” Table A1: [Continuation 1] Gene product names pertaining to each functional role. Functional role Gene product names transcription factor ”whib family transcription factor”, ”transcriptional regulator”, ”putative transcriptional regulator”, ”regulatory protein”, ”ecf sigma factor”, ”transcription factor” DNA primase-helicase ”dna helicase”, ”dna primase/helicase”, ”dna primase”,”putative helicase”, ”helicase”, ”dnab-like replicative helicase”, ”replicative dna helicase”, ”dnab-like dsdna helicase”, ”dsdna helicase”, ”replicative helicase”, ”helicase of the snf2 rad54 family”, ”primase” RNA polymerase ”dna-directed rna polymerase”, ”rna polymerase sigma factor”,”rna polymerase”, ”rna dependent rna polymerase” DNA ligase ”dna ligase” DNA polymerase ”dna polymerase i”, ”dna polymerase”, ”dna polymerase b” RNA ligase ”rna ligase” replication initiation ”replication initiation protein” endolysin ”n-acetylmuramoyl-l-alanine amidase”, ”endolysin”, ”peptidoglycan hydrolase”, ”cell wall hydrolase autolysin” holin ”holin”, ”putative holin”, ”holin protein” spanin ”rz-like spanin”, ”spanin”, ”i-spanin”, ”o-spanin”, ”u-spanin”, ”rz”, ”rz1” integrase ”integrase”, ”tyrosine integrase” recombinase ”site specific recombinase xerd”, ”recombinase”, ”recombination protein”, ”ninb protein”, ”rect protein”, ”ning recombination protein” repressor ”immunity repressor”, ”repressor protein ci”, ”repressor protein”, ”transcriptional repressor”, ”repressor domain protein”, ”sos-response transcriptional repressor”, ”repressor” resolvase ”holliday junction resolvase”, ”resolvase” transposase ”transposase” antirepressor ”antirepressor protein”, ”antirepressor” large terminase ”terminase large subunit”, ”large terminase”, ”large subunit terminase” small terminase ”terminase small subunit”, ”putative terminase small subunit”, ”small terminase” Table A7: Listing of selected features for Hierarchical’s lysogeny-repressor (preliminary). Selected features Len-Protein, A-Nuc, G-Nuc, T-Nuc, A-Amino, R-Amino, D-Amino, C-Amino, E-Amino, Q-Amino, G-Amino, H-Amino, L-Amino, K-Amino, F-Amino, P-Amino, S-Amino, W-Amino, Y-Amino, RR-Dipept, RH-Dipept, RY-Dipept, GH-Dipept, HT-Dipept, LP-Dipept, YR-Dipept, YT-Dipept, Molecular-Weight, Aromaticity, Isoelectric-Point, Reduced-MEC, Oxidized-MEC, Helix-SSF, Turn-SSF, Sheet-SSf, _PolarizabilityC1, _PolarizabilityC3, _SolventAccessibilityC1, _SolventAccessibilityC2, _SecondaryStrC1, _SecondaryStrC2, _SecondaryStrC3, _ChargeC1, _ChargeC3, _PolarityC1, _PolarityC3, _NormalizedVDWVC1, _NormalizedVDWVC2, _NormalizedVDWVC3, _HydrophobicityC1, _HydrophobicityC3, _PolarizabilityT12, _PolarizabilityT13, _SecondaryStrT12, _SecondaryStrT23, _ChargeT12, _ChargeT23, _PolarityT12, _NormalizedVDWVT12, _NormalizedVDWVT13, _PolarizabilityD1001, _PolarizabilityD1075, _PolarizabilityD2001, _PolarizabilityD2025, _PolarizabilityD2075, _PolarizabilityD3001, _PolarizabilityD3025, _PolarizabilityD3050, _PolarizabilityD3075, _SolventAccessibilityD1001, _SolventAccessibilityD1050, _SolventAccessibilityD2001, _SolventAccessibilityD2025, _SolventAccessibilityD2050, _SolventAccessibilityD2075, _SolventAccessibilityD3001, _SolventAccessibilityD3075, _SecondaryStrD1001, _SecondaryStrD1025, _SecondaryStrD1050, _SecondaryStrD1075, _SecondaryStrD2001, _SecondaryStrD2050, _SecondaryStrD2075, _SecondaryStrD3001, _SecondaryStrD3025, _SecondaryStrD3050, _ChargeD1001, _ChargeD1025, _ChargeD1050, _ChargeD1075, _ChargeD2001, _ChargeD2025, _ChargeD2050, _ChargeD2075, _ChargeD3001, _ChargeD3025, _ChargeD3050, _ChargeD3075, _ChargeD3100, _PolarityD1001, _PolarityD1025, _PolarityD1050, _PolarityD1075, _PolarityD1100, _PolarityD2001, _PolarityD2025, _PolarityD2050, _PolarityD2075, _PolarityD3001, _PolarityD3025, _NormalizedVDWVD1001, _NormalizedVDWVD1025, _NormalizedVDWVD1075, _NormalizedVDWVD2001, _NormalizedVDWVD2025, _NormalizedVDWVD2075, _NormalizedVDWVD3001, _NormalizedVDWVD3025, _NormalizedVDWVD3050, _NormalizedVDWVD3075, _HydrophobicityD1001, _HydrophobicityD1025, _HydrophobicityD1050, _HydrophobicityD1075, _HydrophobicityD2001, _HydrophobicityD2025, _HydrophobicityD2050, _HydrophobicityD2075, _HydrophobicityD3001, _HydrophobicityD3025, _HydrophobicityD3050, _HydrophobicityD3075 Table A8: Listing of selected features for Hierarchical’s packaging (preliminary). Selected features Len-Protein, T-Nuc, A-Amino, E-Amino, H-Amino, K-Amino, F-Amino, W-Amino, Y-Amino, IL-Dipept, FR-Dipept, FP-Dipept, FY-Dipept, SF-Dipept, YF-Dipept, VF-Dipept, VY-Dipept, Molecular-Weight, Aromaticity, Isoelectric-Point, Reduced-MEC, Oxidized-MEC, Helix-SSF, Turn-SSF, Sheet-SSf, _PolarizabilityC3, _SolventAccessibilityC2, _SecondaryStrC1, _SecondaryStrC2, _ChargeC1, _ChargeC2, _ChargeC3, _PolarityC1, _PolarityC3, _NormalizedVDWVC3, _HydrophobicityC1, _HydrophobicityC3, _SolventAccessibilityT13, _SecondaryStrT23, _ChargeT23, _HydrophobicityT23, _PolarizabilityD1001, _PolarizabilityD2001, _PolarizabilityD3001, _PolarizabilityD3050, _PolarizabilityD3075, _PolarizabilityD3100, _SolventAccessibilityD1001, _SolventAccessibilityD2001, _SolventAccessibilityD3001, _SolventAccessibilityD3100, _SecondaryStrD1001, _SecondaryStrD2001, _SecondaryStrD2100, _SecondaryStrD3001, _ChargeD2001, _ChargeD3075, _ChargeD3100, _PolarityD1001, _PolarityD1100, _PolarityD2001, _PolarityD3001, _NormalizedVDWVD1001, _NormalizedVDWVD2001, _NormalizedVDWVD3001, _NormalizedVDWVD3075, _NormalizedVDWVD3100, _HydrophobicityD1001, _HydrophobicityD2001, _HydrophobicityD3001, _HydrophobicityD3100 Table A9: Listing of selected features for Hierarchical’s structural (preliminary). Selected features Len-Protein, A-Nuc, C-Nuc, G-Nuc, T-Nuc, A-Amino, R-Amino, N-Amino, D-Amino, C-Amino, E-Amino, Q-Amino, G-Amino, H-Amino, I-Amino, L-Amino, K-Amino, M-Amino, F-Amino, P-Amino, S-Amino, T-Amino, W-Amino, Y-Amino, V-Amino, CR-Dipept, Molecular-Weight, Aromaticity, Instability-Index, Isoelectric-Point, Reduced-MEC, Oxidized-MEC, Helix-SSF, Turn-SSF, Sheet-SSf, _PolarizabilityC1, _PolarizabilityC2, _PolarizabilityC3, _SolventAccessibilityC1, _SolventAccessibilityC2, _SolventAccessibilityC3, _SecondaryStrC1, _SecondaryStrC2, _SecondaryStrC3, _ChargeC1, _ChargeC2, _ChargeC3, _PolarityC1, _PolarityC2, _PolarityC3, _NormalizedVDWVC1, _NormalizedVDWVC2, _NormalizedVDWVC3, _HydrophobicityC1, _HydrophobicityC2, _HydrophobicityC3, _PolarizabilityT12, _PolarizabilityT13, _PolarizabilityT23, _SolventAccessibilityT13, _SolventAccessibilityT23, _SecondaryStrT23, _ChargeT12, _ChargeT23, _PolarityT12, _PolarityT13, _PolarityT23, _NormalizedVDWVT12, _NormalizedVDWVT13, _HydrophobicityT12, _HydrophobicityT23, _PolarizabilityD1001, _PolarizabilityD1025, _PolarizabilityD1050, _PolarizabilityD1075, _PolarizabilityD2001, _PolarizabilityD2050, _PolarizabilityD3001, _PolarizabilityD3025, _PolarizabilityD3050, _PolarizabilityD3075, _PolarizabilityD3100, _SolventAccessibilityD1001, _SolventAccessibilityD1025, _SolventAccessibilityD1050, _SolventAccessibilityD2001, _SolventAccessibilityD2025, _SolventAccessibilityD2050, _SolventAccessibilityD2075, _SolventAccessibilityD3001, _SecondaryStrD1001, _SecondaryStrD1025, _SecondaryStrD1050, _SecondaryStrD1075, _SecondaryStrD2001, _SecondaryStrD2025, _SecondaryStrD2050, _SecondaryStrD2075, _SecondaryStrD3001, _SecondaryStrD3025, _SecondaryStrD3075, _ChargeD1001, _ChargeD1025, _ChargeD1050, _ChargeD1075, _ChargeD1100, _ChargeD2001, _ChargeD2050, _ChargeD2075, _ChargeD3001, _ChargeD3025, _ChargeD3050, _ChargeD3075, _ChargeD3100, _PolarityD1001, _PolarityD1025, _PolarityD1050, _PolarityD1075, _PolarityD1100, _PolarityD2001, _PolarityD2025, _PolarityD2050, _PolarityD2075, _PolarityD3001, _PolarityD3025, _PolarityD3050, _PolarityD3075, _NormalizedVDWVD1001, _NormalizedVDWVD1025, _NormalizedVDWVD1050, _NormalizedVDWVD1075, _NormalizedVDWVD2001, _NormalizedVDWVD2025, _NormalizedVDWVD2050, _NormalizedVDWVD2075, _NormalizedVDWVD3001, _NormalizedVDWVD3025, _NormalizedVDWVD3050, _NormalizedVDWVD3075, _NormalizedVDWVD3100, _HydrophobicityD1001, _HydrophobicityD1025, _HydrophobicityD1050, _HydrophobicityD1075, _HydrophobicityD2001, _HydrophobicityD2025, _HydrophobicityD2075, _HydrophobicityD3001, _HydrophobicityD3025, _HydrophobicityD3050, _HydrophobicityD3075, _HydrophobicityD3100 Table A10: Optimized hyper-parameter configurations for Hierarchical’s ALL (preliminary). Hyper-parameter configurations GB {’learning_rate’: 0.1084 , ’max_iter’: 299 , ’max_leaf_nodes’: 40 , ’min_samples_leaf’: 24 } RF {’criterion’: ’entropy’, ’max_features’: ’sqrt’, ’min_samples_leaf’: 1 , ’min_samples_split’: 2 , ’n_estimators’: 300 } NB {} KNN {’algorithm’: ’kd_tree’, ’n_neighbors’: 3 , ’p’: 1 } MLP {’activation’: ”tanh’, ’learning_rate’: ’constant’, ’learning_rate_init’: 0.01 , ’max_iter’: 2000 , ’num_layers’: 6 , ’solver’: ’sgd’} SVM {’C’: 10.0 , ’decision_function_shape’: ’ovr’, ’degree’: 6 , ’kernel’: ’poly’} DT {’criterion’: ’entropy’, ’min_samples_leaf’: 1 , ’min_samples_split’: 2 } Table A11: Optimized hyper-parameter configurations for Hierarchical’s DNA-modification (preliminary). Hyper-parameter configurations GB {’learning_rate’: 0.05 , ’max_iter’: 300 , ’max_leaf_nodes’: 15 , ’min_samples_leaf’: 30 } RF {’criterion’: ’entropy’, ’max_features’: ’sqrt’, ’min_samples_leaf’: 1 , ’min_samples_split’: 2 , ’n_estimators’: 100 } NB {} KNN {’algorithm’: ’ball_tree’, ’n_neighbors’: 3 , ’p’: 1 } MLP {’activation’: ’relu’, ’learning_rate’: ’constant’, ’learning_rate_init’: 0.001 , ’max_iter’: 1114 , ’num_layers’: 1 , ’solver’: ’adam’} SVM {’C’: 7.8757 , ’decision_function_shape’: ’ovr’, ’degree’: 5 , ’kernel’: ’poly’} DT {’criterion’: ’entropy’, ’min_samples_leaf’: 1 , ’min_samples_split’: 2 } Table A12: Optimized hyper-parameter configurations for Hierarchical’s DNA-replication (preliminary). Hyper-parameter configurations GB {’learning_rate’: 0.05 , ’max_iter’: 233 , ’max_leaf_nodes’: 19 , ’min_samples_leaf’: 21 } RF {’criterion’: ’entropy’, ”max_features’: ’sqrt’, ’min_samples_leaf’: 1 , ’min_samples_split’: 2 , ’n_estimators’: 100 } NB {} KNN {’algorithm’: ’ball_tree’, ’n_neighbors’: 3 , ’p’: 1 } MLP {’activation’: ’tanh’, ’learning_rate’: ’constant’, ’learning_rate_init’: 0.0033, ’max_iter’: 671 , ’num_layers’: 3 , ’solver’: ’adam’} SVM {’C’: 1.0042 , ’decision_function_shape’: ’ovr’, ’degree’: 6 , ’kernel’: ’poly’} DT {’criterion’: ’entropy’, ’min_samples_leaf’: 1 , ’min_samples_split’: 2 } Table A13: Optimized hyper-parameter configurations for Hierarchical’s lysis (preliminary). Hyper-parameter configurations GB {’learning_rate’: 0.1412 , ’max_iter’: 121 , ’max_leaf_nodes’: 26 , ’min_samples_leaf’: 273 } RF {’criterion’: ’gini’, ’max_features’: ’sqrt’, ’min_samples_leaf’: 1 , ’min_samples_split’: 5 , ’n_estimators’: 300 } NB {} KNN {’algorithm’: ’kd_tree’, ’n_neighbors’: 3 , ’p’: 1 } MLP {’activation’: ’relu’, ’learning_rate’: ’invscaling’, ’learning_rate_init’: 0.0078 , ’max_iter’: 1489 , ’num_layers’: 2 , ’solver’: ’adam’} SVM {’C’: 9.9932 , ’decision_function_shape’: ’ovr’, ’degree’: 2 , ’kernel’: ’rbf’} DT {’criterion’: ’entropy’, ’min_samples_leaf’: 3 , ’min_samples_split’: 2 } Table A14: Optimized hyper-parameter configurations for Hierarchical’s lysogeny-repressor (preliminary). Hyper-parameter configurations GB {’learning_rate’: 0.0910 , ’max_iter’: 115 , ’max_leaf_nodes’: 43 , ’min_samples_leaf’: 25 } RF {’criterion’: ’entropy’, ’max_features’: ’sqrt’, ’min_samples_leaf’: 1 , ’min_samples_split’: 3 , ’n_estimators’: 194 } NB {} KNN {’algorithm’: ’kd_tree’, ’n_neighbors’: 3 , ’p’: 1 } MLP {’activation’: ’tanh’, ’learning_rate’: ’constant’, ’learning_rate_init’: 0.001 , ’max_iter’: 1731 , ’num_layers’: 6 , ’solver’: ’adam’} SVM {’C’: 8.8152 , ’decision_function_shape’: ’ovo’, ’degree’: 4 , ’kernel’: ’poly’} DT {’criterion’: ’entropy’, ’min_samples_leaf’: 1 , ’min_samples_split’: 27 } Table A15: Optimized hyper-parameter configurations for Hierarchical’s packaging (preliminary). Hyper-parameter configurations GB {’learning_rate’: 0.1303 , ’max_iter’: 281 , ’max_leaf_nodes’: 18 , ’min_samples_leaf’: 13 } RF {’criterion’: ’gini’, ’max_features’: ’log2’, ’min_samples_leaf’: 1 , ’min_samples_split’: 2 , ’n_estimators’: 128 } NB {} KNN {’algorithm’: ’kd_tree’, ’n_neighbors’: 3 , ’p’: 1 } MLP {’activation’: ’relu’, ’learning_rate’: ’invscaling’, ’learning_rate_init’: 0.0018 , ’max_iter’: 354 , ’num_layers’: 1 , ’solver’: ’adam’} SVM {’C’: 2.5555 , ’decision_function_shape’: ’ovo’, ’degree’: 6 , ’kernel’: ’poly’} DT {’criterion’: ’gini’, ’min_samples_leaf’: 3 , ’min_samples_split’: 2 } Table A16: Optimized hyper-parameter configurations for Hierarchical’s structural (preliminary). Hyper-parameter configurations GB {’learning_rate’: 0.0500 , ’max_iter’: 300 , ’max_leaf_nodes’: 63 , ’min_samples_leaf’: 30 } RF {’criterion’: ’entropy’, ’max_features’: ’sqrt’, ’min_samples_leaf’: 1 , ’min_samples_split’: 2 , ’n_estimators’: 299 } NB {} KNN {’algorithm’: ’ball_tree’, ’n_neighbors’: 3 , ’p’: 1} MLP {’activation’: ’tanh’, ’learning_rate’: ’invscaling’, ’learning_rate_init’: 0.0051 , ’max_iter’: 1246 , ’num_layers’: 1 , ’solver’: ’adam’} SVM {’C’: 4.9670 , ’decision_function_shape’: ’ovr’, ’degree’: 6 , ’kernel’: ’poly’} DT {’criterion’: ’entropy’, ’min_samples_leaf’: 1 , ’min_samples_split’: 3 } Table A17: Listing of selected features for Hierarchical’s ALL (definitive). Selected features Len-Protein, A-Nuc, C-Nuc, G-Nuc, T-Nuc, A-Amino, R-Amino, N-Amino, D-Amino, C-Amino, E-Amino, Q-Amino, G-Amino, H-Amino, L-Amino, K-Amino, F-Amino, P-Amino, S-Amino, T-Amino, W-Amino, Y-Amino, V-Amino, NP-Dipept, CG-Dipept, CP-Dipept, GH-Dipept, Molecular-Weight, Aromaticity, Instability-Index, Isoelectric-Point, Reduced-MEC, Oxidized-MEC, Helix-SSF, Turn-SSF, Sheet-SSf, _PolarizabilityC1, _PolarizabilityC2, _PolarizabilityC3, _SolventAccessibilityC1, _SolventAccessibilityC2, _SolventAccessibilityC3, _SecondaryStrC1, _SecondaryStrC2, _SecondaryStrC3, _ChargeC1, _ChargeC2, _ChargeC3, _PolarityC1, _PolarityC2, _PolarityC3, _NormalizedVDWVC1, _NormalizedVDWVC2, _NormalizedVDWVC3, _HydrophobicityC1, _HydrophobicityC2, _HydrophobicityC3, _PolarizabilityT12, _PolarizabilityT23, _SolventAccessibilityT12, _SolventAccessibilityT13, _SecondaryStrT23, _ChargeT12, _ChargeT13, _ChargeT23, _PolarityT12, _PolarityT13, _PolarityT23, _NormalizedVDWVT12, _NormalizedVDWVT13, _NormalizedVDWVT23, _HydrophobicityT12, _HydrophobicityT13, _HydrophobicityT23, _PolarizabilityD1001, _PolarizabilityD2001, _PolarizabilityD3001, _PolarizabilityD3025, _PolarizabilityD3050, _PolarizabilityD3075, _SolventAccessibilityD1001, _SolventAccessibilityD1025, _SolventAccessibilityD1050, _SolventAccessibilityD1075, _SolventAccessibilityD2001, _SolventAccessibilityD2025, _SolventAccessibilityD2050, _SolventAccessibilityD2075, _SolventAccessibilityD3001, _SolventAccessibilityD3025, _SolventAccessibilityD3075, _SecondaryStrD1001, _SecondaryStrD1025, _SecondaryStrD1050, _SecondaryStrD1075, _SecondaryStrD2001, _SecondaryStrD2025, _SecondaryStrD2050, _SecondaryStrD2075, _SecondaryStrD2100, _SecondaryStrD3001, _SecondaryStrD3025, _SecondaryStrD3050, _SecondaryStrD3075, _ChargeD1001, _ChargeD1025, _ChargeD1050, _ChargeD1075, _ChargeD2001, _ChargeD2025, _ChargeD2050, _ChargeD2075, _ChargeD3001, _ChargeD3025, _ChargeD3050, _ChargeD3075, _ChargeD3100, _PolarityD1001, _PolarityD1025, _PolarityD1050, _PolarityD1075, _PolarityD1100, _PolarityD2001, _PolarityD2025, _PolarityD2050, _PolarityD3001, _PolarityD3025, _PolarityD3050, _PolarityD3075, _NormalizedVDWVD1001, _NormalizedVDWVD1025, _NormalizedVDWVD1075, _NormalizedVDWVD2001, _NormalizedVDWVD2025, _NormalizedVDWVD2050, _NormalizedVDWVD3001, _NormalizedVDWVD3025, _NormalizedVDWVD3050, _NormalizedVDWVD3075, _HydrophobicityD1001, _HydrophobicityD1025, _HydrophobicityD1050, _HydrophobicityD1075, _HydrophobicityD2001, _HydrophobicityD2025, _HydrophobicityD2050, _HydrophobicityD2075, _HydrophobicityD3001, _HydrophobicityD3025, _HydrophobicityD3050, _HydrophobicityD3075, _HydrophobicityD3100 Table A18: Listing of selected features for Hierarchical’s DNA-modification (definitive). Selected features Len-Protein, A-Nuc, C-Nuc, G-Nuc, T-Nuc, A-Amino, R-Amino, N-Amino, D-Amino, C-Amino, E-Amino, Q-Amino, G-Amino, H-Amino, I-Amino, L-Amino, K-Amino, M-Amino, F-Amino, P-Amino, W-Amino, Y-Amino, V-Amino, AG-Dipept, RG-Dipept, RS-Dipept, DA-Dipept, DN-Dipept, DD-Dipept, DP-Dipept, CC-Dipept, CP-Dipept, ED-Dipept, EE-Dipept, GN-Dipept, GD-Dipept, GC-Dipept, GG-Dipept, GF-Dipept, GS-Dipept, GY-Dipept, HY-Dipept, LF-Dipept, LP-Dipept, KY-Dipept, FG-Dipept, FP-Dipept, PR-Dipept, PD-Dipept, PC-Dipept, PF-Dipept, PP-Dipept, PY-Dipept, ST-Dipept, TG-Dipept, Molecular-Weight, Aromaticity, Isoelectric-Point, Reduced-MEC, Oxidized-MEC, Helix-SSF, Turn-SSF, Sheet-SSf, _PolarizabilityC1, _PolarizabilityC3, _SolventAccessibilityC1, _SolventAccessibilityC2, _SolventAccessibilityC3, _SecondaryStrC1, _SecondaryStrC2, _SecondaryStrC3, _ChargeC1, _ChargeC2, _ChargeC3, _PolarityC1, _PolarityC2, _PolarityC3, _NormalizedVDWVC1, _NormalizedVDWVC2, _NormalizedVDWVC3, _HydrophobicityC1, _HydrophobicityC2, _HydrophobicityC3, _PolarizabilityT12, _PolarizabilityT23, _SolventAccessibilityT12, _SolventAccessibilityT13, _SecondaryStrT23, _ChargeT12, _ChargeT23, _PolarityT12, _PolarityT13, _PolarityT23, _NormalizedVDWVT12, _NormalizedVDWVT23, _HydrophobicityT12, _HydrophobicityT13, _HydrophobicityT23, _PolarizabilityD1001, _PolarizabilityD1025, _PolarizabilityD1050, _PolarizabilityD1075, _PolarizabilityD2001, _PolarizabilityD3001, _PolarizabilityD3025, _PolarizabilityD3050, _PolarizabilityD3075, _SolventAccessibilityD1001, _SolventAccessibilityD1025, _SolventAccessibilityD1050, _SolventAccessibilityD2001, _SolventAccessibilityD2025, _SolventAccessibilityD2050, _SolventAccessibilityD2075, _SolventAccessibilityD3001, _SolventAccessibilityD3025, _SolventAccessibilityD3050, _SolventAccessibilityD3075, _SecondaryStrD1001, _SecondaryStrD1025, _SecondaryStrD1050, _SecondaryStrD1075, _SecondaryStrD2001, _SecondaryStrD2050, _SecondaryStrD2075, _SecondaryStrD3001, _SecondaryStrD3025, _SecondaryStrD3050, _ChargeD1001, _ChargeD1025, _ChargeD1050, _ChargeD1075, _ChargeD2001, _ChargeD2025, _ChargeD2050, _ChargeD2075, _ChargeD3001, _ChargeD3025, _ChargeD3050, _ChargeD3075, _ChargeD3100, _PolarityD1001, _PolarityD1025, _PolarityD1050, _PolarityD1075, _PolarityD1100, _PolarityD2001, _PolarityD2025, _PolarityD2050, _PolarityD2075, _PolarityD3001, _PolarityD3025, _PolarityD3050, _PolarityD3075, _NormalizedVDWVD1001, _NormalizedVDWVD1025, _NormalizedVDWVD2001, _NormalizedVDWVD2025, _NormalizedVDWVD2075, _NormalizedVDWVD3001, _NormalizedVDWVD3025, _NormalizedVDWVD3050, _NormalizedVDWVD3075, _HydrophobicityD1001, _HydrophobicityD1025, _HydrophobicityD1050, _HydrophobicityD1075, _HydrophobicityD2001, _HydrophobicityD2025, _HydrophobicityD2050, _HydrophobicityD2075, _HydrophobicityD3001, _HydrophobicityD3025, _HydrophobicityD3050, _HydrophobicityD3075, _HydrophobicityD3100 Table A19: Listing of selected features for Hierarchical’s DNA-replication (definitive). Selected features Len-Protein, A-Nuc, C-Nuc, G-Nuc, T-Nuc, A-Amino, R-Amino, N-Amino, D-Amino, C-Amino, E-Amino, Q-Amino, G-Amino, H-Amino, I-Amino, L-Amino, K-Amino, M-Amino, F-Amino, P-Amino, S-Amino, W-Amino, Y-Amino, V-Amino, DD-Dipept, DG-Dipept, DY-Dipept, CG-Dipept, CP-Dipept, EG-Dipept, GA-Dipept, GD-Dipept, GG-Dipept, GL-Dipept, GK-Dipept, GS-Dipept, HN-Dipept, HD-Dipept, IV-Dipept, LP-Dipept, LY-Dipept, KD-Dipept, KT-Dipept, YD-Dipept, YC-Dipept, YG-Dipept, YP-Dipept, Molecular-Weight, Aromaticity, Isoelectric-Point, Reduced-MEC, Oxidized-MEC, Helix-SSF, Turn-SSF, Sheet-SSf, _PolarizabilityC1, _PolarizabilityC2, _PolarizabilityC3, _SolventAccessibilityC1, _SolventAccessibilityC2, _SolventAccessibilityC3, _SecondaryStrC1, _SecondaryStrC2, _SecondaryStrC3, _ChargeC1, _ChargeC2, _ChargeC3, _PolarityC1, _PolarityC2, _PolarityC3, _NormalizedVDWVC1, _NormalizedVDWVC2, _NormalizedVDWVC3, _HydrophobicityC1, _HydrophobicityC2, _HydrophobicityC3, _PolarizabilityT12, _SolventAccessibilityT12, _SolventAccessibilityT13, _SecondaryStrT12, _SecondaryStrT23, _ChargeT12, _ChargeT23, _PolarityT12, _PolarityT13, _PolarityT23, _NormalizedVDWVT12, _NormalizedVDWVT13, _HydrophobicityT12, _HydrophobicityT13, _HydrophobicityT23, _PolarizabilityD1001, _PolarizabilityD1050, _PolarizabilityD1075, _PolarizabilityD2001, _PolarizabilityD3001, _PolarizabilityD3025, _PolarizabilityD3050, _SolventAccessibilityD1001, _SolventAccessibilityD1025, _SolventAccessibilityD1050, _SolventAccessibilityD1075, _SolventAccessibilityD2001, _SolventAccessibilityD2025, _SolventAccessibilityD2050, _SolventAccessibilityD2075, _SolventAccessibilityD3001, _SecondaryStrD1001, _SecondaryStrD1025, _SecondaryStrD1050, _SecondaryStrD1075, _SecondaryStrD2001, _SecondaryStrD2025, _SecondaryStrD2050, _SecondaryStrD2100, _SecondaryStrD3001, _SecondaryStrD3025, _SecondaryStrD3075, _ChargeD1001, _ChargeD1025, _ChargeD1050, _ChargeD1075, _ChargeD1100, _ChargeD2001, _ChargeD2050, _ChargeD2075, _ChargeD3001, _ChargeD3025, _ChargeD3050, _ChargeD3075, _ChargeD3100, _PolarityD1001, _PolarityD1025, _PolarityD1050, _PolarityD1075, _PolarityD2001, _PolarityD2025, _PolarityD2050, _PolarityD2075, _PolarityD3001, _PolarityD3025, _PolarityD3050, _PolarityD3075, _NormalizedVDWVD1001, _NormalizedVDWVD1025, _NormalizedVDWVD1050, _NormalizedVDWVD1075, _NormalizedVDWVD2001, _NormalizedVDWVD2025, _NormalizedVDWVD2050, _NormalizedVDWVD3001, _NormalizedVDWVD3025, _NormalizedVDWVD3050, _HydrophobicityD1001, _HydrophobicityD1025, _HydrophobicityD1050, _HydrophobicityD1075, _HydrophobicityD2001, _HydrophobicityD2025, _HydrophobicityD2050, _HydrophobicityD2075, _HydrophobicityD3001, _HydrophobicityD3025, _HydrophobicityD3050, _HydrophobicityD3075