Fine-mapping · Python + RustLucaJiang/prusie
On this page

Statistical model

Statistical fine-mapping aims to identify genetic variants causally affecting a phenotype in the presence of linkage disequilibrium (LD), which often induces strong correlations among nearby variants. prusie implements the sum of single effects (SuSiE) model, a Bayesian variable selection framework for multiple linear regression that decomposes regional genetic effects into a sum of single-effect components while quantifying localization uncertainty via credible sets and posterior inclusion probabilities (PIPs).

prusie fits the SuSiE model from individual-level genotypes and phenotypes, centered sufficient statistics, or marginal association summary statistics paired with an LD correlation matrix. The sections below present the core Gaussian formulation, the iterative Bayesian stepwise selection (IBSS) algorithm, summary-statistic reconstruction (SuSiE-RSS), and additional model options.

Data, notation and scale

Let nn denote the study sample size, pp the number of variants in the region, and LL the maximum number of single-effect components. Given a column-centered predictor (genotype) matrix X∈Rn×p\mathbf{X} \in \mathbb{R}^{n \times p} and a centered response (phenotype) vector y∈Rn\mathbf{y} \in \mathbb{R}^n, the sufficient statistics are

Q=XTX,g=XTy,sy=yTy. \mathbf{Q} = \mathbf{X}^T\mathbf{X}, \qquad \mathbf{g} = \mathbf{X}^T\mathbf{y}, \qquad s_y = \mathbf{y}^T\mathbf{y}.

The in-sample or reference LD correlation matrix R∈Rp×p\mathbf{R} \in \mathbb{R}^{p \times p} is ordered and oriented to match the columns and effect alleles of X\mathbf{X}. We denote the residual variance by σ2\sigma^2, the prior effect variance of single-effect component ℓ\ell by VℓV_\ell, and the prior probability that component ℓ\ell selects variant jj by πj\pi_j (shared across components ℓ=1,…,L\ell = 1, \ldots, L).

When standardize=True (the default), each centered predictor column is scaled by its sample standard deviation dj=Qjj/(n−1)d_j = \sqrt{Q_{jj}/(n - 1)} (setting dj=1d_j = 1 if Qjj=0Q_{jj} = 0 to avoid division by zero), while y\mathbf{y} remains in its supplied units. When standardize=False, dj=1d_j = 1 for all jj. Writing D=diag⁡(d1,…,dp)\mathbf{D} = \operatorname{diag}(d_1, \ldots, d_p), the working sufficient statistics on the standardized predictor scale are D−1QD−1\mathbf{D}^{-1}\mathbf{Q}\mathbf{D}^{-1} and D−1g\mathbf{D}^{-1}\mathbf{g}. Throughout the derivations below, X\mathbf{X}, Q\mathbf{Q}, and g\mathbf{g} denote quantities on this working scale.

Posterior effect moments (mu and mu2) are stored on the working scale, whereas fit.coef divides each variant's total posterior mean by djd_j to return coefficients on the input predictor scale (for summary-statistic fits, see From summaries to working sufficient statistics). Note that any nuisance covariates must be regressed out of X\mathbf{X} and y\mathbf{y} (or the summary statistics) prior to fitting.

A sum of single effects

Under the Gaussian SuSiE model, the response vector y\mathbf{y} is modeled as

y=Xb+ε,ε∼N(0,σ2In),b=∑ℓ=1Lbℓ, \begin{aligned} \mathbf{y} &= \mathbf{X}\mathbf{b} + \boldsymbol{\varepsilon}, &\boldsymbol{\varepsilon} &\sim \mathcal{N}(\mathbf{0}, \sigma^2\mathbf{I}_n),\\ \mathbf{b} &= \sum_{\ell=1}^{L} \mathbf{b}_\ell, \end{aligned}

