Abstract
We propose a novel mathematical paradigm for the study of genetic variation in sequence alignments. This framework originates from extending the notion of pairwise relations, upon which current analysis is based on, to k-ary dissimilarity. This dissimilarity naturally leads to a generalization of simplicial complexes by endowing simplices with weights, compatible with the boundary operator. We introduce the notion of k-stances and dissimilarity complex, the former encapsulating arithmetic as well as topological structure expressing these k-ary relations. We study basic mathematical properties of dissimilarity complexes and show how this approach captures watershed moments of viral dynamics in the context of SARS-CoV-2 and H1N1 flu genomic data.
Keywords: Hamming distance, k-Stances, Sequence dissimilarity, Phylogeny, Weighted simplicial complexes, Weighted algebraic homology
Introduction
Genetic variation is the observed difference at the genetic sequence level between individuals in a population and is the key contributor to phenotypic diversity. It affects population dynamics and ultimately the evolution of the entire system.
One of the key tasks of Biology is understanding the development of genetic variation within a given population. Namely, the extraction of evolutionary relationships and histories among the sequences present (i.e. their phylogenetics). These relationships are construed in the guise of the phylogenetic tree; a graph topological structure that underpins our understanding of the major evolutionary transitions appearing in the system. This structure is central to inferring everything from the emergence of new body plans, novel metabolism and the origin of new genes to detecting molecular adaptation, understanding morphological character evolution and reconstructing demographic changes in recently diverged species (Kapli et al. 2020).
Such a tree is generally constructed from metric (pairwise) information present at the sequence level. For two sequences of equal length, one naive approach is to employ the Hamming distance, which counts the number of positions in the sequence pair with different entries at those positions. For sequences of different length, alignment methods are applied to obtain equal length via the insertion of “gap” symbols (Needleman and Wunsch 1970; Smith and Waterman 1981). Other metrics can be used, such as the edit distance, which can still be viewed as weighted versions of the Hamming metric Berger et al. (2021).
As a result, metric-based phylogenetic tree constructions integrate only pairwise dissimilarity information. This information can be viewed as a complete graph where each node represents a sequence and the length of an edge represents the dissimilarity between the two corresponding sequences the edge links. The integration process in metric-based phylogeny can be summarized as finding a spanning tree whose inherited metric information “best fits” the metric in this complete graph (Felsenstein and Felenstein 2004; Saitou and Nei 1987).
Graphs are natural choices but can only encode pairwise relations. However in a population of genetic sequences, there exist higher order interactions that cannot be expressed from pairwise relations alone. In a population of sequences, different positions (sites) exhibit different nucleotide diversities. Some sites are conserved allowing almost no polymorphism while others, the key contributors to genetic variation, are less conserved. Polymorphic sites that allow three or more nucleotide realizations (tri-allelic or higher) are of interest as they are particularly indicative of the quasi-species exploring the fitness landscape by stochastic mutation and post-selection (Westen et al. 2009; Huebner et al. 2007). For instance, in the SARS-CoV-2 genome, site 23012, located in the spike protein region, exhibits such polymorphisms, see Fig. 1.
Fig. 1.

Site 23012 on the SARS-CoV-2 genome
This site has the nucleotide G in the wild type sequence, while in the Beta variant of the virus, it mutates to A and induces an amino acid change from E to K at position 484. E484K is one of the characteristic mutations of the Beta variant and improves the virus’s ability to evade the host’s immune system (Wise 2021). One the other hand, in the Kappa variant, site 23012 mutates to C and results in the amino acid change E484Q, which is thought to enhance ACE2 receptor binding (Cherian et al. 2021), and may reduce the vaccine-stimulated antibodies’ ability to attach to this altered spike protein (Wilhelm et al. 2021).
Conservation at a site can be measured by various indices which are usually based on alphabet frequency distributions, information entropy or stereo-chemical matrix considerations. In Valdar (2002), Valdar provides a retrospective on such indices and presents the criteria a successful score should obey. Although the scores become sophisticated in terms of components they employ, such as means of accounting for sequence redundancy in the MSA and stereo-chemical variability or gap presence, the scores that yield the best results, are still based on sum of pairs constructions. When considering only symbol frequency distributions, key features of highly polymorphic sites in genetic alignments, like the site 23012 on the Spike protein of the SARS-CoV-2 genome, cannot be expressed employing measures derived from pairwise comparisons alone, see Fig. 2.
Fig. 2.

