# A novel approach to analyzing the evolution of SARS-CoV-2 based on visualization and clustering of large genetic data compactly represented in operative memory

**Authors:** A.Yu. Palyanov, N.V. Palyanova

PMC · DOI: 10.18699/vjgb-24-92 · 2024-12-01

## TL;DR

This paper introduces a compact data representation method for SARS-CoV-2 genomes, enabling efficient analysis of millions of variants in a PC's memory.

## Contribution

A novel data compression and visualization approach for SARS-CoV-2 genomes with a 1:1500 compression ratio and detailed evolutionary insights.

## Key findings

- The method compresses 465 Gb of SARS-CoV-2 genome data to 330 Mb in RAM.
- Evolutionary patterns were visualized using 3D surfaces over 4.5 years with weekly resolution.
- The approach reveals more detailed viral evolution than traditional phylogenetic trees.

## Abstract

SARS-CoV-2 is a virus for which an outstanding number of genome variants were collected, sequenced and stored from sources all around the world. Raw data in FASTA format include 16.8 million genomes, each ≈29,900 nt (nucleotides), with a total size of ≈500 ∙ 109 nt, or 465 Gb. We suggest an approach to data representation and organization, with which all this can be stored losslessly in the operative memory (RAM) of a common PC. Moreover, just ≈330 Mb will be enough. Aligning all genomes versus the initial Wuhan-Hu-1 reference sequence allows each to be represented as a data structure containing lists of point mutations, deletions and insertions. Our implementation of such data representation resulted in a 1:1500 compression ratio (for comparison, compression of the same data with the popular WinRAR archiver gives only 1:62) and fast access to genomes (and their metadata) and comparisons between different genome variants. With this approach implemented as a C++ program, we performed an analysis of various properties of the set of SARS-CoV-2 genomes available in NCBI Genbank (within a period from 24.12.2019 to 24.06.2024). We calculated the distribution of the number of genomes with undetermined nucleotides, ‘N’s, vs the number of such nucleotides in them, the number of unique genomes and clusters of identical genomes, and the distribution of clusters by size (the number of identical genomes) and duration (the time interval between each cluster’s first and last genome). Finally, the evolution of distributions of the number of changes (editing distance between each genome and reference sequence) caused by substitutions, deletions and insertions was visualized as 3D surfaces, which clearly show the process of viral evolution over 4.5 years, with a time step = 1 week. It is in good correspondence with phylogenetic trees (usually based on 3–4 thousand of genome variant representatives), but is built over millions of genomes, shows more details and is independent of the type of lineage/clade classification.

## Linked entities

- **Diseases:** SARS-CoV-2 (MONDO:0100096)

## Full-text entities

- **Diseases:** PC (MESH:D015324)
- **Species:** Severe acute respiratory syndrome coronavirus 2 (no rank) [taxon 2697049]
- **Cell lines:** Wuhan-Hu-1 — Homo sapiens (Human), Finite cell line (CVCL_B0BH)

## Figures

9 figures with captions in the complete paper: https://tomesphere.com/paper/PMC11811502/full.md

---
Source: https://tomesphere.com/paper/PMC11811502