where the overall regression coefficient vector b∈Rp\mathbf{b} \in \mathbb{R}^p is decomposed into LL single-effect vectors b1,…,bL\mathbf{b}_1, \ldots, \mathbf{b}_L. Each component ℓ\ell has at most one nonzero entry, parameterized by a categorical variant indicator γℓ∈{1,…,p}\gamma_\ell \in \{1, \ldots, p\} and a scalar effect size aℓa_\ell:

γℓ∼Categorical⁡(π1,…,πp),aℓ∼N(0,Vℓ),bℓ=aℓeγℓ, \begin{aligned} \gamma_\ell &\sim \operatorname{Categorical}(\pi_1, \ldots, \pi_p),\\ a_\ell &\sim \mathcal{N}(0, V_\ell),\\ \mathbf{b}_\ell &= a_\ell \mathbf{e}_{\gamma_\ell}, \end{aligned}

where ej\mathbf{e}_j is the jj-th standard basis vector. By default, the prior inclusion weights are uniform (πj=1/p\pi_j = 1/p), or proportional to user-supplied prior_weights. The prior variance VℓV_\ell is initialized to scaled_prior_variance (default 0.2) times the working phenotype variance sy/(n−1)s_y / (n - 1), and is typically updated via empirical Bayes during fitting.

Because components whose estimated prior variance shrinks to Vℓ=0V_\ell = 0 contribute no effect—and duplicate or low-purity components are filtered out during credible-set extraction—LL acts as an upper bound on the number of modeled signals rather than fixing the number of retained credible sets.

Single-effect posteriors and effect means

SuSiE approximates the joint posterior distribution of (b1,…,bL)(\mathbf{b}_1, \ldots, \mathbf{b}_L) using a mean-field variational family that factorizes across the LL components while preserving the exact dependency between location γℓ\gamma_\ell and effect size aℓa_\ell within each component:

q(b1,…,bL)=∏ℓ=1Lqℓ(bℓ). q(\mathbf{b}_1, \ldots, \mathbf{b}_L) = \prod_{\ell=1}^{L} q_\ell(\mathbf{b}_\ell).

Each factor qℓ(bℓ)q_\ell(\mathbf{b}_\ell) is completely characterized by its component inclusion probabilities αℓj\alpha_{\ell j}, conditional posterior means μℓj\mu_{\ell j}, and conditional posterior second moments Mℓj(2)M^{(2)}_{\ell j} (stored in fit.alpha, fit.mu, and fit.mu2):

αℓj=qℓ(γℓ=j),μℓj=Eq[aℓ∣γℓ=j],Mℓj(2)=Eq[aℓ2∣γℓ=j]=μℓj2+τℓj2, \begin{aligned} \alpha_{\ell j} &= q_\ell(\gamma_\ell = j),\\ \mu_{\ell j} &= \mathbb{E}_q[a_\ell \mid \gamma_\ell = j],\\ M^{(2)}_{\ell j} &= \mathbb{E}_q[a_\ell^2 \mid \gamma_\ell = j] = \mu_{\ell j}^2 + \tau_{\ell j}^2, \end{aligned}

where τℓj2=Var⁡q(aℓ∣γℓ=j)\tau_{\ell j}^2 = \operatorname{Var}_q(a_\ell \mid \gamma_\ell = j) is the conditional posterior variance.

The marginal posterior mean of component ℓ\ell on the working scale is mℓ=αℓ⊙μℓ\mathbf{m}_\ell = \boldsymbol{\alpha}_\ell \odot \boldsymbol{\mu}_\ell (where ⊙\odot denotes elementwise multiplication), and summing across components yields the overall posterior mean coefficient vector m=∑ℓ=1Lmℓ\mathbf{m} = \sum_{\ell=1}^L \mathbf{m}_\ell. The fit.coef property rescales m\mathbf{m} by the predictor scale factors (mj/djm_j / d_j).

One single-effect regression