Segments of SARS-CoV-2 genomes and their GSAID IDs. X: EPI-ISL-428678, Y: EPI-ISL-509797, Z: EPI-ISL-656231, X’: EPI-ISL-467431, Y’: EPI-ISL-428678, Z’: EPI-ISL-415706. We cannot distinguish the triplet from that of if we restrict ourselves to pairwise Hamming distance comparisons. That is because for hamming distance we have , , . However, the triple contains two tri-allelic sites, while does not
To capture multi-fold sequence interactions like the ones in Fig. 2, we will introduce a novel notion of dissimilarity (the complement of conservation), that augments the sums of pairs approaches in Valdar (2002) to k-tuples where k can be greater than two. We propose passing from weighted graphs to weighted simplicial complexes (that account for k-fold relations) embodied in a novel arithmetico-topological structure we call the dissimilarity complex which encodes these sequence hyper-relations.
The notion of dissimilarity entails more data than just a collection of certain scores. This is already apparent in the analysis of sequences based on Hamming distances. Genetic data are in fact more deeply understood via tree or tree-like concepts, all of which reside in the weighted graph of Hamming distances. A tree is a maximally acyclic spanning graph of the complete graph over the set of its vertices. Tree edges form a maximally independent set, namely including any edge that connects two vertices we enclose a unique cycle. The distance between two such vertices in the complete graph can be approximated by the sum of involved tree edge lengths. In conclusion, the graph contextualizes the notions of trees instrumental in classical phylogeny.
The goal of this paper is to introduce the dissimilarity complex, which is the higher dimensional counterpart of the weighted graph as it appears in classical phylogeny. In fact this graph can be derived as the 1-skeleton of the dissimilarity complex. The dissimilarity complex is a weighted simplicial complex.
An (unweighted) simplicial complex is classically regarded as just a set composed of points, edges, triangles, tetrahedra and their higher dimensional counterparts. In addition to its combinatorics, a simplicial complex can also be studied from a global (topological) perspective as it naturally gives rise to a topological space. In particular, homological (algebraic) invariants of simplicial complexes often already capture important information about global structural features of the sequence phylogeny. For instance, k-dimensional holes in such spaces can be shown to correspond to multi-fold recombination (Chan et al. 2013). Recently, weighted homology, an augmentation of simplicial homology that further encodes arithmetical information for each simplex has been developed (Bura et al. 2021; Dawson 1990; Ren et al. 2018). These weights and the information they carry are central to the new theory as they enrich the algebraic invariants of classical simplicial homology with arithmetic torsion that encodes additional combinatorial information about the sequence phylogeny.
The dissimilarity complex, similar to the graph of Hamming distances, allows to derive the notion of a “phylogenetic complex”, the higher dimensional analogue of a tree. Distance based phylogeny shows the way: here one constructs a tree of sequences whose tree metric “best approximates” the complete graph on sequences weighted by their pairwise distances. To mimic this process, one would construct the phylogenetic complex, whose induced dissimilarity “best approximates” that of the dissimilarity complex of the given alignment of sequences. Such a derived object should retain “tree like” qualities and it is here where the choice of a discrete valuation rings is key, see (Li and Reidys 2022).
As a higher dimensional analogue of the phylogenetic tree, the phylogenetic complex should behave similarly: It should contain no (homological) cycles at any simplicial dimension and should be able to approximate the weight of any simplex that appears in the dissimilarity complex but not in the phylogenetic one. These notions can only be derived within the framework of the dissimilarity complex introduced here.
Our paper is organized as follows:
Section 1.1 provides context by reviewing the current phylogenetic study of a sequence alignment via Hamming distance optimizations and phylogenetic trees.
In Sect. 2 we introduce k-stances, a higher dimensional relation between k aligned sequences representing a dissimilarity measurement that naturally generalizes the Hamming distance. Section 2.1 deals with the mathematical properties of this this k-ary relation, both related to metric properties it inherits from the Hamming distance (pairwise case) and to properties that are intrinsic to its higher dimensionality. Section 2.2 discusses k-stances in the context of genetic recombination.
Section 3 introduces the dissimilarity complex: an arithmetico-geometrical space whose topological structure encodes the k-stance relations among the sequences of an alignment by integration across all k-dimensions. We shall briefly review the notion of simplicial complexes and their build principles, usage and means of study. In Sect. 3.1 we provide the construction of the dissimilarity complex of a sequence alignment and establish some basic properties. In Sect. 3.2 we then introduce weighted homology and show how it is connected to the dissimilarity complex of an alignment.
Section 4 analyzes the “induction basis” of alignments of length one. We shall show here that all k-stances are in fact connected.
Section 5 considers the multiple column case. In Sect. 5.1 we present two case studies on the statistics of k-stances for alignments of SARS-CoV-2 and H1N1 flu genomes, while in Sect. 5.2 we hint at the relationships between the arithmetic torsion that arises in the weighted homology of a multi-column alignment and its connections to genetic recombination present in the population of the alignment.
Section 6 we integrate our results and discuss future directions of work. Finally, Sect. 7 contains all proofs.
Hamming distance and phylogeny
Let us begin by revisiting the underlying ideas of Hamming distance, its basic metric properties and current metric-based phylogeny.
Given an alphabet , let denote the set of all sequences of length l over . In the case of DNA sequences, . The Hamming distance between two sequences , denoted by , is the number of positions in which the two sequences differ.
It is easy to check that h satisfies the following axioms making it a metric. Namely, for any
(identity of indiscernibles) .
(symmetry) .
(triangle inequality) .
Given a set of sequences in , all pairwise distance information can be encoded in a symmetric matrix, or equivalently, a complete weighted graph, where each node represents a sequence and the weight of the edge represents the Hamming distance between the two corresponding sequences.
This metric structure over allows to infer the phylogenetic relations of a given set of sequences via recursive clustering (i.e. Neighbor-joining, UPGMA, WPGMA etc. Saitou and Nei 1987; Sokal 1958) or via optimization (minimum evolution, least squares inference etc. Fitch and Margoliash 1967; Hendy and Penny 1982). These relations can then be represented in the phylogenetic tree where the input sequences become the tree’s leaves and the internal nodes can then be interpreted as common ancestors of their descendants. The key idea in all such algorithms is that no matter the metric information on the sequences, our target (the phylogenetic tree) is acyclic and spanning. As a result there exists a unique path between any two leaves, i.e. an unique distance which approximates the original distance, see Fig. 3.
Fig. 3.

LHS: a complete graph that encodes all pairwise dissimilarities among sequences labelled A, B, C and D. The edge label represents the distance between the corresponding sequences. RHS: the corresponding neighbor-joining tree: X and Y were added as interior nodes, and the distance between two original nodes is approximated by the sum of the length of the edges on the unique path the connects these nodes in the tree, e.g. approximates the original
In what follows we shall mimic this construction but move beyond pairwise metrics to k-wise comparisons (k-stances). As a canonical analogue of the weighted graph, encoding the metric structure, the dissimilarity complex will encapsulate the k-stances.
k-Stances
As previously noted, one encounters k-ary interactions that have no pairwise (Hamming) analogue. In this section we will derive a k-spectrum of measurements that capture such higher order dissimilarity relations among multiple sequences. The following Subsections deal with the properties of this measurement and its connection to a particular type of genetic recombination.
We begin by reformulating the Hamming distance between two sequences. Consider the following projections: for any , let where for a sequence , is the letter at position j in w. Then for two sequences , each position j contributes one unit to the Hamming distance between the two sequences if and only if .
Accordingly, a position j for the two sequences contributes one unit to the distance, if the number of distinct letters that appear at said position in and respectively, is equal to the number of sequences, i.e. two in this case. Stated this way, the definition of Hamming distance immediately hints at a generalization for any number of sequences as follows
Definition 1
Let . The kth order dissimilarity or k-stance, of k given sequences each of length l, is given by
In other words, the k-stance of k given sequences is the number of positions in which the given sequences are all mutually distinct, see Fig. 4.
Fig. 4.

, and . Note that at position 2 and position 6, all three sequences are mutually distinct. As such
Basic properties
By definition, , i.e. the 1-stance reproduces the sequence length, while the 2-stance is exactly the Hamming distance, . In case of , the k-stances has the following properties.
Proposition 1
For any and for any , the k-stance satisfies
(implication of indiscernibles) if for some then .
(symmetry) for any index permutation .
(polyhedron inequality) , where denotes the omission of the ith sequence, see Fig. 5.
Fig. 5.

