Add SER fallback + finite-sample/EB knobs to GWAS SuSiE-RSS fine-mapping#552
Merged
Merged
Conversation
fineMappingPipeline (GwasSumStats) gains serFallback, rFinite, rMismatch (+rMismatchMethod, checkPrior, keepFullFit). With serFallback=TRUE it fits SuSiE-RSS with finite-sample R + EB LD-mismatch and, when susieR flags the multi-effect fit unreliable (R_reliability_flag), reports the single-effect ser_model instead -- retaining the multi-effect fit and recording the flag on getSusieFit()$multiEffectFit/$R_reliability_flag/$serFallbackUsed. rFinite defaults to the LD-panel sample size. Gated so serFallback=FALSE (default) and all QTL paths are byte-identical. Reproduces the single-panel notebook's R_finite/eb + SER-fallback behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fineMappingPipeline (GwasSumStats) gains
serFallback,rFinite,rMismatch(+rMismatchMethod,checkPrior,keepFullFit). WithserFallback=TRUEit fits SuSiE-RSS with finite-sample R + EB LD-mismatch and, when susieR flags the multi-effect fit unreliable (R_reliability_flag), reports the single-effectser_modelinstead — retaining the multi-effect fit (keepFullFit, default fallback-only) and recording the decision ongetSusieFit().rFiniteauto-defaults to the LD-panel sample size. Gated soserFallback=FALSE(default) and all QTL paths are byte-identical.Tests: 448/0 fineMappingPipeline (fire path, default-off, forwarding, retention, QTL-unaffected), wrappers/sumstatsQc/ld green. Validated on chr21 AD_Bellenguez (default lead chr21:26135742:T:C matches baseline) + chr22 MWE.