Skip to content

Seasonal antigenic prediction of influenza A H3N2 using machine learning

License

Notifications You must be signed in to change notification settings

saws-lab/SAP_H3N2_ML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This code is associated with the paper (accepted to be published at Nature Communications) from Shah et. al., "Seasonal antigenic prediction of influenza A H3N2 using machine learning".

Seasonal antigenic prediction of influenza A H3N2 using machine learning

Syed Awais W. Shah1, Daniel P. Palomar1,2, Ian Barr3,4, Leo L. M. Poon5,6, Ahmed Abdul Quadeer1, and Matthew R. McKay4,7

1 Department of Electronic and Computer Engineering, The Hong Kong University of Science and Technology, Clear Water Bay, Hong Kong SAR, China

2 Department of Industrial Engineering & Decision Analytics, The Hong Kong University of Science and Technology, Clear Water Bay, Hong Kong SAR, China

3 WHO Collaborating Centre for Reference and Research on Influenza, Melbourne, Victoria, Australia

4 Department of Microbiology and Immunology, University of Melbourne, at The Peter Doherty Institute for Infection and Immunity, Melbourne, Victoria, Australia

5 School of Public Health, LKS Faculty of Medicine, The University of Hong Kong, Hong Kong SAR, China

6 Centre for Immunology & Infection, Hong Kong Science Park, Hong Kong SAR, China

7 Department of Electrical and Electronic Engineering, University of Melbourne, Melbourne, Victoria, Australia

Abstract

Antigenic characterization of circulating influenza A virus (IAV) isolates is routinely assessed by using the hemagglutination inhibition (HI) assays for surveillance purposes. It is also used to determine the need for annual influenza vaccine updates as well as for pandemic preparedness. Performing antigenic characterization of IAV on a global scale is confronted with high costs, animal availability, and other practical challenges. Here we present a machine learning model that accurately predicts (normalized) outputs of HI assays involving circulating human IAV H3N2 viruses, using their hemagglutinin subunit 1 (HA1) sequences and associated metadata. Each season, the model learns an updated nonlinear mapping of genetic to antigenic changes using data from past seasons only. The model accurately distinguishes antigenic variants from non-variants and adaptively characterizes seasonal dynamics of HA1 sites having the strongest influence on antigenic change. Antigenic predictions produced by the model can aid influenza surveillance, public health management, and vaccine strain selection activities.

Source codes

The source codes (compiled in Jupyter notebooks) regenerates the figures in the above mentioned paper.

Installation

  1. Install miniconda or anaconda
  2. Clone the SAP_H3N2_ML repository using "git clone https://github.com/saws-lab/SAP_H3N2_ML.git"
  3. Create a virtual environment (e.g., named as SAP_H3N2_ML) with Python version 3.8.12 using "conda create --name SAP_H3N2_ML python=3.8.12"
  4. Within the environment install the dependencies provided in file "requirements.txt"
  5. Install Jupyter notebook in your base environment using "conda install jupyter"
  6. Install nb_conda_kernel in your base environment using "conda install nb_conda_kernel"
  7. Install Jupyter notebook kernels within the environment using "python -m ipykernel install --user --name SAP_H3N2_ML --display-name "Python (SAP_H3N2_ML)"

Quickstart

  1. Prepare input data as described in Materials and Methods section of the paper in the form of CSV file containing columns mentioned in file "Supp_Fig2a_seasonal_data_distribution.ipynb".
  2. To generate a figure, run the corresponding notebook. Each notebook contains step by step instructions to run the simulation and to regenerate the corresponding figure.

Troubleshooting

For any questions or comments, please email at sawshah@connect.ust.hk

About

Seasonal antigenic prediction of influenza A H3N2 using machine learning

Resources

License

Stars

Watchers

Forks

Packages

No packages published