An alignment , 3-stances, . Note that for instance, , and this holds for any other permutation as well
Accordingly, for , can be considered as a higher order pseudometric (Collatz 2014). Note that several generalization of metrics and their properties have been studied in the literature (Klein and Zhu 1998; Deza et al. 1997; Sommerville 2020). In particular, in Klein and Zhu (1998) such polyhedron type inequalities appear for certain graph invariants in the context of sums of powers of volumes of k-vertices in a graph. This higher dimensional “volume” is still derived from pairwise vertex quantities via Cayley-Menger type constructions (Sommerville 2020). In Deza et al. (1997) generalizations of the triangle inequality to hypermetrics are also presented in the context of the cut cone and integer programming, all of which are based on pairwise relations. Dissimilarity, in contrast, entails genuine k-interactions.
Proposition 2
For any and for any , the k-stance satisfies
(dimensional bounding) , for any .
(dimensional monotonicity) , for any and any injection .
k-Stances and genetic recombination
Genetic recombination can be defined as the exchange of genetic material among multiple sequences and is a key contributor to genetic variation (Rubio et al. 2001). In this section, we focus on a particular class of recombination and discuss its connections to k-stances.
Definition 2
Let be k sequences and fix another sequence . Then w is called a linear recombinant of W, if for each there exists an such that .
Then we obtain
Proposition 3
Let be k fixed sequences. Then, if there exists such that w is a linear recombinant of .
Example 1
Consider . Firstly, , , . Since , is a linear recombinant of , and as such .
Using higher order dissimilarity (as low in dimensionality as 3-stance) we obtain a more refined description of a sequence set. The following example illustrates this point in providing two sets of sequences, exhibiting the same Hamming distance signature, while differing on the level of 3-stances.
Example 2
Let and be two sets of length four sequences. We have , for . However, . Accordingly for and , and exhibit identical dissimilarity while their -dissimilarities are distinct.
It is worth pointing out that, in the above example, none of the -sequences is a linear recombinant of the remaining two, while their 3-stance is still zero. This indeed shows that the implication of indiscernibles for k-stances with respect to linear recombinants is a sufficient but not a necessary condition.
The dissimilarity complex
To understand the extra arithmetic information encapsulated within the dissimilarity complex, we recall the notion of simplicial complexes. We adopt here a data-centric point of view and eschew abstract topological and category theoretical considerations.
Suppose we are given a discrete, finite set of data points W as measurements of a system, and suppose that among the points in this data set there exists a multi-fold relation denoted by , i.e. a collection of k-ary relations for all . This relation might model an intrinsic dependency in the system that manifests in the measurements in W. Suppose that the relations in are restriction compatible, i.e. they have the property that for any subsets we have that . Namely, if a subset of elements in W are in a relation in , then any subset of those elements are in a lower arity relation as well. For instance, suppose and the relation would be “contains a nucleotide in common”. Then, clearly but also , and . This is since among the triplet and among any pairs, the nucleotide A always appears in common. We shall further assume that for each individual measurement we have . Then, the combinatorial structure consisting of the totality of such -satisfying subsets is called the simplicial complex of the data set W under the relation and is denoted by . A single such element is called a -dimensional simplex. This complex can be organised into a topological object by embedding each simplex into a -dimensional -linear (Euclidean) polytope, and gluing these polytopes along their common faces, see Fig. 6.
Fig. 6.

A simplicial complex , where with and . These two polytopes share the one dimensional line segment sub-polytope . Gluing produces the geometric realization of
We shall use this perspective to build the dissimilarity complex by letting W, the data set, be the sequences in a (genetic) alignment, with the relation “mutual dissimilarity at at least one position”. Furthermore, we keep track of the degree of dissimilarity for each such -simplex via the k-stance among its constituent sequences.
Construction of the dissimilarity complex
We are now in position to formally introduce the natural mathematical structure encapsulating higher order dissimilarity information among a collection of sequences.
Definition 3
An alignment , , is a finite ordered tuple of sequences of equal length l over an alphabet . We can view W as a matrix whose entries are letters in with being the sequence (ordered tuple of letters) in the ith row of W. Furthermore, the jth column of W is the ordered tuple . The integer l is called the length of the alignment (the number of columns) while the integer n is called the size of the alignment (the number of sequences).
Given an alignment, the totality of dissimilarity it contains can be expressed via a weighted simplicial complex. Such a complex subsumes said dissimilarity information but also contains extra non-local information that is geometric in nature. This is similar to how a weighted tree and a weighted graph can be metrically equated via UPGMA in the context of phylogeny, but differ in their cycle structure as geometric objects.
Definition 4
Let , , be a given alignment and let be fixed. A simplex of dimension k over W is a -subset of W, of sequences from W, such that . We denote by the set of all k-simplices over W, and set . Let be a discrete valuation ring with uniformizer . Let
Then, is called the weight function associated to X(W) and we call the pair the dissimilarity complex of W.
For all intents and purposes, the discrete valuation ring can be taken to be the ring of formal power series with rational coefficients and a transcendental variable we denote by , namely . We use the powers of the transcendental to encode the integer weights of simplices as exponents. This is done since in what follows, the new kind of boundary operator that will be introduced which yields a weighted version of homology as per (Dawson 1990; Ren et al. 2018; Bura et al. 2021), requires certain divisibility conditions as we shall see in Sect. 3.2.
Given a dissimilarity complex, we can construct its geometrical realization by constructing the geometrical realizations at each k dimension and then integrating them via gluing along common faces, see Ex 3.
Example 3
Let . We can construct the geometrical realization of by first constructing its 0-simplices (see Fig. 7a), 1-simplices (see Fig. 7b) and 2-simplices (see Fig. 7c). The geometrical realization of is then obtained by integrating all k-simplices via gluing (see Fig. 7d).
Fig. 7.
The geometric realizations at different dimensions and their integration of with in a, in b, in c and the integration into in d
An immediate motivation for this construction is that more information can be encoded when we lift from weighted graphs to the weighted complex structure, see Ex 4. We are now in position to identify information not present in the graph– which is only the so called 1-skeleton of the complex.
Example 4
Consider the dissimilarity complexes associated to the alignments in Ex 2. For , we have , hence and since , we also have . Finally , thus , see Fig. 8 (LHS). For we have and however yields , see Fig. 8 (RHS).
Fig. 8.

