Skip to content

Menu

WorksMathematics

Two-sample inference for sequence-derived feature distributions from deep sequencing data

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_3mzd5q8u. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Many biological contexts involve heterogeneous populations of related molecular variants within a single individual. For example, some viral infections such as HIV-1 exhibit substantial diversity within a single host. Advances in sequencing technology now make it possible to characterize such populations by generating up to thousands of genetic sequences from a biological sample. In many settings, each sequence can be mapped to a numeric feature, such as Hamming distance to a reference sequence. This collection of feature values defines a one-dimensional distribution that characterizes individual-level viral diversity. When comparing these features across independent groups, past analyses have typically reduced each individual's data to a single summary value, such as the mean or mode. We propose a framework that retains the full individual-level distribution as the object of analysis. Drawing on existing tools from distributional data analysis, our framework uses Wasserstein barycenters to summarize the observed individual-level distributions within groups into a single representative distribution. These group barycenters are then compared using differences in quantiles and tested for equality. A practical challenge is that the number of sequences obtained, known as sequencing depth, can vary across biological samples. Through simulation studies, we examine when low sequencing depth can distort inference and present practical strategies for addressing these issues. We then illustrate the framework using data from the HIV-1 Antibody Mediated Prevention efficacy trials and a human B cell receptor sequencing study of vaccine-elicited immune responses. By using the entire collection of sequences for each individual, our approach can reveal group differences that may be obscured by single-number summary analyses.

Introduction

Many biological studies seek to characterize heterogeneous populations of related molecular variants within a single individual. For example, rapidly evolving RNA viruses, such as HIV-1 and hepatitis C, can have a diverse population within each host, referred to as a quasispecies. This diversity is generated by within-host evolutionary processes such as mutation, selection, genetic drift, recombination, and transmission bottlenecks. It can influence clinically important outcomes, including immune escape, drug resistance, viral persistence, disease progression, and transmission [11, 13, 28, 33]. Another example occurs in the human adaptive immune repertoire, which contains a vast array of B cell receptors. Following infection or vaccination, an individual’s B cell lineages can undergo clonal expansion and somatic hypermutation, generating diverse collections of related receptors [29].

To study this diversity, researchers collect biological samples, such as blood or tissue, from individuals and sequence the molecular variants present in those samples. Historically, such diversity has been difficult to characterize with high resolution because older approaches, such as single genome amplification followed by Sanger sequencing, are resource-intensive and typically yield up to 20-30 sequences per biological sample. In recent years, deep sequencing technologies have transformed this setting by generating large collections of sequences per sample, enabling more detailed study of heterogeneous populations within individuals [6, 26, 28].

Direct analysis of raw sequence data is challenging because the number of possible sequences grows rapidly with sequence length, and observed sequences often vary substantially across individuals. To make these analyses more tractable, sequences are often summarized using lower-dimensional features. These can include discrete indicators for specific amino acid residues or motifs, classification into broad sequence types or lineages, or quantitative numeric scores. Our proposal focuses specifically on the third type: numeric sequence features. Examples include the Hamming distance to a reference sequence or sequence-specific phenotypic properties (either experimentally derived or predicted from sequence). Once individual sequences are mapped to numeric values, a common analytical task is to compare these sequence-derived features across treatment conditions or demographic factors such as geographic region. In the HIV-1 sequencing context, such analyses have included quantifying HIV-1 Env V1V2 loop length and predicted N-linked glycosylation sites across stages of disease progression [10] and comparing predicted transmissibility across modes of sexual transmission [35]. In B cell receptor studies, analyses have compared levels of somatic hypermutation and distance from inferred germline sequences between treatment arms [38].

With deep sequencing data, the collection of sequences from a single individual yields a distribution of numeric feature values. Past analyses have often collapsed these data into a single representative sequence or summarized the feature distribution by a single scalar value, such as the mean or mode. This reduction simplifies group comparisons by allowing for classical two-sample procedures but, as we will argue, may fail to detect differences between groups not captured by the chosen summary. In contrast, we propose retaining each individual’s complete collection of feature values. Thus, the data unit for each individual is the distribution itself.

Because distributional observations cannot be averaged, differenced, or tested in the same way as real-valued observations, analyzing them requires additional statistical tools. A growing body of literature has developed tools for data in which the observational unit is a distribution [1, 7, 27]. A central object in this work is the Wasserstein barycenter, which provides a notion of an average for a set of distributions. Our aim is to translate ideas from this literature into a practical framework for biological sequencing studies. We describe how to compare two independent groups by treating each individual’s sequence-derived features as a distribution, summarizing each group with a Wasserstein barycenter, and evaluating group differences through pointwise differences in their barycenter quantile functions. Furthermore, we develop hypothesis tests for the equality of group barycenters, designed to detect different classes of alternatives that may arise in practice. The proposed methods are implemented in a R package, mcbarycenter.

A complication in this approach is that individual-level feature distributions are observed at varying resolutions. The number of sequences obtained from a biological sample—known as sequencing depth—can differ substantially across individuals, depending on the laboratory sequencing tool used and potentially reflecting differences in the abundance of the target molecules in the sample. While deep sequencing can theoretically yield thousands of sequences per sample, the realized sequence count often varies substantially and may be low for certain samples [34].

With low sequencing depth, the observed feature values provide a limited view of the distribution of the feature within the underlying biological population. This becomes especially problematic in comparisons when sequencing depth varies systematically between groups, which could happen if the amount of the biological target systematically differs between the groups being compared.

HIV-1 prevention trials provide a motivating example in which these sequencing depth issues arise. In these studies, participants are randomized to receive either an active intervention or a placebo and are followed for incident HIV-1 infection. For participants who acquire HIV-1, blood samples are collected to generate viral sequences. These sequences are then compared between study arms to evaluate whether the intervention is associated with differences in the viral variants observed among individuals who acquire the virus [17]. Sequencing depth in these datasets can vary depending on the sequencing technology and processing pipeline used, and may also reflect the amount of viral genetic material available in a sample. Thus, if an intervention affects post-infection viral load, it may induce systematic differences in sequencing depth between study arms.

We highlight three distinct examples of trials with different sequencing depths: the Phambili (HVTN 503), AMP (HVTN 703/704), and Imbokodo (HVTN 705) trials (Figure 1; Supplemental Table B.1). The Phambili study, which used older Sanger sequencing technology, has very low sequencing depths that are distributed similarly across arms (Vaccine: median 5 [range 2–12]; Placebo: 6 [5–12]). In contrast, the AMP study, which used PacBio deep sequencing, exhibits a wide range of sequencing depths with an overall median of 141.5 sequences per person (range: 1–988), relatively balanced across arms (Treatment: 134 [1–672]; Placebo: 157 [4–988]). Finally, the Imbokodo trial, which also used deep sequencing, demonstrates a scenario with systematic differences between groups. While the overall median is 121 sequences (range: 1–589), vaccine recipients tended to have lower sequencing depths than placebo recipients (Vaccine: 96 [2–493]; Placebo: 146 [1–589]). Those three examples illustrate that sequencing depth is not only highly variable across studies, but can also be affected by the intervention itself. We will study the impact of varying sequencing depth on our framework through simulation studies and provide practical guidance for mitigating this potential issue.

HIV-1 Envelope sequencing depth of participants acquiring HIV-1 infection for three HIV-1 prevention trials

Figure 1. HIV-1 Envelope sequencing depth of participants acquiring HIV-1 infection for three HIV-1 prevention trials—Phambili (HVTN 503), AMP (HVTN 703/704), and Imbokodo (HVTN 705)—stratified by study arm. The y-axis is shown on the log10 scale.

To our knowledge, Wasserstein barycenter-based distributional methods have not previously been applied to the analysis of deep sequencing data. A related paper applies a similar framework in genetics research of single-cell differential expression [39]. Their method uses Wasserstein barycenter techniques to analyze single-cell sequencing data in a two independent sample problem, comparing cases versus controls. While relying on similar ideas, our proposal differs in a few ways: first, we explicitly consider the potential for low or differential sequencing depth to produce biased estimates. Second, we consider an estimand—the difference in quantiles—that contrasts the Wasserstein barycenters of the two groups, whereas they consider the Wasserstein distance between the two barycenters as a single summary measure. Third, we approach hypothesis testing differently. Their permutation testing procedure evaluates the null of exchangeability between two groups, which may be automatically violated if the distribution of sequencing depths differs systematically between groups. In contrast, our testing approach can be valid even when sequencing depths differ between groups.

The remainder of the paper is organized as follows. § 2 provides a high-level introduction to the statistical tasks for our proposed analytic approach and presents illustrative toy examples to build intuition. § 3 describes the data structure, estimands, and methodology for estimating the group-specific Wasserstein barycenters and testing the hypothesis of equal barycenters between groups. § 4 presents results from simulation studies. § 5 presents the framework applied to the AMP HIV-1 prevention trials and human B cell receptor sequencing study of vaccine-elicited immune responses. § 6 concludes.

Statistical tasks with distributional data

To build intuition, we first introduce the framework’s statistical tasks at a high level and provide illustrative toy examples. The statistical tasks include:

Task 1: Average distribution. First, we define what constitutes an “average” distribution across individuals. We use the Wasserstein barycenter, which provides a notion of averaging distributions under optimal transport geometry [1]. For a more comprehensive overview of Wasserstein barycenters, we refer the reader to the review article by Bigot (2020).

Compared to pointwise averages of density functions, the Wasserstein barycenter can better preserve the salient features of component distributions. In Figure 2(a)-(Figure 2b), we display the densities of five bimodal distributions of the same shape along with their Wasserstein barycenter; as shown, the barycenter has the same bimodal shape as the five input distributions. Additionally, for one-dimensional distributions, the Wasserstein barycenter has a convenient and interpretable representation: its quantile function is equal to the pointwise average of the quantile functions of its component distributions [4] (Figure 2(c)-(Figure 2d)). Given this property, we frame our presentation around quantile functions of distributions rather than their densities. In practice, we summarize the within-host feature distributions for each group using their mean quantile function or equivalently, the quantile function of their Wasserstein barycenter.

Densities and quantile functions of five bimodal distributions and their Wasserstein barycenter

Figure 2. (a) Densities of five bimodal distributions and (b) the density of their Wasserstein barycenter. (c) Quantile functions of the same five bimodal distributions and (d) the quantile function of their Wasserstein barycenter. The Wasserstein barycenter quantile function is obtained by taking the pointwise mean of the input quantile functions.

Task 2: Differences between barycenter distributions. After estimating the barycenter for each group, we quantify how the barycenter distributions differ between groups. Analyses that reduce a distribution to a single scalar such as the mean or mode often miss important differences in shape or tail behavior. Instead, we employ a quantile difference map, which compares two distributions by evaluating the differences between them across quantile levels in (0,1)(0, 1). Comparing quantiles is a well-established method for contrasting distribution functions [12], interpreting quantile regression [24], and studying causal treatment effects for both real-valued and distributional outcomes [16, 23, 27]. Such a comparison allows us to more thoroughly characterize differences between barycenter distributions; a toy example is shown in Figure 3.

Two group Wasserstein barycenter quantile functions and quantile difference map

Figure 3. (a) Two group Wasserstein barycenter quantile functions (Group 1: solid gray; Group 2: dotted green), and (b) their associated quantile difference map (comparing Group 2 versus Group 1). In this example, the 0.01 quantile of the Group 2 barycenter, representing a near-minimum sequence feature value, is approximately six units higher than that of Group 1. In contrast, the median feature value in Group 2 is only approximately one unit higher than in Group 1. In the upper tail, the two barycenters converge, with their maximum feature values being approximately equal.

Task 3: Hypothesis testing for equal Wasserstein barycenters. Finally, we require a hypothesis test to determine whether the Wasserstein barycenters differ between groups. Specifically, we test the null hypothesis that the Wasserstein barycenters of the within-host viral feature distributions are identical across groups. Equivalently, this null asserts that the difference in barycenter quantiles between the two groups is zero across all quantile levels in (0,1)(0, 1).

By representing the barycenter distribution via its quantile function, this problem can be viewed through the lens of functional data analysis, where tests evaluating equality of functionals means between groups are well-studied [19]. For distributional data specifically, two-sample tests have been explored by a handful of past works. Dubey and Müller [14] propose an ANOVA-type test evaluating the equality of barycenters and Fréchet variances; Zhang and Guo [39] use a permutation test for the strong null of exchangeability between groups; and Jeong et al. [20] derive the asymptotic limiting distribution of a scaled, squared Wasserstein distance test statistic. Additionally, Petersen et al. [31] examine testing in a Wasserstein regression context, which, in its simplest form, can be reduced to a two-sample barycenter problem. Our approach aligns most closely with Jeong et al. [20]. However, we propose more flexible test statistics designed to target various alternative data scenarios that could arise in practice.

Illustrative toy examples

To build intuition, Figure 4 illustrates four toy scenarios alongside the corresponding outputs from our framework, which we refer to as a distributional analysis. In each scenario, the left panel shows the individual-level feature distributions and their group-specific Wasserstein barycenters, the middle panel shows the corresponding quantile functions, and the right panel shows the resulting difference in barycenter quantiles between groups. We contrast this approach with a mean-based analysis, which relies on a classical two-sample mean comparison after computing the average feature value for each individual.

Figure 4. Output of a distributional analysis for four hypothetical toy datasets. In each scenario, there are five participants in each group. In the left panels, light curves show the densities of numeric features for each individual (Group 1, gray solid; Group 2, green dotted), while bold curves represent the group-specific Wasserstein barycenters. The middle panels show the corresponding individual-level and group barycenter quantile functions. The right panels display the difference in quantiles between the Group 2 and Group 1 barycenters. The inner panels labeled “Mean” show the corresponding mean-based analysis, comparing the average feature values between groups. Panels illustrate the following scenarios: (a) similar distributions, (b) approximately uniform differences, (c) upper-tail difference, and (d) difference in variability.

(a) Similar distributions (Figure 4(a)). Individuals in Group 1 exhibit sequence feature distributions similar to those in Group 2, resulting in similar barycenters. The distributional analysis estimates negligible differences between the two group barycenters, producing a quantile difference curve nearly flat at 0 across all quantile levels. Similarly, the mean-based analysis estimates a near-zero difference between group means.

(b) Uniform differences (Figure 4(b)). Group 2 individuals generally exhibit higher sequence feature values than Group 1, resulting in a uniform difference between the two group barycenters across quantile levels. Consequently, the distributional analysis yields an approximately uniform positive difference across all quantiles. The mean-based analysis similarly estimates a positive difference in means of roughly the same magnitude.

(c) Upper-tail difference (Figure 4(c)). Group 2 individuals exhibit more extreme feature values in the upper tail, but the distributions otherwise resemble those from Group 1. Therefore, for most quantile levels, the Group 1 and Group 2 barycenters are similar, but they diverge at the upper tail. The distributional analysis captures this by producing near-zero estimates for most quantile levels but a positive difference at the upper tail. In contrast, the mean-based analysis yields an attenuated estimate, which averages this positive tail difference with the near-zero difference in other parts of the distribution.

(d) Difference in variability (Figure 4(d)). Group 1 individuals tend to have distributions with more variability compared to Group 2. Therefore, the Group 1 barycenter has a higher variance than the Group 2 barycenter, despite sharing the same overall mean. Here, the distributional analysis reveals a positive difference at the lower tail, a negative difference at the upper tail, and an approximately zero difference at the 0.5 quantile. In contrast, the mean-based analysis estimates a null difference between group means.

In scenarios (a) and (b), both the mean-based and distributional approaches yield similar results and may have comparable power to detect group differences. In scenario (c), however, the distributional approach can be more sensitive to the upper-tail difference and also characterizes a feature of the barycenter difference that the mean-based analysis obscures. Finally, in scenario (d), the mean-based approach will fail to detect the difference in variability, whereas the distributional approach can capture this difference. Together, these examples highlight two advantages of our proposal: it can have power to detect distributional differences that mean-based analyses may miss, and it provides a higher resolution comparison between groups.

Methodology

Data setup

For each individual ii, let Gi∈{1,2}G_i \in\{1,2\} denote the binary group indicator and YiY_i denote the individual’s underlying within-host distribution of a numeric sequence feature (continuous or discrete). Note that YiY_i, which is a realization of a distribution-valued random object, is not directly observed; we instead observe mim_i measurements Yi1,…,YimiY_{i1}, \ldots, Y_{im_i} sampled from this distribution, where mim_i denotes the sequencing depth. We assume that, conditional on YiY_i, Yi1,…,Yimi∼i.i.d.YiY_{i1}, \ldots, Y_{im_i} \overset{\mathrm{i.i.d.}}{\sim} Y_i. We allow the distribution of sequencing depth mim_i to differ in each group, so that mi∣Gi=g∼ηgm_i \mid G_i = g \sim\eta_g for g∈{1,2}g \in\{1,2\}, where ηg\eta_g denotes the distribution of sequencing depths for Group gg. In total, we observe nn independent individuals in our dataset, with n1n_1 in Group 1 (G=1G = 1) and n2n_2 in Group 2 (G=2G = 2), where observations are identically distributed within each group.

From the observed measurements for individual ii, we can construct the empirical distribution Y^iemp=1mi∑j=1miδYij\widehat{Y}_i^{\mathrm{emp}} = \frac{1}{m_i}\sum_{j=1}^{m_i}\delta_{Y_{ij}}. We also consider a smoothed version of this empirical distribution, denoted Y^ism\widehat{Y}_i^{\mathrm{sm}}, obtained by applying a smoothing procedure to Y^iemp\widehat{Y}_i^{\mathrm{emp}}, such as kernel density smoothing or smoothing of the quantile function (Bigot et al. [3]). Both Y^iemp\widehat{Y}_i^{\mathrm{emp}} and Y^ism\widehat{Y}_i^{\mathrm{sm}} can be viewed as error-prone proxies for YiY_i, with the magnitude of error depending on the sequencing depth mim_i. Because the sequencing-depth distributions η1\eta_1 and η2\eta_2 may differ between groups, the amount of measurement error may also differ between groups. As shown in the following sections, this measurement error can bias estimation of the target estimands.

For a generic probability measure λ\lambda on the real line, let Fλ(y)F_\lambda(y) denote its cumulative distribution function for y∈Ry \in\mathbb{R}, and let Fλ−1(t)F_\lambda^{-1}(t) denote its quantile function for t∈(0,1)t \in(0,1). Because the individual-level outcome is distribution-valued, we measure distances between distributions using the 2-Wasserstein metric. In optimal transport, the Wasserstein distance quantifies the min-

