On this page
- Data, notation and scale
- A sum of single effects
- Single-effect posteriors and effect means
- One single-effect regression
- Sequential IBSS and variance estimation
- From summaries to working sufficient statistics
- PIP and credible sets
- Additional model options
- Computational compatibility
- Methods and implementation references
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 denote the study sample size, the number of variants in the region, and the maximum number of single-effect components. Given a column-centered predictor (genotype) matrix and a centered response (phenotype) vector , the sufficient statistics are
The in-sample or reference LD correlation matrix is ordered and oriented to match the columns and effect alleles of . We denote the residual variance by , the prior effect variance of single-effect component by , and the prior probability that component selects variant by (shared across components ).
When standardize=True (the default), each centered predictor column is scaled by its sample standard deviation (setting if to avoid division by zero), while remains in its supplied units. When standardize=False, for all . Writing , the working sufficient statistics on the standardized predictor scale are and . Throughout the derivations below, , , and 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 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 and (or the summary statistics) prior to fitting.
A sum of single effects
Under the Gaussian SuSiE model, the response vector is modeled as
where the overall regression coefficient vector is decomposed into single-effect vectors . Each component has at most one nonzero entry, parameterized by a categorical variant indicator and a scalar effect size :
where is the -th standard basis vector. By default, the prior inclusion weights are uniform (), or proportional to user-supplied prior_weights. The prior variance is initialized to scaled_prior_variance (default 0.2) times the working phenotype variance , and is typically updated via empirical Bayes during fitting.
Because components whose estimated prior variance shrinks to contribute no effect—and duplicate or low-purity components are filtered out during credible-set extraction— 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 using a mean-field variational family that factorizes across the components while preserving the exact dependency between location and effect size within each component:
Each factor is completely characterized by its component inclusion probabilities , conditional posterior means , and conditional posterior second moments (stored in fit.alpha, fit.mu, and fit.mu2):
where is the conditional posterior variance.
The marginal posterior mean of component on the working scale is (where denotes elementwise multiplication), and summing across components yields the overall posterior mean coefficient vector . The fit.coef property rescales by the predictor scale factors ().
One single-effect regression
Fixing the variational factors () of all other components, updating reduces to fitting a Bayesian single-effect regression (SER) on the expected residual response. In terms of the sufficient statistics, define the crossproduct residual , marginal effect estimates , and sampling variances (for ):
For a given prior variance , the natural-log Bayes factor comparing a single nonzero effect at variant () against the null model () is
Combining these Bayes factors with the prior inclusion probabilities yields the exact conditional update for component :
fit.lbf_variable stores the per-variant log Bayes factors before weighting by , while fit.lbf stores the component-level log marginal Bayes factor . Numerical stabilization of prior weights and uninformative columns () is detailed in Priors and zero-information columns.
Sequential IBSS and variance estimation
Iterative Bayesian stepwise selection (IBSS) cycles through components sequentially, using the most recently updated posterior means () at every step. One complete pass over all 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 is updated during its SER step according to estimate_prior_method:
"optim"(default): Maximizes the SER log marginal likelihood over via Brent's method (retaining the previous if the optimizer does not improve the objective). The resulting variance is then tested against and set to zero unless its log marginal likelihood exceeds the null value by more thancheck_null_threshold(default0)."simple": Compares the current against usingcheck_null_thresholdwithout optimizing over positive values."EM": Evaluates the SER posterior at the current and then updates for the next sweep (without testing against zero).
When estimate_prior_variance=False, the initial values of are held fixed throughout the IBSS loop (final post-loop trimming of components with still applies).
ELBO and residual variance
At the end of each sweep, the solver evaluates the expected residual sum of squares (; see Retained component products) and the evidence lower bound (ELBO):
The ELBO and stopping criterion are evaluated at the current before updating the residual variance. If the stopping criterion is not met and estimate_residual_variance=True, the Gaussian model updates , 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 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
Under the susieR-compatible PIP stopping rule (convergence_method="pip"), convergence is declared when both
or when both alpha and pip match an earlier state from sweeps prior within tol (in which case alpha is averaged across the 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 ; susie_rssis called withR_finite,R_mismatch, or multiple LD panels (unless an explicitConvergenceConfigis supplied for single-panelR_finite/R_mismatch);- the ELBO evaluates to
NaNduring 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 |
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 , susie_rss reconstructs these sufficient statistics from marginal association summary statistics and an LD correlation matrix , 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 -scores and sample size 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:
(Selecting z_method="score" sets .) When var_y is omitted, the phenotype is placed on a unit-variance working scale:
Passing bhat and shat without var_y forms and uses the same standardized construction.
Effect estimates, standard errors and phenotype variance
When bhat, shat, n, and sample phenotype variance var_y () are all provided, susie_rss reconstructs the sufficient statistics on the original genotype and phenotype scales. With for z_method="wald" (or for "score"), the reconstructed predictor sums of squares are
yielding
The reconstructed is symmetrized as , predictor standardization uses , 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 , , and , which scales and default initial variances by without rescaling predictor units.
Missing sample size
When n is omitted, susie_rss emits a warning and falls back to the asymptotic noncentrality likelihood (, , , with internal placeholder ), disabling predictor standardization and using prior_variance (default 50) as the initial effect variance.
Interpreting the LD approximation
The LD matrix must contain signed Pearson correlations aligned to the exact variant order and effect alleles of the summary statistics (see Variant order and alleles). When 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 denote the set of active single-effect components. Under the factorized variational posterior, the marginal posterior inclusion probability (PIP) that variant is selected by at least one active component is
While each row of sums to 1 over variants, the vector of marginal PIPs can sum to more than 1 when multiple components are active.
For each component , a level-coverage credible set (default coverage=0.95) is constructed by sorting variants in descending order of and accumulating them until their cumulative posterior probability reaches the target:
Candidate credible sets are then filtered to retain active components (), 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 (, ). The SER step integrates analytically across the grid points and reports infit.V. - Conjugate Normal–Inverse-Gamma residual variance (
estimate_residual_method="NIG"): Places an inverse-gamma prior (with defaults ) and scales effect variances proportionally to . NIG always estimates residual variance (), uses"EM"for prior-variance updates, and uses the PIP stopping rule when . - Hierarchical effect-activity priors (
slot_prior): Passed viaslot_prior_betabinom()orslot_prior_poisson(C), introducing posterior component-activity weights (fit.slot_weights) so that each component's marginal mean contribution is . Uses the PIP stopping rule. - RSS likelihood extensions (
R_finite,R_mismatch,susie_rss_lambda):R_finiteaccounts 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 fromsusie_rss_control, andsusie_rss_lambdamodels an isotropic covariance term . - Component growth and trend filtering (
susie_auto,L_greedy,susie_trendfilter):susie_autodoubles fromL_init=1up toL_max=512;L_greedyincrements in steps until the smallest component log Bayes factor drops belowgreedy_lbf_cutoff(0.1); andsusie_trendfilterapplies an implicit cumulative-sum operator of order . (SuSiE-inf,SuSiE-ash, andMr.ASHare 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 component-inclusion probability matrix :
preserving original component row order and variant column order (including inactive components), while verifying that all entries lie in and each row sums to 1 within . Marginal PIPs, credible-set memberships, posterior moments, and convergence metrics are evaluated alongside 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.