Dissimilarity complexes corresponding to and , with their respective weights. Note that is an “empty” triangle while is “filled”
represents an augmentation of classical simplical complexes and in particular a generalization of weighted graphs. In addition, has some nice combinatorial properties that facilitate the study of a weighted version of homology as detailed in Sect. 3.2.
Proposition 4
X(W) is a simplicial complex that is bounded in dimension, namely, for any , .
Proposition 5
Let be a k-simplex and let be a face of . Then we have .
Definition 5
Let now be a permutation on . The ordered tuple
is called a row shuffle of W.
Let be a permutation on . The ordered tuple
with
for all , is called a column shuffle of W.
Proposition 6
For any alignment W and any pair of row and column shuffles , we have . Furthermore denoting we have that, for any pair of row and column shuffles ,
I.e. any row or column shuffle of W produces a weighted dissimilarity complex that, up to vertex relabelling, is the same as the original dissimilarity complex of W.
Proposition 5 shows that is amenable to construct weighted homology by means of a novel boundary operator, compatible with the weight function, see Sect. 3.2. Proposition 6 shows that the dissimilarity complex has nice symmetry properties.
Weighted homology
Passing from graphs to simplicial complexes not only provides us with the degree of freedom to encode additional information, but it also enables us to study a multiple sequence alignment from a novel mathematical perspective. Any simplicial complex gives rise to a topological space. Studying topological properties of the dissimilarity complex enhances our conceptual understanding of the multiple sequence alignment itself.
In algebraic topology, simplicial homology is a useful tool for the study of features of a simplicial complex. It comes about as a sequence of abelian groups , one for each dimension, whose structures yield surprising information (invariants with respect to continuous deformations) about the space in question, such as the structure of its k-dimensional holes and its orientability (geometric torsion). This information is of key relevance and to date, dynamically tracking the birth and death of generators of these homology groups is an integral part of topological data analysis in the guise of Persistent Homology (Zomorodian and Carlsson 2005).
The dissimilarity complex constitutes a simplicial complex with additional weight information. By coherently integrating this weight information into a new homology theory that mimics the classical case, we can study the augmented arithmetic version of its topology. In this case, its torsion encodes k-stance level information among the sequences, and thus we can gain more insight about the structure of the alignment the dissimilarity complex is modeling.
Given an alignment W, let be its corresponding weighted dissimilarity complex. Let denote the free R-module generated by all n-simplices in X, with R being the co-domain ring of the simplex weight function. Setting a simplicial ordering (Hatcher 2005), namely a linear order on the 0-simplices, we can now consider a simplex as an ordered tuple of sequences instead of a set. This allows one to define
where the face is obtained by dropping the ith position in . We have divides and as a result, is a well defined R-module homomorphism. Note here that it is crucial that v takes values in the DVR as defined. This is since then, by Proposition 5, the divisibility condition required in the definition of is contingent only on and not the latter dividing the former.
Indeed, in Dawson (1990); Ren et al. (2018) a similar weighted perspective is considered. However in those instances, the weighted complexes considered must have weights constrained by the divisibility condition, such as for instance integers that divide each other, as otherwise the fraction coefficients obtained exit the integer ring. In our formulation, although takes integer values, passing to the DVR eschews the issue by encoding the integers in the powers of the transcendental . As such, only the order relation on the integers is required, and not divisibility. The DVR setup guarantees that , hence we obtain . In view of this, is indeed a boundary map and we can define a homology theory accordingly, denoting the weighted homology modules of (X, v). Furthermore, it is a well known result that the weighted homology modules are in fact independent of our initial choice of simplicial order (Hatcher 2005).
Proposition 7
Let W be an alignment over an alphabet and let be its corresponding weighted dissimilarity complex. Then , for all .
Proposition 8
Let W be an alignment consisting of n sequences of length l. For any pair , and any , we have .
The single column case
In this section we present a relation between the k-stances for different k for alignments of length one. Furthermore we compute their weighted homology. To this end, let be an alignment of length one and size n.
We can organize W via bins where s is the number of distinct letters that appear in W’s column and we let for all be the size of , i.e. the multiplicity in W’s column of the letter , see Fig. 9.
Fig. 9.

The partition of a single column alignment W into bins
Given the bin partitioning of W, it is easy to see that any simplex has weight . Furthermore X(W) is a pure simplicial complex as all of its maximal simplices are of dimension . By construction, each -simplex is obtained by picking one sequence (0-simplex) from each of the s bins. Therefore, X(W) is a complete k-partite simplicial complex, which is a natural generalization of the complete bipartite graph. Note that in the case of , X(W) is precisely the classical complete bipartite graph , see Fig. 10.
Fig. 10.

A single column alignment with only two bins and its dissimilarity complex, the complete bipartite graph
Definition 6
The total k-stance contribution in W is defined to be
where the sum is taken over all size k subsets . We integrate this information over all k into a polynomial in indeterminate x called the dissimilarity polynomial of W
Theorem 9
Let W be a single column alignment. The size of each bin of W is a root of W’s dissimilarity polynomial, and this polynomial has no other roots.
Example 5
Let W be the single column alignment shown in Fig. 9. We have , and . Furthermore, we have , , and . Then .
We note here that for each , the coefficient , in the dissimilarity polynomial for the column W, is a straight-forward augmentation of sum of pairs type scores for nucleotide conservation, as defined in Valdar (2002). This augmentation is achieved by passing to sums of k-tuples. A natural score that integrates all such information is which is easily computable as per Theorem 9.
Note that, in certain cases when conservation within the column is high, we can observe a higher sensitivity for higher order k-stances than for that of lower order ones. Consider the following example:
Example 6
Let W be an alignment of size 100 with two bins and . Then and . Suppose now that a single nucleotide in bin mutates, creating the alignment with bins , and and lastly with the last bin containing the mutated nucleotide. Then, while now . As such the relative increase in 3-stance is much higher when compared to the one in 2-stance.
Theorem 10
Let W be a single column alignment, let be its corresponding weighted simplicial complex and denote by . Then, all homology modules are free and furthermore
(a) ,
(b)
(c) for any .
Example 7
Let W be the single column alignment shown in Fig. 10. We have and . Then , and .
Dissimilarity and k-stances of multi-column sequence alignments
For general alignments we have at present no analytical (closed form) expression connecting its k-stances and weighted homology modules in terms of the bins of its various columns. A way of piecing together column information inductively is currently under investigation and the idea here would be to employ some version of Mayer-Vietoris sequences for weighted complexes. However, k-stance statistics as well as the modules of weighted homology can be computed, effectively. We have developed a framework for computing weighted homology and can provide a link to a free underlying software module created for this purpose (software module). In the following, we shall illustrate that both k-stances and weighted homology provide new insights into aligned genetic data and reveal biologically relevant features of said alignments.
In Sect. 5.1 we present case studies for SARS-CoV-2 and for H1N1, respectively, where k-stance signatures are seen to reflect distinct phases in the evolution of these pathogens in the human population. In Sect. 5.2 we illustrate connections between the structure of the weighted homology modules and the k-stances present in the alignments.
k-Stance statistics
In this Subsection we present two case studies that illuminate the usage of higher order k-stance statistics to infer biologically relevant information on viral population dynamics. In these case studies, k-stance statistics are computed over the alphabet , where the gap symbol “−” was not accounted as a distinguished symbol for any of the contributions computed. Therefore by construction, is the maximum possible k with nontrivial k-stance. Here we focus on as the vast majority of the sites exhibit at most three different nucleotide types. In general, k-stances for larger k values can still be of interest when the alphabet is sufficiently large, such as when considering amino acid sequences.
Case study 1: SARS-CoV-2
The multiple sequence alignment considered here is comprised of all SARS-CoV-2 genomes submitted to GISAID (Shu and McCauley 2017) prior to 2021-01-11. This amounts to 254,148 sequences, each exhibiting 29,903 aligned sites. For each site, we computed its total 2-stance and 3-stance contribution respectively (i.e. the total number of pairs and the total number of triplets that are mutually distinct). We now partition the set of logarithms of these numbers (shifted by 1 for technical reasons) into 100 bins of the same width and plot their corresponding histograms (bin vs. frequency), see Fig. 11.
Fig. 11.
Histograms of site k-stance distribution (). x-axis: Log(k-stance+1), y-axis: the frequency in each bin on a logarithmic scale. The red line marks the bin containing site 23012 corresponding to the well studied mutations E484Q and E484K
The 2-stance and the 3-stance exhibit distinctive distributions. Firstly, the 2-stance contains approx. 6000 sites in the zero-th bin while the 3-stance contains approx. 20,000 in the zero-th order bin. This is due to the fact that approx. 14,000 sites exhibit bi-allelic but not tri-allelic SNPs. This should be expected as it is an instance of the observation preceding Theorem 10, regarding sensitivity of higher order k-stances in highly conserved columns. In any other bin the two distributions also differ distinctively. The 2-stance exhibits a sharper absolute decay in frequency when compared to the 3-stance frequencies, as the latter are approximately an order of magnitude lower. The Pearson’s coefficients of dispersion (Pearson 1920) for the two distributions are 0.49 for 2-stance and 1.24 for 3-stance. Having a closer look at the polymorphic site 23012 mentioned in the Introduction, corresponding to the E484Q and E484K mutations, we find rank 1028 for 2-stance and rank 327 for 3-stance. Note that in the aggregated population, more than of the sequences have nucleotide G at site 23012. Such a high degree of conservation results in a relative low 2-stance rank. On the other hand, the remaining sequences exhibit two types of nucleotides: A and C. The existence of tri-allelic SNPs results in a more prominent 3-stance rank in comparison to its 2-stance rank.
We proceed by investigating sites with high k-stance rank for . For each k, we collect the top 100 sites in k-stance. The 2-stance collected sites have 40 sites in common with their 3-stance counterparts, see Fig. 12. When we restrict focus to the Spike protein region of the SARS-CoV-2 genome, we observe that 13 of the top 2-stance collected sites are located on the spike protein region with 6 of which being among the top 3-stance sites. In addition, there are 10 Spike protein sites that are among the top 3-stance collected sites but are not found in the 2-stance collected cohort. Cross referencing these 10 sites with characteristic mutations of VoCs, we found that 4 of them actually correspond to characteristic mutations of VoCs, see Table 1.
Fig. 12.

