← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / OpenAI4S / skills / bioskills / bio-population-genetics-rare-variant-association / references / usage-guide.md

Rare-Variant Association - Usage Guide

Overview

Rare variants have too few carriers for single-variant GWAS to detect, so the unit of analysis becomes a gene or region and the question becomes which aggregation test to use. That choice is a bet about the unobserved effect architecture: a burden test assumes every variant in the mask acts in the same direction and is most powerful when that holds but cancels to a null under mixed directions, SKAT is a variance-component test robust to mixed directions but weaker when the truth is unidirectional, and SKAT-O optimally blends the two. The mask - which variants enter, by functional class and MAF cutoff - is the hypothesis, not a preprocessing detail, and the null model (SPA/Firth for imbalance, an LMM for relatedness) is what keeps the aggregate calibrated.

Prerequisites

Quick Start

Tell your AI agent what you want to do: - "Run gene-based burden, SKAT, and SKAT-O tests on my exome data" - "Build LoF-only and LoF+missense masks at MAF 0.001 and 0.01 and test each gene" - "Use SAIGE-GENE+ for an imbalanced binary trait in a related cohort" - "Run regenie gene tests with the SKAT-O and ACAT-O omnibus and Firth fallback" - "Decide whether burden or SKAT fits my gene's effect architecture" - "Set an exome-wide significance threshold for my gene tests"

Example Prompts

Test selection

"I have a gene with both predicted gain-of-function and loss-of-function rare variants - which aggregation test should I run, and why not a plain burden test?"

Biobank pipeline

"Run regenie step 2 gene-based tests on my whole-exome data with LoF and LoF+missense masks at AAF 0.001 and 0.01, request SKAT-O and ACAT-O, and turn on Firth for the imbalanced binary trait."

Imbalance and relatedness

"My case:control ratio is 1:50 and the sample has cryptic relatedness - set up SAIGE-GENE+ to test each gene across MAF cutoffs 0.0001, 0.001, and 0.01."

Direct R analysis

"For a small case-control cohort, fit a SKAT null model on covariates and report burden, SKAT, and SKAT-O p-values for one gene with Beta(1,25) MAF weighting."

Masks and thresholds

"Explain how to build the annotation, set-list, and mask-definition files for regenie and what exome-wide significance threshold to use across multiple masks."

What the Agent Will Do

  1. Confirm the scope is gene/region aggregation, not single-variant GWAS (which routes to association-testing), and identify the trait type and sample structure.
  2. Choose the engine: regenie or SAIGE-GENE+ for biobank scale (SAIGE-GENE+ when imbalance/relatedness dominate), or the SKAT R package for small scriptable cohorts.
  3. Build the variant masks from functional annotations and MAF cutoffs, treating the mask as the hypothesis and testing a small grid rather than one default.
  4. Select the test from the architecture prior: burden for a single-direction mask, SKAT for mixed directions, SKAT-O when unknown, ACAT-O/STAAR for omnibus or annotation-weighted analysis.
  5. Calibrate the null: SPA/Firth for imbalance, an LMM null (LOCO predictor or sparse GRM) for relatedness, and QC out imputed/low-quality variants first.
  6. Set the per-gene-per-mask significance threshold (exome-wide ~2.5e-6, tighter with multiple masks or combined via ACAT-O) and report the mask with each result.

Tips