Fixing the variational factors qkq_k (k≠ℓk \ne \ell) of all other components, updating qℓ(bℓ)q_\ell(\mathbf{b}_\ell) reduces to fitting a Bayesian single-effect regression (SER) on the expected residual response. In terms of the sufficient statistics, define the crossproduct residual rℓ\mathbf{r}_\ell, marginal effect estimates b^ℓj\widehat{b}_{\ell j}, and sampling variances sj2s_j^2 (for Qjj>0Q_{jj} > 0):

rℓ=g−Q∑k≠ℓmk,b^ℓj=rℓj/Qjj,sj2=σ2/Qjj. \begin{aligned} \mathbf{r}_\ell &= \mathbf{g} - \mathbf{Q}\sum_{k \ne \ell} \mathbf{m}_k,\\ \widehat{b}_{\ell j} &= r_{\ell j} / Q_{jj},\\ s_j^2 &= \sigma^2 / Q_{jj}. \end{aligned}

For a given prior variance Vℓ>0V_\ell > 0, the natural-log Bayes factor comparing a single nonzero effect at variant jj (aℓ∼N(0,Vℓ)a_\ell \sim \mathcal{N}(0, V_\ell)) against the null model (aℓ=0a_\ell = 0) is

log⁡BFℓj=−12log⁡ ⁣(1+Vℓsj2)+b^ℓj 2Vℓ2sj2(sj2+Vℓ). \log\mathrm{BF}_{\ell j} = -\frac{1}{2}\log\!\left(1 + \frac{V_\ell}{s_j^2}\right) + \frac{\widehat{b}_{\ell j}^{\,2} V_\ell}{2 s_j^2 (s_j^2 + V_\ell)}.

Combining these Bayes factors with the prior inclusion probabilities πj\pi_j yields the exact conditional update for component ℓ\ell:

αℓj=πjBFℓj∑kπkBFℓk,μℓj=VℓVℓ+sj2b^ℓj,τℓj2=Vℓsj2Vℓ+sj2. \begin{aligned} \alpha_{\ell j} &= \frac{\pi_j \mathrm{BF}_{\ell j}}{\sum_k \pi_k \mathrm{BF}_{\ell k}},\\ \mu_{\ell j} &= \frac{V_\ell}{V_\ell + s_j^2} \widehat{b}_{\ell j},\\ \tau_{\ell j}^2 &= \frac{V_\ell s_j^2}{V_\ell + s_j^2}. \end{aligned}

fit.lbf_variable stores the per-variant log Bayes factors log⁡BFℓj\log\mathrm{BF}_{\ell j} before weighting by πj\pi_j, while fit.lbf stores the component-level log marginal Bayes factor log⁡∑jπjBFℓj\log \sum_j \pi_j \mathrm{BF}_{\ell j}. Numerical stabilization of prior weights and uninformative columns (Qjj=0Q_{jj} = 0) is detailed in Priors and zero-information columns.

Sequential IBSS and variance estimation

Iterative Bayesian stepwise selection (IBSS) cycles through components ℓ=1,…,L\ell = 1, \ldots, L sequentially, using the most recently updated posterior means mk\mathbf{m}_k (k≠ℓk \ne \ell) at every step. One complete pass over all LL components constitutes a sweep:

initialize component means, variances and their matrix products
for each sweep, up to max_iter:
    for each component in order:
        remove its old contribution from the fitted crossproduct
        form its crossproduct residual
        select V and compute the SER posterior (EM updates V after the posterior)
        store the component evidence, KL and new matrix product
    if requested: check prior variance using the current residual variance
    evaluate expected residual sum of squares and ELBO
    record diagnostics and apply the stopping rule
    if converged, an eligible cycle stop, or numerical failure: stop
    if requested: update residual variance
trim components below prior_tol and construct summaries

Prior variance estimation