Venn diagram of top 100 2-stance and 3-stance sites. Numbers in the brackets represent the number of Spike protein sites in each category. The four highlighted mutations are found to be characteristic mutation sites of the SARS-CoV-2 VoCs in Table 1
Table 1.
Highlighted spike protein sites that are captured by 3-stance but not 2-stance and their correspondence to characteristic mutations of certain VoCs
| Site | Amino acid mutation | VoC |
|---|---|---|
| 21974 | D138Y | Gamma |
| 22205 | D215G | Beta |
| 23593 | Q677H | Eta |
| 23604 | P681H | Alpha |
Case study 2: H1N1
We study 2-stances and 3-stances within a sliding window of 100 sequences across a temporally ordered alignment of GISAID H1N1 flu data from 2009 to 2018. The y-axis represents the sum over all possible k-stances () which we refer to as the ensemble of 2-stance and 3-stance, respectively, for each window as time evolves in the x-axis, see Fig. 13.
Fig. 13.
Time evolution of the ensembles of 2-stance and 3-stance in a sliding window of 100 sequences across a temporally ordered alignment of H1N1 flu data from 2009 to 2018
2- and 3-stances capture the two outbreaks (Jan 2009 and Nov 2013) of the virus and we speculate that the peaks in this dissimilarity signal appear due to the virus’ genetic variation being elevated as it explores its fitness landscape. However, note that the Apr 2016 flu season that exhibited a change of the dominant strain is not captured by 2- but 3-stances. We stipulate that this is the case because 3-stance exhibits higher conservation decreases in the column when compared to 2-stance as discussed in Ex 6.
Multi column weighted homology
Li and Reidys (2022) provides structure theorems for the weighted homologies of arbitrary weighted complexes (not necessarily arising from dissimilarity) relating simplicial homology with coefficients in certain valuation rings to weighted simplicial homology. The idea being here is to create a homomorphic image of the “known” homology into the “unknown” homology and then to study the quotient via homological algebra. The concepts developed in the process suggest employing a version of Nakayama’s Lemma (Nakayama 1951) to reduce the coefficients controlling this quotient down to rational numbers. This enables very fast computation of all weighted homology modules (software module).
The weighted homology modules of the dissimilarity complex exhibit non-trivial torsion, which genuinely stems from k-stances and reflects interesting features about the structure of the alignment itself. We present two pertinent examples that allude to this fact:
Example 8
Consider the alignment . Firstly, we have . Then we have , and . Finally, we have . Since the maximum dimension of X(W) is one, we have two nontrivial weighted homology modules, namely, and . Note that has free rank one, and this is due to the fact that is a linear recombinant of and , namely . Furthermore, has free rank one and two torsion components. The first torsion component corresponds to the largest 2-stance among the three sequences and the second torsion component corresponds to the second largest 2-stance among the three sequences.
Example 9
Let Firstly, we have Then we have , and . Finally, we have . Since the maximum dimension of X(W) is two, we have , for all . In fact, we have , and . Since are full torsion, none of , or is a linear recombinant of the remaining two. Furthermore, the torsion corresponds to the difference between the 3-stance and the minimum pairwise 2-stance among the three sequences.
In the following, we present a theoretical application that motivates the homological framework approach: the structure of certain degenerate primers.
Definition 7
Let be a finite alphabet, for instance . A primer P of length k is a string of k nonempty subsets of A, namely, , where . Each represents the potential nucleotides that could appear at position i in the primer P. The degeneracy of P is defined to be
One key procedure in PCR is to design efficient and specific primer sequences. A primer sequence can form a double-stranded initiation site with the target sequence at which the polymerase can bind. In real applications, there might be more than one target sequence. In a typical situation, one has a collection of related target sequences, for instance, DNA sequences of homologous genes, and the goal is to design primers that will match as many of them as possible. In this case, a single unique primer is typically not sufficient. Instead, one might consider designing a degenerate primer. On the one hand, a primer with high degeneracy is likely to match more target sequences, while on the other hand, high degeneracy may lead to reduced specificity, namely the primer is more likely to bind to wrong binding sites. Therefore, a key task of the degenerate primer design problem is to find a balance between degeneracy and the number of matched target sequences. Despite the already established hardness for the general problem, a topological classification can often shed light on the computational complexity of the class and reveal sub-classes with low topological complexity corresponding to tractable instances. Here we provide a structure theorem that can hint at said complexity.
A primer P can be interpreted as an alignment consisting of the d(P) distinct sequences P can produce. As we are only interested in X(P), by Proposition 6, w.l.o.g. we can assume the columns of the alignment P are sorted by their respective multiplicities, namely, , for any . In other words, P can be organised as a concatenation of blocks of columns, where each block consists of columns with the same multiplicity and the blocks are arranged from left to right in decreasing order of their respective multiplicities.
Definition 8
For a given primer P, let denote the subcomplex generated by all the columns with multiplicity at least m
where is the jth column of the primer alignment P.
Since, columns with will not generate non-zero simplices in X(P), , for any primer P with . As such we can w.l.o.g, consider only primers P, such that , for all .
Theorem 11
Let P be a length primer that contains a single column with maximum multiplicity s. Namely, and , for all . Then for the unweighted dissimilarity complex of P (i.e. ) , for all , and , where
Discussion
In this paper we introduce the notion of higher order dissimilarities, naturally generalizing the concept of Hamming distance. We have shown that such dissimilarities emerge within alignments of viral sequences and that these are not independent of each other. In fact we give explicit formulae for these dependencies in specific instances. We can thus conclude that, in case of genetic sequences and the underlying four letter alphabets, there is more information than is reflected by Hamming distance alone by considering 3- and 4-stances. It is therefore noteworthy that all the information we currently obtain is based on or derived from Hamming distance.
We then provide a mathematical context for these hyper-distances by means of the dissimilarity complex. Here k-stances manifest as weights of certain simplices. To be concrete, simplices are comprised of k-sequences that exhibit in at least one site a kth order polymorphism and the weight of this simplex is the actual number of the sites exhibiting such kth order polymorphisms. The weighted complex homology can be readily computed via weighted homology (Li and Reidys 2022) and in case of sequence alignments, an inductive computation by means of patching the complex column by column that is based on the single column case—which we compute here—is currently under investigation.
As for future work, along the lines of constructing the phylogenetic tree within a complete weighted graph of an alignment, we work on constructing a “tree-analogue” within the Dissimilarity Complex of the given alignment. This “phylogenetic complex” should generalize the well known phylogenetic tree. The central idea of distance based phylogeny is to construct a tree of sequences whose tree metric “best approximates” the complete graph on sequences weighted by their pairwise distances. To mimic this process, construct the phylogenetic complex, whose induced dissimilarity “best approximates” that of the dissimilarity complex of the given alignment of sequences. It is natural then to ask what sort of properties such a derived object should possess:
A tree is a maximally acyclic spanning graph of the complete graph over the set of its vertices. Tree edges form a maximally independent set, namely including any edge that connects two vertices we enclose a unique cycle. The distance between two such vertices can be approximated by the sum of involved tree edge lengths. As a higher dimensional analogue of the phylogenetic tree, the phylogenetic complex should also exhibit such “tree-like” properties. Firstly, the phylogenetic complex should contain no (homological) cycles at any simplicial dimension. Secondly, the phylogenetic complex should be able to approximate the weight of any simplex that appears in the dissimilarity complex but not in the phylogenetic one, just as the phylogenetic tree distance between two vertices, approximates the weight of the complete graph edge that closes the cycle between them in the tree.
The phylogenetic complex will inevitably include higher order, pseudometric information that arises as a result of an optimization process that is fundamentally different from clustering. This is clear since the very notion of clustering is based on pairwise relations. There are two mechanisms that we are currently investigating as construction principles for this object:
Higher order “clustering”: one approach to construct a phylogenetic tree based on a pairwise distance matrix is by recursive clustering. At each step, small clusters are combined into a larger one with the distance matrix being updated to reflect the new inter-cluster distances. The selection of which clusters to merge is typically based on a local criterion. To adapt this clustering approach to the construction of the phylogenetic complex, one key challenge is the design of a higher dimensional analogue of clustering. One potential way to mitigate this challenge is to generalize the split decomposition presented in Bandelt and Dress (1992). That is since, a split can be viewed as a minimal clustering result and any phylogenetic tree can thus be decomposed into a set of compatible splits.
Combinatorial optimization: an alternate approach to constructing a phylogenetic tree based on pairwise distance information is by combinatorial optimization. A tree is selected based on certain global criteria such as least square error or minimum evolution. For example, one can select the tree that minimizes the total tree length, as in the case of the “Steiner tree”. In this case the estimation of the length of each edge can be generally dealt with within the least-squares framework. To adapt this approach to the construction of the phylogenetic complex, one key step is the definition of an objective function that incorporates higher dimensional dissimilarity information, beyond pairwise distance errors.
Proofs
Proposition 1.
Proof
Implication of indiscernibles: if for some , then for any and the claim follows by definition of .
Symmetry: since for any , the claim follows by definition of .
Polyhedron inequality: Let be an indicator function for which if and otherwise. We note then that
It suffices then to show that I satisfies the polyhedron inequality. Furthermore, since I is always non-negative, it suffices to only consider the case . If for all , then for any . In this case the polyhedron inequality holds for I. The other possibility is that for some distinguished . But then, which still implies the claim for I, completing the proof.
Proposition 2.
Proof
Dimensional bounding: if then for any we must have and the claim follows by definition of .
Dimensional monotonicity: Fixing , by Proposition 1 (symmetry), it suffices to prove the claim for . Namely, we want to show
This however follows immediately from the definition of by observing that for any for which we must in turn have .
Proposition 3.
Proof
It suffices to note that if is a linear recombinant of then by definition, for each there exists an such that . This means that for for each we must have and as such as claimed.
Proposition 4.
Proof
This is an immediate consequence of Proposition 2 (dimensional bounding), for any .
Proposition 5.
Proof
Again, by Proposition 2 (dimensional monotonicity), we have and so immediately .
Proposition 6.
Proof
The first claim, , follows immediately by observing the commutative identity for each entry in the alignment matrix of W
For the second claim it suffices to investigate the action a row and column shuffle pair has on a fixed -simplex .
Note first that by construction, where is the simplex in corresponding to . On the other hand, for I the indicator function in the proof of Proposition 1, we have that
By the previous claim, the order in which we apply the two actions does not matter, and as such with and the proposition follows.
Proposition 7.
Proof
This is an immediate consequence of Proposition 4 which bounds the dimensionality of the complex.
Proposition 8.
Proof
This follows immediately from Proposition 6 which homeomorphically equates the dissimilarity complex of an alignment with its row column shuffle and shows that the arithmetic weight information is preserved under such a transformation.
Theorem 9.
Proof
It suffices to examine the polynomial where and s is the number of distinct letters that appear in W’s column. Vieta’s formulae for yield, for each ,
where is the coefficient of the term in for . In this particular case . If we showed that for any then and the theorem would follow. To this end, for I the indicator function in the proof of Proposition 1, we can write
To construct a simplex in it suffices to select bins and select one sequence from each bin. As such, the theorem follows from
Theorem 10.
Note that this Theorem is equivalent to Theorem 4 in Bolker (1976). The original proof was based on simplicial joins and a Mayer-Vietoris type sequence. Here we present an alternate, more combinatorial proof of the claims.
We note that our alternate proof consists in developing a novel, explicit combinatorial construction of the relevant generators for homology at the dimension which could prove useful in tackling the multi-column case. Furthermore the argument for item c), contains an imbricated induction technique on bins and dimensions, that we believe provides hints as to similar results on the multi-column closed form case.
Before we present our proof, let us fix a simplicial ordering. Without the loss of generality, we can pick a simplicial order that is compatible with the bin ordering, see Fig. 14a. Then for any maximal simplex , we have , and a simplex is now considered an ordered tuple.
Fig. 14.