imum cost of transporting probability mass from one distribution to another; in the case of the 2-Wasserstein distance on Euclidean space, this cost is based on squared Euclidean distance. For one-dimensional distributions, the 2-Wasserstein distance between λ1\lambda_1 and λ2\lambda_2, denoted by W2(λ1,λ2)W_2(\lambda_1,\lambda_2), has a convenient representation in terms of their quantile functions:

W2(λ1,λ2):=(∫01∣Fλ1(t)−Fλ2(t)∣2 dt)1/2.(1)W_2(\lambda_1,\lambda_2) := \left(\int_0^1 \left|F_{\lambda_1}(t)-F_{\lambda_2}(t)\right|^2\,dt\right)^{1/2}. \tag*{(1)}

Using this metric, we define the Wasserstein barycenter of the distribution-valued random object YY as the probability measure BY\mathbb{B}_Y that minimizes the expected squared Wasserstein distance between a random realization of YY and a candidate probability measure ν\nu:

BY:=arg⁡min⁡ν E[W22(Y,ν)],\mathbb{B}_Y := \underset{\nu}{\arg\min}\ \mathbb{E}\left[W_2^2(Y,\nu)\right],

where the minimum is taken over probability measures ν\nu, and the expectation is taken with respect to the randomness in YY. We denote the corresponding quantile function by FBY(t)F_{\mathbb{B}_Y}(t). More generally, for a generic random variable XX, we define the conditional Wasserstein barycenter of YY given XX by

B[Y∣X]:=arg⁡min⁡ν E[W22(Y,ν)∣X].\mathbb{B}[Y\mid X] := \underset{\nu}{\arg\min}\ \mathbb{E}\left[W_2^2(Y,\nu)\mid X\right].

By the one-dimensional representation of the Wasserstein distance in (1), the quantile function of the Wasserstein barycenter is given by the pointwise mean of the quantile functions of the component distributions:

FBY(t)=E[FY(t)],t∈(0,1).(2)F_{\mathbb{B}_Y}(t)=\mathbb{E}\left[F_Y(t)\right],\qquad t\in(0,1). \tag*{(2)}

Because of this representation, we frame our methodology around estimating the Wasserstein barycenter’s quantile function. In Task 1, we wish to estimate the group-specific Wasserstein barycenter quantile function

μg(t):=FB[Y∣G=g](t),t∈(0,1),g∈{1,2}.(3)\mu_g(t):=F_{\mathbb{B}[Y\mid G=g]}(t),\qquad t\in(0,1),\quad g\in\{1,2\}. \tag*{(3)}

In Task 2, we estimate the quantile difference map, which compares the quantiles of the group-specific Wasserstein barycenters between the two groups:

Δ(t):=μ2(t)−μ1(t),t∈(0,1).(4)\Delta(t) := \mu_2(t) - \mu_1(t), \qquad t \in(0,1). \tag*{(4)}

Finally, in Task 3, our hypothesis test evaluates the global null hypothesis that the two group-specific barycenter quantile functions are equal at every quantile level in a compact set T⊂(0,1)\mathcal{T} \subset(0,1):

H0:Δ(t)=0 for all t∈T.(5)H_0 : \Delta(t) = 0 \text{ for all } t \in\mathcal{T}. \tag*{(5)}

Remark 1 (Simple random sample assumption). The assumption Yi1,…,Yimi∼i.i.d.YiY_{i1}, \ldots, Y_{im_i} \overset{\mathrm{i.i.d.}}{\sim} Y_i may not hold depending on the sequencing technology and processing procedure used. For example, PCR resampling, amplification bias, sequencing error, and bioinformatic filtering can cause the observed sequences to deviate from independent draws from the biological viral population. In such settings, we assume that Yi1,…,Yimi∼i.i.d.Y~iY_{i1}, \ldots, Y_{im_i} \overset{\mathrm{i.i.d.}}{\sim} \widetilde{Y}_i, where Y~i\widetilde{Y}_i can be interpreted as the distribution of sequence-derived features after the sequencing and processing procedure, rather than the underlying biological viral population. Molecular barcoding approaches, such as Primer ID and related unique molecular identifier-based methods, can reduce PCR resampling artifacts and sequencing errors, improving the extent to which observed sequences reflect the viral template population present in the biological sample [40].

Task 1: Estimation and inference for the Wasserstein barycenter

We aim to estimate the group-specific barycenter quantile functions μ1(t)\mu_1(t) and μ2(t)\mu_2(t). We first consider two estimators based on the empirical distributions Y^iemp\widehat{Y}_i^{\mathrm{emp}} and Y^ism\widehat{Y}_i^{\mathrm{sm}} introduced above. Let

Qiemp(t):=FY^iemp−(t),Qism(t):=FY^ism−(t),t∈(0,1),Q_i^{\mathrm{emp}}(t) := F_{\widehat{Y}_i^{\mathrm{emp}}}^{-}(t), \qquad Q_i^{\mathrm{sm}}(t) := F_{\widehat{Y}_i^{\mathrm{sm}}}^{-}(t), \qquad t \in(0,1),

denote the empirical and pre-smoothed empirical quantile functions for individual ii, respectively. The first estimator is the empirical Wasserstein barycenter, which averages the empirical quantile functions within each group. Specifically, for g∈{1,2}g \in\{1,2\}, we define

μ^gemp(t):=1ng∑i=1n1{Gi=g}Qiemp(t),t∈(0,1).(6)\widehat{\mu}^{\mathrm{emp}}_g(t) := \frac{1}{n_g} \sum_{i=1}^{n} \mathbb{1}\{G_i = g\} Q_i^{\mathrm{emp}}(t), \qquad t \in(0,1). \tag*{(6)}

The second is a pre-smoothed empirical Wasserstein barycenter, obtained by replacing each individual’s empirical distribution with its smoothed version before averaging the corresponding quantile functions:

μ^gsm(t):=1ng∑i=1n1{Gi=g}Qism(t),t∈(0,1).(7)\widehat{\mu}^{\mathrm{sm}}_g(t) := \frac{1}{n_g} \sum_{i=1}^{n} \mathbb{1}\{G_i = g\} Q_i^{\mathrm{sm}}(t), \qquad t \in(0,1). \tag*{(7)}

These two empirical estimators perform well when sequencing depths are uniformly high, because each individual’s empirical quantile function is an accurate approximation to their true unobserved quantile function. When sequencing depth is low, however, the empirical quantile function for each individual can be biased as an estimator of the corresponding true quantile function, and this can be especially pronounced in the tails [5]. As a result, averaging these biased quantile functions across individuals produces a biased estimator of the group-specific barycenter quantile function, which does not go away with increasing sample size [3, 30]. Although pre-smoothing can reduce sampling noise, it will not generally remove this bias.

Motivated by this problem, Peng et al. [30] studied Wasserstein barycenter estimation under sparse sampling, where each individual distribution is observed through only a small number of measurements. To address the limitations of individual-level empirical quantile estimation in this setting, the paper developed the marginal-constructed barycenter (MCB) estimator, which uses information pooled across individuals rather than attempting to accurately reconstruct each individual distribution separately. The approach relies on a non-informative sequencing depth assumption, meaning that sequencing depth for an individual is assumed to be independent of that individual’s feature distribution, conditional on group. The MCB estimator is based on an alternative representation of the barycenter estimation problem through binomial mixture models, and can be configured with different structural models for these mixtures. While the asymptotic properties require that the binomial mixing distributions be correctly specified, more flexible implementations, such as spline-based mixture models, can be used in practice. (With these flexible implementations, misspecification will still be present; however, its effect on estimation and inference may be minor.)

We denote the corresponding group-specific barycenter quantile estimator by μ^gmcb(t)\widehat{\mu}^{\mathrm{mcb}}_g(t).

The three estimators are therefore suited to datasets with different sequencing depths. The empirical and pre-smoothed empirical barycenters are most appropriate when sequencing depths are uniformly large enough to support reliable estimation of individual-level quantiles. The MCB estimator is instead designed for sparse sampling settings, where individual-level distributions may be poorly estimated due to small within-subject sample sizes. In this case, the MCB estimator replaces reliance on accurate individual-level distribution estimation with structural assumptions on the marginal mixture models and on non-informative cluster sizes. We evaluate the performance of each estimator across datasets with different sequencing depths in our simulation studies in § 4.

Each estimator—μ^gemp(t)\widehat{\mu}^{\mathrm{emp}}_g(t), μ^gsm(t)\widehat{\mu}^{\mathrm{sm}}_g(t), and μ^gmcb(t)\widehat{\mu}^{\mathrm{mcb}}_g(t)—is pointwise asymptotically linear (ng→∞n_g \to\infty) for each t∈(0,1)t \in(0,1) under estimator-specific regularity conditions; these conditions are stated explicitly in Appendix § 11. Briefly, μ^gemp(t)\widehat{\mu}^{\mathrm{emp}}_g(t) and μ^gsm(t)\widehat{\mu}^{\mathrm{sm}}_g(t) are pointwise asymptotically linear when the estimated quantile function for each individual distribution converges sufficiently quickly to the corresponding true quantile function. These conditions may require sequencing depths mim_i to increase sufficiently quickly with ngn_g, so that the average per-individual quantile estimation error is negligible at the ng−1/2n_g^{-1/2} scale. In contrast, the MCB estimator does not require sequencing depths to increase with ngn_g and is pointwise asymptotically linear when the binomial mixture models used in the estimation procedure are correctly specified. For notational simplicity, let μ^g(t)\widehat{\mu}_g(t) denote any one of the estimators μ^gemp(t)\widehat{\mu}^{\mathrm{emp}}_g(t), μ^gsm(t)\widehat{\mu}^{\mathrm{sm}}_g(t), or μ^gmcb(t)\widehat{\mu}^{\mathrm{mcb}}_g(t). Then, under the conditions in Appendix § 11, we have pointwise asymptotic normality for each fixed t∈(0,1)t \in(0,1):

ng{μ^g(t)−μg(t)}→dN(0,σg2(t)),σg2(t)=Var⁡{ϕg(Oi;t)∣Gi=g},(8)\sqrt{n_g}\{\widehat{\mu}_g(t)-\mu_g(t)\}\xrightarrow{d}N(0,\sigma_g^2(t)), \qquad\sigma_g^2(t)=\operatorname{Var}\{\phi_g(O_i;t)\mid G_i=g\}, \tag*{(8)}

where →d\xrightarrow{d} denotes convergence in distribution. Accordingly, pointwise asymptotically valid confidence intervals for μg(t)\mu_g(t) can be constructed as

μ^g(t)±z1−α/2σ^g(t)ng,(9)\widehat{\mu}_g(t)\pm z_{1-\alpha/2}\frac{\widehat{\sigma}_g(t)}{\sqrt{n_g}}, \tag*{(9)}

where σ^g(t)\widehat{\sigma}_g(t) is a consistent estimator of σg(t)\sigma_g(t).

The pointwise asymptotic normality result above provides valid inference for μg(t)\mu_g(t) at any fixed quantile level tt. However, pointwise results alone do not characterize the joint behavior of μ^g(t)\widehat{\mu}_g(t) across quantile levels and therefore cannot be used directly to construct simultaneous confidence bands or global hypothesis tests. For these purposes, it is useful to view the function t↦μg(t)t \mapsto\mu_g(t) itself as the estimand and to establish convergence of the estimated function as a stochastic process. Under additional regularity conditions, also stated in Appendix § 11, the estimator μ^g\widehat{\mu}_g converges weakly as a stochastic process. Specifically, for any compact set T⊂(0,1)\mathcal{T} \subset(0,1),

ng{μ^g−μg}⇝Ggin ℓ∞(T),(10)\sqrt{n_g}\{\widehat{\mu}_g-\mu_g\}\rightsquigarrow\mathbb{G}_g \quad\text{in } \ell^\infty(\mathcal{T}), \tag*{(10)}

where ⇝\rightsquigarrow denotes weak convergence of stochastic processes and Gg\mathbb{G}_g is a tight mean-zero Gaussian process with covariance kernel Σg(s,t)\Sigma_g(s,t). This result allows us to perform uniform inference over t∈Tt \in\mathcal{T}. In particular, let σg(t)={Σg(t,t)}1/2\sigma_g(t)=\{\Sigma_g(t,t)\}^{1/2} and let c1−α,gc_{1-\alpha,g} denote the (1−α)(1-\alpha) quantile of sup⁡t∈T∣Gg(t)/σg(t)∣\sup_{t\in\mathcal{T}}|\mathbb{G}_g(t)/\sigma_g(t)|. Then an asymptotic (1−α)(1-\alpha) uniform confidence band for μg\mu_g based on the studentized process is given by

{μ^g(t)±c^1−α,gσ^g(t)ng:t∈T},(11)\left\{\widehat{\mu}_g(t) \pm\widehat{c}_{1-\alpha,g}\frac{\widehat{\sigma}_g(t)}{\sqrt{n_g}}:t\in\mathcal{T}\right\}, \tag*{(11)}

where σ^g(t)\widehat{\sigma}_g(t) and c^1−α,g\widehat{c}_{1-\alpha,g} are consistent estimators of σg(t)\sigma_g(t) and c1−α,gc_{1-\alpha,g}, respectively.

Task 2: Estimation and inference for the difference in quantiles

Next, we consider estimation and inference for the quantile difference map Δ(t)\Delta(t) defined in (4). Pointwise asymptotic normality of Δ^(t)\widehat{\Delta}(t), constructed using any of μ^gemp(t)\widehat{\mu}^{\mathrm{emp}}_g(t), μ^gsm(t)\widehat{\mu}^{\mathrm{sm}}_g(t), or μ^gmcb(t)\widehat{\mu}^{\mathrm{mcb}}_g(t), follows from the asymptotic normality of the group-specific estimators together with the continuous mapping theorem and independence of both groups. Let n=n1+n2n=n_1+n_2, and suppose that ng/n→πg∈(0,1)n_g/n\to\pi_g\in(0,1) for g∈{1,2}g\in\{1,2\}. Then, for each fixed t∈(0,1)t\in(0,1),

n{Δ^(t)−Δ(t)}⟶dN(0,σΔ2(t)),(12)\sqrt{n}\{\widehat{\Delta}(t)-\Delta(t)\}\mathrel{\mathop{\longrightarrow}^{d}}N(0,\sigma_\Delta^2(t)), \tag*{(12)}

where, under independence of the two groups, σΔ2(t)=σ12(t)π1+σ22(t)π2\sigma_{\Delta}^{2}(t) = \frac{\sigma_{1}^{2}(t)}{\pi_{1}} + \frac{\sigma_{2}^{2}(t)}{\pi_{2}}.

Weak convergence in ℓ∞(T)\ell^\infty(\mathcal{T}) of Δ^\widehat{\Delta} follows from weak convergence of the group-specific estimators together with the continuous mapping theorem. Specifically,

n{Δ^−Δ}⇝GΔin ℓ∞(T),(13)\sqrt{n}\left\{\widehat{\Delta}-\Delta\right\} \rightsquigarrow G_{\Delta} \quad\text{in } \ell^\infty(\mathcal{T}), \tag*{(13)}

where GΔG_{\Delta} is a mean-zero Gaussian process with covariance kernel ΣΔ(s,t)\Sigma_{\Delta}(s,t). Under independence of the two groups,

ΣΔ(s,t)=Σ1(s,t)π1+Σ2(s,t)π2,s,t∈T.\Sigma_{\Delta}(s,t) = \frac{\Sigma_{1}(s,t)}{\pi_{1}} + \frac{\Sigma_{2}(s,t)}{\pi_{2}}, \qquad s,t \in\mathcal{T}.

These results can be used to derive both asymptotically valid pointwise confidence intervals and uniform confidence bands, similar to (9) and (11) in the previous section, respectively.

Task 3: Hypothesis testing

Finally, we describe hypothesis testing for the global null hypothesis H0:Δ(t)=0H_{0}: \Delta(t) = 0 for all t∈Tt \in\mathcal{T}. By the weak convergence result in (13), the estimated difference process satisfies n{Δ^−Δ}⇝GΔ\sqrt{n}\{\widehat{\Delta}-\Delta\} \rightsquigarrow G_{\Delta} in ℓ∞(T)\ell^\infty(\mathcal{T}). Under H0H_{0}, Δ(t)=0\Delta(t) = 0 for all t∈Tt \in\mathcal{T}, so the scaled observed process nΔ^\sqrt{n}\widehat{\Delta} converges weakly to GΔG_{\Delta}.

A global test statistic may be constructed by applying a real-valued functional to the estimated difference process. That is, for a functional ϕ:ℓ∞(T)→R\phi: \ell^\infty(\mathcal{T}) \to\mathbb{R}, we may consider statistics of the form T=ϕ(nΔ^)T = \phi(\sqrt{n}\widehat{\Delta}). If ϕ\phi is continuous in ℓ∞(T)\ell^\infty(\mathcal{T}), then under H0H_{0}, T⇝ϕ(GΔ)T \rightsquigarrow\phi(G_{\Delta}) by the continuous mapping theorem. Therefore, critical values can be obtained from the limiting Gaussian process, or in practice from a simulation-based procedure that consistently approximates its distribution [25 Chapter 10].

We consider three global test statistics based on this weak convergence result. The first two are based on the studentized difference process. Let Z^Δ(t)=nΔ^(t)/{Σ^Δ(t,t)}1/2\widehat{Z}_{\Delta}(t) = \sqrt{n}\widehat{\Delta}(t)/\{\widehat{\Sigma}_{\Delta}(t,t)\}^{1/2} when Σ^Δ\widehat{\Sigma}_{\Delta} is an estimate of the covariance kernel of the limiting process GΔG_{\Delta}. We define the supremum test statistic T∞T_{\infty} and the integrated squared test statistic TintT_{\mathrm{int}} as

T∞:=sup⁡t∈T∣Δ^(t)∣Tint:=∫TΔ^(t)2 dt.(14)T_{\infty} := \sup_{t \in\mathcal{T}} \left|\widehat{\Delta}(t)\right| \qquad T_{\mathrm{int}} := \int_{\mathcal{T}} \widehat{\Delta}(t)^2\,\mathrm{d}t. \tag*{(14)}

