[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EEX64CQ7E94CANXE6XSM0X":3,"skill-same:01M7EEX64CQ7E94CANXE6XSM0X":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7EEX64CQ7E94CANXE6XSM0X","bio-population-genetics-association-testing",null,"Single-variant common-variant GWAS with plink2 --glm (linear\u002Flogistic, Firth) and the linear mixed models GEMMA, BOLT-LMM, SAIGE, regenie (SPA). A GWAS statistic is valid only when genotype is independent of unmodeled phenotype drivers after the chosen covariates and random effects, so the engine follows sample structure and case:control imbalance, not taste: PC covariates absorb continuous ancestry but cannot remove relatedness (a covariance structure needing an LMM), genomic inflation above 1 is mostly true polygenic signal not confounding (the LDSC intercept is the diagnostic), LOCO prevents proximal contamination, and SPA\u002FFirth keep the tail calibrated at extreme imbalance and low MAC. Use when running single-variant GWAS, choosing between a GLM and a mixed model, or controlling stratification, relatedness, and case:control imbalance. For rare-variant aggregation (burden, SKAT, SKAT-O, ACAT) see rare-variant-association; fine-mapping and MR see causal-genomics; PRS see clinical-databases\u002Fpolygenic-risk.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-population-genetics-association-testing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-population-genetics-association-testing\ndescription: >-\n  Single-variant common-variant GWAS with plink2 --glm (linear\u002Flogistic, Firth) and the linear mixed models GEMMA, BOLT-LMM, SAIGE, regenie (SPA). A GWAS statistic is valid only when genotype is independent of unmodeled phenotype drivers after the chosen covariates and random effects, so the engine follows sample structure and case:control imbalance, not taste: PC covariates absorb continuous ancestry but cannot remove relatedness (a covariance structure needing an LMM), genomic inflation above 1 is mostly true polygenic signal not confounding (the LDSC intercept is the diagnostic), LOCO prevents proximal contamination, and SPA\u002FFirth keep the tail calibrated at extreme imbalance and low MAC. Use when running single-variant GWAS, choosing between a GLM and a mixed model, or controlling stratification, relatedness, and case:control imbalance. For rare-variant aggregation (burden, SKAT, SKAT-O, ACAT) see rare-variant-association; fine-mapping and MR see causal-genomics; PRS see clinical-databases\u002Fpolygenic-risk.\ntool_type: cli\nprimary_tool: plink2\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"population-genetics\u002Fassociation-testing\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n## Version Compatibility\n\nReference examples tested with: PLINK 2.0 (alpha 6+), SAIGE 1.3+, regenie 3.4+, BOLT-LMM 2.4+, GEMMA 0.98+, numpy 1.26+, pandas 2.2+, scipy 1.12+.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\nVersion traps that change results, not just syntax: PLINK 2.0 `--glm firth-fallback` is the DEFAULT for binary traits and writes `.glm.logistic.hybrid` (mixed logistic and Firth rows), not `.glm.logistic`. SAIGE `--LOCO=TRUE` is the recommended default and the step-1 and step-2 sample IDs plus variance-ratio file must match exactly. regenie applies Firth\u002FSPA only when `--firth`\u002F`--spa` are explicitly set in step 2 (not automatic for every variant). BOLT-LMM is calibrated only for quantitative traits at large N (case fraction >= 10%, MAF > 0.1% for binary coding). The single source of truth for versions is this block, not headings.\n\n# Association Testing\n\n**\"Run a GWAS on my genotypes\"** -> Fit one regression per variant (additive dosage as predictor) under a confounder model chosen to make genotype independent of unmodeled phenotype drivers, then read effect sizes and p-values that are honest only insofar as that model holds.\n- CLI: `plink2 --glm firth-fallback hide-covar --covar pcs.eigenvec` for an unrelated sample whose structure is captured by PCs\n- CLI: `SAIGE` (SPA) or `regenie --step 1\u002F2 --firth` for relatedness and\u002For case:control imbalance; `GEMMA -lmm` or `BOLT-LMM --lmm` for related quantitative traits\n\nScope: single-variant common-variant GWAS (linear\u002Flogistic GLM, linear mixed models, SPA, Firth) and the choice between them. Rare-variant GENE-BASED AGGREGATION (burden, SKAT, SKAT-O, ACAT, STAAR) routes to rare-variant-association. Fine-mapping, Mendelian randomization, and TWAS route to causal-genomics\u002Ffine-mapping and causal-genomics\u002Fmendelian-randomization. Polygenic risk scores route to clinical-databases\u002Fpolygenic-risk. Imputed dosages enter from phasing-imputation\u002Fgenotype-imputation.\n\n## The Single Most Important Insight -- a GWAS statistic is valid only if genotype is independent of unmodeled phenotype drivers AFTER the chosen covariates and random effects\n\n1. Every classic GWAS pathology is one violation of that assumption with a specific signature: structure or cryptic relatedness lifts the whole QQ plot; a heritable covariate adjusted as a collider manufactures direction-flipped hits; case:control imbalance with low MAC under a score test makes the significant tail anti-conservative.\n2. The corollary that organizes the toolchain: under a real polygenic trait genomic inflation (lambda) is EXPECTED to exceed 1 and is mostly true signal, so genomic control over-corrects and erases discoveries; the LDSC intercept (not lambda) separates confounding from polygenicity (Bulik-Sullivan 2015).\n3. The fix differs per distortion, and the wrong fix makes it worse: lambda-correcting a polygenic trait, or adding PCs to a family sample, both silently degrade the result.\n4. Choosing the engine is choosing the assumption: a PC-adjusted GLM assumes structure is a low-rank mean shift, an LMM assumes a polygenic covariance, SPA\u002FFirth assume the score\u002FWald tail needs the cumulant-generating-function correction.\n\n## Tool Taxonomy\n\n| Method | Citation | Mechanism | When |\n|--------|----------|-----------|------|\n| plink2 `--glm` | Chang 2015 | Per-variant linear\u002Flogistic GLM; Firth fallback for separation | Unrelated sample, common variants, structure captured by PCs |\n| GEMMA `-lmm` | Zhou & Stephens 2012 | Exact LMM; fits sigma_g^2 once under the null, then per-variant Wald\u002FLRT\u002Fscore | Relatedness\u002Fstructure, quantitative trait, small-medium N |\n| BOLT-LMM `--lmm` | Loh 2015 | Variational LMM with a non-infinitesimal Bayesian mixture prior; LD-Score calibrated | Quantitative trait, very large N; gains power with large-effect loci |\n| SAIGE | Zhou 2018 | Sparse-GRM LMM + saddlepoint approximation (SPA) on the score statistic | Binary trait with relatedness AND case:control imbalance |\n| regenie `--step 1\u002F2` | Mbatchou 2021 | Whole-genome ridge (LOCO) predictor in step 1, Firth\u002FSPA test in step 2, no GRM eigendecomposition | Biobank scale, mixed binary+quantitative; one pipeline |\n\n## Decision Tree by Scenario\n\n| Scenario | Use | Why |\n|----------|-----|-----|\n| Unrelated, common variants, PCs absorb structure (LDSC intercept ~ 1) | plink2 `--glm` + PC covariates | Fast and exact; an LMM is unnecessary when PCs suffice |\n| Relatedness, family, or fine-scale structure | any LMM (GEMMA\u002FBOLT\u002FSAIGE\u002Fregenie) | PCs cannot remove a covariance structure; the GRM random effect can |\n| Quantitative trait, related, small-medium N | GEMMA `-lmm` or GCTA `--mlma-loco` | Exact LMM; LOCO avoids proximal contamination |\n| Quantitative trait, biobank N (>5000) | BOLT-LMM `--lmm` | Scales; non-infinitesimal model adds power; calibrated only at large N |\n| Binary trait, related AND imbalanced case:control | SAIGE (SPA) or regenie (`--firth`\u002F`--spa`) | SPA\u002FFirth keep the tail calibrated under imbalance and low MAC |\n| Binary trait, unbalanced, NO relatedness | plink2 `--glm firth-fallback` (default) | Firth handles separation; no GRM needed |\n| Imputed variants | regress on DOSAGES not hard calls | hard-calling discards imputation uncertainty and biases the SE |\n| Rare-variant signal at low MAC | rare-variant-association (burden\u002FSKAT\u002FSKAT-O\u002FACAT) | single-variant tests are powerless at low MAC; aggregate in a region\u002Fgene |\n\n## plink2 GLM (unrelated sample, PC-adjusted)\n\n```bash\n# Logistic for binary, linear for quantitative is auto-detected from the phenotype coding.\n# firth-fallback is the binary-trait default: ordinary logistic, falling back to Firth only on\n# non-convergence (separation). Output is .glm.logistic.hybrid (mixed logistic and Firth rows).\nplink2 --bfile qc --pheno pheno.txt --glm firth-fallback hide-covar \\\n    --covar pcs.eigenvec --covar-name PC1-PC10 --out gwas\n\n# Regress on imputed DOSAGES, not hard calls, so imputation uncertainty enters the SE. Reporting\n# columns add A1 frequency and the imputation R2 (machr2 is meaningful only on dosage input) for\n# downstream QC and effect-allele bookkeeping.\nplink2 --pfile imputed --pheno pheno.txt --glm firth-fallback hide-covar cols=+a1freq,+machr2 \\\n    --covar covars.txt --covar-name PC1-PC10,age,sex --out gwas_dosage\n```\n\nPCs must be computed on LD-pruned, MAF-filtered genotypes with long-range-LD regions excluded (see population-structure); too few PCs leave residual stratification, too many absorb real signal. `--glm sex` adds sex as a covariate on chrX (`no-x-sex` suppresses it); split the pseudoautosomal region before any chrX test (see plink-basics).\n\n## Linear mixed model with LOCO (relatedness \u002F structure)\n\n```bash\n# GEMMA: -gk builds the GRM (1=centered, 2=standardized), then -lmm fits one variance component.\n# The covariate file passed to -c MUST contain an explicit intercept column of 1s (GEMMA does not add one).\ngemma -bfile qc -gk 1 -o grm\ngemma -bfile qc -k output\u002Fgrm.cXX.txt -c covars_with_intercept.txt -lmm 4 -o lmm   # -lmm 4 = Wald+LRT+score\n\n# BOLT-LMM: --lmm decides by cross-validation whether the non-infinitesimal model adds power.\n# --lmmInfOnly forces the standard infinitesimal model; --lmmForceNonInf forces the mixture.\nbolt --bfile=qc --phenoFile=pheno.txt --phenoCol=trait \\\n    --covarFile=covars.txt --qCovarCol=PC{1:10} --lmm --LDscoresFile=LDSCORE.1000G_EUR.tab.gz \\\n    --statsFile=bolt.stats\n\n# SAIGE: step 1 fits the null GLMM (sparse GRM, variance ratio); step 2 runs the SPA score test per variant.\n# --LOCO=TRUE (default, recommended) excludes the tested chromosome from the polygenic predictor.\nstep1_fitNULLGLMM.R --plinkFile=qc --phenoFile=pheno.txt --phenoCol=trait --traitType=binary \\\n    --covarColList=PC1,PC2,age,sex --sampleIDColinphenoFile=IID --outputPrefix=step1 --LOCO=TRUE\nstep2_SPAtests.R --vcfFile=chr1.vcf.gz --GMMATmodelFile=step1.rda --varianceRatioFile=step1.varianceRatio.txt \\\n    --minMAC=20 --is_Firth_beta=TRUE --LOCO=TRUE --SAIGEOutputFile=chr1.saige\n\n# regenie: step 1 builds the whole-genome LOCO ridge predictor; step 2 tests with Firth (--approx for speed) or SPA.\nregenie --step 1 --bed qc --phenoFile pheno.txt --covarFile covars.txt --bt --bsize 1000 --out step1\nregenie --step 2 --bed qc --phenoFile pheno.txt --covarFile covars.txt --bt \\\n    --firth --approx --pThresh 0.01 --pred step1_pred.list --bsize 400 --out step2\n```\n\nLOCO (leave-one-chromosome-out) is not optional: if the tested variant's chromosome is in the GRM\u002Fpredictor, the random effect explains part of the variant's own signal and deflates power (proximal contamination). A hand-rolled \"GRM from all SNPs\" silently throws away power at every true locus.\n\n## Diagnose inflation: lambda vs the LDSC intercept\n\n```python\nimport numpy as np\nfrom scipy import stats\n\ndef lambda_gc(pvalues):\n    chisq = stats.chi2.ppf(1 - pvalues, 1)\n    return np.median(chisq) \u002F stats.chi2.ppf(0.5, 1)\n\n# lambda > 1 under a polygenic trait is EXPECTED and mostly true signal. Do NOT divide statistics by it.\n# Rescale to lambda_1000 (per 1000 cases\u002F1000 controls) before comparing studies of different N.\ndef lambda_1000(lam, n_cases, n_controls):\n    return 1 + (lam - 1) * (1 \u002F n_cases + 1 \u002F n_controls) \u002F (1 \u002F 1000 + 1 \u002F 1000)\n\n# The confounding diagnostic is the LDSC INTERCEPT (run ldsc on the sumstats), not lambda:\n# intercept ~ 1 with high lambda = polygenicity (clean); intercept materially > 1 = confounding.\n# Prefer the attenuation ratio = (intercept - 1) \u002F (mean(chi2) - 1): the fraction of inflation NOT due\n# to polygenicity (~0-0.2 acceptable). The intercept is also inflated by sample overlap in bivariate LDSC.\n```\n\n## Per-Method Failure Modes\n\n### Genomic control on a polygenic trait\n**Trigger:** dividing every chi-square by lambda_GC because lambda > 1.1. **Mechanism:** lambda rises with N and h2 under true polygenicity, so it is mostly signal. **Symptom:** discoveries vanish; power destroyed. **Fix:** never lambda-correct on lambda alone; use the LDSC intercept and only deflate if intercept-minus-1 is materially > 0.\n\n### PCs for a related sample\n**Trigger:** adding \"10 PCs\" to a family or cryptically-related cohort. **Mechanism:** relatedness is a pairwise covariance, not a low-rank mean shift, so no finite PC set removes it. **Symptom:** inflated, miscalibrated tail statistics despite the PCs. **Fix:** switch to an LMM (GEMMA\u002FBOLT\u002FSAIGE\u002Fregenie); more PCs is the wrong lever.\n\n### LMM without LOCO\n**Trigger:** building the GRM from all chromosomes including the candidate. **Mechanism:** the variant partly explains itself as a random effect. **Symptom:** deflated statistics, lost power at true loci. **Fix:** use the LOCO variant (`--mlma-loco`, SAIGE `--LOCO=TRUE`, regenie step-1 predictor).\n\n### Wald collapse \u002F score anti-conservatism at imbalance\n**Trigger:** plain logistic for a rare or near-monomorphic-in-one-arm variant, or a score test at extreme case:control. **Mechanism:** the MLE diverges (Wald BETA\u002FSE -> 0) or the score null is wrong in the tail. **Symptom:** real rare-variant signal looks non-significant, or the significant tail fills with artifacts. **Fix:** Firth (plink2 firth-fallback, regenie `--firth`) or SPA (SAIGE, regenie `--spa`).\n\n### HWE filtered in cases\n**Trigger:** HWE filter on the case-only or combined sample as a discovery QC step. **Mechanism:** a true non-additive disease variant legitimately deviates from HWE in cases. **Symptom:** real associations removed before testing. **Fix:** compute HWE in CONTROLS (or founders) only (see plink-basics).\n\n### Adjusting for a heritable covariate (collider)\n**Trigger:** GWAS of a trait while adjusting for a genetically influenced covariate (BMI, smoking). **Mechanism:** opens a non-causal genotype-phenotype path. **Symptom:** spurious, often direction-flipped hits at loci affecting the covariate that replicate within the conditioned design. **Fix:** only adjust for covariates not affected by genotype, or interpret as a different (interventional) question (Aschard 2015).\n\n### BOLT-LMM on a binary trait\n**Trigger:** treating BOLT as a logistic engine. **Mechanism:** it runs linear regression on case\u002Fcontrol coding. **Symptom:** miscalibration and rare-variant false positives under imbalance. **Fix:** use it only for quantitative traits at case fraction >= 10%, MAF > 0.1%, large N; otherwise SAIGE\u002Fregenie.\n\n## Quantitative Thresholds\n\n| Quantity | Typical value | Rationale |\n|----------|---------------|-----------|\n| Genome-wide significance | p \u003C 5e-8 | Bonferroni over ~1e6 independent common-variant tests in European HapMap LD (Pe'er 2008); ancestry\u002Farray-dependent |\n| ...for African ancestry | ~1e-8 to 3e-8 | less LD = more independent tests; 5e-8 is too lax |\n| ...for WGS \u002F rare-variant scans | ~5e-9 or stricter | far larger effective test count; 5e-8 too permissive |\n| Suggestive | p \u003C 1e-5 | follow-up convention, not a calibrated threshold |\n| lambda_GC | ~1.0-1.05 fine; 1.05-1.10 inspect; >1.10 investigate | scales with N and h2; pair with lambda_1000 and the LDSC intercept |\n| MAC floor (single-variant) | MAC >= 20 (>= 10 with SPA\u002FFirth) | below this even SPA\u002FFirth are unstable; aggregate instead |\n| SPA\u002FFirth trigger | case:control more extreme than ~1:10, or low MAC | the score\u002FWald tail breaks exactly there (SAIGE motivated by ~1:600, Zhou 2018) |\n| HWE filter (controls only) | p \u003C 1e-6 | catches genotyping artifacts; never case-only as a discovery filter |\n\nThresholds are conventions, not laws; inspect distributions and verify current best practice before applying numbers blindly.\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| `.glm.logistic.hybrid` expected `.glm.logistic` | firth-fallback is the binary default and mixes Firth rows | read the `.hybrid` file; the `FIRTH?` column flags Firth rows |\n| 0\u002F1 phenotype gives a null GWAS | PLINK reads 1=control, 2=case by default | pass `--1` for 0\u002F1 coding (see plink-basics) |\n| Inflated tail despite 10 PCs | relatedness in the sample | switch to an LMM; PCs cannot remove relatedness |\n| Lost power at top loci in an LMM | GRM includes the candidate chromosome | enable LOCO |\n| Rare-variant hits look non-significant | Wald collapse under separation | use Firth or SPA |\n| Flipped BETA cancels in meta-analysis | effect-allele\u002Fstrand not harmonized | carry CHR, POS, EA, OA, EAF; resolve A\u002FT and C\u002FG palindromes by frequency or drop |\n| Discovery effect size too large downstream | winner's curse | use out-of-sample or shrinkage-corrected effects for PRS\u002Fpower\u002FMR |\n| chrX mis-coded | males hemizygous, PAR diploid | `--glm sex`, split PAR first, handle X-inactivation coding explicitly |\n| GEMMA model wrong, no error | `-c` does not add an intercept | the covariate file must contain a column of 1s |\n| Fixed-effect pooled OR with I^2 = 80% | heterogeneous true effects | check Cochran's Q \u002F I^2; use random-effects or MR-MEGA for trans-ancestry |\n\n## References\n\n1. Devlin B, Roeder K. Genomic control for association studies. Biometrics 1999; 55(4):997-1004. DOI:10.1111\u002Fj.0006-341X.1999.00997.x.\n2. Purcell S, Neale B, Todd-Brown K, et al. PLINK: a tool set for whole-genome association and population-based linkage analyses. American Journal of Human Genetics 2007; 81(3):559-575. DOI:10.1086\u002F519795.\n3. Pe'er I, Yelensky R, Altshuler D, Daly MJ. Estimation of the multiple testing burden for genomewide association studies of nearly all common variants. Genetic Epidemiology 2008; 32(4):381-385. DOI:10.1002\u002Fgepi.20303.\n4. Zhou X, Stephens M. Genome-wide efficient mixed-model analysis for association studies. Nature Genetics 2012; 44(7):821-824. DOI:10.1038\u002Fng.2310.\n5. Yang J, Lee SH, Goddard ME, Visscher PM. GCTA: a tool for genome-wide complex trait analysis. American Journal of Human Genetics 2011; 88(1):76-82. DOI:10.1016\u002Fj.ajhg.2010.11.011.\n6. Aschard H, Vilhjalmsson BJ, Joshi AD, Price AL, Kraft P. Adjusting for heritable covariates can bias effect estimates in genome-wide association studies. American Journal of Human Genetics 2015; 96(2):329-339. DOI:10.1016\u002Fj.ajhg.2014.12.021.\n7. Chang CC, Chow CC, Tellier LCAM, Vattikuti S, Purcell SM, Lee JJ. Second-generation PLINK: rising to the challenge of larger and richer datasets. GigaScience 2015; 4:7. DOI:10.1186\u002Fs13742-015-0047-8.\n8. Loh PR, Tucker G, Bulik-Sullivan BK, et al. Efficient Bayesian mixed-model analysis increases association power in large cohorts. Nature Genetics 2015; 47(3):284-290. DOI:10.1038\u002Fng.3190.\n9. Bulik-Sullivan BK, Loh PR, Finucane HK, et al. LD Score regression distinguishes confounding from polygenicity in genome-wide association studies. Nature Genetics 2015; 47(3):291-295. DOI:10.1038\u002Fng.3211.\n10. Zhou W, Nielsen JB, Fritsche LG, et al. Efficiently controlling for case-control imbalance and sample relatedness in large-scale genetic association studies. Nature Genetics 2018; 50(9):1335-1341. DOI:10.1038\u002Fs41588-018-0184-y.\n11. Mbatchou J, Barnard L, Backman J, et al. Computationally efficient whole-genome regression for quantitative and binary traits. Nature Genetics 2021; 53(7):1097-1103. DOI:10.1038\u002Fs41588-021-00870-7.\n\n## Related Skills\n\n- plink-basics - QC, phenotype encoding, and the fileset that enters association\n- population-structure - PCA covariates for stratification control\n- linkage-disequilibrium - LD pruning before PCA and clumping of GWAS hits\n- rare-variant-association - gene-based aggregation (burden, SKAT, SKAT-O, ACAT) below the single-variant MAC floor\n- causal-genomics\u002Ffine-mapping - from an associated locus to a credible set of causal variants\n- causal-genomics\u002Fmendelian-randomization - GWAS variants as instruments for causal inference\n- clinical-databases\u002Fpolygenic-risk - PRS built from association sumstats\n- phasing-imputation\u002Fgenotype-imputation - imputed dosages that enter --glm\n","## Version Compatibility\n\nReference examples tested with: PLINK 2.0 (alpha 6+), SAIGE 1.3+, regenie 3.4+, BOLT-LMM 2.4+, GEMMA 0.98+, numpy 1.26+, pandas 2.2+, scipy 1.12+.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\nVersion traps that change results, not just syntax: PLINK 2.0 `--glm firth-fallback` is the DEFAULT for binary traits and writes `.glm.logistic.hybrid` (mixed logistic and Firth rows), not `.glm.logistic`. SAIGE `--LOCO=TRUE` is the recommended default and the step-1 and step-2 sample IDs plus variance-ratio file must match exactly. regenie applies Firth\u002FSPA only when `--firth`\u002F`--spa` are explicitly set in step 2 (not automatic for every variant). BOLT-LMM is calibrated only for quantitative traits at large N (case fraction >= 10%, MAF > 0.1% for binary coding). The single source of truth for versions is this block, not headings.\n\n# Association Testing\n\n**\"Run a GWAS on my genotypes\"** -> Fit one regression per variant (additive dosage as predictor) under a confounder model chosen to make genotype independent of unmodeled phenotype drivers, then read effect sizes and p-values that are honest only insofar as that model holds.\n- CLI: `plink2 --glm firth-fallback hide-covar --covar pcs.eigenvec` for an unrelated sample whose structure is captured by PCs\n- CLI: `SAIGE` (SPA) or `regenie --step 1\u002F2 --firth` for relatedness and\u002For case:control imbalance; `GEMMA -lmm` or `BOLT-LMM --lmm` for related quantitative traits\n\nScope: single-variant common-variant GWAS (linear\u002Flogistic GLM, linear mixed models, SPA, Firth) and the choice between them. Rare-variant GENE-BASED AGGREGATION (burden, SKAT, SKAT-O, ACAT, STAAR) routes to rare-variant-association. Fine-mapping, Mendelian randomization, and TWAS route to causal-genomics\u002Ffine-mapping and causal-genomics\u002Fmendelian-randomization. Polygenic risk scores route to clinical-databases\u002Fpolygenic-risk. Imputed dosages enter from phasing-imputation\u002Fgenotype-imputation.\n\n## The Single Most Important Insight -- a GWAS statistic is valid only if genotype is independent of unmodeled phenotype drivers AFTER the chosen covariates and random effects\n\n1. Every classic GWAS pathology is one violation of that assumption with a specific signature: structure or cryptic relatedness lifts the whole QQ plot; a heritable covariate adjusted as a collider manufactures direction-flipped hits; case:control imbalance with low MAC under a score test makes the significant tail anti-conservative.\n2. The corollary that organizes the toolchain: under a real polygenic trait genomic inflation (lambda) is EXPECTED to exceed 1 and is mostly true signal, so genomic control over-corrects and erases discoveries; the LDSC intercept (not lambda) separates confounding from polygenicity (Bulik-Sullivan 2015).\n3. The fix differs per distortion, and the wrong fix makes it worse: lambda-correcting a polygenic trait, or adding PCs to a family sample, both silently degrade the result.\n4. Choosing the engine is choosing the assumption: a PC-adjusted GLM assumes structure is a low-rank mean shift, an LMM assumes a polygenic covariance, SPA\u002FFirth assume the score\u002FWald tail needs the cumulant-generating-function correction.\n\n## Tool Taxonomy\n\n| Method | Citation | Mechanism | When |\n|--------|----------|-----------|------|\n| plink2 `--glm` | Chang 2015 | Per-variant linear\u002Flogistic GLM; Firth fallback for separation | Unrelated sample, common variants, structure captured by PCs |\n| GEMMA `-lmm` | Zhou & Stephens 2012 | Exact LMM; fits sigma_g^2 once under the null, then per-variant Wald\u002FLRT\u002Fscore | Relatedness\u002Fstructure, quantitative trait, small-medium N |\n| BOLT-LMM `--lmm` | Loh 2015 | Variational LMM with a non-infinitesimal Bayesian mixture prior; LD-Score calibrated | Quantitative trait, very large N; gains power with large-effect loci |\n| SAIGE | Zhou 2018 | Sparse-GRM LMM + saddlepoint approximation (SPA) on the score statistic | Binary trait with relatedness AND case:control imbalance |\n| regenie `--step 1\u002F2` | Mbatchou 2021 | Whole-genome ridge (LOCO) predictor in step 1, Firth\u002FSPA test in step 2, no GRM eigendecomposition | Biobank scale, mixed binary+quantitative; one pipeline |\n\n## Decision Tree by Scenario\n\n| Scenario | Use | Why |\n|----------|-----|-----|\n| Unrelated, common variants, PCs absorb structure (LDSC intercept ~ 1) | plink2 `--glm` + PC covariates | Fast and exact; an LMM is unnecessary when PCs suffice |\n| Relatedness, family, or fine-scale structure | any LMM (GEMMA\u002FBOLT\u002FSAIGE\u002Fregenie) | PCs cannot remove a covariance structure; the GRM random effect can |\n| Quantitative trait, related, small-medium N | GEMMA `-lmm` or GCTA `--mlma-loco` | Exact LMM; LOCO avoids proximal contamination |\n| Quantitative trait, biobank N (>5000) | BOLT-LMM `--lmm` | Scales; non-infinitesimal model adds power; calibrated only at large N |\n| Binary trait, related AND imbalanced case:control | SAIGE (SPA) or regenie (`--firth`\u002F`--spa`) | SPA\u002FFirth keep the tail calibrated under imbalance and low MAC |\n| Binary trait, unbalanced, NO relatedness | plink2 `--glm firth-fallback` (default) | Firth handles separation; no GRM needed |\n| Imputed variants | regress on DOSAGES not hard calls | hard-calling discards imputation uncertainty and biases the SE |\n| Rare-variant signal at low MAC | rare-variant-association (burden\u002FSKAT\u002FSKAT-O\u002FACAT) | single-variant tests are powerless at low MAC; aggregate in a region\u002Fgene |\n\n## plink2 GLM (unrelated sample, PC-adjusted)\n\n```bash\n# Logistic for binary, linear for quantitative is auto-detected from the phenotype coding.\n# firth-fallback is the binary-trait default: ordinary logistic, falling back to Firth only on\n# non-convergence (separation). Output is .glm.logistic.hybrid (mixed logistic and Firth rows).\nplink2 --bfile qc --pheno pheno.txt --glm firth-fallback hide-covar \\\n    --covar pcs.eigenvec --covar-name PC1-PC10 --out gwas\n\n# Regress on imputed DOSAGES, not hard calls, so imputation uncertainty enters the SE. Reporting\n# columns add A1 frequency and the imputation R2 (machr2 is meaningful only on dosage input) for\n# downstream QC and effect-allele bookkeeping.\nplink2 --pfile imputed --pheno pheno.txt --glm firth-fallback hide-covar cols=+a1freq,+machr2 \\\n    --covar covars.txt --covar-name PC1-PC10,age,sex --out gwas_dosage\n```\n\nPCs must be computed on LD-pruned, MAF-filtered genotypes with long-range-LD regions excluded (see population-structure); too few PCs leave residual stratification, too many absorb real signal. `--glm sex` adds sex as a covariate on chrX (`no-x-sex` suppresses it); split the pseudoautosomal region before any chrX test (see plink-basics).\n\n## Linear mixed model with LOCO (relatedness \u002F structure)\n\n```bash\n# GEMMA: -gk builds the GRM (1=centered, 2=standardized), then -lmm fits one variance component.\n# The covariate file passed to -c MUST contain an explicit intercept column of 1s (GEMMA does not add one).\ngemma -bfile qc -gk 1 -o grm\ngemma -bfile qc -k output\u002Fgrm.cXX.txt -c covars_with_intercept.txt -lmm 4 -o lmm   # -lmm 4 = Wald+LRT+score\n\n# BOLT-LMM: --lmm decides by cross-validation whether the non-infinitesimal model adds power.\n# --lmmInfOnly forces the standard infinitesimal model; --lmmForceNonInf forces the mixture.\nbolt --bfile=qc --phenoFile=pheno.txt --phenoCol=trait \\\n    --covarFile=covars.txt --qCovarCol=PC{1:10} --lmm --LDscoresFile=LDSCORE.1000G_EUR.tab.gz \\\n    --statsFile=bolt.stats\n\n# SAIGE: step 1 fits the null GLMM (sparse GRM, variance ratio); step 2 runs the SPA score test per variant.\n# --LOCO=TRUE (default, recommended) excludes the tested chromosome from the polygenic predictor.\nstep1_fitNULLGLMM.R --plinkFile=qc --phenoFile=pheno.txt --phenoCol=trait --traitType=binary \\\n    --covarColList=PC1,PC2,age,sex --sampleIDColinphenoFile=IID --outputPrefix=step1 --LOCO=TRUE\nstep2_SPAtests.R --vcfFile=chr1.vcf.gz --GMMATmodelFile=step1.rda --varianceRatioFile=step1.varianceRatio.txt \\\n    --minMAC=20 --is_Firth_beta=TRUE --LOCO=TRUE --SAIGEOutputFile=chr1.saige\n\n# regenie: step 1 builds the whole-genome LOCO ridge predictor; step 2 tests with Firth (--approx for speed) or SPA.\nregenie --step 1 --bed qc --phenoFile pheno.txt --covarFile covars.txt --bt --bsize 1000 --out step1\nregenie --step 2 --bed qc --phenoFile pheno.txt --covarFile covars.txt --bt \\\n    --firth --approx --pThresh 0.01 --pred step1_pred.list --bsize 400 --out step2\n```\n\nLOCO (leave-one-chromosome-out) is not optional: if the tested variant's chromosome is in the GRM\u002Fpredictor, the random effect explains part of the variant's own signal and deflates power (proximal contamination). A hand-rolled \"GRM from all SNPs\" silently throws away power at every true locus.\n\n## Diagnose inflation: lambda vs the LDSC intercept\n\n```python\nimport numpy as np\nfrom scipy import stats\n\ndef lambda_gc(pvalues):\n    chisq = stats.chi2.ppf(1 - pvalues, 1)\n    return np.median(chisq) \u002F stats.chi2.ppf(0.5, 1)\n\n# lambda > 1 under a polygenic trait is EXPECTED and mostly true signal. Do NOT divide statistics by it.\n# Rescale to lambda_1000 (per 1000 cases\u002F1000 controls) before comparing studies of different N.\ndef lambda_1000(lam, n_cases, n_controls):\n    return 1 + (lam - 1) * (1 \u002F n_cases + 1 \u002F n_controls) \u002F (1 \u002F 1000 + 1 \u002F 1000)\n\n# The confounding diagnostic is the LDSC INTERCEPT (run ldsc on the sumstats), not lambda:\n# intercept ~ 1 with high lambda = polygenicity (clean); intercept materially > 1 = confounding.\n# Prefer the attenuation ratio = (intercept - 1) \u002F (mean(chi2) - 1): the fraction of inflation NOT due\n# to polygenicity (~0-0.2 acceptable). The intercept is also inflated by sample overlap in bivariate LDSC.\n```\n\n## Per-Method Failure Modes\n\n### Genomic control on a polygenic trait\n**Trigger:** dividing every chi-square by lambda_GC because lambda > 1.1. **Mechanism:** lambda rises with N and h2 under true polygenicity, so it is mostly signal. **Symptom:** discoveries vanish; power destroyed. **Fix:** never lambda-correct on lambda alone; use the LDSC intercept and only deflate if intercept-minus-1 is materially > 0.\n\n### PCs for a related sample\n**Trigger:** adding \"10 PCs\" to a family or cryptically-related cohort. **Mechanism:** relatedness is a pairwise covariance, not a low-rank mean shift, so no finite PC set removes it. **Symptom:** inflated, miscalibrated tail statistics despite the PCs. **Fix:** switch to an LMM (GEMMA\u002FBOLT\u002FSAIGE\u002Fregenie); more PCs is the wrong lever.\n\n### LMM without LOCO\n**Trigger:** building the GRM from all chromosomes including the candidate. **Mechanism:** the variant partly explains itself as a random effect. **Symptom:** deflated statistics, lost power at true loci. **Fix:** use the LOCO variant (`--mlma-loco`, SAIGE `--LOCO=TRUE`, regenie step-1 predictor).\n\n### Wald collapse \u002F score anti-conservatism at imbalance\n**Trigger:** plain logistic for a rare or near-monomorphic-in-one-arm variant, or a score test at extreme case:control. **Mechanism:** the MLE diverges (Wald BETA\u002FSE -> 0) or the score null is wrong in the tail. **Symptom:** real rare-variant signal looks non-significant, or the significant tail fills with artifacts. **Fix:** Firth (plink2 firth-fallback, regenie `--firth`) or SPA (SAIGE, regenie `--spa`).\n\n### HWE filtered in cases\n**Trigger:** HWE filter on the case-only or combined sample as a discovery QC step. **Mechanism:** a true non-additive disease variant legitimately deviates from HWE in cases. **Symptom:** real associations removed before testing. **Fix:** compute HWE in CONTROLS (or founders) only (see plink-basics).\n\n### Adjusting for a heritable covariate (collider)\n**Trigger:** GWAS of a trait while adjusting for a genetically influenced covariate (BMI, smoking). **Mechanism:** opens a non-causal genotype-phenotype path. **Symptom:** spurious, often direction-flipped hits at loci affecting the covariate that replicate within the conditioned design. **Fix:** only adjust for covariates not affected by genotype, or interpret as a different (interventional) question (Aschard 2015).\n\n### BOLT-LMM on a binary trait\n**Trigger:** treating BOLT as a logistic engine. **Mechanism:** it runs linear regression on case\u002Fcontrol coding. **Symptom:** miscalibration and rare-variant false positives under imbalance. **Fix:** use it only for quantitative traits at case fraction >= 10%, MAF > 0.1%, large N; otherwise SAIGE\u002Fregenie.\n\n## Quantitative Thresholds\n\n| Quantity | Typical value | Rationale |\n|----------|---------------|-----------|\n| Genome-wide significance | p \u003C 5e-8 | Bonferroni over ~1e6 independent common-variant tests in European HapMap LD (Pe'er 2008); ancestry\u002Farray-dependent |\n| ...for African ancestry | ~1e-8 to 3e-8 | less LD = more independent tests; 5e-8 is too lax |\n| ...for WGS \u002F rare-variant scans | ~5e-9 or stricter | far larger effective test count; 5e-8 too permissive |\n| Suggestive | p \u003C 1e-5 | follow-up convention, not a calibrated threshold |\n| lambda_GC | ~1.0-1.05 fine; 1.05-1.10 inspect; >1.10 investigate | scales with N and h2; pair with lambda_1000 and the LDSC intercept |\n| MAC floor (single-variant) | MAC >= 20 (>= 10 with SPA\u002FFirth) | below this even SPA\u002FFirth are unstable; aggregate instead |\n| SPA\u002FFirth trigger | case:control more extreme than ~1:10, or low MAC | the score\u002FWald tail breaks exactly there (SAIGE motivated by ~1:600, Zhou 2018) |\n| HWE filter (controls only) | p \u003C 1e-6 | catches genotyping artifacts; never case-only as a discovery filter |\n\nThresholds are conventions, not laws; inspect distributions and verify current best practice before applying numbers blindly.\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| `.glm.logistic.hybrid` expected `.glm.logistic` | firth-fallback is the binary default and mixes Firth rows | read the `.hybrid` file; the `FIRTH?` column flags Firth rows |\n| 0\u002F1 phenotype gives a null GWAS | PLINK reads 1=control, 2=case by default | pass `--1` for 0\u002F1 coding (see plink-basics) |\n| Inflated tail despite 10 PCs | relatedness in the sample | switch to an LMM; PCs cannot remove relatedness |\n| Lost power at top loci in an LMM | GRM includes the candidate chromosome | enable LOCO |\n| Rare-variant hits look non-significant | Wald collapse under separation | use Firth or SPA |\n| Flipped BETA cancels in meta-analysis | effect-allele\u002Fstrand not harmonized | carry CHR, POS, EA, OA, EAF; resolve A\u002FT and C\u002FG palindromes by frequency or drop |\n| Discovery effect size too large downstream | winner's curse | use out-of-sample or shrinkage-corrected effects for PRS\u002Fpower\u002FMR |\n| chrX mis-coded | males hemizygous, PAR diploid | `--glm sex`, split PAR first, handle X-inactivation coding explicitly |\n| GEMMA model wrong, no error | `-c` does not add an intercept | the covariate file must contain a column of 1s |\n| Fixed-effect pooled OR with I^2 = 80% | heterogeneous true effects | check Cochran's Q \u002F I^2; use random-effects or MR-MEGA for trans-ancestry |\n\n## References\n\n1. Devlin B, Roeder K. Genomic control for association studies. Biometrics 1999; 55(4):997-1004. DOI:10.1111\u002Fj.0006-341X.1999.00997.x.\n2. Purcell S, Neale B, Todd-Brown K, et al. PLINK: a tool set for whole-genome association and population-based linkage analyses. American Journal of Human Genetics 2007; 81(3):559-575. DOI:10.1086\u002F519795.\n3. Pe'er I, Yelensky R, Altshuler D, Daly MJ. Estimation of the multiple testing burden for genomewide association studies of nearly all common variants. Genetic Epidemiology 2008; 32(4):381-385. DOI:10.1002\u002Fgepi.20303.\n4. Zhou X, Stephens M. Genome-wide efficient mixed-model analysis for association studies. Nature Genetics 2012; 44(7):821-824. DOI:10.1038\u002Fng.2310.\n5. Yang J, Lee SH, Goddard ME, Visscher PM. GCTA: a tool for genome-wide complex trait analysis. American Journal of Human Genetics 2011; 88(1):76-82. DOI:10.1016\u002Fj.ajhg.2010.11.011.\n6. Aschard H, Vilhjalmsson BJ, Joshi AD, Price AL, Kraft P. Adjusting for heritable covariates can bias effect estimates in genome-wide association studies. American Journal of Human Genetics 2015; 96(2):329-339. DOI:10.1016\u002Fj.ajhg.2014.12.021.\n7. Chang CC, Chow CC, Tellier LCAM, Vattikuti S, Purcell SM, Lee JJ. Second-generation PLINK: rising to the challenge of larger and richer datasets. GigaScience 2015; 4:7. DOI:10.1186\u002Fs13742-015-0047-8.\n8. Loh PR, Tucker G, Bulik-Sullivan BK, et al. Efficient Bayesian mixed-model analysis increases association power in large cohorts. Nature Genetics 2015; 47(3):284-290. DOI:10.1038\u002Fng.3190.\n9. Bulik-Sullivan BK, Loh PR, Finucane HK, et al. LD Score regression distinguishes confounding from polygenicity in genome-wide association studies. Nature Genetics 2015; 47(3):291-295. DOI:10.1038\u002Fng.3211.\n10. Zhou W, Nielsen JB, Fritsche LG, et al. Efficiently controlling for case-control imbalance and sample relatedness in large-scale genetic association studies. Nature Genetics 2018; 50(9):1335-1341. DOI:10.1038\u002Fs41588-018-0184-y.\n11. Mbatchou J, Barnard L, Backman J, et al. Computationally efficient whole-genome regression for quantitative and binary traits. Nature Genetics 2021; 53(7):1097-1103. DOI:10.1038\u002Fs41588-021-00870-7.\n\n## Related Skills\n\n- plink-basics - QC, phenotype encoding, and the fileset that enters association\n- population-structure - PCA covariates for stratification control\n- linkage-disequilibrium - LD pruning before PCA and clumping of GWAS hits\n- rare-variant-association - gene-based aggregation (burden, SKAT, SKAT-O, ACAT) below the single-variant MAC floor\n- causal-genomics\u002Ffine-mapping - from an associated locus to a credible set of causal variants\n- causal-genomics\u002Fmendelian-randomization - GWAS variants as instruments for causal inference\n- clinical-databases\u002Fpolygenic-risk - PRS built from association sumstats\n- phasing-imputation\u002Fgenotype-imputation - imputed dosages that enter --glm\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","cli","2026-09-20","population-genetics\u002Fassociation-testing\u002FSKILL.md","plink2","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-population-genetics-association-testing","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-population-genetics-association-testing",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-population-genetics-association-testing",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-population-genetics-association-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-population-genetics-association-testing\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fgwas_pipeline.sh","SCRIPT","脚本",4351,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-population-genetics-association-testing\u002Fexamples\u002Fgwas_pipeline.sh",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",6208,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-population-genetics-association-testing\u002Fusage-guide.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":70},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":70},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":70},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":70},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":70},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]