a A single column alignment . b A fixed and , that do not share any vertex in common. c All 8 triangles in , the grading is given by . d Geometric illustration of as an element in , the boundary of an octahedron. We have and the other generator corresponds to .
Proof
Item (a) Since there exist two different sequences in W, X is connected, and .
Item (b) Since all simplices in X(W) have weight , we have .
It suffices to find a set of R-linearly independent set of generators for of size b. By construction, . Fix and consider
Case 1 there exists no other simplex such that for all . In this case, at least one bin has size 1 and thus we have .
Claim .
To prove this, consider and grade it by , denoting the number of vertices the two maximal simplices share. In this case, the grading starts at
Let satisfy . Then , for some , while for all . Let . Consider all possible with , such that . Since and , we must have . Namely, is the only simplex in M that contains as a face. Then . This holds independently for all with . Therefore we have
We proceed similarly for each in order, which eventually leads to .
Case 2 there exist at least one simplex such that for all . In this case, each bin must contain at least 2 vertices, see Fig. 14b. Let
with or appearing at the same coordinate since they are chosen from the same bin and the 0-simplices follow an order that is compatible with the bin order, see Fig. 14c. We make the Ansatz
noting that .
Claim is a R-basis for .
A fixed only ever appears in , therefore is a R-linearly independent set.
We next show . Fix and consider
Note that appears in exactly two images,
where and , and it does so with opposite signs, hence , see Fig. 14d.
Finally, we show . Consider
Claim: .
Let
By construction, the coefficient of , with , is 0 hence
Iterating Case 1, yields .
Item (c)
Clearly . It remains to show . We will prove this by induction (called the outer induction) on the number of bins. To this end, first fix and assume the outer induction hypothesis that, for any complex over bins we have already shown that . We wish to prove this is still the case for any complex X over s bins. To achieve this, we proceed by another layer of induction (called the inner induction) on the number of 0-simplices (sequences) of X-spaces over exactly s bins. Note that, , i.e. adding one more sequence x to W is tantamount to adding a vertex to the complex over W with its respective accompanying simplices and, in terms of bins, x will be added to an already existing bin which we will denote by . We have the following relative sequence
We assume the inner induction hypothesis that for any , and we want to show that , which will yield , and where will have to be proved separately. To this end, fix a , and let
where , and is the tuple that contains the vertices in with the vertex x appended at the end as per a simplicial ordering we fix on W where for any . Then
implies that the coefficient, in the second term above, of any must be zero. As such, since is tantamount to the face of with an extra x-label appended at the end, we have
Claim there exists such that for any of the simplices we have the property that for any , and furthermore is such that . To show this, it suffices to first note that no simplex contains elements of and as such, for a space on bins. By the outer induction hypothesis for the space , we have and so there exists such that and the Claim follows.
In view of the Claim, we can construct , for which it is clear that and so follows. It remains now to prove .
Since x is the largest 0-simplex, any must have , where . Thus, each edge with positive sign can be paired with an edge with negative sign and so , with where w.l.o.g. we can assume . For each , if y and belong to different bins, then . If however y and belong to the same bin, then since , there exists a bin Q such that . We can select such that . Thus, , and hence .
In view of the inner induction hypothesis and the long exact sequence, the above concludes the proof for the inner induction step. The inner induction base case is , which makes X(W) an simplex, for which it is trivial that . This concludes the proof for the outer induction step.
It remains to show the outer induction base case, —i.e. for any space X over three bins, . To this end, fix a simplicial ordering such that, for any , if , x is the last coordinate of . We proceed by induction on . First, the base case . Let .
Claim: . There are two distinct cases:
. Then immediately .
- . By previous arguments , where . For each , we construct
obtained by appending x to each term in . Then
Note that,
which yields . In other words, and as such , and so . Since , by an identical argument to the distinguished case of the inner inductive step, we immediately conclude . By exactness of the relative homology sequence and the Claim, , and the base case follows.
Finally, for the inductive step, suppose that for all and consider the case . Let and . Then is a complex over three bins where . By inductive hypothesis, , and hence . Now, by the exact same argument as in the case, and by exactness of the relative homology sequence, . The proof of the outer induction base case thus follows, completing the proof of the theorem.
Theorem 11.
Proof
The theorem follows immediately from Theorem 10 and the following
Claim: let P be a primer and let X(P) be its corresponding dissimilarity complex. Then for all ,
To prove the claim, it suffices to note that column j in P with , can not generate a k-simplex in X(P) if .
Acknowledgements
We want to thank Thomas Li for comments and discussions. We also thank the anonymous reviewers for their constructive feedback.
Data availability
Data and code will be made available upon request.
Footnotes
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Christopher Barrett, Andrei Bura, Qijun He, Fenix Huang and Christian Reidys have contributed equally to this work.
Contributor Information
Christopher Barrett, Email: clb5xe@virginia.edu.
Andrei Bura, Email: cb8wn@virginia.edu.
Qijun He, Email: qh4nj@virginia.edu.
Fenix Huang, Email: fwh3zc@virginia.edu.
Christian Reidys, Email: cmr3hk@virginia.edu.
References
- Bandelt H-J, Dress AW. Split decomposition: a new and useful approach to phylogenetic analysis of distance data. Mol Phylogenet Evol. 1992;1(3):242–252. doi: 10.1016/1055-7903(92)90021-8. [DOI] [PubMed] [Google Scholar]
- Berger B, Waterman MS, Yu YW. Levenshtein distance, sequence comparison and biological database search. IEEE Trans Inf Theory. 2021;67(6):3287–3294. doi: 10.1109/TIT.2020.2996543. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Bolker ED. Simplicial geometry and transportation polytopes. Trans Am Math Soc. 1976;217:121–142. [Google Scholar]
- Bura A, He Q, Reidys C. Weighted homology of bi-structures over certain discrete valuation rings. Mathematics. 2021;9(7):744. doi: 10.3390/math9070744. [DOI] [Google Scholar]
- Chan JM, Carlsson G, Rabadan R. Topology of viral evolution. Proc Natl Acad Sci. 2013;110(46):18566–18571. doi: 10.1073/pnas.1313480110. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Cherian S, Potdar V, Jadhav S, Yadav P, Gupta N, Das M, Rakshit P, Singh S, Abraham P, Panda S, et al. SARS-CoV-2 spike mutations, L452R, T478K, E484Q and P681R, in the second wave of COVID-19 in Maharashtra, India. Microorganisms. 2021;9(7):1542. doi: 10.3390/microorganisms9071542. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Collatz L. Functional analysis and numerical mathematics. New York: Academic Press; 2014. [Google Scholar]
- Dawson RJM. Homology of weighted simplicial complexes. Cah Topol Geom Differ Categ. 1990;31(3):229–243. [Google Scholar]
- Deza MM, Laurent M, Weismantel R. Geometry of cuts and metrics. Berlin: Springer; 1997. [Google Scholar]
- Felsenstein J, Felenstein J. Inferring phylogenies. Sunderland: Sinauer Associates; 2004. [Google Scholar]
- Fitch WM, Margoliash E. Construction of phylogenetic trees: a method based on mutation distances as estimated from cytochrome c sequences is of general applicability. Science. 1967;155(3760):279–284. doi: 10.1126/science.155.3760.279. [DOI] [PubMed] [Google Scholar]
- Hatcher A. Algebraic topology. Beijing: Tsinghua University Press; 2005. [Google Scholar]
- Hendy MD, Penny D. Branch and bound algorithms to determine minimal evolutionary trees. Math Biosci. 1982;59(2):277–290. doi: 10.1016/0025-5564(82)90027-X. [DOI] [Google Scholar]
- Huebner C, Petermann I, Browning BL, Shelling AN, Ferguson LR. Triallelic single nucleotide polymorphisms and genotyping error in genetic epidemiology studies: MDR1 (ABCB1) G2677/T/A as an example. Cancer Epidemiol Biomark Prevent. 2007;16(6):1185–1192. doi: 10.1158/1055-9965.EPI-06-0759. [DOI] [PubMed] [Google Scholar]
- Kapli P, Yang Z, Telford MJ. Phylogenetic tree building in the genomic age. Nat Rev Genet. 2020;21(7):428–444. doi: 10.1038/s41576-020-0233-0. [DOI] [PubMed] [Google Scholar]
- Klein D, Zhu H-Y. Distances and volumina for graphs. J Math Chem. 1998;23(1):179–195. doi: 10.1023/A:1019108905697. [DOI] [Google Scholar]
- Li JT, Reidys MC (2022) On weighted simplicial homology
- Nakayama T. A remark on finitely generated modules. Nagoya Math J. 1951;3:139–140. doi: 10.1017/S0027763000012265. [DOI] [Google Scholar]
- Needleman SB, Wunsch CD. A general method applicable to the search for similarities in the amino acid sequence of two proteins. J Mol Biol. 1970;48(3):443–453. doi: 10.1016/0022-2836(70)90057-4. [DOI] [PubMed] [Google Scholar]
- Pearson K. Notes on the history of correlation. Biometrika. 1920;13(1):25–45. doi: 10.1093/biomet/13.1.25. [DOI] [Google Scholar]
- Ren S, Wu C, Wu J, et al. Weighted persistent homology. Rocky Mt J Math. 2018;48(8):2661–2687. doi: 10.1216/RMJ-2018-48-8-2661. [DOI] [Google Scholar]
- Rubio L, Ayllón MA, Kong P, Fernández A, Polek M, Guerri J, Moreno P, Falk BW. Genetic variation of Citrus tristeza virus isolates from California and Spain: evidence for mixed infections and recombination. J Virol. 2001;75(17):8054–8062. doi: 10.1128/JVI.75.17.8054-8062.2001. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Saitou N, Nei M. The neighbor-joining method: a new method for reconstructing phylogenetic trees. Mol Biol Evol. 1987;4(4):406–425. doi: 10.1093/oxfordjournals.molbev.a040454. [DOI] [PubMed] [Google Scholar]
- Shu Y, McCauley J. GISAID: global initiative on sharing all influenza data-from vision to reality. Eurosurveillance. 2017;22(13):30494. doi: 10.2807/1560-7917.ES.2017.22.13.30494. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Smith TF, Waterman MS, et al. Identification of common molecular subsequences. J Mol Biol. 1981;147(1):195–197. doi: 10.1016/0022-2836(81)90087-5. [DOI] [PubMed] [Google Scholar]
- Sokal RR. A statistical method for evaluating systematic relationships. Univ Kansas Sci Bull. 1958;38:1409–1438. [Google Scholar]
- Sommerville DM. Introduction to the geometry of N dimensions. New York: Courier Dover Publications; 2020. [Google Scholar]
- Valdar WS. Scoring residue conservation. Proteins. 2002;48(2):227–241. doi: 10.1002/prot.10146. [DOI] [PubMed] [Google Scholar]
- Westen AA, Matai AS, Laros JF, Meiland HC, Jasper M, de Leeuw WJ, de Knijff P, Sijen T. Tri-allelic SNP markers enable analysis of mixed and degraded DNA samples. Forensic Sci Int Genet. 2009;3(4):233–241. doi: 10.1016/j.fsigen.2009.02.003. [DOI] [PubMed] [Google Scholar]
- Wilhelm A, Toptan T, Pallas C, Wolf T, Goetsch U, Gottschalk R, Vehreschild MJ, Ciesek S, Widera M. Antibody-mediated neutralization of authentic SARS-CoV-2 B.1.617 variants harboring L452R and T478K/E484Q. Viruses. 2021;13(9):1693. doi: 10.3390/v13091693. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wise J. Covid-19: the E484K mutation and the risks it poses. Br Med J. 2021;372:n359. doi: 10.1136/bmj.n359. [DOI] [PubMed] [Google Scholar]
- Zomorodian A, Carlsson G. Computing persistent homology. Discrete Comput Geom. 2005;33(2):249–274. doi: 10.1007/s00454-004-1146-y. [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
Data and code will be made available upon request.