The third statistic TMT_M is based on the squared functional Mahalanobis semi-distance of the estimated difference process, analogous to Hotelling’s T2T^2 test but for functional data [21]. Let C^Δ\widehat{C}_{\Delta} denote the covariance operator on L2(T)L^2(\mathcal{T}) induced by the estimated covariance kernel Σ^Δ\widehat{\Sigma}_{\Delta}, such that (C^Δf)(s):=∫TΣ^Δ(s,t)f(t) dt(\widehat{C}_{\Delta}f)(s) := \int_{\mathcal{T}} \widehat{\Sigma}_{\Delta}(s,t)f(t)\,\mathrm{d}t. Then,

TM:=n⟨Δ^,C^Δ−1Δ^⟩.(15)T_M := n\left\langle\widehat{\Delta},\widehat{C}_{\Delta}^{-1}\widehat{\Delta}\right\rangle. \tag*{(15)}

In practice, we do not use the inverse covariance operator C^Δ−1\widehat{C}_{\Delta}^{-1} directly, since covariance inversion is typically unstable or ill-posed in infinite-dimensional function spaces. We therefore compute a regularized version of TMT_M using a truncated spectral inverse based on the first KK empirical functional principal components of C^Δ\widehat{C}_{\Delta}. Specifically, if λ^1,…,λ^K\widehat{\lambda}_1,\ldots,\widehat{\lambda}_K and ψ^1,…,ψ^K\widehat{\psi}_1,\ldots,\widehat{\psi}_K denote the first KK empirical eigenvalues and eigenfunctions of C^Δ\widehat{C}_{\Delta}, then we compute

TM(K):=n∑k=1K⟨Δ^,ψ^k⟩2λ^k.(16)T_M^{(K)} := n\sum_{k=1}^{K}\frac{\left\langle\widehat{\Delta},\widehat{\psi}_k\right\rangle^2}{\widehat{\lambda}_k}. \tag*{(16)}

The three test statistics are sensitive to different alternatives. The supremum statistic is most useful for detecting localized differences concentrated at a small number of quantile levels. The integrated squared statistic aggregates evidence across the quantile curve and is useful for detecting accumulated departures from the null. The Hotelling-type statistic accounts for the covariance structure across quantile levels and may be more powerful when the signal lies along low-variance directions of the estimated process (Table 1). We will evaluate the performance of each of these test statistics in our simulation study in § 4.

Remark 2 (Other test statistics). Other test statistics can be constructed from the estimated difference process depending on the alternatives of interest. For example, one-sided supremum statistics may be useful for directional alternatives, while weighted versions of TintT_{\mathrm{int}} can place greater

StatisticTest StatisticTest Statistic (on grid {t1,…,tm}\{t_1,\ldots,t_m\})Sensitive to...Figure
Supremum (T∞T_{\infty})sup⁡t∈T∣Δ^(t)se⁡{Δ^(t)}∣\sup_{t\in T}\left|\frac{\widehat{\Delta}(t)}{\operatorname{se}\{\widehat{\Delta}(t)\}}\right|max⁡1≤j≤k∣Δ^(tj)se⁡{Δ^(tj)}∣\max_{1\le j\le k}\left|\frac{\widehat{\Delta}(t_j)}{\operatorname{se}\{\widehat{\Delta}(t_j)\}}\right|Localized differences at one or a small number of quantile levels
Integrated squared (TintT_{\mathrm{int}})∫T[Δ^(t)se⁡{Δ^(t)}]2 dt\int_T\left[\frac{\widehat{\Delta}(t)}{\operatorname{se}\{\widehat{\Delta}(t)\}}\right]^2\,dt∑j=1mwj[Δ^(tj)se⁡{Δ^(tj)}]2\sum_{j=1}^{m}w_j\left[\frac{\widehat{\Delta}(t_j)}{\operatorname{se}\{\widehat{\Delta}(t_j)\}}\right]^2Broad differences spread across the quantile curve
Hotelling-type (TMT_M)n⟨Δ^,C^Δ−1Δ^⟩n\left\langle\widehat{\Delta},\widehat{C}_{\Delta}^{-1}\widehat{\Delta}\right\ranglenΔ^TΣ^Δ,K−1Δ^n\widehat{\Delta}^{\mathsf{T}}\widehat{\Sigma}_{\Delta,K}^{-1}\widehat{\Delta}Differences after accounting for covariance across quantile levels

caption: Candidate test statistics for comparing group-specific barycenter quantile functions and schematic alternatives to which each statistic is expected to be sensitive. The right-hand column shows toy examples of where the test statistic should be most powerful, with light lines representing individual-level quantile functions and dark lines representing the corresponding group barycenter quantile functions. Group 1 is shown in gray and Group 2 in green.

:::

emphasis on specific regions of the quantile function, such as the tails.

Implementation on a grid

In practice, the procedure can be implemented using a finite-dimensional representation of the estimated quantile functions. In our implementation, the functions are evaluated on a common dense grid in the following steps:

  1. Choose a grid t1,…,tm∈(0,1)t_1,\ldots,t_m\in(0,1).

  1. Estimate the Wasserstein barycenter quantile function for each group on the grid using μ^g(t)\widehat{\mu}^{g}(t), μ^gsm(t)\widehat{\mu}^{\mathrm{sm}}_{g}(t), or μ^gmcb(t)\widehat{\mu}^{\mathrm{mcb}}_{g}(t). Denote the resulting generic estimator by μ^g(t)\widehat{\mu}_g(t), and write its grid representation as

μ^g={μ^g(t1),…,μ^g(tm)}T.\widehat{\mu}_g=\{\widehat{\mu}_g(t_1),\ldots,\widehat{\mu}_g(t_m)\}^{\mathsf{T}}.

Let Σ^g\widehat{\Sigma}_g denote the estimated covariance matrix of the limiting process ng(μ^g−μg)\sqrt{n_g}(\widehat{\mu}_g-\mu_g). For the empirical and pre-smoothed empirical barycenters, this covariance matrix can be estimated from the sample covariance of the individual-level empirical quantile functions; for the MCB estimator, it can be estimated using a non-parametric bootstrap.

  1. Estimate the difference vector as

Δ^=μ^2−μ^1={Δ^(t1),…,Δ^(tm)}T.\widehat{\Delta}=\widehat{\mu}_2-\widehat{\mu}_1=\left\{\widehat{\Delta}(t_1),\ldots,\widehat{\Delta}(t_m)\right\}^{\mathsf{T}}.

Assuming the two groups are independent, estimate the covariance matrix of the limiting process n(Δ^−Δ)\sqrt{n}(\widehat{\Delta}-\Delta) by

Σ^Δ=Σ^1π^1+Σ^2π^2,\widehat{\Sigma}_{\Delta}=\frac{\widehat{\Sigma}_1}{\widehat{\pi}_1}+\frac{\widehat{\Sigma}_2}{\widehat{\pi}_2},

where π^g=ng/n\widehat{\pi}_g=n_g/n.

  1. Compute the observed test statistics (Table 1). First define the pointwise standardized differences

Z^Δ,j=nΔ^(tj)Σ^Δ,jj,j=1,…,m,\widehat{Z}_{\Delta,j}=\frac{\sqrt{n}\widehat{\Delta}(t_j)}{\sqrt{\widehat{\Sigma}_{\Delta,jj}}},\qquad j=1,\ldots,m,

where Σ^Δ,jj\widehat{\Sigma}_{\Delta,jj} is the jjth diagonal element of Σ^Δ\widehat{\Sigma}_{\Delta}.

The supremum statistic is computed as

T∞=max⁡1≤j≤m∣Z^Δ,j∣.T_{\infty}=\max_{1\leq j\leq m}\left|\widehat{Z}_{\Delta,j}\right|.

and the integrated squared statistic is approximated by

Tint=∑j=1mwjZ^Δ,j2,T_{\mathrm{int}}=\sum_{j=1}^{m}w_j\widehat{Z}_{\Delta,j}^{2},

where wjw_j are numerical integration weights, depending on the chosen grid.

The Hotelling-type statistic is computed using a regularized inverse of Σ^Δ\widehat{\Sigma}_{\Delta}:

TM=nΔ^TΣ^Δ,K−1Δ^.T_M=n\widehat{\Delta}^{\mathsf{T}}\widehat{\Sigma}_{\Delta,K}^{-1}\widehat{\Delta}.

Here Σ^Δ,K−1\widehat{\boldsymbol{\Sigma}}_{\Delta,K}^{-1} is obtained by retaining the first KK empirical functional principal components of Σ^Δ\widehat{\boldsymbol{\Sigma}}_{\Delta}, chosen to explain a prespecified proportion of the total variance.

  1. Approximate the null distributions. For T∞T_{\infty} and TintT_{\mathrm{int}}, the null distribution is obtained by simulating mean-zero Gaussian difference processes with covariance Σ^Δ\widehat{\boldsymbol{\Sigma}}_{\Delta}:

Gb∼N(0,Σ^Δ),b=1,…,B.G_b \sim N(0,\widehat{\boldsymbol{\Sigma}}_{\Delta}), \qquad b=1,\ldots,B.

Each simulated process is then standardized pointwise:

Zb,j=Gb,jΣ^Δ,jj,j=1,…,m.Z_{b,j}=\frac{G_{b,j}}{\sqrt{\widehat{\boldsymbol{\Sigma}}_{\Delta,jj}}}, \qquad j=1,\ldots,m.

The statistics T∞T_{\infty} and TintT_{\mathrm{int}} are recomputed for each Zb:=(Zb(t1),…,Zb(tJ))T\mathbf{Z}_b := (Z_b(t_1),\ldots,Z_b(t_J))^{\mathsf{T}} to estimate the null distribution for each test statistic. The Monte Carlo pp-value is the proportion of simulated null statistics greater than or equal to the observed statistic.

For the Hotelling-type statistic, the null distribution can be approximated using the simulated process or the asymptotic reference χ2\chi^2-distribution [21]

TM(K)∼χK2.T_M^{(K)} \sim\chi_K^2.

where KK is the number of retained empirical principal components.

These procedures are implemented in an accompanying R package mcbarycenter, which provides all three barycenter estimators, the corresponding difference-in-quantiles estimators, and the global testing procedures described above. A vignette illustrating the use of these methods is provided in Appendix § 9.

Remark 3 (Multiplier bootstrap). In step 2 of the procedure above, if estimation of the covariance matrix Σ^g\widehat{\boldsymbol{\Sigma}}_g for g∈{1,2}g \in\{1,2\} is infeasible due to the density of the grid or for other reasons, one could use the Gaussian multiplier bootstrap to approximate the null distribution of the test statistics T∞T_{\infty} and TintT_{\mathrm{int}} [8].

Simulation studies

We conduct two simulation studies. The first examines how low sequencing depth, as well as differential sequencing depth between groups, can affect estimation and inference for Wasserstein barycenters. This study is intended to show performance of each estimator—the empirical Wasserstein barycenter, pre-smoothed empirical barycenter, or MCB estimator—under different sequencing depth settings. The second simulation study evaluates the proposed hypothesis testing procedure, focusing on the validity of each test statistic under the null and its power under a range of alternative scenarios.

In both simulation studies, we estimate each barycenter quantile function on a grid of quantile levels {0.01,0.02,…,0.99}\{0.01, 0.02, \ldots, 0.99\}. We compare the following estimators:

  1. Empirical Wasserstein barycenter.

  1. Pre-smoothed empirical Wasserstein barycenter. Each individual distribution is pre-smoothed using kernel density estimation with a Gaussian kernel and a bandwidth selected by Silverman’s rule of thumb [32].

  1. Correctly specified MCB estimator. A Beta distribution specification is used to fit the binomial mixing distributions, which matches the Dirichlet process specification of the data generating process.

  1. Flexible but misspecified MCB estimator. The binomial mixing distributions are fit using splines [15]. The spline basis consists of natural splines with 5 degrees of freedom, augmented with point mass basis functions at 0 and 1, and fit using a regularization parameter of 0.01.

The correctly specified MCB estimator is included to evaluate performance when the structural assumptions required by the MCB estimator are satisfied. The spline-based MCB estimator is included to evaluate performance in a more realistic setting in which the mixing distributions may be misspecified.

Simulation Study 1: impact of varying sequencing depth on estimation bias

Setup

In the first simulation study, we examine how sequencing depth affects estimation and pointwise inference for the group-specific barycenter quantile functions and the quantile difference map. We consider sequencing depth settings roughly matching scenarios observed in the HIV-1 prevention studies described in the Introduction (Figure 1). The settings considered in the simulation are summarized in Table 2.

Sequencing depth scenarioSequencing depth (Group 1)Sequencing depth (Group 2)
Low balanced2 to 152 to 15
Low differential2 to 152 to 7
High balanced2 to 3002 to 300
High differential2 to 3002 to 150

Table 2. Sequencing depth ranges for Simulation Study 1

For each sequencing depth setting, we consider two sequence feature scenarios:

  1. Null scenario: The two groups have equal Wasserstein barycenters. In both groups, each individual-level distribution is generated from a Dirichlet process with base measure Normal⁡(0,1)\operatorname{Normal}(0,1) and concentration parameter 2.

  1. Alternative scenario: The two groups have unequal Wasserstein barycenters. In Group 1, each individual-level distribution is generated from a Dirichlet process with base measure Normal⁡(0,1)\operatorname{Normal}(0,1) and concentration parameter 2. In Group 2, each individual-level distribution is generated from a Dirichlet process with concentration parameter 2 and a bimodal Normal mixture base measure, with 80% weight on Normal⁡(0,1)\operatorname{Normal}(0,1) and 20% weight on Normal⁡(6,0.252)\operatorname{Normal}(6,0.25^{2}).

For each simulation setting, we generate observations for 50 individuals in each group using a two-stage mechanism. (Additional simulation studies with 20 and 100 individuals per group are included in Appendix § 12.) First, for each individual, we sample an individual-level distribution according to the sequence feature scenario described above. Second, we sample that individual’s sequencing depth from a discrete uniform distribution over the corresponding range in Table 2, and then sample the corresponding number of observations from the individual’s distribution. Combining the four sequencing depth settings with the two sequence feature scenarios yields eight total simulation settings. The true group-specific Wasserstein barycenter quantile functions, and the resulting quantile difference map, are approximated by computing the empirical barycenter of one large dataset with 100,000 individuals per group and 1,000 sequences per individual. Performance is assessed in terms of bias, estimated standard error, and pointwise 95% confidence interval coverage. Each simulation setting was repeated over 500 independently generated datasets, and estimator performance was summarized across these replicates.

Results

Summary results for the bias, mean estimated standard error, and confidence interval coverage of the estimators of Δ(t)\Delta(t) are shown in Figure 5 under the null and Figure 6 under the alternative. In each figure, results are averaged separately over the central quantiles (0.06–0.94) and the tail quantiles (0.01–0.05 and 0.95–0.99).

Summary of estimation of the difference in quantiles under the null scenario for Simulation Study 1

Figure 5. Summary of estimation of the difference in quantiles Δ(t)\Delta(t) under the null scenario for Simulation Study 1. Results are shown across four sequencing depth settings: low balanced, low differential, high balanced, and high differential sequencing depth. For each setting, we compare the empirical barycenter, labeled “Empirical”; the pre-smoothed empirical barycenter, labeled “Pre-smoothed empirical”; the correctly specified MCB estimator, labeled “MCB (correct)”; and the misspecified spline-based MCB estimator, labeled “MCB (incorrect)”. Performance is summarized by average absolute bias, mean estimated standard error, and pointwise confidence interval coverage for Δ(t)\Delta(t), averaged separately over the central quantiles (0.06–0.94) and tail quantiles (0.01–0.05 and 0.95–0.99). The dotted horizontal line in the coverage panels indicates the nominal 95% coverage level.

Bar charts summarizing bias, mean standard error, and confidence interval coverage across low balanced, low differential, high balanced, and high differential sequencing depth settings

Figure 6. Summary of estimator of the difference in quantiles Δ(t)\Delta(t) under the alternative scenario for Simulation Study 1. Results are shown across four sequencing depth settings: low balanced, low differential, high balanced, and high differential sequencing depth. For each setting, we compare the empirical barycenter, labeled “Empirical”; the pre-smoothed empirical barycenter, labeled “Pre-smoothed empirical”; the correctly specified MCB estimator, labeled “MCB (correct)”; and the misspecified spline-based MCB estimator, labeled “MCB (incorrect)”. Performance is summarized by average absolute bias, mean estimated standard error, and pointwise confidence interval coverage for Δ(t)\Delta(t), averaged separately over the central quantiles (0.06–0.94) and tail quantiles (0.01–0.05 and 0.95–0.99). The dotted horizontal line in the coverage panels indicates the nominal 95% coverage level.

We first consider the low, balanced sequencing depth setting. Under the null scenario, all estimators perform similarly well, with negligible bias and near-nominal confidence interval coverage despite the low sequencing depths. This is expected because, under the null and with the same sequencing depth distribution in the two groups, the bias in the estimated group-specific barycenters is the same across groups. As a result, when the two estimated barycenter quantile functions are differenced, this bias cancels, producing accurate estimates of Δ(t)=0\Delta(t) = 0 across quantile levels.

Under the alternative scenario, however, differences among the estimators become apparent. Both empirical barycenters exhibit larger bias than the MCB estimators, with the discrepancy most pronounced in the tail quantiles. The pre-smoothed empirical barycenter reduces bias relative to the empirical barycenter, but its coverage remains poor in the tails and it does not perform as well as the MCB estimators. The mean absolute bias for the tail quantiles was 0.454 for the empirical barycenter and 0.345 for the pre-smoothed empirical barycenter, compared with 0.030 and 0.064 for the correctly specified and spline-based MCB estimators, respectively. Confidence interval coverage in the tails was 71% for the empirical barycenter and 65% for the pre-smoothed empirical barycenter, compared with 93% and 91% for the correctly specified and spline-based MCB estimators, respectively.

