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.

Enrichment and functional validation mini-protocol

Evaluate prioritized genes and variants using pathway, genomic-annotation, and heritability-enrichment analyses.

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 provides alternative functional follow-up routes. Step 1 calls gsea.ipynb, step 2 calls eoo_enrichment.ipynb, steps 3–5 call gregor.ipynb, and steps 6–9 call sldsc_enrichment.ipynb. Pathway analysis, enrichment-over-odds, GREGOR, and S-LDSC use different inputs and null models. Select the route matching the scientific question; only the numbered commands within the GREGOR and S-LDSC routes form ordered chains.

Steps

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

Analysis goalCommands to run, in orderInputs
Test pathway and GO-term enrichment of gene groups1tests/fixtures/gsea/protocol_example.pathway_genes.tsv
Test annotation enrichment using variant-level odds2tests/fixtures/eoo_enrichment/protocol_example.eoo_significant_variants.tsv.gz; input/enrichment/protocol_example.eoo_baseline_annotation.tsv
Test overlap of index SNPs with genomic annotations using matched controls3 → 4 → 5tests/fixtures/gregor/index.snps.txt; tests/fixtures/gregor/protocol_example.bed.file.index; input/enrichment/protocol_example.gregor_ref
Partition GWAS heritability across annotations6 → 7 → 8input/enrichment/sldsc/colocboost_test_annotation_path.txt; input/enrichment/sldsc/reference_annotation0.txt; input/enrichment/sldsc/genome_reference_bfile.txt; tests/fixtures/sldsc_enrichment/sumstats_test_all.txt
Re-meta-analyze a selected subset of S-LDSC traits8 → 9tests/fixtures/sldsc_enrichment/expected/sldsc_postprocess.rds; tests/fixtures/sldsc_enrichment/sumstats_test_category1.txt

Run only the route appropriate for the scientific question. GREGOR steps 3–5 and S-LDSC steps 6–8 are ordered workflows; step 9 is an optional follow-up.

1. Test pathway and GO enrichment

What it does: Maps grouped genes to ENTREZ identifiers and tests KEGG and GO BP/CC/MF over-representation for each group.

Timing: TBD

2. Estimate enrichment over odds

What it does: Estimates annotation odds ratios and enrichment with chromosome block-jackknife uncertainty.

Timing: TBD

3. Create a GREGOR configuration

What it does: Writes the configuration connecting index SNPs, annotation BED files, population settings, and the GREGOR reference database.

Timing: TBD

4. Run GREGOR enrichment

What it does: Compares annotation overlap for index SNPs with overlap among LD- and frequency-matched control variants.

Timing: TBD

5. Plot GREGOR Fisher enrichment

What it does: Compares annotation odds ratios from two GREGOR result sets.

Timing: TBD

6. Build annotation LD scores

What it does: Converts genomic annotations into chromosome-level annotation and LD-score files for stratified LD-score regression.

Timing: TBD

7. Estimate stratified SNP heritability

What it does: Runs S-LDSC for each trait and annotation target to estimate annotation-specific heritability enrichment.

Timing: TBD

8. Postprocess and meta-analyze S-LDSC results

What it does: Standardizes per-trait results and computes random-effects meta-analyses across traits.

Timing: TBD

9. Re-meta-analyze a trait subset

What it does: Reuses postprocessed S-LDSC results to estimate enrichment for a selected subset without rerunning regression.

Timing: TBD

Output

StepRelative pathContents
1output/gsea/pathway_analysis/protocol_example.combined_pathway_results.rdsStandardized KEGG and GO enrichment results for all gene groups
2output/eoo_enrichment/enrichment/protocol_example.baseline.enrichment_results.rdsOdds ratios, enrichment estimates, and block-jackknife uncertainty
3output/gregor/protocol_example.index.gregor.confGREGOR configuration
4output/gregor/<name>_gregor_output/StatisticSummaryFile.txtRaw GREGOR overlap statistics
4output/gregor/<name>_variant_counts.txtParsed annotation overlap counts
4output/gregor/<name>_enrichment_results.txtFisher-test enrichment estimates
5output/gregor/<result1>_vs_<result2>_enrichment.pdfGREGOR odds-ratio comparison
6output/sldsc_ldscore/<annotation_name>/*.{annot.gz,l2.ldscore.parquet,l2.M}Annotation and LD-score products
7output/sldsc_heritability/<annotation_name>/<trait>.resultsTrait- and annotation-specific S-LDSC results
8output/sldsc_postprocess/<annotation_name>.sldsc_postprocess.rdsPer-trait results and cross-trait meta-analysis
9output/sldsc_postprocess/<subset_name>*Trait-subset meta-analysis tables

Anticipated Results

Pathway analysis summarizes biological processes represented by prioritized genes. Enrichment-over-odds and GREGOR test whether prioritized variants overlap functional annotations more than expected under their respective background models. S-LDSC tests whether GWAS heritability is disproportionately concentrated in annotations while accounting for LD.

Interpret enrichment in light of the selected background, annotation coverage, population-matched reference data, multiple testing, and uncertainty. Enrichment supports functional relevance but does not by itself validate a causal gene, variant, or mechanism.

Command Interface