When estimate_prior_variance=True, each component's prior variance VℓV_\ell is updated during its SER step according to estimate_prior_method:

  • "optim" (default): Maximizes the SER log marginal likelihood log⁡∑jπjBFℓj(V)\log \sum_j \pi_j \mathrm{BF}_{\ell j}(V) over log⁡V∈[−30,15]\log V \in [-30, 15] via Brent's method (retaining the previous VℓV_\ell if the optimizer does not improve the objective). The resulting variance is then tested against V=0V = 0 and set to zero unless its log marginal likelihood exceeds the null value by more than check_null_threshold (default 0).
  • "simple": Compares the current VℓV_\ell against V=0V = 0 using check_null_threshold without optimizing over positive values.
  • "EM": Evaluates the SER posterior at the current VℓV_\ell and then updates Vℓ←∑jαℓjMℓj(2)V_\ell \leftarrow \sum_j \alpha_{\ell j} M^{(2)}_{\ell j} for the next sweep (without testing against zero).

When estimate_prior_variance=False, the initial values of VℓV_\ell are held fixed throughout the IBSS loop (final post-loop trimming of components with Vℓ<prior_tolV_\ell < \mathtt{prior\_tol} still applies).

ELBO and residual variance

At the end of each sweep, the solver evaluates the expected residual sum of squares (ER2=Eq[∥y−Xb∥22]\mathrm{ER2} = \mathbb{E}_q[\|\mathbf{y} - \mathbf{X}\mathbf{b}\|_2^2]; see Retained component products) and the evidence lower bound (ELBO):

L(q)=Eq[log⁡p(y∣b,σ2)]−∑ℓ=1LKL⁡ ⁣(qℓ(bℓ) ∥ pℓ(bℓ)). \mathcal{L}(q) = \mathbb{E}_q[\log p(\mathbf{y} \mid \mathbf{b}, \sigma^2)] - \sum_{\ell=1}^{L} \operatorname{KL}\!\left(q_\ell(\mathbf{b}_\ell) \,\|\, p_\ell(\mathbf{b}_\ell)\right).

The ELBO and stopping criterion are evaluated at the current σ2\sigma^2 before updating the residual variance. If the stopping criterion is not met and estimate_residual_variance=True, the Gaussian model updates σ2←ER2/n\sigma^2 \leftarrow \mathrm{ER2}/n, clamped to [residual_variance_lowerbound, residual_variance_upperbound]. Because a converged fit exits before the trailing variance update whereas a fit reaching max_iter executes it, an unconverged fit with estimate_residual_variance=True can return a fit.sigma2 updated after fit.elbo[-1]. Final trimming of components with Vℓ<prior_tolV_\ell < \mathtt{prior\_tol} occurs after the loop; see Iterations and finalization.

Stopping rules

Stopping checks begin after sweep min_iter (default 2). Under the default ELBO stopping rule (convergence_method="elbo"), convergence is declared when

0≤L(t)−L(t−1)<tol. 0 \le \mathcal{L}^{(t)} - \mathcal{L}^{(t-1)} < \mathtt{tol}.

Under the susieR-compatible PIP stopping rule (convergence_method="pip"), convergence is declared when both

max⁡ℓ,j∣αℓj(t)−αℓj(t−1)∣<tolandmax⁡j∣PIPj(t)−PIPj(t−1)∣<tol, \max_{\ell, j}\bigl|\alpha^{(t)}_{\ell j} - \alpha^{(t-1)}_{\ell j}\bigr| < \mathtt{tol} \quad\text{and}\quad \max_j\bigl|\mathrm{PIP}^{(t)}_j - \mathrm{PIP}^{(t-1)}_j\bigr| < \mathtt{tol},