Next, we consider the low, differential sequencing depth setting. Under the null scenario, the empirical and pre-smoothed empirical barycenters perform reasonably well for the central quantiles, with low bias and near-nominal confidence interval coverage. However, their performance deteriorates in the tails, where both estimators exhibit larger bias and reduced coverage. This pattern is more pronounced under the alternative scenario: the empirical and pre-smoothed empirical barycenters show increased bias even in the central quantiles, with the largest bias and poorest coverage occurring in the tails. These results indicate that when sequencing depth is low, systematic differences in sequencing depth between groups can distort estimation and inference on Δ(t)\Delta(t), particularly at the tail quantile levels. In contrast, both MCB estimators reduce bias and improve coverage. The correctly specified MCB estimator has the smallest bias and coverage closest to the nominal level. The flexible spline-based MCB estimator also performs well with respect to both bias and coverage, suggesting that, in this simulation setting, the spline-based specification is sufficiently flexible to approximate the relevant mixing distributions used to estimate the barycenter. Under the alternative scenario, the mean absolute bias in the tail quantiles was 0.902 for the empirical barycenter and 0.462 for the pre-smoothed empirical barycenter, compared with 0.038 and 0.152 for the correctly specified and spline-based MCB estimators, respectively; the corresponding confidence interval coverage was 31%, 71%, 95%, and 89%.

Finally, we consider the high sequencing depth settings. In these settings, the empirical barycenter performs substantially better than in the low sequencing depth settings and is generally similar to the MCB estimators for both central and tail quantiles. This improvement is expected because, with larger sequencing depths, each individual’s empirical quantile function provides a better approximation to the corresponding latent quantile function. Although some individuals still have low sequencing depths in these settings, they do not appear to have enough influence to substantially distort the empirical barycenter, particularly in the central part of the distribution. In the alternative scenario, the MCB estimators show slightly lower tail bias and coverage closer to the nominal level compared to the empirical barycenter. The pre-smoothed empirical barycenter has worse performance in the higher sequencing depth settings, especially in the tails. This shows that the smoothing step may introduce additional bias when the empirical distributions are already well-estimated.

More detailed simulation results are provided in Supplementary Figures B.2–B.7. These figures show bias, mean estimated standard error, and confidence interval coverage for both Δ(t)\Delta(t) and the group-specific barycenter quantile functions, μg(t)\mu_g(t), across all quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Additional simulations with 20 and 100 individuals per group showed similar patterns and are presented in Appendix § 12.§ 1. Notably, the MCB estimators continued to perform well even with 20 individuals per group.

Simulation Study 2: hypothesis testing

Setup

In the second simulation study, we evaluate the proposed hypothesis testing procedure across a range of two sample scenarios. The goal is to assess Type I error under null scenarios with equal Wasserstein barycenters and power under alternatives with different types of barycenter differences.

As in Simulation Study 1, we generate individual-level distributions from Dirichlet processes. We consider four broad classes of scenarios, described in high-level below with full details provided in Supplementary Table B.2:

  1. Null: The two groups have identical Wasserstein barycenters. We consider three null settings with different common barycenter shapes: normal, symmetric bimodal, and non-symmetric bimodal.

For the alternative scenarios (2)–(4), Group 1 is generated from a Dirichlet process with a Normal(0, 1) base distribution. The Group 2 data-generating distribution is chosen so that the resulting barycenter differs from the Group 1 barycenter in the following ways:

  1. Uniform differences: The Group 2 barycenter differs from the Group 1 barycenter by an approximately constant shift across quantile levels. We examine three shift magnitudes, labeled “Uniform shift = 0.1, 0.2, 0.3.”

  1. Upper-tail differences: The Group 2 barycenter differs from the Group 1 barycenter primarily in the upper tail. We examine upper-tail shifts of increasing magnitude, labeled “Upper-tail shift = 1, 2, 3.”

  1. Shape differences: The Group 2 barycenter differs from the Group 1 barycenter in overall shape. These alternatives are generated using a bimodal base distribution for Group 2, with increasing component dispersion and consequently greater overlap between the two modes, labeled “Bimodal = 0.2, 0.4, 0.6.”

The group-specific Wasserstein barycenters for all scenarios are shown visually in Supplementary Figure B.1. To focus on the behavior of the test statistics apart from the low sequencing depth bias studied in Simulation Study 1, the main simulation is conducted under the high, balanced sequencing quencing depth setting described in Table 2. (Results for the other sequencing depth settings are provided in Appendix § 12.§ 2.) For each scenario, we simulate 100 individuals per group and apply each proposed test statistic (T∞T_\infty, TintT_{\mathrm{int}}, and TMT_M) to test the null hypothesis of equal Wasserstein barycenters at significance level α=0.05\alpha= 0.05. We repeat this procedure over 200 simulated datasets and estimate the rejection probability as the proportion of datasets in which the null hypothesis is rejected. This rejection probability estimates the Type I error under the null scenarios and power under the alternative scenarios. Under the alternative scenarios, we compare the power of the proposed distributional tests with a mean-based analysis, in which the sequence features are averaged within each individual and the groups are compared using an unequal-variance two-sample tt-test.

Results

Results are shown in Figure 7. Under the null settings, all barycenter estimators and all three test statistics had rejection probabilities close to the nominal 5% level.

Rejection probabilities across the three null scenarios and nine alternative scenarios for each estimator and test statistic

Figure 7. Rejection probabilities across the three null scenarios and nine alternative scenarios for each estimator and test statistic. The four barycenter estimators considered are the empirical barycenter (“Empirical”), the pre-smoothed empirical barycenter (“Pre-smoothed empirical”), the correctly specified MCB estimator (“MCB (correct)”), and the misspecified spline-based MCB estimator (“MCB (incorrect)”). The mean test is based on averaging the sequence features within each individual and applying Welch’s two-sample t-test to the resulting individual-level averages. The second row presents enlarged views of the three null scenarios, with the y-axis restricted to 0–0.10. The dashed horizontal line indicates the nominal significance level of 0.05.

For the uniform difference alternatives, the three test statistics performed similarly, with rejection probabilities increasing as the size of the mean shift increased. In these scenarios, the correctly specified and spline-based MCB estimators tended to have slightly higher power compared to the empirical barycenters. The distributional tests also generally had similar power to the mean-based analysis. This is expected because the difference between the two group barycenters is approximately constant across quantile levels, so averaging the sequence features within each individual does not remove the main signal. For example, in the mean shift = 0.20.2 setting, the rejection probabilities for the supremum test were 70.0%, 66.0%, 75.5%, and 78.0% for the empirical barycenter, pre-smoothed empirical barycenter, correctly specified MCB estimator, and spline-based MCB estimator, respectively, compared with 68.0% for the mean-based analysis.

For the upper-tail alternative scenarios, the supremum test statistic generally had the largest rejection probabilities among the three proposed test statistics, especially as the magnitude of the upper-tail shift increased. The correctly specified and spline-based MCB estimators tended to have the highest power, while the empirical and pre-smoothed empirical barycenters performed similarly. In this setting, the distributional tests had substantially higher power than the mean-based analysis. This is because the group difference is concentrated in the upper tail, and averaging the sequence features within each individual attenuates this localized signal. For example, in the upper-tail shift = 2 setting, the rejection probabilities for the supremum test were 45.0%, 43.5%, 61.0%, and 59.0% for the empirical barycenter, pre-smoothed empirical barycenter, correctly specified MCB estimator, and spline-based MCB estimator, respectively, compared with 23.0% for the mean-based analysis.

Finally, for the shape difference alternatives, the Hotelling-type test and supremum test had the largest rejection probabilities, while the integrated squared test tended to have lower power. The Hotelling-type test was particularly powerful for the MCB estimators, consistent with the fact that this statistic accounts for covariance across quantile levels and can be more sensitive to structured departures from the null that occur across the quantile function. As in the previous settings, the correctly specified MCB estimator generally had the largest rejection probabilities. The mean-based analysis had little power in this setting because the two groups have similar average feature values despite having different barycenter shapes. For example, in the bimodal = 0.4 setting, the rejection probabilities for the supremum test were 72.5%, 83.5%, 85.0%, and 72.0% for the empirical barycenter, pre-smoothed empirical barycenter, correctly specified MCB estimator, and spline-based MCB estimator, respectively, compared with 3.5% for the mean-based analysis.

Recommendations from simulation studies

Simulation Study 1 provides guidance for choosing the barycenter estimator in these particular sequencing depth scenarios. In low sequencing depth settings, especially when sequencing depths differed between groups or tail behavior was of interest, the empirical barycenter performed poorly. In these settings, we recommend using an MCB estimator as the primary approach, provided that there are enough individuals to estimate the binomial mixtures. Although a correctly specified MCB estimator is not available in practice, the spline-configured MCB estimator substantially improved performance relative to the empirical barycenter and continued to perform well even with 20 individuals per group (Appendix § 12.§ 1).

In high sequencing depth settings, the empirical barycenter performed well across both balanced and differential sequencing depth scenarios and may be preferable as the primary estimator

because it is less model-dependent. Compared to the empirical barycenter, the spline-based MCB estimator had modestly lower bias particularly in the tails, but this advantage depends on how closely the mixture model specification matches the truth. We therefore recommend using the empirical barycenter as the primary analysis in high sequencing depth studies, with the spline-based MCB estimator potentially used in a sensitivity analysis. The pre-smoothed empirical barycenter showed mixed performance. Pre-smoothing sometimes reduced bias in low sequencing depth settings, but did not perform as well as the MCB estimators; in higher sequencing depth settings, it introduced additional bias.

Simulation Study 2 provides guidance for choosing among the three global test statistics. The integrated squared statistic TintT_{\mathrm{int}} performed similarly to the other statistics under uniform mean shifts, but had lower power for upper-tail and shape difference alternatives. The supremum statistic T∞T_{\infty} performed best for localized upper-tail differences, while the Hotelling-type statistic TMT_{M} performed well for shape differences. When there is no strong reason to prioritize a specific alternative, we recommend the supremum statistic T∞T_{\infty} as the default as it consistently performed well across the simulation settings.

Finally, Simulation Study 2 shows when the proposed distributional framework has the most power to detect group differences relative to a mean-based analysis. When group differences were approximately constant across quantile levels, the distributional tests had power similar to the mean-based test. In contrast, when differences were concentrated in the upper tail or reflected differences in barycenter shape, the distributional tests had significantly higher power because they retained information across the full quantile function.

Data applications

We apply our approach to the AMP HIV-1 prevention trials (HVTN 703/704) and a study on vaccine-elicited B cell receptor maturation. The goal of these applications is to illustrate how the proposed distributional analysis compares with a standard mean-based analysis and how the quantile difference map can be used to interpret differences between groups.

AMP HIV-1 prevention trials (HVTN 703/704)

The AMP trials tested whether the broadly neutralizing antibody VRC01 could prevent HIV-1 acquisition [9]. In these trials, HIV-negative participants were randomized to receive a placebo, low-dose VRC01 (10 mg/kg), or high-dose VRC01 (30 mg/kg) every 8 weeks. Overall efficacy was modest, with an estimated efficacy of 29.0% (95% CI: -4.0 to 51.6) for the high-dose arm and 7.2% (95% CI: -33.3 to 35.3) for the low-dose arm, pooled across both AMP trials. Among participants who acquired HIV-1 during follow-up, viral samples were deep-sequenced using PacBio sequencing technology to characterize within-host diversity in the HIV-1 Env protein [37]. Among participants who acquired HIV-1 during follow-up, sequencing data were available for 67 in the placebo arm and 105 in the pooled VRC01 arms. Previous analyses found that VRC01 had an estimated efficacy of 75.4% (95% CI: 45.5%, 88.9%) against viruses that were highly sensitive to VRC01 neutralization [9].

For each viral sequence, we considered three numeric features related to VRC01 susceptibility as previously considered in Juraska et al. [22]: (1) Hamming distance to a VRC01-sensitive reference sequence at pre-selected sites, (2) predicted IC80, and (3) epitope distance. Predicted IC80 is the sequence-predicted concentration of VRC01 required to inhibit viral infection by 80%, with larger values indicating greater predicted resistance to VRC01 neutralization. Epitope distance is a structure-informed measure of how different the VRC01-binding epitope in a given viral sequence is from epitopes in highly VRC01-sensitive reference sequences, with larger values indicating greater divergence from VRC01-sensitive viruses. Our goal was to compare these feature distributions between the placebo arm and the VRC01 arm (pooling both low-dose and high-dose arms). Because this analysis conditioned on HIV-1 infection, the comparison between arms should not be interpreted causally, despite randomization in the original trial [18]. As the primary analysis, we applied our framework using the empirical barycenter on the grid 0.01, 0.02, . . . , 0.99. We conducted a sensitivity analysis using the spline-configured MCB estimator with 5 degrees of freedom augmented with two point mass basis functions at 0 and 1. We tested for equality of barycenters using the supremum test statistic T∞T_{\infty}. For comparison, we also report a mean-based analysis, in which the features are first averaged within each individual and the groups are then compared using an unequal-variance two-sample tt-test.

Results for the three features are shown in Figure 8, and analogous results using the spline-configured MCB estimator are shown in Supplementary Figure B.8. In each row of Figure 8, the left-hand panels show the treatment arm-specific mean summaries and estimated barycenter quantile functions, while the right-hand panels show the corresponding estimated mean differences and quantile difference maps.

Three VRC01 susceptibility-associated features: Hamming distance, predicted IC80, and epitope distance

Figure 8. Using the empirical Wasserstein barycenter estimator, analysis of three VRC01 susceptibility-associated features among AMP participants who acquired the primary endpoint of HIV-1 infection: (A) Hamming distance to a VRC01-sensitive reference sequence at pre-selected sites, (B) predicted IC80, and (C) epitope distance. For each feature, the left panels show the arm-specific mean summaries and estimated empirical barycenter quantile functions for the placebo arm and the pooled VRC01 arms. The right panels show the corresponding VRC01-minus-placebo estimated mean difference and quantile difference map. Shaded bands indicate pointwise 95% confidence intervals. Reported pp-values correspond to the mean-based unequal-variance two-sample tt-test for the mean panels and the supremum test for equality of barycenters for the quantile panels.

The three features show different patterns of separation between the placebo arm and the pooled VRC01 arm. For Hamming distance at the pre-selected sites, the estimated placebo and VRC01 empirical barycenters are nearly indistinguishable. The estimated quantile difference is close to zero across the full range of quantile levels, and there is no evidence of a difference between arms using either the mean-based analysis (p=0.95p = 0.95) or the empirical barycenter-based analysis (p=0.93p = 0.93).

For predicted IC80, the VRC01 arm’s estimated barycenter quantile function is larger than that of the placebo arm across much of the distribution, with the separation most apparent among higher quantiles. Neither the mean-based analysis (p=0.13p = 0.13) nor the distributional analysis (p=0.12p = 0.12) provide evidence of a difference between arms. Nevertheless, the quantile difference map suggests that the estimated difference between the two arms is not well summarized by a uniform shift: the estimated difference is positive over most quantile levels but becomes larger in the upper tail. The sensitivity analysis using the spline-configured MCB estimator shows a similar but more pronounced upper-tail difference (p=0.04p = 0.04).

Finally, for epitope distance, the VRC01 arms have higher values than the placebo arm across nearly all quantile levels. Both the mean-based analysis and the empirical barycenter-based analysis show strong evidence of a difference between arms (p<0.001p < 0.001 for both comparisons). The estimated quantile difference map shows a relatively stable difference across most quantile levels, although it decreases at the extreme upper tail, where estimates are typically less stable. Thus, for the epitope distance feature, the distributional analysis supports the same conclusion as the mean-based analysis, while also showing that the result generally reflects uniform difference between the placebo and VRC01 barycenter distributions rather than a difference restricted to a specific portion of the distribution.

Vaccine-elicited B cell receptor maturation

Willis et al. [38] studied a germline-targeting HIV vaccine strategy designed to guide rare B cells toward making VRC01-class broadly neutralizing antibodies. This strategy aimed to induce the accumulation of somatic mutations in these B cells, promoting their maturation toward broadly neutralizing antibodies. The first vaccine, eOD-GT8 60mer (eOD), served as a germline-targeting prime to activate rare VRC01-class precursor B cells, while the second vaccine, core-g28v2 60mer (core), served as a heterologous boost intended to promote further maturation of those cells.

The study included two phase 1 trials: IAVI G002 in North America, which evaluated both the priming and boosting strategy, and IAVI G003 in Rwanda and South Africa, which evaluated the priming strategy only. In IAVI G002, participants were assigned to different vaccination schedules involving eOD and/or core, while G003 participants received two doses of eOD at weeks 0 and 8, as shown in Figure 1 of Willis et al. [38]. Samples were collected at multiple time points from each participant. Antigen-specific B cells were sorted from PBMC samples and analyzed by B-cell receptor (BCR) sequencing to characterize VRC01-class responses at the antibody-sequence level, allowing the researchers to measure response frequencies, heavy- and light-chain somatic hypermutation, and the accumulation of mutations associated with more mature VRC01-class broadly neutralizing antibodies. Willis et al. [38] compared six vaccination schedule–timepoint combinations, with results shown in Figure 5 of their paper. Labels give the PBMC sampling week followed by the immunogens administered at week 0, at weeks 0 and 8, or at weeks 0, 8, and 16: wk 8 eOD, wk 16 eOD→\toeOD, wk 16 eOD→\tocore, wk 24 eOD→\toeOD, wk 24 eOD→\tocore, and wk 24 eOD→\toeOD→\tocore. The descriptions of each group and their sample sizes are provided in Supplemental Table B.3.

We apply our framework to these data by analyzing the heavy-chain percent mutation feature for each sequence. For each group, we estimate the Wasserstein barycenter quantile function on the grid 0.01, . . . , 0.99. Because most groups have small participant sample sizes (<20< 20) but high sequencing depths, we use the empirical barycenter. We conduct one representative two-sample comparison: wk24 eOD→\tocore versus wk24 eOD→\toeOD→\tocore. We test the equality of barycenters using the supremum test statistic T∞T_{\infty}.

The results are shown in Figure 9. Panel (a) displays the distributional and mean-based summaries for all six groups. Estimated heavy-chain mutation levels increase over time across nearly all quantiles with the eOD→\tocore vaccine schedule showing the highest levels at both weeks 16 and 24 compared to the other vaccination regimens. The mean-based summaries show the same ordering across time and regimen. Panel (b) focuses on the comparison between wk24 eOD→\tocore and wk24 eOD→\toeOD→\tocore. The estimated barycenter difference, defined as wk24 eOD→\tocore minus wk24 eOD→\toeOD→\tocore, is 0.205% at the 0.01 quantile (95% CI: −0.696%, 1.105%), 1.034% at the median (95% CI: 0.225%, 1.842%), and 1.484% at the 0.99 quantile (95% CI: 0.565%, 2.403%). Thus, the estimated group difference is not uniform across the mutation distribution; instead, it becomes more pronounced among sequences with higher mutation levels. The supremum test rejects the null hypothesis of equal barycenters (p=0.001p = 0.001), providing strong evidence that the two groups differ in their mutation barycenter distributions. The corresponding mean-based analysis estimates an average difference of 0.837% (95% CI: 0.085%, 1.588%, p=0.03p = 0.03). In the original analysis reported by Willis et al. [38], which summarized each participant’s distribution using the participant-specific median, the difference between these groups was not found to be statistically significant.

