Identify likely causal variants within GWAS loci by computing posterior inclusion probabilities (PIPs) and constructing credible sets. SuSiE handles multiple causal variants and integrates with colocalization analysis.
install.packages('susieR')
install.packages(c('ggplot2', 'patchwork'))
# FINEMAP (command-line tool)
# Download from http://www.christianbenner.com/# For LD matrix generation
# plink v1.9+ required
conda install -c bioconda plinkTell your AI agent what you want to do:
- "Fine-map this GWAS locus to a 95% credible set"
- "Compute PIPs for all variants at my GWAS hit using SuSiE"
- "Run FINEMAP on this locus with the LD matrix from 1000 Genomes"
"I have GWAS summary stats and an LD matrix for a locus on chromosome 6 -- run SuSiE and report the credible sets"
"Fine-map my GWAS signal using susie_rss with L = 10"
"Set up FINEMAP input files for this locus and run the stochastic search"
"Compare SuSiE and FINEMAP results at my top GWAS locus"
"Make a PIP plot alongside the GWAS Manhattan for this locus"
"Color the regional plot by credible set membership"
"Generate an LD matrix from 1000 Genomes Europeans for this 1 Mb region"
- Extract locus data (typically 1 Mb window around lead SNP)
- Obtain or compute LD matrix from matched ancestry reference
- Run SuSiE (susie_rss) with summary statistics and LD
- Extract 95% credible sets and PIPs
- Report credible set size, purity, and top PIP variants
- Optionally run FINEMAP for comparison
- Generate PIP and regional association plots
- L parameter - Start with L = 10; SuSiE automatically prunes unused effects
- LD ancestry match - The LD reference must match the GWAS sample ancestry; mismatched LD causes false signals
- Credible set purity - Minimum absolute correlation > 0.5 indicates a well-resolved signal
- PIP thresholds - PIP > 0.95 is strong evidence; PIP > 0.5 is suggestive
- FINEMAP comparison - When SuSiE and FINEMAP agree, results are more reliable
- Positive semi-definite - Add a small ridge to the LD matrix diagonal if eigenvalues are negative
- causal-genomics/colocalization-analysis - SuSiE-coloc for shared causal variants
- causal-genomics/mendelian-randomization - Fine-map instrument loci
- population-genetics/linkage-disequilibrium - LD reference panels
- variant-calling/variant-annotation - Annotate fine-mapped variants