or when both alpha and pip match an earlier state from k∈{2,3,4,5}k \in \{2, 3, 4, 5\} sweeps prior within tol (in which case alpha is averaged across the kk cycle states). The PIP stopping rule is selected automatically when:

  • convergence_method="pip" is specified;
  • a slot-activity prior is used, or estimate_residual_method="NIG" is used with L>1L > 1;
  • susie_rss is called with R_finite, R_mismatch, or multiple LD panels (unless an explicit ConvergenceConfig is supplied for single-panel R_finite/R_mismatch);
  • the ELBO evaluates to NaN during a default "elbo" fit while posterior arrays remain finite.

You can also pass a ConvergenceConfig object via convergence= to configure "elbo", "alpha_pip", or "joint" stopping criteria with separate alpha_tol and pip_tol thresholds (default 1e-4), min_iter, and cycle_lag; see Convergence diagnostics.

Defaults by entry point

Argument susie susie_suff_stat susie_rss susie_rss_lambda
L 10 10 10 10
Initial prior variance scaled_prior_variance=0.2 scaled_prior_variance=0.2 scaled_prior_variance=0.2; prior_variance=50 without n prior_variance=50
estimate_residual_variance True True False False
estimate_residual_method "MoM" "MoM" "MoM" "MLE" only
residual_variance_lowerbound var⁡^(y)/104\widehat{\operatorname{var}}(y)/10^4 0 0 0
standardize True True True; off without n off (no argument)
max_iter 100 100 50 50
tol None: 1e-4, or 1e-6 with NIG 1e-4 1e-4 1e-3
Stopping rule ELBO ELBO ELBO; PIP as listed above ELBO
check_prior off (no argument) False True True

All four entry points default to estimate_prior_variance=True, estimate_prior_method="optim", null_weight=0, prior_tol=1e-9, check_null_threshold=0, coverage=0.95, and min_abs_corr=0.5. L is capped at the column count (including any null column, or excluding the null column in susie_rss_lambda). Passing tol=None to susie_suff_stat or susie_rss selects 1e-6 with NIG and 1e-4 otherwise. susie_auto runs staged susie fits with init_tol=1 and max_iter=100 per stage, followed by a final fit at tol=0.01.

From summaries to working sufficient statistics

Because the Gaussian SuSiE likelihood depends on the data solely through (Q,g,sy,n)(\mathbf{Q}, \mathbf{g}, s_y, n), susie_rss reconstructs these sufficient statistics from marginal association summary statistics and an LD correlation matrix R\mathbf{R}, prior to applying the predictor standardization described in Data, notation and scale. The choice of summary inputs determines the scale of the reconstructed quantities and returned coef values:

Known sample size and Wald z statistics

When marginal zz-scores z\mathbf{z} and sample size nn are supplied, the default z_method="wald" applies the finite-sample Wald adjustment to account for the variant-specific residual variance in univariate Wald statistics:

z~j=zjn−1zj2+n−2. \widetilde{z}_j = z_j \sqrt{\frac{n - 1}{z_j^2 + n - 2}}.

(Selecting z_method="score" sets z~j=zj\widetilde{z}_j = z_j.) When var_y is omitted, the phenotype is placed on a unit-variance working scale:

Q=(n−1)R,g=n−1 z~,sy=n−1. \begin{aligned} \mathbf{Q} &= (n - 1)\mathbf{R},\\ \mathbf{g} &= \sqrt{n - 1}\,\widetilde{\mathbf{z}},\\ s_y &= n - 1. \end{aligned}

Passing bhat and shat without var_y forms zj=β^j/SE⁡jz_j = \widehat{\beta}_j / \operatorname{SE}_j and uses the same standardized construction.

Effect estimates, standard errors and phenotype variance

When bhat, shat, n, and sample phenotype variance var_y (vyv_y) are all provided, susie_rss reconstructs the sufficient statistics on the original genotype and phenotype scales. With Aj=(n−1)/(zj2+n−2)A_j = (n - 1)/(z_j^2 + n - 2) for z_method="wald" (or Aj=1A_j = 1 for "score"), the reconstructed predictor sums of squares are

hj=vyAjSE⁡j2, h_j = \frac{v_y A_j}{\operatorname{SE}_j^2},

