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

Numerical accuracy

To verify that prusie's computational optimizations preserve the statistical results of SuSiE, we systematically evaluated numerical consistency between prusie 0.3.0 and the reference R package susieR 0.16.6 under identical inputs and parameter settings. Our primary metric is the maximum absolute difference across the complete L×pL \times p component-inclusion probability matrix (alpha), complemented by comparisons of marginal posterior inclusion probabilities (PIPs), iteration counts, convergence status, and credible-set memberships.

The evaluations below span 1,472 fixed-reference regression checks across threading and memory modes, large-scale real-data benchmarks across 200 FinnGen type 2 diabetes GWAS loci and 14,157 GTEx whole-blood eQTL genes, and the bundled synthetic toy dataset.

Component posterior validation

All comparisons use susieR 0.16.6 (commit 8e56a8e038e989856d106d9ca5175cc664fea9d2) with matched inputs, variant ordering, and model parameters. For each analysis, we compute the maximum absolute difference across the entire final alpha matrix—retaining original component and variant order, including inactive components and components without credible sets—and verify that all entries lie in [0,1][0, 1] with row sums equal to 1 within 10−1010^{-10} (see Computational compatibility).

Across the real-data benchmarks, median per-case maximum alpha differences are below 10−910^{-9}, orders of magnitude smaller than any threshold relevant to biological interpretation. Furthermore, IBSS iteration counts, convergence flags, and extracted credible-set memberships were identical between prusie and susieR in every evaluated case.

In addition to the real-data benchmarks, our release qualification suite tests 184 SuSiE-RSS test cases across four thread counts (n_threads=1, 2, 4, and 8) and both LD workspace modes (overwrite_ld=False and overwrite_ld=True). Across all 1,472 case–setting combinations (2,944 independent fits), the largest absolute alpha difference from susieR was 9.65×10−89.65 \times 10^{-8}, and repeated prusie calls under the same setting agreed bit-for-bit in alpha (see release_qualification.json).

Variant inclusion probabilities

In our primary empirical benchmark, we compared prusie (n_threads=1, refine=False) against susieR 0.16.6 across 200 FinnGen R13 type 2 diabetes GWAS loci and 14,157 GTEx v11 whole-blood eQTL genes on exclusive AMD EPYC 7742 nodes (see Real GWAS and eQTL inputs and Performance methods). The posterior arrays compared below were saved directly from the timed benchmark runs in binary float64 precision:

Analysis Cases Per-case max |Δalpha|, median [IQR] Cases ≤ 1e-8 Largest Per-case max |ΔPIP|, median Largest
GWAS 200 8.7e-10 [3.36e-10, 1.9e-09] 96.5% 4.05e-08 7.5e-10 4.05e-08
eQTL 14,157 7.29e-10 [2.41e-10, 1.61e-09] 98.8% 4.35e-05 4.95e-10 0.000243

Complete per-locus and per-gene error metrics are archived in benchmark_records.jsonl.gz.

Each case's maximum absolute alpha difference (top) and PIP difference (bottom) against variant count, for GWAS and eQTL, with nonconverged cases marked.
Open original figure

In the figure above (PDF), vertical axes are log⁡10\log_{10}-scaled, exact zeros appear in a dedicated band at the bottom, and horizontal dotted lines mark the dataset medians.

Analysis prusie nonconverged susieR nonconverged
GWAS 0 0
eQTL 224 224

Nonconverged fits stopped at max_iter=100. They remain in every runtime and memory summary.

Largest differences

The six analyses with the largest maximum absolute alpha difference (Dα>10−6D_\alpha > 10^{-6}) all occurred among the 224 eQTL genes where neither prusie nor susieR converged within max_iter=100. Even in these unconverged trajectories, both packages halted at iteration 100 and returned the exact same credible sets:

Case Variants Max |Δalpha| Max |ΔPIP| Iterations (prusie / susieR) Converged Credible sets (prusie / susieR)
ENSG00000110203.10 3,042 4.35e-05 4.35e-05 100 / 100 neither 9 / 9
ENSG00000164741.15 6,644 1.59e-05 1.59e-05 100 / 100 neither 8 / 8
ENSG00000131238.18 2,967 2.94e-06 9.47e-08 100 / 100 neither 10 / 10
ENSG00000243264.3 1,031 2.45e-06 2.45e-06 100 / 100 neither 7 / 7
ENSG00000293517.2 2,387 2.25e-06 8.61e-07 100 / 100 neither 7 / 7
ENSG00000242371.1 1,590 1.4e-06 1.17e-06 100 / 100 neither 9 / 9

The single largest marginal PIP discrepancy (2.43×10−42.43 \times 10^{-4}, in gene ENSG00000080822.17) occurred in a converged fit where the full alpha matrix agreed to within 1.72×10−91.72 \times 10^{-9}. Because marginal PIPs include only components whose final estimated prior variance VℓV_\ell exceeds prior_tol (10−910^{-9}), a diffuse component whose estimated VℓV_\ell lands just above 10−910^{-9} in one implementation and just below 10−910^{-9} in the other causes a boundary step of ∼2.4×10−4\sim 2.4 \times 10^{-4} in pip despite virtually identical alpha entries (see Posterior fields and Iterations and finalization).

Iterations and alpha differences

Because prusie and susieR order floating-point operations differently and each IBSS sweep builds on the preceding sweep's residual, minor floating-point roundoff can accumulate across iterations. The figure below plots each analysis's maximum absolute alpha difference against the number of executed IBSS sweeps:

Maximum absolute alpha difference against IBSS iterations for each case, with nonconverged cases marked.
Open original figure

Among all converged fits, DαD_\alpha never exceeded 4.05×10−84.05 \times 10^{-8} in GWAS or 2.55×10−72.55 \times 10^{-7} in eQTL. Across the eQTL panel, median DαD_\alpha increases only gradually with iteration count—from 4.25×10−104.25 \times 10^{-10} for fits completing in 1–5 sweeps (n=8,886n = 8{,}886) to 1.75×10−91.75 \times 10^{-9} for fits requiring 21–50 sweeps (n=181n = 181). The correlation between sweep count and log⁡10Dα\log_{10} D_\alpha is modest (0.220.22 in GWAS and 0.230.23 in eQTL), indicating that case-to-case variation is primarily governed by the conditioning of the local LD matrix rather than iteration count.

Credible sets

Across both real-data panels, credible sets were extracted at coverage=0.95 and minimum absolute LD correlation min_abs_corr=0.5:

Analysis Backend Credible sets Cases with no credible set
GWAS prusie 1,139 7
GWAS susieR 1,139 7
eQTL prusie 14,207 5,049
eQTL susieR 14,207 5,049

Counts come from the first retained call. Credible sets re-derived from the saved final alpha of both implementations with the susieR 0.16.6 rule contain the same variants in every case.

Every credible set extracted across all 200 GWAS loci (1,139 sets) and 14,157 eQTL genes (14,207 sets) had identical variant membership in prusie and susieR; full per-case membership records are archived in cs_membership.tsv.

Independent toy example

The bundled 500-variant synthetic dataset (prusie.load_example()) provides a quick local verification against a frozen susieR 0.16.6 reference fit:

The independent 500-variant toy example converged in 3 iterations and returned 2 credible sets. Its maximum absolute PIP difference from the separately generated susieR 0.16.6 reference was 1.66e-10.

Signed z-scores (top) and prusie and susieR PIPs (bottom) for the synthetic toy example.
Open original figure

Vertical dashed lines mark the two simulated causal variants, both of which are recovered in identical singleton credible sets by prusie and susieR (vector PDF; see the quick-start tutorial for simulation details).

Reproduce the comparisons

Aggregate statistics and per-case comparison records are archived in benchmark_summary.json and benchmark_records.jsonl.gz. You can regenerate all tables and figures from the archived records without refitting by following the Level A reproducibility instructions, or run a local verification against R using the toy R comparison tool.