Machine-learning a virus assembly fitness landscape

Yang-Hui He 何楊輝 何杨辉, Pierre-Philippe Dechant, Yang-Hui He

Introduction

In virology, understanding the mechanisms by which a virus assembles its protective shell, or capsid, is fundamental to the development of vaccines and anti-viral therapeutics. Recent research suggests that viral assembly is not a random aggregation but a coordinated process guided by "packaging signals" (PS)—specific motifs within the genetic code that recruit coat proteins (CP).

Mapping the "fitness landscape"—the relationship between a specific genomic sequence and its assembly efficiency—is a significant computational challenge. For a simplified dodecahedral virus model with 12 packaging signal sites and three possible binding strengths, there are $3^{12}$ (531,441) possible genomic configurations. Traditional stochastic simulations, such as the Gillespie algorithm, can take up to 12 hours for a single genome. Mapping the entire landscape previously required nearly a month of computation on a high-performance cluster with over 5,000 cores.

Methods

The authors propose a machine learning approach to bypass these intensive simulations. The viral genome is represented as a 12-dimensional vector, where each entry (1, 2, or 3) denotes a weak, medium, or strong binding affinity. The target output is the assembly efficiency ($\epsilon$), defined as the ratio of successfully formed capsids over 2,000 attempts.

The 3-layer perceptron architecture used to map genomic binding affinities to assembly efficiency.

The researchers employed a 3-layer perceptron consisting of a linear layer with 20 neurons, a sigmoid activation layer, a second linear layer, and a final summation layer. To evaluate the model's performance, it was trained on a random sample of 30,000 cases—only 5.6% of the total dataset—and validated against the remaining ~501,000 samples.

Key Results and Insights

The neural network achieved an $R^2$ value of 0.83 on the validation set, demonstrating a high correlation between predicted and actual simulation results. This performance significantly outperformed a standard multi-linear regression model ($R^2 = 0.57$), indicating that the fitness landscape is fundamentally non-linear. Small changes in binding affinity can produce complex, non-additive effects on assembly efficiency.

Scatter plots comparing actual vs. predicted assembly efficiency (A) and a random control (B).

The computational speedup was massive: training took 45 seconds on a standard laptop, and predicting the remainder of the landscape took only 10 seconds. This effectively replaces weeks of supercomputer time with seconds of local computation. The model's success is likely due to the inherent symmetry of the dodecahedral capsid; the neural network excels at identifying the hidden degeneracies where different genomic sequences result in similar physical assembly properties.

Limitations and Future Outlook

While highly accurate, the model struggled with extreme biological outliers, such as the genome with exclusively weak signals $(1,1,...1)$, where it predicted higher efficiency than observed in simulations. This suggests that while machine learning captures general landscape trends, it may smooth over rare, critical exceptions.

Future work aims to scale this approach to more complex geometries, such as icosahedrons with 60 packaging signals. The authors suggest a procedural workflow: using stochastic models to explore local mutational areas and machine learning to predict broader evolutionary trajectories and responses to drugs targeting packaging signals.

Summary updated

BibTeX
@inproceedings{2021machine,
  author = {Yang-Hui He 何楊輝 何杨辉 and Pierre-Philippe Dechant and Yang-Hui He},
  title = {{Machine-learning a virus assembly fitness landscape}},
  booktitle = {PLoS},
  year = {2021},
  doi = {10.1371/journal.pone.0250227},
}
Figure