BCR sequencing analysis of vaccine-elicited VRC01-class responses

Figure 9. BCR sequencing analysis of vaccine-elicited VRC01-class responses using heavy-chain percent mutation as the sequence-level feature. (a) Estimated group summaries for the six vaccination schedule–timepoint groups. The left panel shows the group mean of the participant-specific mean percent mutation values, and the right panel shows the corresponding empirical Wasserstein barycenter quantile functions. (b) Two-sample comparison of week 24 eOD→coreeOD\to\mathrm{core} versus week 24 eOD→eOD→coreeOD\to eOD\to\mathrm{core}. The left panel shows the estimated difference in participant-level mean percent mutation, and the right panel shows the estimated quantile difference map, defined as the week 24 eOD→coreeOD\to\mathrm{core} barycenter quantile function minus the week 24 eOD→eOD→coreeOD\to eOD\to\mathrm{core} barycenter quantile function. Vertical bars and shaded bands indicate pointwise 95% confidence intervals, and the dashed horizontal line marks zero difference. Reported pp-values correspond to the unequal-variance two-sample tt-test for the mean comparison and the supremum test for equality of Wasserstein barycenters for the quantile comparison.

Discussion

We proposed a framework for two-sample comparisons of sequence-derived numeric feature distributions from deep sequencing data. Rather than reducing each individual’s sequence set to a scalar summary, the approach treats the sequence-derived feature values for each individual as a distribution-valued outcome. Groups are summarized using Wasserstein barycenters, and group differences are described through quantile difference maps. This allows researchers to compare groups across the full within-host feature distribution and to distinguish uniform shifts from localized tail differences or differences in distributional shape. In contrast, mean-based analyses can identify average differences but may obscure where in the distribution those differences arise.

A key practical consideration is sequencing depth. When sequencing depth is low, an individual’s empirical distribution may poorly approximate the corresponding within-host feature distribution, which can bias estimation of the group barycenter, particularly in the tails. In our

simulations, the empirical barycenter performed poorly in low sequencing settings, especially when sequencing depths differed between groups. In such settings, the MCB estimator is preferable, provided that there are enough individuals to estimate the binomial mixture components. In higher sequencing depth settings, the empirical barycenter performed well, even when some individuals had low sequencing depths. This is consistent with the theoretical results of Zhou and Müller [41], which allow some units to have few observations when others have many. Thus, we recommend the empirical barycenter for high sequencing depth applications and the spline-configured MCB estimator for sparse settings. For settings that differ from those studied in this paper, simulations can be used to guide the choice of estimator.

The quantile grid in our implementation should also be chosen with the observed sequencing depths and scientific target of interest. Our simulations considered quantiles from 0.01 to 0.99, but less extreme grids, such as 0.2 to 0.8, may be reliable at lower sequencing depths. Conversely, inference farther into the tails requires greater sequencing depth and is more sensitive to estimator choice. Developing data-adaptive tools for selecting the quantile grid represents an interesting area for future research that could improve the usability of our framework and reduce reliance on manual choices.

Our presentation focused on the two independent sample setting. In many settings, the analysis might seek to adjust for covariates. Existing approaches for causal inference with distributional outcomes provide one path forward for estimating covariate-adjusted treatment effects on barycenter quantile functions ([27]). The empirical barycenter and pre-smoothed empirical barycenter can be incorporated into these approaches directly, whereas extending the MCB estimator to covariate-adjusted settings requires additional work. With discrete covariates, one could estimate covariate-specific barycenters and then marginalize over a target covariate distribution to obtain an adjusted average treatment effect. For continuous covariates, inverse probability weighting, as in Example 7.2 of Peng et al. [30], may provide a useful direction.

Several methodological extensions are also natural. The present work considered one-dimensional sequence features, but some sequence-derived summaries are multivariate and would require alternatives to quantile function representations. Longitudinal extensions would allow investigators to study how within-host feature distributions evolve over time and whether those trajectories differ between groups. Relatedly, paired or repeated-measures versions of the proposed tests would be useful when the same individuals are observed under multiple conditions or across multiple visits.

Acknowledgments

The authors thank the participants and investigators of HVTN 703/704 and IAVI G002/G003, and Craig Magaret for constructing the HVTN 703/704 trial datasets. The authors also thank Pamela Shaw, Thomas Richardson, Aaron Hudson, Lillian Cohn, Paul Edlefsen, Raabya Rossenkhan, and James Ludwig for their helpful discussions and insights. This research was supported by the National Institute of Allergy and Infectious Diseases of the National Institutes of Health under grants UM1 AI068635 and R37AI054165. The content is the sole responsibility of the authors and does not necessarily represent the official views of the National Institute of Allergy and Infectious Diseases and the National Institutes of Health.

Data availability

The HVTN 703/704 data will be posted on an HVTN public repository at Harvard Dataverse. The IAVI G002/G003 data are available at https://github.com/SchiefLab/G002-and-G003.

mcbarycenter R package

In this vignette, we describe the mcbarycenter R package, which can be used to implement the three tasks presented in the main body of this paper. The R package is available here.

devtools::install_github("jpspeng/mcbarycenter")

We discuss usage of the package in a general two-sample distributional setting. Specifically, suppose we have nn independent units, indexed by i=1,…,ni = 1, \ldots, n, each with an associated underlying distribution YiY_i. We do not observe each YiY_i directly. Instead, for each unit ii, we observe mim_i independent samples from YiY_i:

Yij∼Yi,j=1,…,mi.Y_{ij} \sim Y_i,\qquad j = 1,\ldots,m_i.

Additionally, each unit ii may have an associated group label Gi∈{1,2}G_i \in\{1,2\}, and we may want to compare units across groups.

In this vignette, we use the sparse dataset example sparse_dist_data data frame available in the package. We also use the dplyr package for data manipulation.

library(mcbarycenter)
library(dplyr)

Preliminaries

The dataset should include two columns: an ID column, which contains the individual ID, and a value column, which contains samples from the individual’s underlying distribution. In many functions, we specify the names of these columns using the arguments id_col and val_col.

The sample data also has a group column, which takes the values 1 or 2 and describes the groups that we wish to compare.

head(sparse_dist_data)
  group id value

1     1  1  0.20

2     1  1  0.20
3   1   1   0.20
4   1   2  -0.35
5   1   2  -0.12
6   1   2   0.08

We subset the data into the two groups:

sample_data1 <- sparse_dist_data %>% filter(group == 1)
sample_data2 <- sparse_dist_data %>% filter(group == 2)

We will also need to specify a grid to do our analysis. The functions default to the grid 0.01, ..., 0.99, but a more resolved grid could be of interest if the number of samples per distribution is higher.

Exploratory analysis

To begin, we may wish to visualize each individual’s empirical quantile function. This allows us to see general patterns in the raw data and identify individuals whose data look different from others.

To visualize the empirical quantile curve for each individual distribution, we can use the graph_individual_quantiles() function. This function computes empirical quantiles separately for each ID and then plots the resulting curves. The code below displays the empirical quantile functions for the first three ids.

graph_individual_quantiles(sample_data1 %>% filter(id %in% c(1, 2, 3)),
                           id_col = "id",
                           val_col = "value")

When interactive = TRUE, which is the default, the function returns an interactive plotly widget. The curves are visible by default, and clicking a line highlights the selected individual. Double-clicking resets the plot.

Output of the `graph_individual_quantiles()` function.

Figure A.1. Output of the graph_individual_quantiles() function.

In the figure above, we can see the individual quantile functions for the first three ids. As shown, individual 1 (sample size m1=3m_1 = 3) has a homogeneous sample, indicated by a flat empirical quantile function. Individual 2 (sample size m2=5m_2 = 5) has an extended right tail; that is, their empirical distribution has a small proportion of high values. Individual 3 (sample size m3=6m_3 = 6) has wide variability in their observed empirical distribution.

Task 1: Wasserstein barycenter estimation

We begin with the first analytic task: estimating the Wasserstein barycenter’s quantile function, equivalently the mean quantile function, for each group. We denote the Wasserstein barycenter quantile function for Group 1 as μ1(t)\mu_1(t) and that for Group 2 as μ2(t)\mu_2(t), for t∈(0,1)t \in(0,1).

Empirical Wasserstein barycenter. To estimate the empirical Wasserstein barycenter’s quantile function, we can use the empbary() function. This function computes empirical quantiles for each subject and then averages those quantiles pointwise. The main arguments are:

  • df: the input data frame containing the observed samples.

  • id_col: the name of the column identifying the individual or unit.

  • val_col: the name of the numeric column containing observations from each individual’s underlying distribution.

  • weight_col: an optional column containing id-level weights. If NULL, the empirical barycenter is unweighted.

  • quantile_grid: the grid of quantile levels at which the barycenter quantile function is estimated. The default is seq(0.01, 0.99, 0.01).

  • presmooth: whether to pre-smooth each individual’s empirical distribution before estimating quantiles. If TRUE, a Gaussian kernel density estimate is used to estimate each individual’s quantile function. The default is FALSE.

  • quantile_type: the interpolation rule passed to stats::quantile() through its type argument. The default is 1. This argument is ignored when presmooth = TRUE.

emp_res_grp1 <- empbary(
  df = sample_data1,
  id_col = "id",
  val_col = "value",
  quantile_grid = seq(0.01, 0.99, 0.01), # optional, defaulted to 0.01, 0.02, ..., 0.99
  quantile_type = 1 # optional, defaulted to quantile_type = 1
)

emp_res_grp2 <- empbary(
  df = sample_data2,
  id_col = "id",
  val_col = "value"
)

This function call returns an empbary_result object containing the estimated quantile curve in res. The res object contains estimates, standard error estimates, and 95% pointwise confidence intervals for each quantile level. The returned object also includes an estimated covariance matrix in cov and the standardized input data in data. The covariance matrix is estimated as the sample covariance matrix of the individual-level empirical quantile functions.

head(emp_res_grp1$res)

  quantile  estimate           se      ci_lo      ci_hi
1      0.01 -1.233814  0.05900223 -1.349456 -1.118172
2      0.02 -1.233814  0.05900223 -1.349456 -1.118172
3      0.03 -1.233814  0.05900223 -1.349456 -1.118172
4      0.04 -1.233814  0.05900223 -1.349456 -1.118172
5      0.05 -1.233814  0.05900223 -1.349456 -1.118172
6      0.06 -1.233814  0.05900223 -1.349456 -1.118172

Marginal-constructed barycenter. To estimate the marginal-constructed barycenter estimator, we can use the mcbary() function, which implements the procedure discussed in Peng et al. (2026). Briefly, the method transforms the problem of estimating the Wasserstein barycenter’s quantile function into the problem of estimating the mixing distributions of a sequence of binomial mixture data.

The main arguments include:

  • df: the input data frame containing the observed samples.

  • id_col: the name of the column identifying the individual or unit.

  • val_col: the name of the numeric column containing observations from each individual’s underlying distribution.

  • method: the mixture estimation method. Options include "spline", "npmle", and "beta".

  • x_grid: a user-specified threshold grid used to construct the binomial mixture problems.

  • cutpoints: an optional number of evenly spaced thresholds. Either x_grid or cutpoints must be supplied.

  • bootstrap_samples: the number of bootstrap resamples used for uncertainty estimation.

  • quantile_grid: the grid of quantile levels at which the barycenter’s quantile function is estimated.

  • use_midpoint: whether to use interval midpoints between adjacent thresholds when constructing the estimated distribution of the α\alpha-quantile. Defaulted to FALSE.

  • estimate_endpoints: whether to estimate endpoint intervals when constructing the estimated distribution of the α\alpha-quantile. Defaulted to FALSE.

  • use_isotonic_dist: whether to enforce monotonicity in the cumulative mixture curves across threshold values. Defaulted to FALSE.

  • use_isotonic_output: if TRUE, whether to enforce monotonicity in the final quantile function estimate. Defaulted to FALSE.

For the mixing distribution specification method = "spline", we can additionally specify the arguments pDegree, which sets the degrees of freedom of the natural spline basis used for estimation, and c0, which sets the penalty constant in the spline deconvolution procedure. We may also specify mass_at_endpoints, which, when set to TRUE, includes point masses at 0 and 1 in the spline specification. For the nonparametric maximum likelihood specification method = "npmle", we can additionally specify the argument backend, which can be either "mixsqp" (the default) or "REBayes"; the latter is typically faster, but requires a working installation of Mosek.

In the example below, we use the Beta mixture specification with 100 cutpoints and 20 bootstrap samples. The number of bootstrap samples is kept small for illustration.

mcb_res_grp1 <- mcbary(
  df = sample_data1,
  id_col = "id",
  val_col = "value",
  method = "beta",
  cutpoints = 100,
  use_midpoint = TRUE,
  estimate_endpoints = TRUE,
  bootstrap_samples = 20
)

mcb_res_grp2 <- mcbary(
df = sample_data2,

id_col = "id",

val_col = "value",

method = "beta",

cutpoints = 100,

use_midpoint = TRUE,

estimate_endpoints = TRUE,

bootstrap_samples = 20
)