yielding

Qjk=hj Rjkhk,gj=z~jAj vySE⁡j,sy=(n−1)vy. \begin{aligned} Q_{jk} &= \sqrt{h_j}\, R_{jk} \sqrt{h_k},\\ g_j &= \frac{\widetilde{z}_j \sqrt{A_j}\, v_y}{\operatorname{SE}_j},\\ s_y &= (n - 1) v_y. \end{aligned}

The reconstructed Q\mathbf{Q} is symmetrized as (Q+QT)/2(\mathbf{Q} + \mathbf{Q}^T)/2, predictor standardization uses Qjj/(n−1)\sqrt{Q_{jj}/(n-1)}, and fit.coef returns effect sizes in original phenotype units per predictor unit.

Note that supplying z, var_y, and n (without bhat and shat) instead sets Q=(n−1)R\mathbf{Q} = (n - 1)\mathbf{R}, g=n−1 z~\mathbf{g} = \sqrt{n - 1}\,\widetilde{\mathbf{z}}, and sy=(n−1)vys_y = (n - 1)v_y, which scales sys_y and default initial variances by vyv_y without rescaling predictor units.

Missing sample size

When n is omitted, susie_rss emits a warning and falls back to the asymptotic noncentrality likelihood (Q=R\mathbf{Q} = \mathbf{R}, g=z\mathbf{g} = \mathbf{z}, sy=1s_y = 1, with internal placeholder n=2n = 2), disabling predictor standardization and using prior_variance (default 50) as the initial effect variance.

Interpreting the LD approximation

The LD matrix R\mathbf{R} must contain signed Pearson correlations aligned to the exact variant order and effect alleles of the summary statistics (see Variant order and alleles). When R\mathbf{R} is computed in-sample from the discovery cohort with matching covariate adjustments, SuSiE-RSS recovers the individual-level sufficient-statistic likelihood; when an external reference panel is used, accuracy depends on ancestral matching and reference sample size. Because external LD mismatch can destabilize residual-variance updates, susie_rss defaults to estimate_residual_variance=False.

PIP and credible sets

Let A={ℓ:Vℓ>prior_tol}\mathcal{A} = \{\ell : V_\ell > \mathtt{prior\_tol}\} denote the set of active single-effect components. Under the factorized variational posterior, the marginal posterior inclusion probability (PIP) that variant jj is selected by at least one active component is

PIPj=1−∏ℓ∈A(1−αℓj). \mathrm{PIP}_j = 1 - \prod_{\ell \in \mathcal{A}} (1 - \alpha_{\ell j}).

While each row of α\boldsymbol{\alpha} sums to 1 over variants, the vector of marginal PIPs can sum to more than 1 when multiple components are active.

For each component ℓ\ell, a level-coverage credible set CℓC_\ell (default coverage=0.95) is constructed by sorting variants in descending order of αℓj\alpha_{\ell j} and accumulating them until their cumulative posterior probability reaches the target:

qℓ(γℓ∈Cℓ)=∑j∈Cℓαℓj≥coverage. q_\ell(\gamma_\ell \in C_\ell) = \sum_{j \in C_\ell} \alpha_{\ell j} \ge \mathtt{coverage}.

Candidate credible sets are then filtered to retain active components (Vℓ>10−9V_\ell > 10^{-9}), remove duplicate member sets, and enforce minimum absolute pairwise LD correlation (min_abs_corr=0.5 by default; see Credible-set fields).

Additional model options

