On this page
Reading fine-mapping results
A fitted SuSiE model decomposes regional genetic associations into single-effect components, quantifying both variant-level evidence and component-level localization uncertainty. In practice, interpretation begins with the marginal posterior inclusion probabilities (PIPs) in fit.pip and the retained credible sets in fit.sets, followed by posterior concentration metrics, within-set LD purity, and convergence diagnostics.
Note that component indices correspond to rows of fit.alpha rather than a ranking of signal strength, and a variant inside a multi-variant credible set may have a moderate marginal PIP simply because posterior mass is shared across tightly correlated partners. See Statistical model for formal definitions.
PIP, alpha and credible sets
PIPs rank individual variants across the entire region, whereas alpha and credible sets describe how each individual component distributes its posterior probability across candidate variants:
| Quantity | Attribute / location | Interpretation |
|---|---|---|
| Marginal PIP | fit.pip |
Probability that a variant is included in at least one active component |
Component alpha |
fit.alpha |
Posterior inclusion probability distribution across variants within each component |
| Credible set (CS) | fit.sets |
Smallest subset of variants reaching the target posterior mass (coverage) for an active component |
| LD purity | fit.sets["purity"] |
Minimum, mean, and median absolute pairwise correlation ($ |
| Effective candidates | effective_candidates in summarize |
Entropy-based measure of posterior spread within a component |
For component and variant , let denote fit.alpha[l, j] and denote the prior variance fit.V[l]. For standard models without a slot-activity prior, let be the set of active components. The marginal PIP for variant is:
fit.pip excludes the optional null column. Note that an active component () contributes to fit.pip even if its credible set is later filtered out due to low LD purity. When a slot-activity prior is used, each is weighted by the component's posterior activity probability (slot_weights) before taking the product.
To construct a credible set for component , variants are sorted in descending order of and added until their cumulative probability reaches coverage (default 0.95). Because the final variant is included in full, the attained posterior mass (fit.sets["coverage"]) is at least the target threshold. Candidate sets are then filtered by component activity, deduplicated, and screened for LD purity (min_abs_corr=0.5 by default; see Credible-set fields). Singleton credible sets have purity 1.0 by convention.
See the quick-start tutorial and toy example for worked examples of interpreting singleton and multi-variant credible sets.
Posterior summaries
Calling summary = prusie.summarize(fit, R) compiles variant, component, and credible-set tables, along with credible-set filtering audits (summary["cs_audit"]), high-LD proxy variants (summary["proxies"]), and prior-influence diagnostics (summary["prior_influence"]). Pass R as the signed LD correlation matrix aligned with fit.variant_ids. You can also pass new coverage or min_abs_corr thresholds to summarize to re-extract credible sets from the existing posterior without refitting.
For each component , summary["components"] reports effective_candidates, the exponential of the Shannon entropy of its non-null inclusion probabilities :
Probability mass assigned to the null column is reported separately in null_mass (if all mass lies on the null column, effective_candidates is None). An effective candidate count near 1 indicates that the component's posterior is concentrated on a single variant, whereas larger values reflect probability shared across multiple correlated candidates.
When R is provided, summary["proxies"] lists variants outside each retained credible set that have (default 0.99) with at least one member of that set. Each credible set's representative (lead) variant is the member with the largest component-specific (ties broken by lexical variant ID). Finally, summary["prior_influence"] (visualized via plot_prior_influence) compares the supplied prior weights, component-conditional log Bayes factors, and final posterior probabilities ; see Priors and zero-information columns and Variant alignment and prior weights.
Share an offline assessment
prusie.report.write_report generates a self-contained HTML directory suitable for local review or sharing with collaborators. The report opens with a What to check first banner that automatically highlights potential diagnostic issues—such as nonconvergence, decreasing ELBO, credible sets altered by refinement, competing near-tied refinement candidates, sensitivity instability, or LD mismatch flags:
from prusie.report import write_report
summary = prusie.summarize(fit, example["inputs"]["R"])
report = write_report(summary, "analysis-report", title="Toy example")
print(report["html"])
You can pass comparison= (from compare_fits or run_sensitivity), ld= (from diagnose_ld), and figures= (from prusie.viz) to include sensitivity tables, LD diagnostic summaries, and plots in the report. Every table is also exported as a CSV file, and prusie.summary_text prints the same diagnostic flags in plain text.
Result object
All fitting functions return a SusieResult instance encapsulating the posterior arrays, credible sets, and run metadata. Variant and component indices are zero-based, and non-null variants preserve their input order (after any MAF filtering).
In the dimension descriptions below, let denote the number of retained biological variants, when a null column is present (fit.null_index is not None) or otherwise, and denote the number of single-effect components (including inactive rows).
Calling fit.as_dict() returns a dictionary view of the stored public fields without copying the underlying NumPy arrays (converting input_quality to a plain dict and omitting computed properties such as coef).
Posterior fields
With dimensions , , and defined as above, SusieResult provides the following core posterior attributes:
| Field | Shape / type | Description |
|---|---|---|
variant_ids |
(p,) strings |
Variant identifiers in input order (excluding any null column) |
alpha |
(L, q) float64 |
Component inclusion probabilities; each row sums to 1 |
mu |
(L, q) float64 |
Conditional posterior mean effect sizes on the working predictor scale |
mu2 |
(L, q) float64 |
Conditional posterior second moments () on the working scale |
lbf_variable |
(L, q) float64 |
Per-variant natural-log Bayes factors before weighting by variant prior probabilities |
lbf |
(L,) float64 |
Component-level log marginal Bayes factors () |
V |
(L,) float64 |
Estimated or fixed component prior variances after final trimming |
sigma2 |
float |
Residual variance parameter on the working response scale |
pip |
(p,) float64 |
Marginal posterior inclusion probabilities across active components (null column excluded) |
coef |
(p,) property |
Posterior mean regression coefficients rescaled to the input predictor scale (null excluded) |
KL |
(L,) float64 |
Component Kullback–Leibler divergences (zero for trimmed components) |
elbo |
(niter,) float64 |
Evidence lower bound recorded at the end of each IBSS sweep (before final trimming) |
XtXr |
(q,) float64 |
Fitted crossproduct vector |
X_column_scale_factors |
(q,) float64 |
Predictor standardization divisors (including null column when present) |
intercept |
float |
Reconstructed intercept on the original scale (NaN when predictor/response means are unavailable) |
For standard models, component 's marginal posterior mean on the working scale is ; for slot-prior models, coef, intercept, and fitted additionally weight each component by its posterior activity probability (slot_weights). See Single-effect posteriors and effect means and From summaries to working sufficient statistics for coefficient unit conventions.
Note that XtXr stores the fitted crossproduct (not the residual). Standard Gaussian fits retain XtXr from the end of the final sweep prior to component trimming, whereas dynamic RSS routes (R_finite, R_mismatch, multi-panel RSS, and susie_rss_lambda) compute it from the trimmed posterior; see Iterations and finalization.
Depending on the fitting route and prior specification, the following optional fields may also be populated (and are None otherwise, where is the sample size and is the length of prior_variance_grid):
| Field | Shape when present | Description |
|---|---|---|
fitted |
(n,) |
Fitted response values for individual-level susie fits |
univariate_zscore |
(p,) |
Marginal univariate -scores when compute_univariate_zscore=True in susie |
slot_weights |
(L,) |
Posterior component activity probabilities under a slot prior |
lbf_grid |
(L, q, K) |
Log Bayes factors across components, variants, and mixture grid points |
rv |
(L,) |
Component-specific residual variance estimates under the conjugate NIG model |
marginal_loglik |
(L,) |
Integrated NIG single-effect log marginal likelihoods |
See Additional model options for details on mixture and NIG posterior quantities.
Credible-set fields
fit.sets is a dictionary describing the retained credible sets. The -th credible set has variant indices fit.sets["cs"][k] and originates from component fit.sets["cs_index"][k] (indexing the zero-based rows of fit.alpha):
| Key | Description |
|---|---|
cs |
List of 1D integer arrays containing the zero-based variant indices in each retained CS (sorted in ascending order) |
cs_index |
1D array of original zero-based component IDs (0 to L - 1) for each retained CS |
coverage, actual_coverage |
1D array of attained cumulative posterior mass for each retained CS |
requested_coverage |
Target coverage threshold used during extraction (e.g., 0.95) |
purity |
Dictionary of 1D arrays (min_abs_corr, mean_abs_corr, median_abs_corr) summarizing within-set LD correlations |
When no credible sets pass filtering—or when credible-set construction is disabled by passing coverage=None (or both min_abs_corr=None and median_abs_corr=None)—cs is an empty list and the accompanying arrays are empty, while fit.pip remains populated.
Exact CS extraction order and boundary cases
Credible-set extraction follows the exact sequence implemented in susieR 0.16.6:
- Candidate construction: For each component , variants are ranked by decreasing (breaking ties by ascending column index) and accumulated until their sum reaches
coverage, after which the selected member indices are sorted in ascending order. - Deduplication: Duplicate member sets are removed before activity and purity filtering, keeping only the first occurrence in component order.
- Activity screening: Components with are excluded (this fixed cutoff is independent of the configurable
prior_tolused for PIPs). - Optional LD extension: When
cs_extension_corris set, any non-null variant whose absolute correlation with an initial CS member strictly exceedscs_extension_corris added to the set in a single hop (without re-deduplicating). - Purity screening and sorting: Any candidate set containing the null column is discarded when purity is evaluated. Singleton sets have purity
1.0. For matrix inputs (RorXtX), purity is computed across all unordered member pairs (n_puritydoes not subsample matrix inputs); for individual-levelX, sets larger thann_puritysubsample up ton_puritymembers to estimate purity while retaining all members incs. Sets must satisfymin_abs_corr(or either threshold ifmedian_abs_corris also specified), and retained sets are sorted in descending order of minimum purity (or median purity whenmin_abs_corr=None).
See PIP and credible sets for the statistical interpretation of coverage and purity.
Iterations and finalization
fit.niter records the number of completed IBSS sweeps (up to max_iter), and fit.converged indicates whether the active stopping criterion was satisfied. Detailed diagnostics—including the requested and effective stopping rules, final sweep deltas, and cycle records—are stored in fit.convergence.
Under the default ELBO stopping rule (convergence_method="elbo"), convergence is declared at sweep (default 2) when . Under the susieR-compatible PIP stopping rule (convergence_method="pip", or automatically for models listed in Stopping rules), convergence holds when both and , or when a short cycle of length is detected (in which case alpha is averaged across the cycle). When an explicit ConvergenceConfig with criterion="alpha_pip" or "joint" detects a cycle before the tolerance is met, the solver exits with stop_reason="cycle_detected" and converged=False.
If the ELBO evaluates to NaN during an "elbo" fit while the posterior arrays remain finite, the native solver automatically switches to an alpha/PIP fallback at or after min_iter, recorded as fit.convergence["effective_criterion"] == "alpha_pip_nonfinite_fallback". In "joint" mode, a NaN ELBO terminates immediately with stop_reason="numerical_failure", and an infinite ELBO always raises ValueError. See Convergence diagnostics and Continue first, then consider refinement for guidance on diagnosing and extending unconverged fits.
Residual-variance updates, trim thresholds and stored field phases
Within each IBSS sweep, the ELBO and stopping criterion are evaluated before updating the residual variance . When convergence is reached, the trailing update is skipped; when a fit exits at max_iter with estimate_residual_variance=True, the trailing update executes, so the returned fit.sigma2 reflects the post-sweep update rather than the value used in fit.elbo[-1] (see ELBO and residual variance).
After the IBSS loop terminates, final trimming zeroes out V, mu, mu2, lbf_variable, lbf, and KL for any component with and resets its alpha row to the normalized prior weights (for NIG fits, V is scaled by rv prior to this check; see Additional model options). Marginal PIPs are computed from the finalized arrays over components with , while credible sets use their fixed cutoff.
Note that fit.elbo and (on standard Gaussian routes) fit.XtXr record values prior to final trimming, whereas fit.convergence["finalization"] logs the post-trimming adjustments.
Metadata and persistence
SusieResult also stores provenance, parameter, and quality-control metadata:
| Field | Description |
|---|---|
niter |
Completed IBSS sweeps for the returned fit |
converged, ibss_converged |
Overall convergence boolean (and property alias; reflects the outer search status after refine_fit) |
convergence, trace |
Stopping-rule metadata and optional per-sweep tracking history |
refinement |
Refinement search summary (status="not_executed" when refinement was not run) |
null_index |
Column index of the appended null component, or None |
params |
Resolved fitting arguments, normalized prior weights, effective dimensions, and RSS scale factors |
backend_version |
prusie version and pinned susieR reference commit |
warnings |
List of warning messages emitted during preparation and fitting |
qc, input_quality |
Input validation records as a dictionary (qc) and typed InputQuality dataclass |
variant_metadata |
Caller-supplied variant annotations aligned to variant_ids |
data_signature |
SHA-256 digest of the retained input snapshot (None when inputs were not retained) |
R_finite_diagnostics |
Diagnostic summaries for finite-reference and LD-mismatch RSS models |
Note that after running refine_fit, fit.converged reports whether the refinement search completed, while fit.convergence["inner_ibss_converged"] records whether the accepted candidate's inner IBSS loop met its stopping rule (see Convergence diagnostics).
To save and reload a SusieResult without refitting, use save_analysis(fit, directory) and load_analysis(directory) from prusie.report, which write analysis.json and arrays.npz (verified via SHA-256 checksums and loaded with allow_pickle=False; see the quick-start tutorial and manual export example). Because saved archives omit the in-memory input snapshot, a reloaded fit cannot be passed directly to continue_fit, though it can warm-start a new fit via s_init=restored when the original inputs are supplied (see Technical details and Sources and reproducibility).