AUTHOR=Zeller Michael A. , Arendsee Zebulun W. , Smith Gavin J.D. , Anderson Tavis K. TITLE=classLog: Logistic regression for the classification of genetic sequences JOURNAL=Frontiers in Virology VOLUME=3 YEAR=2023 URL=https://www.frontiersin.org/journals/virology/articles/10.3389/fviro.2023.1215012 DOI=10.3389/fviro.2023.1215012 ISSN=2673-818X ABSTRACT=Introduction

Sequencing and phylogenetic classification have become a common task in human and animal diagnostic laboratories. It is routine to sequence pathogens to identify genetic variations of diagnostic significance and to use these data in realtime genomic contact tracing and surveillance. Under this paradigm, unprecedented volumes of data are generated that require rapid analysis to provide meaningful inference.

Methods

We present a machine learning logistic regression pipeline that can assign classifications to genetic sequence data. The pipeline implements an intuitive and customizable approach to developing a trained prediction model that runs in linear time complexity, generating accurate output rapidly, even with incomplete data. Our approach was benchmarked against porcine respiratory and reproductive syndrome virus (PRRSv) and swine H1 influenza A virus (IAV) datasets. Trained classifiers were tested against sequences and simulated datasets that artificially degraded sequence quality at 0, 10, 20, 30, and 40%.

Results

When applied to a poor-quality sequence data, the classifier achieved between >85% to 95% accuracy for the PRRSv and the swine H1 IAV HA dataset and this increased to near perfect accuracy when using the full dataset. The model also identifies amino acid positions used to determine genetic clade identity through a feature selection ranking within the model. These positions can be mapped onto a maximum-likelihood phylogenetic tree, allowing for the inference of clade defining mutations.

Discussion

Our approach is implemented as a python package with code available at https://github.com/flu-crew/classLog.