Beyond the standard Gaussian specification, prusie supports several model extensions:

  • Fixed Gaussian-mixture priors (prior_variance_grid, mixture_weights): Replaces each component's scalar Gaussian prior with a finite mixture p(aℓ)=∑k=1KwkN(aℓ;0,vk)p(a_\ell) = \sum_{k=1}^K w_k \mathcal{N}(a_\ell; 0, v_k) (wk≥0w_k \ge 0, ∑kwk=1\sum_k w_k = 1). The SER step integrates analytically across the grid points vkv_k and reports ∑kwkvk\sum_k w_k v_k in fit.V.
  • Conjugate Normal–Inverse-Gamma residual variance (estimate_residual_method="NIG"): Places an inverse-gamma prior σ2∼IG⁡(α0/2,β0/2)\sigma^2 \sim \operatorname{IG}(\alpha_0/2, \beta_0/2) (with defaults α0=β0=1/n\alpha_0 = \beta_0 = 1/\sqrt{n}) and scales effect variances proportionally to σ2\sigma^2. NIG always estimates residual variance (σ2←(β0+ER2)/(α0+n−2)\sigma^2 \leftarrow (\beta_0 + \mathrm{ER2})/(\alpha_0 + n - 2)), uses "EM" for prior-variance updates, and uses the PIP stopping rule when L>1L > 1.
  • Hierarchical effect-activity priors (slot_prior): Passed via slot_prior_betabinom() or slot_prior_poisson(C), introducing posterior component-activity weights cℓc_\ell (fit.slot_weights) so that each component's marginal mean contribution is cℓαℓ⊙μℓc_\ell \boldsymbol{\alpha}_\ell \odot \boldsymbol{\mu}_\ell. Uses the PIP stopping rule.
  • RSS likelihood extensions (R_finite, R_mismatch, susie_rss_lambda): R_finite accounts for finite LD reference sample size, R_mismatch ("eb", "eb_mix", "eb_ser_init", "eb_force_init", "eb_no_init") models empirical-Bayes LD mismatch with controls from susie_rss_control, and susie_rss_lambda models an isotropic covariance term σ2R+λI\sigma^2\mathbf{R} + \lambda\mathbf{I}.
  • Component growth and trend filtering (susie_auto, L_greedy, susie_trendfilter): susie_auto doubles LL from L_init=1 up to L_max=512; L_greedy increments LL in steps until the smallest component log Bayes factor drops below greedy_lbf_cutoff (0.1); and susie_trendfilter applies an implicit cumulative-sum operator of order kk. (SuSiE-inf, SuSiE-ash, and Mr.ASH are not supported.)

Computational compatibility

The reference implementation for numerical validation is susieR 0.16.6 (commit 8e56a8e038e989856d106d9ca5175cc664fea9d2). prusie preserves the exact statistical model and float64 precision of susieR while accelerating execution through algebraic and memory optimizations. Because floating-point operation ordering and math library routines differ between Rust and R/BLAS, agreement is evaluated numerically across the complete L×pL \times p component-inclusion probability matrix α\boldsymbol{\alpha}:

Dα=max⁡ℓ,j∣αℓjP−αℓjR∣, D_\alpha = \max_{\ell, j}\left|\alpha^{\mathrm{P}}_{\ell j} - \alpha^{\mathrm{R}}_{\ell j}\right|,

preserving original component row order and variant column order (including inactive components), while verifying that all entries lie in [0,1][0, 1] and each row sums to 1 within 10−1010^{-10}. Marginal PIPs, credible-set memberships, posterior moments, and convergence metrics are evaluated alongside DαD_\alpha in Numerical accuracy (for refinement comparisons, see Refinement compared with susieR).

Methods and implementation references

The SuSiE model and IBSS algorithm were introduced by Wang et al. (2020), and the SuSiE-RSS summary-statistic framework was developed by Zou et al. (2022).

To trace the implementation in source code, see rss.py (susie_rss), suff_stat.py (susie_suff_stat), individual.py (susie), _request.py (_prepare_request), workhorse.py (_fit), posterior.py (marginal_pip, credible_sets), and the Rust solver crate under rust/prusie-core/src (ibss.rs and ser.rs). A direct side-by-side mapping to susieR 0.16.6 source files is provided in Implementation.