The function returns an mcbary_result object. As with empbary(), the estimated quantile curve and uncertainty summaries are stored in res. The returned object also includes a bootstrap covariance matrix in cov, the estimated mixing distributions in mixtures, the chosen estimation method in method, and the standardized input data in `data.

head(mcb_res_grp1$res)
quantile  estimate estimate_bs         se      ci_lo      ci_hi  pct_ci_lo  pct_ci_hi
1            0.01 -2.425729   -2.548356 0.23763321  -2.891481  -1.959976  -2.949559  -2.189461
2            0.02 -2.118623   -2.159557 0.19366656  -2.498203  -1.739044  -2.559116  -1.883249
3            0.03 -1.959824   -1.994593 0.15997799  -2.273375  -1.646273  -2.325571  -1.783354
4            0.04 -1.836431   -1.867426 0.14085874  -2.112509  -1.560353  -2.145595  -1.643759
5            0.05 -1.734236   -1.750998 0.11389409  -1.957464  -1.511008  -2.012996  -1.570377
6            0.06 -1.645746   -1.654283 0.09297791  -1.827980  -1.463513  -1.902211  -1.505443

Graphing. To visualize these quantile functions, we can use the graph_quantiles() function. This function takes as input empbary_result objects, mcbary_result objects, or any data frame with the columns quantile and estimate. If confidence intervals are available, they can also be displayed using the columns ci_lo and ci_hi. We can include multiple objects in the function call, and the function will graph all of the results on the same plot.

The code below graphs the empirical barycenter and MCB estimator for each group.

graph_quantiles(
emp_grp1 = emp_res_grp1,

emp_grp2 = emp_res_grp2,

mcb_grp1 = mcb_res_grp1,

mcb_grp2 = mcb_res_grp2,

show_ci = TRUE # optional, defaults as TRUE
)
Empirical and marginal-constructed barycenter estimates for Groups 1 and 2

Figure A.2. Empirical and marginal-constructed barycenter estimates for Groups 1 and 2.

We can also visualize the intermediate estimated mixing distributions using graph_mixtures().

This can be useful for checking the intermediate objects used to construct the MCB estimator.

graph_mixtures(mcb_res_grp1)
Estimated mixing distributions from the mcbary() procedure for Group 1.

Figure A.3. Estimated mixing distributions from the mcbary() procedure for Group 1.

Task 2: Difference in quantiles

The second analytic task is to estimate the difference between the barycenter quantile functions for the two groups. We define the difference in quantiles as

Δ(t)=μ2(t)−μ1(t),t∈(0,1).\Delta(t) = \mu_{2}(t) - \mu_{1}(t), \qquad t \in(0,1).

Our goal is to estimate Δ(t)\Delta(t) over a grid of quantile levels.

To compute this difference, we can use the quantile_diff() function. This function takes two estimated barycenter objects and returns the pointwise difference between their estimated quantile functions, along with their estimated standard errors and 95% confidence intervals. In the example below, we compute the difference between the two MCB estimates.

quantile_diff_res <- quantile_diff(mcb_res_grp2, mcb_res_grp1)
head(quantile_diff_res)
  quantile  estimate        se       ci_lo     ci_hi
1      0.01 0.3247018 0.3151857 -0.29305083 0.9424544
2      0.02 0.2118083 0.2306834 -0.24032298 0.6639395
3      0.03 0.1946393 0.1952820 -0.18810627 0.5773850
4      0.04 0.1840011 0.1755934 -0.16015565 0.5281578
5      0.05 0.1762177 0.1376481 -0.09356763 0.4460030
6      0.06 0.1695939 0.1168332 -0.05939498 0.3985828

We can graph the estimated difference curve using graph_quantiles().

graph_quantiles(mcb_difference = quantile_diff_res)
Estimated difference between the MCB barycenter quantile functions for Group 2 versus Group 1

Figure A.4. Estimated difference between the MCB barycenter quantile functions for Group 2 versus Group 1.

This plot shows how the estimated group difference varies across the distribution. Positive values indicate quantile levels at which the estimated Group 2 barycenter is larger than the estimated Group 1 barycenter, while negative values indicate quantile levels at which the estimated Group 1 barycenter is larger.

Task 3: Hypothesis testing

The third analytic task is to test whether the barycenter quantile functions differ between groups.

In this setting, the null hypothesis is that the two groups have the same Wasserstein barycenter over the unit interval:

H0:μ1(t)=μ2(t)for all t∈(0,1).H_0 : \mu_1(t) = \mu_2(t) \quad\text{for all } t \in(0,1).

Equivalently, in terms of the difference in quantiles,

H0:Δ(t)=0for all t∈(0,1).H_0 : \Delta(t) = 0 \quad\text{for all } t \in(0,1).

To carry out this test, we can use the equalbary_test() function. The function takes two estimated barycenter objects as input. These objects should be estimated on the same quantile grid; the hypothesis test is performed on this grid. The argument B specifies the number of resamples used to approximate the null distribution, and seed can be specified for reproducibility. For the Hotelling’s T2T^2-type test, we can specify the proportion of total variance to retain through the variance_explained argument, and the test uses the first KK empirical functional principal components needed to explain at least this proportion of the variance; the default is 0.95.

comparison <- equalbary_test(
  mcb_res_grp1,
  mcb_res_grp2,
  B = 1000,
  seed = 1
)

The output includes results for three test statistics: the supremum norm (in sublist $sup_norm), the integrated squared norm (in sublist $int_sq_norm), and the Hotelling’s T2T^2-type test statistic (in sublist $hotelling). Each of these test statistics are described in Table 1. Each sublist contains the two-sided p-value for the test (pval), the observed test statistic (T_obs), and the simulated null (T_sim) test statistics. In the code below, we extract the p-values from using each of the three test statistics.

comparison$sup_norm$pval
comparison$int_sq_norm$pval
comparison$hotelling$pval

[1] 0.07

[1] 0.005

[1] 0.1442255

Supplemental tables and figures

Study (Years)RegionInterventionStudy PopulationNHIV+HIV+ with sequence data available
Phambili HVTN 503 (2007–2012)South AfricaMRKAd5 HIV-1 gag/pol/nef subtype B vaccineSexually active HIV-1 seronegative men and women8016243
AMP HVTN 703/704 (2016–2022)Sub-Saharan Africa (HVTN 703); Americas, Switzerland (HVTN 704)VRC01 broadly neutralizing monoclonal antibodyWomen age 18–35 (HVTN 703); MSM and transgender persons age 18–50 (HVTN 704)4,623174172
Imbokodo HVTN 705 (2017–2022)Sub-Saharan AfricaAd26.Mos4.HIV plus clade C gp140 mosaic vaccine regimenWomen age 18–352,637119116

Table B.1. Example HIV-1 prevention trials with viral sequencing data, with number of study participants, diagnosed HIV-1 infections, and HIV+ individuals with sequencing data.

Scenario nameGroup 1 configurationGroup 2 configuration
Null: normalN(0,1)N(0, 1)N(0,1)N(0, 1)
Null: symmetric bimodal50% N(−1.5,0.5)N(-1.5, 0.5) + 50% N(1.5,0.5)N(1.5, 0.5)50% N(−1.5,0.5)N(-1.5, 0.5) + 50% N(1.5,0.5)N(1.5, 0.5)
Null: non-symmetric bimodal70% N(−1,0.5)N(-1, 0.5) + 30% N(2,0.5)N(2, 0.5)70% N(−1,0.5)N(-1, 0.5) + 30% N(2,0.5)N(2, 0.5)
Mean shift = 0.1N(0,1)N(0, 1)N(0.1,1)N(0.1, 1)
Mean shift = 0.2N(0,1)N(0, 1)N(0.2,1)N(0.2, 1)
Mean shift = 0.3N(0,1)N(0, 1)N(0.3,1)N(0.3, 1)
Upper-tail shift = 1N(0,1)N(0, 1)95% N(0,1)N(0, 1) + 5% N(1,0.25)N(1, 0.25)
Upper-tail shift = 2N(0,1)N(0, 1)95% N(0,1)N(0, 1) + 5% N(2,0.25)N(2, 0.25)
Upper-tail shift = 3N(0,1)N(0, 1)95% N(0,1)N(0, 1) + 5% N(3,0.25)N(3, 0.25)
Bimodal: 0.2N(0,1)N(0, 1)50% N(−1,0.2)N(-1, 0.2) + 50% N(1,0.2)N(1, 0.2)
Bimodal: 0.4N(0,1)N(0, 1)50% N(−1,0.4)N(-1, 0.4) + 50% N(1,0.4)N(1, 0.4)
Bimodal: 0.6N(0,1)N(0, 1)50% N(−1,0.6)N(-1, 0.6) + 50% N(1,0.6)N(1, 0.6)

Table B.2. Base measure configurations for the Dirichlet processes used in Simulation Study 2. All Dirichlet processes were configured with a concentration parameter of 2.

Wasserstein barycenter quantile functions for Group 1 and Group 2

Figure B.1. Wasserstein barycenter quantile functions for Group 1 (solid gray) and Group 2 (dotted green) for the conditions studied in Simulation Study 2.

Bias of the estimated quantile difference map across null and alternative sequence feature scenarios and sequencing depth settings

Figure B.2. Bias of the estimated quantile difference map Δ^(t)\widehat{\Delta}(t) in Simulation Study 1. Results are shown under the null and alternative sequence feature scenarios, across sequencing depth settings: low balanced, low differential, high balanced, and high differential. Each curve shows the bias of Δ^(t)\widehat{\Delta}(t) across quantile levels t∈0.01,0.02,…,0.99t \in0.01, 0.02, \ldots, 0.99. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Mean estimated standard error across quantile levels for null and alternative sequence feature scenarios

Figure B.3. Mean estimated standard error of the estimated quantile difference map Δ^(t)\widehat{\Delta}(t) in Simulation Study 1. Results are shown under the null and alternative sequence feature scenarios, across sequencing depth settings: low balanced, low differential, high balanced, and high differential. Each curve shows the mean estimated standard error of Δ^(t)\widehat{\Delta}(t) across quantile levels t∈0.01,0.02,…,0.99t \in0.01, 0.02, \ldots, 0.99. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

95% confidence interval coverage of the estimated quantile difference map

Figure B.4. 95% confidence interval coverage of the estimated quantile difference map Δ^(t)\widehat{\Delta}(t) in Simulation Study 1. Results are shown under the null and alternative sequence feature scenarios, across sequencing depth settings: low balanced, low differential, high balanced, and high differential. Each curve shows the 95% confidence interval coverage of Δ^(t)\widehat{\Delta}(t) across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Bias of the estimated group-specific Wasserstein barycenter quantile functions

Figure B.5. Bias of the estimated group-specific Wasserstein barycenter quantile functions in Simulation Study 1. Results are shown for two data-generating settings: individual-level distributions generated from a Dirichlet process with a Normal(0, 1) base measure, and individual-level distributions generated from a Dirichlet process with a bimodal Normal mixture base measure. Results are shown across sequencing depths of 2–7, 2–15, 2–150, and 2–300. Each curve shows the bias of the estimated barycenter quantile function across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Mean estimated standard error of the estimated group-specific Wasserstein barycenter quantile functions in Simulation Study 1

Figure B.6. Mean estimated standard error of the estimated group-specific Wasserstein barycenter quantile functions in Simulation Study 1. Results are shown for two data-generating settings: individual-level distributions generated from a Dirichlet process with a Normal(0, 1) base measure, and individual-level distributions generated from a Dirichlet process with a bimodal Normal mixture base measure. Results are shown across sequencing depths of 2–7, 2–15, 2–150, and 2–300. Each curve shows the mean estimated standard error of the estimated barycenter quantile function across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

95% confidence interval coverage of estimated group-specific Wasserstein barycenter quantile functions

Figure B.7. 95% confidence interval coverage of the estimated group-specific Wasserstein barycenter quantile functions in Simulation Study 1. Results are shown for two data-generating settings: individual-level distributions generated from a Dirichlet process with a Normal(0, 1) base measure, and individual-level distributions generated from a Dirichlet process with a bimodal Normal mixture base measure. Results are shown across sequencing depths of 2–7, 2–15, 2–150, and 2–300. Each curve shows the 95% confidence interval coverage of the estimated barycenter quantile function across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Three-panel comparison of Hamming distance, predicted IC80, and epitope distance between placebo and VRC01 arms

Figure B.8. Using the spline-configured MCB estimator, analysis of three VRC01 susceptibility-associated features among AMP breakthrough infections: (A) Hamming distance to a VRC01-sensitive reference sequence at pre-selected sites, (B) predicted IC80, and (C) epitope distance. For each feature, the left panels show the arm-specific mean summaries and estimated barycenter quantile functions for the placebo arm and the pooled VRC01 arms. The right panels show the corresponding VRC01-minus-placebo estimated mean difference and quantile difference map. Shaded bands indicate pointwise 95% confidence intervals. Reported pp-values correspond to the mean-based unequal-variance two-sample tt-test for the mean panels and the supremum test for equality of barycenters for the quantile panels.

Analysis labelVaccination schedulePBMC sampleUnique participantsMedian sequences (IQR)
wk8 eODeOD at week 0Week 81634 (21.8, 61.2)
wk16 eOD→eODeOD at week 0; eOD at week 8Week 1624101.5 (53, 262.8)
wk16 eOD→coreeOD at week 0; core at week 8Week 1616121 (62.8, 318.5)
wk24 eOD→eODeOD at week 0; eOD at week 8Week 2413160 (53, 187)
wk24 eOD→coreeOD at week 0; core at week 8Week 2417265 (36, 494)
wk24 eOD→eOD→coreeOD at week 0; eOD at week 8; core at week 16Week 2413217 (143, 593)

Table B.3. BCR data application vaccination schedules, PBMC sampling timepoints, number of participants, and median (IQR) number of sequences per participant.

Conditions for pointwise and uniform convergence of the estimated barycenter quantile function

Throughout this appendix, we maintain the sampling assumptions described in § 3. For notational simplicity, we consider a single group and let Y1,…,YnY_1,\ldots,Y_n denote independent and identically distributed realizations of the distribution-valued random object YY. For each individual ii, we assume that the observed sequence-derived features Yi1,…,YimiY_{i1},\ldots,Y_{im_i} are i.i.d. draws from YiY_i, conditional on YiY_i. Let Y^iemp\widehat{Y}_i^{\mathrm{emp}} denote the observed empirical distribution for individual ii and Y^ism\widehat{Y}_i^{\mathrm{sm}} denote the pre-smoothed empirical distribution. Suppose that our target is the Wasserstein barycenter B[Y]\mathbb{B}[Y], as its quantile function FB[Y]−(t)F_{\mathbb{B}[Y]}^{-}(t). In the following, we establish conditions for pointwise asymptotic normality and weak convergence to a Gaussian process for the quantile functions of the empirical barycenter μ^emp(t):=1n∑i=1nFY^iemp−(t)\widehat{\mu}^{\mathrm{emp}}(t) := \frac{1}{n}\sum_{i=1}^{n}F_{\widehat{Y}_i^{\mathrm{emp}}}^{-}(t), the pre-smoothed empirical barycenter μ^sm(t):=1n∑i=1nFY^ism−(t)\widehat{\mu}^{\mathrm{sm}}(t) := \frac{1}{n}\sum_{i=1}^{n}F_{\widehat{Y}_i^{\mathrm{sm}}}^{-}(t), and the marginal-constructed barycenter μ^mcb(t)\widehat{\mu}^{\mathrm{mcb}}(t) [30].

Empirical and pre-smoothed empirical barycenters

We first establish high-level conditions for pointwise asymptotic normality and weak convergence to a Gaussian process of the empirical and pre-smoothed empirical Wasserstein barycenters. The two estimators can be handled using the same argument, because both are obtained by first estimating each individual-level quantile function and then averaging these estimated quantile functions across individuals.

Let

Qi(t):=FYi−(t),μ(t):=FB[Y]−(t)=E{Qi(t)},t∈(0,1),Q_i(t) := F_{Y_i}^{-}(t), \qquad\mu(t) := F_{\mathbb{B}[Y]}^{-}(t) = \mathbb{E}\{Q_i(t)\}, \qquad t \in(0,1),

where the last equality follows from the one-dimensional representation of the Wasserstein barycenter. For a∈{emp,sm}a \in\{\mathrm{emp},\mathrm{sm}\}, define

Q^ia(t):=FY^ia−(t),μ^a(t):=1n∑i=1nQ^ia(t),t∈(0,1),\widehat{Q}_i^a(t) := F_{\widehat{Y}_i^a}^{-}(t), \qquad\widehat{\mu}^a(t) := \frac{1}{n}\sum_{i=1}^{n}\widehat{Q}_i^a(t), \qquad t \in(0,1),

where a=empa = \mathrm{emp} corresponds to the empirical distribution Y^iemp\widehat{Y}_i^{\mathrm{emp}}, and a=sma = \mathrm{sm} corresponds to the pre-smoothed empirical distribution Y^ism\widehat{Y}_i^{\mathrm{sm}}. Define the average first-stage quantile estimation error

Rna(t):=1n∑i=1n{Q^ia(t)−Qi(t)}.R_n^a(t) := \frac{1}{n}\sum_{i=1}^{n}\left\{\widehat{Q}_i^a(t)-Q_i(t)\right\}.

The role of the following conditions is to require that the first-stage error from estimating the individual-level quantile functions is asymptotically negligible relative to the n−1/2n^{-1/2} variation from averaging the latent quantile functions QiQ_i. These conditions may hold for either the empirical or pre-smoothed estimator when the within-individual sample sizes grow sufficiently rapidly as the number of subjects increases, and any smoothing bias vanishes sufficiently quickly. In practice, this means that, for a given dataset, the within-individual sample sizes must be sufficiently large relative to the number of subjects.

Proposition 1 (Pointwise asymptotic normality of empirical and pre-smoothed empirical barycenters). Fix t∈(0,1)t \in(0,1) and let a∈{emp,sm}a \in\{\mathrm{emp},\mathrm{sm}\}. Suppose that the following conditions hold:

  1. The individual-level quantile value has finite, nonzero variance:

0<Var⁡{Qi(t)}<∞.0 < \operatorname{Var}\{Q_i(t)\} < \infty.
  1. The average first-stage quantile estimation error is negligible at the n−1/2n^{-1/2} scale:

nRna(t)=n[1n∑i=1n{Q^ia(t)−Qi(t)}]=op(1).\sqrt{n}R_n^a(t)=\sqrt{n}\left[\frac{1}{n}\sum_{i=1}^{n}\left\{\widehat{Q}_i^a(t)-Q_i(t)\right\}\right]=o_p(1).

Then

n{μ^a(t)−μ(t)}⇝N(0,Var⁡{Qi(t)}).\sqrt{n}\{\widehat{\mu}^a(t)-\mu(t)\}\rightsquigarrow N\left(0,\operatorname{Var}\{Q_i(t)\}\right).

Equivalently, both μ^emp(t)\widehat{\mu}^{\mathrm{emp}}(t) and μ^sm(t)\widehat{\mu}^{\mathrm{sm}}(t) are pointwise asymptotically normal whenever their corresponding first-stage estimation errors satisfy Condition 2.

Proof. For either a=empa=\mathrm{emp} or a=sma=\mathrm{sm}, add and subtract the average of the latent individual-level quantile functions:

μ^a(t)−μ(t)=1n∑i=1n{Qi(t)−μ(t)}+1n∑i=1n{Q^ia(t)−Qi(t)}.\widehat{\mu}^{a}(t)-\mu(t)=\frac{1}{n}\sum_{i=1}^{n}\{Q_i(t)-\mu(t)\} +\frac{1}{n}\sum_{i=1}^{n}\{\widehat{Q}_i^{a}(t)-Q_i(t)\}.

Since μ(t)=E{Qi(t)}\mu(t)=\mathbb{E}\{Q_i(t)\}, the first term satisfies

n[1n∑i=1n{Qi(t)−μ(t)}]⇝N(0,Var⁡{Qi(t)})\sqrt{n}\left[\frac{1}{n}\sum_{i=1}^{n}\{Q_i(t)-\mu(t)\}\right]\rightsquigarrow N\left(0,\operatorname{Var}\{Q_i(t)\}\right)

by the central limit theorem. By Condition 2, the second term is op(1)o_p(1) after multiplication by n\sqrt{n}. The result follows by Slutsky’s theorem.

Proposition 2 (Weak convergence of empirical and pre-smoothed empirical barycenters). Let T=[ϵ,1−ϵ]\mathcal{T}=[\epsilon,1-\epsilon] for some ϵ∈(0,1/2)\epsilon\in(0,1/2), and let a∈{emp,sm}a\in\{\mathrm{emp},\mathrm{sm}\}. Define the latent empirical process

Zn(t):=1n∑i=1n{Qi(t)−EQi(t)},t∈T.Z_n(t):=\frac{1}{\sqrt{n}}\sum_{i=1}^{n}\{Q_i(t)-\mathbb{E}Q_i(t)\},\qquad t\in\mathcal{T}.

Suppose that the following conditions hold:

  1. The latent quantile functions QiQ_i are i.i.d. random elements of ℓ∞(T)\ell^\infty(\mathcal{T}) with finite second moment in sup-norm:

E[∥Qi∥∞,T2]<∞,∥Qi∥∞,T:=sup⁡t∈T∣Qi(t)∣.\mathbb{E}\left[\|Q_i\|_{\infty,\mathcal{T}}^2\right]<\infty,\qquad\|Q_i\|_{\infty,\mathcal{T}}:=\sup_{t\in\mathcal{T}}|Q_i(t)|.
  1. The latent empirical process ZnZ_n is stochastically equicontinuous over T\mathcal{T}. That is, for every ϵ>0\epsilon>0,

lim⁡δ↓0lim sup⁡n→∞P(sup⁡s,t∈T∣s−t∣<δ∣Zn(s)−Zn(t)∣>ϵ)=0.\lim_{\delta\downarrow0}\limsup_{n\to\infty}P\left(\sup_{\substack{s,t\in\mathcal{T}\\ |s-t|<\delta}}|Z_n(s)-Z_n(t)|>\epsilon\right)=0.
  1. The average first-stage quantile estimation error is negligible uniformly over T\mathcal{T}:

n∥Rna∥∞,T=op(1).\sqrt{n}\|R_n^a\|_{\infty,\mathcal{T}}=o_p(1).

Then

n{μ^a−μ}⇝Gin ℓ∞(T),\sqrt{n}\{\hat{\mu}^{a}-\mu\}\rightsquigarrow G \quad\text{in } \ell^\infty(\mathcal{T}),

where GG is a tight mean-zero Gaussian process with covariance kernel

Σ(s,t)=Cov⁡{Qi(s),Qi(t)},s,t∈T.\Sigma(s,t)=\operatorname{Cov}\{Q_i(s),Q_i(t)\}, \quad s,t\in\mathcal{T}.

Proof. For either a=empa=\mathrm{emp} or a=sma=\mathrm{sm},

μ^a−μ=1n∑i=1n{Qi−μ}+Rna=1n∑i=1n{Qi−E(Qi)}+Rna.\begin{aligned} \hat{\mu}^{a}-\mu=\frac{1}{n}\sum_{i=1}^{n}\{Q_i-\mu\}+R_n^{a} \\ &=\frac{1}{n}\sum_{i=1}^{n}\{Q_i-\mathbb{E}(Q_i)\}+R_n^{a}. \end{aligned}

Multiplying by n\sqrt{n} gives

n{μ^a−μ}=Zn+nRna.\sqrt{n}\{\hat{\mu}^{a}-\mu\}=Z_n+\sqrt{n}R_n^{a}.

For any finite collection t1,…,tk∈Tt_1,\ldots,t_k\in\mathcal{T}, the random vectors

(Qi(t1)−EQi(t1),…,Qi(tk)−EQi(tk))⊤(Q_i(t_1)-\mathbb{E}Q_i(t_1),\ldots,Q_i(t_k)-\mathbb{E}Q_i(t_k))^\top

are i.i.d. mean-zero random vectors with finite second moments by Condition 1. Therefore, by the multivariate central limit theorem,

(Zn(t1),…,Zn(tk))⊤⇝Nk(0,Σ),(Z_n(t_1),\ldots,Z_n(t_k))^\top\rightsquigarrow N_k(0,\Sigma),

where

Σjℓ=Cov⁡{Qi(tj),Qi(tℓ)},1≤j,ℓ≤k.\Sigma_{j\ell}=\operatorname{Cov}\{Q_i(t_j),Q_i(t_\ell)\}, \quad1\leq j,\ell\leq k.

For each fixed collection t1,…,tk∈Tt_1,\ldots,t_k\in\mathcal{T}, (Zn(t1),…,Zn(tk))⊤(Z_n(t_1),\ldots,Z_n(t_k))^\top converges to a mean-zero multivariate Gaussian vector with covariance matrix {Σ(tj,tℓ)}j,ℓ=1k\{\Sigma(t_j,t_\ell)\}_{j,\ell=1}^{k}.

Condition 2 gives stochastic equicontinuity of ZnZ_n over T\mathcal{T}. Under the usual asymptotic measurability conditions for empirical processes, finite-dimensional convergence together with stochastic equicontinuity yields

Zn⇝Gin ℓ∞(T),Z_n \rightsquigarrow G \quad\text{in } \ell^\infty(\mathcal{T}),

where GG is a tight mean-zero Gaussian process with covariance kernel Σ\Sigma [36 Theorem 18.14].

By Condition 3,

n∥Rna∥∞,T=op(1).\sqrt{n}\lVert R_n^a\rVert_{\infty,\mathcal{T}} = o_p(1).

Therefore,

n{μ^a−μ}=Zn+op(1)\sqrt{n}\{\widehat{\mu}^a-\mu\}=Z_n+o_p(1)

in ℓ∞(T)\ell^\infty(\mathcal{T}). The result follows by Slutsky’s theorem in ℓ∞(T)\ell^\infty(\mathcal{T}) [36 Theorem 18.10].

Remark 4 (Interpretation of the first-stage negligibility conditions). The empirical and pre-smoothed empirical barycenters differ only through the first-stage estimate Q^ia\widehat{Q}_i^a of the latent quantile function QiQ_i. The propositions above therefore separate the asymptotic variation into two parts: the between-individual variation in the latent quantile functions, and the within-individual first-stage estimation error. For the latter to be asymptotically negligible at the n−1/2n^{-1/2} scale, the within-individual sample sizes must increase sufficiently rapidly with the number of subjects, with sufficiently small smoothing bias if applicable. Under these conditions, the first-stage estimation error does not contribute to the first-order limiting distribution. In practice, these conditions require sufficiently large within-individual sample sizes relative to the number of subjects and may therefore be unrealistic in sparse sequencing settings. When these conditions are not satisfied, particularly in the tails, the first-stage estimation error may remain non-negligible, potentially introducing bias and preventing root-nn consistent estimation of the target barycenter quantile function.

Marginal-constructed barycenter

We now state high-level conditions for pointwise asymptotic normality and weak convergence of the marginal-constructed barycenter estimator. The key idea is to estimate the distribution of the latent individual-level quantiles indirectly, through binomial mixture models for latent CDF values.

For each individual, let Qi(t)=FYi−1(t)Q_i(t)=F_{Y_i}^{-1}(t) denote the latent individual-level quantile function.

Fix y∈Iy \in\mathcal{I}, where I⊆R\mathcal{I} \subseteq\mathbb{R} denotes the support of the sequence-derived feature. The latent CDF value at this threshold is Ui(y)=FYi(y)U_i(y)=F_{Y_i}(y), which is the probability that a draw from the iith latent distribution is less than or equal to yy. Although Ui(y)U_i(y) is not observed directly, the observed sample Yi1,…,YimiY_{i1},\ldots,Y_{im_i} provides the count Ci(y)=∑j=1mi1{Yij≤y}C_i(y)=\sum_{j=1}^{m_i}1\{Y_{ij}\leq y\}. Conditional on mim_i and Ui(y)U_i(y),

Ci(y)∣mi,Ui(y)∼Bin⁡{mi,Ui(y)}.C_i(y)\mid m_i,U_i(y)\sim\operatorname{Bin}\{m_i,U_i(y)\}.

Thus, for each fixed threshold yy, the observed counts follow a binomial mixture model whose mixing distribution is the distribution of Ui(y)U_i(y) across individuals. We denote this mixing distribution by

G(y,u):=P{Ui(y)≤u}=P{FYi(y)≤u},u∈[0,1].G(y,u):=P\{U_i(y)\leq u\}=P\{F_{Y_i}(y)\leq u\},\qquad u\in[0,1].

The connection to barycenter estimation comes from translating statements about latent quantiles into statements about latent CDF values. For a fixed quantile level t∈(0,1)t\in(0,1), let Ht(y)=P{Qi(t)≤y}H_t(y)=P\{Q_i(t)\leq y\} denote the distribution function of the latent tt-quantiles across individuals. Since the event Qi(t)≤yQ_i(t)\leq y is equivalent to the event FYi(y)≥tF_{Y_i}(y)\geq t, we have Ht(y)=1−G(y,t−)H_t(y)=1-G(y,t-), where G(y,t−):=lim⁡u↑tG(y,u)G(y,t-):=\lim_{u\uparrow t}G(y,u). Therefore, the barycenter quantile function satisfies

μ(t)=E{Qi(t)}=∫Iy dHt(y)=−∫Iy dG(y,t−).\mu(t)=E\{Q_i(t)\}=\int_{\mathcal{I}}y\,dH_t(y)=-\int_{\mathcal{I}}y\,dG(y,t-).

The marginal-constructed barycenter estimator replaces G(y,⋅)G(y,\cdot) by an estimator G^n(y,⋅)\widehat{G}_n(y,\cdot) obtained from the binomial mixture model. Define H^n,t(y):=1−G^n(y,t−)\widehat{H}_{n,t}(y):=1-\widehat{G}_n(y,t-) and

μ^mcb(t):=∫Iy dH^n,t(y).\widehat{\mu}^{\mathrm{mcb}}(t):=\int_{\mathcal{I}}y\,d\widehat{H}_{n,t}(y).

In the following, Oi=(mi,Yi1,…,Yimi)O_i=(m_i,Y_{i1},\ldots,Y_{im_i}) denotes the observed data for individual ii. The following propositions state high-level conditions under which μ^mcb\widehat{\mu}^{\mathrm{mcb}} is asymptotically normal pointwise and converges weakly as a process. The proofs follow from arguments in Peng et al. [30].

Proposition 3 (Pointwise asymptotic normality of the marginal-constructed barycenter). Fix $t\in

(0,1)(0,1). Suppose that the following conditions hold:

  1. The feature support is bounded, I=[a,b]⊂R\mathcal{I}=[a,b]\subset\mathbb{R} with ∣a∣,∣b∣<∞|a|,|b|<\infty. With probability tending to one, y↦H^n,t(y)y\mapsto\widehat{H}_{n,t}(y) is a cumulative distribution function on I\mathcal{I}.

  1. The estimator H^n,t\widehat{H}_{n,t} admits the integrated asymptotic linear expansion

n{H^n,t(y)−Ht(y)}=1n∑i=1nψt(Oi;y)+rn,t(y),y∈I,\sqrt{n}\left\{\widehat{H}_{n,t}(y)-H_t(y)\right\}=\frac{1}{\sqrt{n}}\sum_{i=1}^{n}\psi_t(O_i;y)+r_{n,t}(y),\qquad y\in\mathcal{I},

where E{ψt(Oi;y)}=0\mathbb{E}\{\psi_t(O_i;y)\}=0 for each fixed yy,

E[∫I∣ψt(Oi;y)∣ dy]<∞,\mathbb{E}\left[\int_{\mathcal{I}}|\psi_t(O_i;y)|\,\mathrm{d}y\right]<\infty,

and

∫I∣rn,t(y)∣ dy=op(1).\int_{\mathcal{I}}|r_{n,t}(y)|\,\mathrm{d}y=o_p(1).
  1. Define the integrated influence function

ϕmcb(Oi;t):=−∫Iψt(Oi;y) dy.\phi^{\mathrm{mcb}}(O_i;t):=-\int_{\mathcal{I}}\psi_t(O_i;y)\,\mathrm{d}y.

Assume that

0<Var⁡{ϕmcb(Oi;t)}=σmcb2(t)<∞.0<\operatorname{Var}\left\{\phi^{\mathrm{mcb}}(O_i;t)\right\}=\sigma^2_{\mathrm{mcb}}(t)<\infty.

Then

n{μ^mcb(t)−μ(t)}=1n∑i=1nϕmcb(Oi;t)+op(1),\sqrt{n}\left\{\widehat{\mu}^{\mathrm{mcb}}(t)-\mu(t)\right\}=\frac{1}{\sqrt{n}}\sum_{i=1}^{n}\phi^{\mathrm{mcb}}(O_i;t)+o_p(1),

and hence

n{μ^mcb(t)−μ(t)}⟶dN(0,σmcb2(t)).\sqrt{n}\left\{\widehat{\mu}^{\mathrm{mcb}}(t)-\mu(t)\right\}\overset{d}{\longrightarrow}N\left(0,\sigma^2_{\mathrm{mcb}}(t)\right).

Proof. See Peng et al. [30].

Proposition 4 (Weak convergence of the marginal-constructed barycenter). Let T=[ϵ,1−ϵ]\mathcal{T}=[\epsilon,1-\epsilon] for some ϵ∈(0,1/2)\epsilon\in(0,1/2). Suppose that the following conditions hold:

  1. The feature support is bounded, I=[a,b]⊂R\mathcal{I}=[a,b]\subset\mathbb{R} with ∣a∣,∣b∣<∞|a|,|b|<\infty. With probability tending to one, y↦H^n,t(y)y\mapsto\widehat{H}_{n,t}(y) is a cumulative distribution function on I\mathcal{I} uniformly over t∈Tt\in\mathcal{T}.

  1. Uniformly over t∈Tt\in\mathcal{T}, the estimator H^n,t\widehat{H}_{n,t} admits the asymptotic linear expansion

n{H^n,t(y)−Ht(y)}=1n∑i=1nψt(Oi;y)+rn,t(y),y∈I,\sqrt{n}\left\{\widehat{H}_{n,t}(y)-H_t(y)\right\}=\frac{1}{\sqrt{n}}\sum_{i=1}^{n}\psi_t(O_i;y)+r_{n,t}(y),\qquad y\in\mathcal{I},

where E{ψt(Oi;y)}=0\mathbb{E}\{\psi_t(O_i;y)\}=0 for all t∈Tt\in\mathcal{T} and y∈Iy\in\mathcal{I}, and

sup⁡t∈T∫I∣rn,t(y)∣ dy=op(1).\sup_{t\in\mathcal{T}}\int_{\mathcal{I}}|r_{n,t}(y)|\,\mathrm{d}y=o_p(1).
  1. For each t∈Tt\in\mathcal{T}, define

ϕmcb(Oi;t):=−∫Iψt(Oi;y) dy.\phi^{\mathrm{mcb}}(O_i;t):=-\int_{\mathcal{I}}\psi_t(O_i;y)\,\mathrm{d}y.

The class of functions Fmcb:={O↦ϕmcb(O;t):t∈T}\mathcal{F}_{\mathrm{mcb}}:=\{O\mapsto\phi^{\mathrm{mcb}}(O;t):t\in\mathcal{T}\} is PP-Donsker.

Then

n{μ^mcb−μ}⇝Gmcbin ℓ∞(T),\sqrt{n}\left\{\widehat{\mu}^{\mathrm{mcb}}-\mu\right\}\rightsquigarrow\mathbb{G}_{\mathrm{mcb}}\quad\text{in }\ell^\infty(\mathcal{T}),

where Gmcb\mathbb{G}_{\mathrm{mcb}} is a tight mean-zero Gaussian process with covariance kernel

Σmcb(s,t)=E[ϕmcb(Oi;s)ϕmcb(Oi;t)],s,t∈T.\Sigma_{\mathrm{mcb}}(s,t)=\mathbb{E}\left[\phi^{\mathrm{mcb}}(O_i;s)\phi^{\mathrm{mcb}}(O_i;t)\right],\qquad s,t\in\mathcal{T}.

Proof. See Peng et al. [30].

Additional simulation results

Simulation Study 1

In addition to 50 individuals per group, we conducted Simulation Study 1 with 20 and 100 individuals per group. Results are shown below.

20 individuals per group

Null scenario summary results

Summary bar plots of bias, mean standard error, and confidence interval coverage across sequencing depth settings, quantile regions, and estimators

Figure D.1. Summary of estimation of the difference in quantiles Δ(t)\Delta(t) under the null scenario for Simulation Study 1 with 20 individuals per group. Results are shown across four sequencing depth settings: low balanced, low differential, high balanced, and high differential sequencing depth. For each setting, we compare the empirical Wasserstein barycenter, pre-smoothed empirical barycenter, correctly specified MCB estimator, and misspecified spline-based MCB estimator. Performance is summarized by average absolute bias, mean estimated standard error, and pointwise confidence interval coverage for Δ(t)\Delta(t), averaged separately over the central quantiles (0.06–0.94) and tail quantiles (0.01–0.05 and 0.95–0.99). The dotted horizontal line in the coverage panels indicates the nominal 95% coverage level.

Alternative scenario summary results

Summary bar charts of bias, mean standard error, and confidence interval coverage across sequencing depth settings and quantile groups

Figure D.2. Summary of estimation of the difference in quantiles Δ(t)\Delta(t) under the alternative scenario for Simulation Study 1 with 20 individuals per group. Results are shown across four sequencing depth settings: low balanced, low differential, high balanced, and high differential sequencing depth. For each setting, we compare the empirical Wasserstein barycenter, pre-smoothed empirical barycenter, correctly specified MCB estimator, and misspecified spline-based MCB estimator. Performance is summarized by average absolute bias, mean estimated standard error, and pointwise confidence interval coverage for Δ(t)\Delta(t), averaged separately over the central quantiles (0.06–0.94) and tail quantiles (0.01–0.05 and 0.95–0.99). The dotted horizontal line in the coverage panels indicates the nominal 95% coverage level.

Quantile difference map $\Delta(t)$: pointwise bias

Figure D.3. Bias of the estimated quantile difference map Δ^(t)\widehat{\Delta}(t) in Simulation Study 1 with 20 individuals per group. Results are shown under the null and alternative sequence feature scenarios, across sequencing depth scenarios: low balanced, low differential, high balanced, and high differential. Each curve shows the bias of Δ^(t)\widehat{\Delta}(t) across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Additional simulation results

Quantile difference map $\Delta(t)$: pointwise mean estimated standard error

Figure D.4. Mean estimated standard error of the estimated quantile difference map Δ^(t)\widehat{\Delta}(t) in Simulation Study 1 with 20 individuals per group. Results are shown under the null and alternative sequence feature scenarios, across sequencing depth scenarios: low balanced, low differential, high balanced, and high differential. Each curve shows the mean estimated standard error of Δ^(t)\widehat{\Delta}(t) across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Quantile difference map Δ(t)\Delta(t): pointwise confidence coverage

Pointwise confidence interval coverage of the quantile difference map across null and alternative scenarios and sequencing depth scenarios

Figure D.5. 95% confidence interval coverage of the estimated quantile difference map Δ^(t)\widehat{\Delta}(t) in Simulation Study 1 with 20 individuals per group. Results are shown under the null and alternative sequence feature scenarios, across sequencing depth scenarios: low balanced, low differential, high balanced, and high differential. Each curve shows the 95% confidence interval coverage of Δ^(t)\widehat{\Delta}(t) across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Group-specific barycenter $\mu_g(t)$: pointwise bias

Figure D.6. Bias of the estimated group-specific Wasserstein barycenter quantile functions in Simulation Study 1 with 20 individuals per group. Results are shown for two data-generating settings: individual-level distributions generated from a Dirichlet process with a Normal(0, 1) base measure, and individual-level distributions generated from a Dirichlet process with a bimodal Normal mixture base measure. Results are shown across sequencing depths of 2–7, 2–15, 2–150, and 2–300. Each curve shows the bias of the estimated barycenter quantile function across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Mean estimated standard error of the estimated group-specific Wasserstein barycenter quantile functions

Figure D.7. Mean estimated standard error of the estimated group-specific Wasserstein barycenter quantile functions in Simulation Study 1 with 20 individuals per group. Results are shown for two data-generating settings: individual-level distributions generated from a Dirichlet process with a Normal(0, 1) base measure, and individual-level distributions generated from a Dirichlet process with a bimodal Normal mixture base measure. Results are shown across sequencing depths of 2–7, 2–15, 2–150, and 2–300. Each curve shows the mean estimated standard error of the estimated barycenter quantile function across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Group-specific barycenter $\mu_g(t)$: pointwise confidence interval coverage

Figure D.8. 95% confidence interval coverage of the estimated group-specific Wasserstein barycenter quantile functions in Simulation Study 1 with 20 individuals per group. Results are shown for two data-generating settings: individual-level distributions generated from a Dirichlet process with a Normal(0, 1) base measure, and individual-level distributions generated from a Dirichlet process with a bimodal Normal mixture base measure. Results are shown across sequencing depths of 2–7, 2–15, 2–150, and 2–300. Each curve shows the 95% confidence interval coverage of the estimated barycenter quantile function across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

100 individuals per group

Null scenario summary results

Summary of estimation of the difference in quantiles under the null scenario

Figure D.9. Summary of estimation of the difference in quantiles Δ(t)\Delta(t) under the null scenario for Simulation Study 1 with 100 individuals per group. Results are shown across four sequencing depth settings: low balanced, low differential, high balanced, and high differential sequencing depth. For each setting, we compare the empirical Wasserstein barycenter, pre-smoothed empirical barycenter, correctly specified MCB estimator, and misspecified spline-based MCB estimator. Performance is summarized by average absolute bias, mean estimated standard error, and pointwise confidence interval coverage for Δ(t)\Delta(t), averaged separately over the central quantiles (0.06–0.94) and tail quantiles (0.01–0.05 and 0.95–0.99). The dotted horizontal line in the coverage panels indicates the nominal 95% coverage level.

Alternative scenario summary results

Summary bar charts with panels for Low (balanced), Low (differential), High (balanced), and High (differential); rows labelled Bias, Mean SE, and CI Coverage; x-axis categories Central quantiles and Tail quantiles; legend: Estimator, Empirical, Pre-smoothed empirical, MCB (correct), MCB (incorrect)

Figure D.10. Summary of estimation of the difference in quantiles Δ(t)\Delta(t) under the alternative scenario for Simulation Study 1 with 100 individuals per group. Results are shown across four sequencing depth settings: low balanced, low differential, high balanced, and high differential sequencing depth. For each setting, we compare the empirical Wasserstein barycenter, pre-smoothed empirical barycenter, correctly specified MCB estimator, and misspecified spline-based MCB estimator. Performance is summarized by average absolute bias, mean estimated standard error, and pointwise confidence interval coverage for Δ(t)\Delta(t), averaged separately over the central quantiles (0.06–0.94) and tail quantiles (0.01–0.05 and 0.95–0.99). The dotted horizontal line in the coverage panels indicates the nominal 95% coverage level.

Quantile difference map $\Delta(t)$: pointwise bias

Figure D.11. Bias of the estimated quantile difference map Δ^(t)\widehat{\Delta}(t) in Simulation Study 1 with 100 individuals per group. Results are shown under the null and alternative sequence feature scenarios, across sequencing depth scenarios: low balanced, low differential, high balanced, and high differential. Each curve shows the bias of Δ^(t)\widehat{\Delta}(t) across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Quantile difference map $\Delta(t)$: pointwise mean estimated standard error

Figure D.12. Quantile difference map Δ(t)\Delta(t): pointwise mean estimated standard error. Mean estimated standard error of the estimated quantile difference map Δ^(t)\widehat{\Delta}(t) in Simulation Study 1 with 100 individuals per group. Results are shown under the null and alternative sequence feature scenarios, across sequencing depth scenarios: low balanced, low differential, high balanced, and high differential. Each curve shows the mean estimated standard error of Δ^(t)\widehat{\Delta}(t) across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Quantile difference map $\Delta(t)$: pointwise confidence coverage

Figure D.13. 95% confidence interval coverage of the estimated quantile difference map Δ^(t)\widehat{\Delta}(t) in Simulation Study 1 with 100 individuals per group. Results are shown under the null and alternative sequence feature scenarios, across sequencing depth scenarios: low balanced, low differential, high balanced, and high differential. Each curve shows the 95% confidence interval coverage of Δ^(t)\widehat{\Delta}(t) across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Group-specific barycenter $\mu_g(t)$: pointwise bias

Figure D.14. Bias of the estimated group-specific Wasserstein barycenter quantile functions in Simulation Study 1 with 100 individuals per group. Results are shown for two data-generating settings: individual-level distributions generated from a Dirichlet process with a Normal(0, 1) base measure, and individual-level distributions generated from a Dirichlet process with a bimodal Normal mixture base measure. Results are shown across sequencing depths of 2–7, 2–15, 2–150, and 2–300. Each curve shows the bias of the estimated barycenter quantile function across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Group-specific barycenter $\mu_g(t)$: pointwise mean estimated standard error

Figure D.15. Mean estimated standard error of the estimated group-specific Wasserstein barycenter quantile functions in Simulation Study 1 with 100 individuals per group. Results are shown for two data-generating settings: individual-level distributions generated from a Dirichlet process with a Normal(0, 1) base measure, and individual-level distributions generated from a Dirichlet process with a bimodal Normal mixture base measure. Results are shown across sequencing depths of 2–7, 2–15, 2–150, and 2–300. Each curve shows the mean estimated standard error of the estimated barycenter quantile function across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Group-specific barycenter $\mu_g(t)$: pointwise confidence interval coverage; Dirichlet N(0,1) and Dirichlet bimodal settings across sequencing depths 2–7, 2–15, 2–150, and 2–300; estimators: Empirical, Pre-smoothed empirical, MCB (correct), and MCB (incorrect)

Figure D.16. 95% confidence interval coverage of the estimated group-specific Wasserstein barycenter quantile functions in Simulation Study 1 with 100 individuals per group. Results are shown for two data-generating settings: individual-level distributions generated from a Dirichlet process with a Normal⁡(0,1)\operatorname{Normal}(0, 1) base measure, and individual-level distributions generated from a Dirichlet process with a bimodal Normal mixture base measure. Results are shown across sequencing depths of 2–7, 2–15, 2–150, and 2–300. Each curve shows the 95% confidence interval coverage of the estimated barycenter quantile function across quantile levels t∈{0.01,0.02,…,0.99}t \in\{0.01, 0.02, \ldots, 0.99\}. Estimators include the empirical Wasserstein barycenter, the pre-smoothed empirical Wasserstein barycenter, the correctly specified MCB estimator, and the misspecified spline-based MCB estimator.

Simulation Study 2

In the main text, Simulation Study 2 was presented under the high balanced sequencing depth scenario. Here, we provide the corresponding results under the remaining sequencing depth scenarios: low balanced, low differential, and high differential. Results are shown below.

Low balanced

Rejection probabilities across the three null scenarios and nine alternative scenarios for each estimator and test statistic, under low balanced sequencing depth

Figure D.17. Rejection probabilities across the three null scenarios and nine alternative scenarios for each estimator and test statistic, under low balanced sequencing depth. The four barycenter estimators considered are the empirical barycenter (“Empirical”), the pre-smoothed empirical barycenter (“Pre-smoothed empirical”), the correctly specified MCB estimator (“MCB (correct)”), and the misspecified spline-based MCB estimator (“MCB (incorrect)”). The mean test is based on averaging the sequence features within each individual and applying Welch’s two-sample t-test to the resulting individual-level averages. The second row presents enlarged views of the three null scenarios, with the y-axis restricted to 0–0.10. The dashed horizontal line indicates the nominal significance level of 0.05.

Low differential

Rejection probabilities across the three null scenarios and nine alternative scenarios for each estimator and test statistic, under low differential sequencing depth

Figure D.18. Rejection probabilities across the three null scenarios and nine alternative scenarios for each estimator and test statistic, under low differential sequencing depth. The four barycenter estimators considered are the empirical barycenter (“Empirical”), the pre-smoothed empirical barycenter (“Pre-smoothed empirical”), the correctly specified MCB estimator (“MCB (correct)”), and the misspecified spline-based MCB estimator (“MCB (incorrect)”). The mean test is based on averaging the sequence features within each individual and applying Welch’s two-sample t-test to the resulting individual-level averages. The second row presents enlarged views of the three null scenarios, with the y-axis restricted to 0–0.10. Black triangles in the zoomed-in null panels indicate rejection probabilities exceeding 0.10. The dashed horizontal line indicates the nominal significance level of 0.05.

High differential

Rejection probabilities across the three null scenarios and nine alternative scenarios for each estimator and test statistic under high differential sequencing depth

Figure D.19. Rejection probabilities across the three null scenarios and nine alternative scenarios for each estimator and test statistic, under high differential sequencing depth. The four barycenter estimators considered are the empirical barycenter (“Empirical”), the pre-smoothed empirical barycenter (“Pre-smoothed empirical”), the correctly specified MCB estimator (“MCB (correct)”), and the misspecified spline-based MCB estimator (“MCB (incorrect)”). The mean test is based on averaging the sequence features within each individual and applying Welch’s two-sample t-test to the resulting individual-level averages. The second row presents enlarged views of the three null scenarios, with the y-axis restricted to 0–0.10. The dashed horizontal line indicates the nominal significance level of 0.05.

References

  1. [1]Agueh, M., & Carlier, G. (2011). Barycenters in the Wasserstein Space. SIAM Journal on Mathematical Analysis, 43(2).DOI
  2. [3]Bigot, J., Gouet, R., Klein, T., & López, A. (2018). Upper and lower risk bounds for estimating the Wasserstein barycenter of random measures on the real line. Electronic Journal of Statistics, 12(2).DOI
  3. [4]Bigot, J., & Klein, T. (2018). Characterization of barycenters in the Wasserstein space by averaging optimal transport maps. ESAIM: Probability and Statistics, 22.arxiv.org/abs/1212.2562
  4. [5]Bobkov, S., & Ledoux, M. (2019). One-dimensional empirical measures, order statistics, and Kantorovich transport distances. Memoirs of the American Mathematical Society, 261(1259).DOI
  5. [6]Boyd, S. D., & Crowe, J. E. (2016). Deep sequencing and human antibody repertoire analysis. Current Opinion in Immunology, 40.DOI
  6. [7]Chen, Y., Lin, Z., & Müller, H.-G. (2023). Wasserstein Regression. Journal of the American Statistical Association, 118(542).
  7. [8]Chernozhukov, V., Chetverikov, D., & Kato, K. (2013). Gaussian Approximations and Multiplier Bootstrap for Maxima of Sums of High-Dimensional Random Vectors. The Annals of Statistics, 41(6).
  8. [9]Corey, L., Gilbert, P. B., Juraska, M., Montefiori, D. C., Morris, L., Karuna, S. T., Edupuganti, S., Mgodi, N. M., deCamp, A. C., Rudnicki, E., Huang, Y., Gonzales, P., Cabello, R., Orrell, C., Lama, J. R., Laher, F., Lazarus, E. M., Sanchez, J., Frank, I., . . . Cohen, M. S. (2021). Two Randomized Trials of Neutralizing Antibodies to Prevent HIV-1 Acquisition. New England Journal of Medicine, 384(11).DOI
  9. [10]Curlin, M. E., Zioni, R., Hawes, S. E., Liu, Y., Deng, W., Gottlieb, G. S., Zhu, T., & Mullins, J. I. (2010). HIV-1 Envelope Subregion Length Variation during Disease Progression. PLOS Pathogens, 6(12).DOI
  10. [11]Dinis, J. M., Florek, K. R., Fatola, O. O., Moncla, L. H., Mutschler, J. P., Charlier, O. K., Meece, J. K., Belongia, E. A., & Friedrich, T. C. (2016). Deep Sequencing Reveals Potential Anti- genic Variants at Low Frequencies in Influenza A Virus-Infected Humans. Journal of Virology, 90(7).
  11. [12]Doksum, K. (1974). Empirical Probability Plots and Statistical Inference for Nonlinear Models in the Two-Sample Case. The Annals of Statistics, 2(2).DOI
  12. [13]Domingo, E., Sheldon, J., & Perales, C. (2012). Viral Quasispecies Evolution. Microbiology and Molecular Biology Reviews, 76(2).DOI
  13. [14]Dubey, P., & Miiller, H.-G. (2019). Fréchet analysis of variance for random objects. Biometrika, 106(4).arxiv.org/abs/1710.02761
  14. [15]Efron, B. (2016). Empirical Bayes deconvolution estimates. Biometrika, 103(1).DOI
  15. [16]Firpo, S. (2007). Efficient Semiparametric Estimation of Quantile Treatment Effects. Econometrica, 75(1).
  16. [17]Gilbert, P., Self, S., Rao, M., Naficy, A., & Clemens, J. (2001). Sieve analysis: Methods for assessing from vaccine trial data how vaccine efficacy varies with genotypic and phenotypic pathogen variation. Journal of Clinical Epidemiology, 54(1).pubmed.ncbi.nlm.nih.gov/11165470
  17. [18]Gilbert, P. B., Bosch, R. J., & Hudgens, M. G. (2003). Sensitivity analysis for the assessment of causal vaccine effects on viral load in HIV vaccine trials. Biometrics, 59(3).pubmed.ncbi.nlm.nih.gov/14601754
  18. [19]Horváth, L., & Kokoszka, P. (2012). Inference for Functional Data with Applications (Vol. 200). Springer.DOI
  19. [20]Jeong, S., Yoon, H., Morris, J. S., & Yang, H. (2026). Wasserstein tests for equality of several groups for distributional data. Computational Statistics & Data Analysis, 222.DOI
  20. [21]Joseph, E., Galeano San Miguel, P., & Lillo Rodríguez, R. E. (2015). Two-sample Hotelling’s T² statistics based on the functional Mahalanobis semi-distance [Number: ws1503]. DES - Working Papers. Statistics and Econometrics. WS.
  21. [22]Juraska, M., Bai, H., deCamp, A. C., Magaret, C. A., Li, L., Gillespie, K., Carpp, L. N., Giorgi, E. E., Ludwig, J., Molitor, C., Hudson, A., Williamson, B. D., Espy, N., Simpkins, B., Rudnicki, E., Shao, D., Rossenkhan, R., Edlefsen, P. T., Westfall, D. H., … Mullins, J. I. (2024). Prevention efficacy of the broadly neutralizing antibody VRC01 depends on HIV-1 envelope sequence features. Proceedings of the National Academy of Sciences, 121(4).DOI
  22. [23]Katta, S., Parikh, H., Rudin, C., & Volfovsky, A. (2024). Interpretable Causal Inference for Analyzing Wearable, Sensor, and Distributional Data. Proceedings of The 27th International Conference on Artificial Intelligence and Statistics.arxiv.org/abs/2312.10569
  23. [24]Koenker, R., & Bassett, G. (1978). Regression Quantiles. Econometrica, 46(1).DOI
  24. [25]Kosorok, M. R. (2008). Introduction to Empirical Processes and Semiparametric Inference. Springer.DOI
  25. [26]Lauring, A. S. (2020). Within-Host Viral Diversity: A Window into Viral Evolution. Annual Review of Virology, 7(1).DOI
  26. [27]Lin, Z., Kong, D., & Wang, L. (2023). Causal inference on distribution functions. Journal of the Royal Statistical Society Series B: Statistical Methodology, 85(2).arxiv.org/abs/2101.01599
  27. [28]Nelson, C. W., & Hughes, A. L. (2015). Within-Host Nucleotide Diversity of Virus Populations: Insights from Next-Generation Sequencing. Infection, genetics and evolution : journal of molecular epidemiology and evolutionary genetics in infectious diseases, 30.DOI
  28. [29]Nouri, N., & Kleinstein, S. H. (2020). Somatic hypermutation analysis for improved identification of B cell clonal families from next-generation sequencing data. PLOS Computational Biology, 16(6).DOI
  29. [30]Peng, J., Stijven, F., Wang, L., & Gilbert, P. B. (2026, June). Estimating the Wasserstein barycenter of one-dimensional distributions under sparse sampling.arxiv.org/abs/2606.10096
  30. [31]Petersen, A., Liu, X., & Divani, A. A. (2021). Wasserstein F-tests and confidence bands for the Fréchet regression of density response curves. The Annals of Statistics, 49(1).arxiv.org/abs/1910.13418
  31. [32]Silverman, B. W. (1986). Density estimation for statistics and data analysis. Monographs on Statistics and Applied Probability.
  32. [33]Sim, S., Aw, P. P. K., Wilm, A., Teoh, G., Hue, K. D. T., Nguyen, N. M., Nagarajan, N., Simmons, C. P., & Hibberd, M. L. (2015). Tracking Dengue Virus Intra-host Genetic Diversity during Human-to-Mosquito Transmission. PLOS Neglected Tropical Diseases, 9(9).DOI
  33. [34]Sims, D., Sudbery, I., Ilott, N. E., Heger, A., & Ponting, C. P. (2014). Sequencing depth and coverage: Key considerations in genomic analyses. Nature Reviews Genetics, 15(2).DOI
  34. [35]Tully, D. C., Ogilvie, C. B., Batorsky, R. E., Bean, D. J., Power, K. A., Ghebre michael, M., Bedard, H. E., Gladden, A. D., Seese, A. M., Amero, M. A., Lane, K., McGrath, G., Bazner, S. B., Tinsley, J., Lennon, N. J., Henn, M. R., Brumme, Z. L., Norris, P. J., Rosenberg, E. S., . . . Allen, T. M. (2016). Differences in the Selection Bottleneck between Modes of Sexual Transmission Influence the Genetic Composition of the HIV-1 Founder Virus. PLoS pathogens, 12(5).DOI
  35. [36]Van der Vaart, A. W. (2000). Asymptotic statistics (Vol. 3). Cambridge University Press.
  36. [37]Westfall, D. H., Deng, W., Pankow, A., Murrell, H., Chen, L., Zhao, H., Williamson, C., Rolland, M., Murrell, B., & Mullins, J. I. (2024). Optimized SMRT-UMI protocol produces highly accurate sequence datasets from diverse populations—Application to HIV-1 quasispecies. Virus Evolution, 10(1).
  37. [38]Willis, J. R., Prabhakaran, M., Muthui, M., Naidoo, A., Sincomb, T., Wu, W., Cottrell, C. A., Landais, E., deCamp, A. C., Keshavarzi, N. R., Kalyuzhniy, O., Lee, J. H., Murungi, L. M., Ogonda, W. A., Yates, N. L., Corcoran, M. M., Phulera, S., Musando, J., Tsai, A., . . . Schief, W. R. (2025). Vaccination with mRNA-encoded nanoparticles drives early maturation of HIV bnAb precursors in humans. Science, 389(6759).
  38. [39]Zhang, M., & Guo, F. R. (2022). BSDE: Barycenter single-cell differential expression for case–control studies. Bioinformatics, 38(10).DOI
  39. [40]Zhou, S., Hill, C. S., Spielvogel, E., Clark, M. U., Hudgens, M. G., & Swanstrom, R. (2022). Unique Molecular Identifiers and Multiplexing Amplicons Maximize the Utility of Deep Sequencing To Critically Assess Population Diversity in RNA Viruses. ACS infectious diseases, 8(12).DOI
  40. [41]Zhou, Y., & Müller, H.-G. (2024). Wasserstein regression with empirical measures and density estimation for sparse data. Biometrics, 80(4).DOI

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type