Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

GWAS and xQTL integration mini-protocol

Integrate molecular-QTL results with GWAS using enrichment, colocalization, TWAS, cTWAS, quantile TWAS, or INTACT.

Miniprotocol Timing

This is the total duration for the selected route; module-specific timings appear on their respective pages. Timing: TBD

Overview

This mini-protocol presents complementary routes for connecting molecular-QTL and GWAS evidence. Steps 1–2 call SuSiE_enloc.ipynb, steps 3–7 call twas_ctwas.ipynb, and step 8 calls intact.ipynb. Enrichment, colocalization, standard TWAS, cTWAS, quantile TWAS, and INTACT answer different questions and are not one mandatory chain. Only cTWAS steps 4–6 must be run sequentially.

Steps

Choose a route before running commands; the commands are not one mandatory chain.

Analysis goalCommands to run, in orderInputs
Estimate global xQTL–GWAS enrichment1tests/fixtures/susie_enloc/protocol_example.enloc.gwas_meta.tsv; tests/fixtures/susie_enloc/protocol_example.enloc.xqtl_meta.tsv; fine-mapping objects referenced by those tables
Test pairwise colocalization2The same GWAS and xQTL fine-mapping metadata as step 1
Run standard TWAS and MR3tests/fixtures/twas/protocol_example.twas.gwas_meta.tsv; tests/fixtures/twas/protocol_example.twas.xqtl_meta.tsv; tests/fixtures/ld_reference/ld_meta_file.tsv; tests/fixtures/twas/protocol_example.twas.LD_blocks.chr22.bed; tests/fixtures/twas/protocol_example.twas.data_type_table.txt
Fine-map genes and SNPs jointly with cTWAS4 → 5 → 6GWAS, xQTL, LD-reference, and region metadata used by the TWAS route
Run quantile TWAS7The TWAS inputs, with quantile-specific molecular-QTL weights
Combine PTWAS and fastenloc evidence8tests/fixtures/intact/protocol_example.ptwas.output; tests/fixtures/intact/protocol_example.fastenloc.gene.out

Run only the commands for the selected route. Steps 4–6 are one chained cTWAS analysis; the other numbered steps are independent alternatives.

1. Estimate global xQTL–GWAS enrichment

What it does: Estimates whether fine-mapped xQTL signals are enriched among GWAS signals across many regions and molecular contexts.

Timing: TBD

2. Test pairwise colocalization

What it does: Tests whether an xQTL and GWAS association in the same region are consistent with a shared causal variant.

Timing: TBD

3. Run standard TWAS and MR

What it does: Tests genetically predicted molecular traits for association with the GWAS trait and reports regional Mendelian-randomization results.

Timing: TBD

4. Assemble cTWAS region data

What it does: Harmonizes GWAS statistics, xQTL weights, and LD for the regions that will enter cTWAS fine-mapping.

Timing: TBD

5. Estimate cTWAS global parameters

What it does: Reuses the assembled inputs from step 4 to estimate the prior parameters required by cTWAS.

Timing: TBD

6. Fine-map genes and SNPs with cTWAS

What it does: Uses the assembled inputs and estimated parameters to calculate joint posterior inclusion probabilities for genes and SNPs.

Timing: TBD

7. Run quantile TWAS

What it does: Runs the quantile-TWAS route for molecular-trait effects that may differ across the phenotype distribution.

Timing: TBD

8. Combine PTWAS and colocalization with INTACT

What it does: Combines PTWAS z-scores with fastenloc colocalization probabilities to prioritize genes supported by both association and colocalization evidence.

Timing: TBD

Output

StepRelative pathContents
1output/xqtl_gwas_enrichment/<name>.<context>.enrichment.rdsGlobal enrichment estimate for each GWAS–xQTL-context pair
2output/susie_coloc/susie_coloc/<name>.<context>@<gene>.coloc.rdsRegional SuSiE colocalization probabilities
3output/twas/twas/<name>.<region_id>.<gene>.twas.rdsPer-gene TWAS results
3output/twas/twas/<name>.<region_id>.twas.tsv.gzRegional TWAS summary
3output/twas/twas/<name>.<region_id>.mr_result.tsv.gzRegional Mendelian-randomization summary
4output/ctwas/<name>.ctwas_inputs.rdsAssembled cTWAS inputs
5output/ctwas/<name>.ctwas_est.rdsEstimated cTWAS prior parameters
6output/ctwas/<name>.ctwas_finemap.rdsJoint gene and SNP fine-mapping results
7output/quantile_twas/<name>.*Quantile-TWAS results, with stems determined by the analysis regions
8output/intact/DLPFC.INTACT.rdsGene-level INTACT posterior probabilities

Some workflows derive context, gene, or region identifiers from metadata, so their output contains one file per analysis unit.

Anticipated Results

Enrichment evaluates global sharing between molecular-QTL and GWAS signals, whereas colocalization evaluates individual regions. TWAS prioritizes traits whose genetically predicted levels associate with the GWAS outcome; cTWAS jointly fine-maps genes and SNPs; INTACT prioritizes genes supported by both PTWAS and colocalization.

These analyses provide complementary evidence, not interchangeable proof of causality. Interpret prioritized genes together with fine-mapping quality, LD, prediction performance, colocalization support, tissue relevance, and sensitivity analyses.

Command Interface