Bio Population Genetics Linkage Disequilibrium

Computes linkage disequilibrium (r2, D', composite Rogers-Huff r2), prunes correlated variants, clumps GWAS summary statistics to lead SNPs, and defines haplotype blocks with PLINK 1.9/2.0 and scikit-allel. r2 and D' answer different questions - r2 (= chi2/N) is the tagging and GWAS-power currency, D' marks observed recombination and is upward-biased for rare variants. PLINK 2.0 has no bare --r2 (split into --r2-phased and --r2-unphased); pruning (--indep-pairwise, genotype-blind) and clumping (--clump, p-value-aware) are distinct operations that are constantly confused. The clumping or fine-m

9 stars 3 forksData & Analytics Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add hackernoon/cuttlefish-agent-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add hackernoon/cuttlefish-agent-skills --skill bio-population-genetics-linkage-disequilibrium
Manual install
git clone --depth 1 https://github.com/hackernoon/cuttlefish-agent-skills.git /tmp/cuttlefish-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/cuttlefish-agent-skills/plugins/data-science/skills/bio-population-genetics-linkage-disequilibrium ~/.claude/skills/bio-population-genetics-linkage-disequilibrium

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

## Version Compatibility

Reference examples tested with: PLINK 1.9 (1.90b7+), PLINK 2.0 (alpha 6+), scikit-allel 1.3+, numpy 1.26+.

Before using code patterns, verify installed versions match. If versions differ:
- Python: `pip show <package>` then `help(module.function)` to check signatures
- CLI: `<tool> --version` then `<tool> --help` to confirm flags

If code throws ImportError, AttributeError, or TypeError, introspect the installed
package and adapt the example to match the actual API rather than retrying.

Version traps that change results, not just syntax: PLINK 2.0 has NO bare `--r2` (it was split into `--r2-phased`, the EM haplotype-frequency estimator, and `--r2-unphased`, the composite dosage estimator); PLINK 1.9 still uses bare `--r2`. PLINK 2.0 `--indep-pairwise <window>['kb'] [step] <r2>` requires the step to be 1 when the window is given in kb. `allel.rogers_huff_r` returns a CONDENSED upper-triangle array, not a square matrix - `scipy.spatial.distance.squareform` it before 2D indexing. The single source of truth for versions is this block, not headings.

# Linkage Disequilibrium

**"Measure LD between my variants"** -> Quantify how predictably one variant's alleles co-occur with another's, choosing r2 or D' by the question being asked.
- CLI: `plink2 --r2-unphased` (composite dosage r2, no phasing) or `--r2-phased` (EM haplotype r2)
- Python: `allel.rogers_huff_r(gn) ** 2` (composite r2, scikit-allel)
Read the full skill on GitHub

Details

Skill name
bio-population-genetics-linkage-disequilibrium
Path
plugins/data-science/skills/bio-population-genetics-linkage-disequilibrium/SKILL.md
License
MIT
Repo updated
4 November 2026

FAQ

What does the Bio Population Genetics Linkage Disequilibrium skill do?

Computes linkage disequilibrium (r2, D', composite Rogers-Huff r2), prunes correlated variants, clumps GWAS summary statistics to lead SNPs, and defines haplotype blocks with PLINK 1.9/2.0 and scikit-allel. r2 and D' answer different questions - r2 (= chi2/N) is the tagging and GWAS-power currency, D' marks observed recombination and is upward-biased for rare variants. PLINK 2.0 has no bare --r2 (split into --r2-phased and --r2-unphased); pruning (--indep-pairwise, genotype-blind) and clumping (--clump, p-value-aware) are distinct operations that are constantly confused. The clumping or fine-m

How do I install the Bio Population Genetics Linkage Disequilibrium skill?

Claude Code plugin: /plugin marketplace add hackernoon/cuttlefish-agent-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Bio Population Genetics Linkage Disequilibrium popular?

It lives in hackernoon/cuttlefish-agent-skills, which has 9 GitHub stars and 3 forks.

Related skills

AI Traffic Tracking

9

hackernoon/cuttlefish-agent-skills

Compatibility pointer for AI assistant referrals and generative search visibility; maintained in Open Analytics.

AI, LLMs & Agents

Analytics Tracking

9

hackernoon/cuttlefish-agent-skills

Compatibility pointer for GA4 event, key-event and User-ID tracking; maintained in Open Analytics.

Data & Analytics

Bio Admet Prediction

9

hackernoon/cuttlefish-agent-skills

Predicts ADMET properties using ADMETlab 3.0 (119 platform features, including 77 prediction models with modeled-endpoint uncertainty), ADMET-AI, DeepChem MolNet, and chemprop D-MPNN with explicit handling of OECD QSAR principles, applicability domain assessment, calibration, hERG/CYP/AMES endpoints, and PAINS / Lipinski / Ro5 / Veber / BBB druglikeness filters. Use when filtering compounds for drug-likeness, prioritizing leads by predicted safety, or building an in-house ADMET QSAR model.

AI, LLMs & Agents

Bio Population Genetics Selection Statistics

9

hackernoon/cuttlefish-agent-skills

Scans genomes for natural selection with SFS tests (Tajima's D, Fay & Wu H, Zeng E, SweepFinder2 CLR), haplotype tests (iHS, nSL, XP-EHH, Rsb, H12), and differentiation (FST, PBS) using scikit-allel, selscan, and SweepFinder2. No single statistic separates selection from demography at one locus, so the deliverable is empirical genome-wide outliers plus multiple orthogonal signals, not an absolute cutoff. iHS detects incomplete sweeps and collapses to zero at fixation while XP-EHH catches fixed sweeps; iHS/nSL standardize within derived-allele-frequency bins but XP-EHH gets a genome-wide z-scor

Data & Analytics

Bio Phylo Tree Visualization

9

hackernoon/cuttlefish-agent-skills

Draw and export phylogenetic trees with Bio.Phylo plus matplotlib, and route rich figures to ggtree, ETE4, or iTOL. Covers why a tree figure is an argument not a neutral picture, the cladogram-vs-phylogram-vs-chronogram choice that hides or reveals rate and time, how ladderization manufactures a false arrow of progress, why an unlabeled support number always flatters the result (bootstrap vs posterior vs SH-aLRT vs UFBoot are different scales), why Bio.Phylo silently drops BEAST HPD bars so annotated Bayesian trees must go through treeio plus ggtree, and the tip-count and raster-vs-vector thre

Data & Analytics

Aeo Report

9

Lord1Egypt/RA-Skills

Fetch an AEO (Answer Engine Optimization) ranking / AI-visibility report for a user-supplied website from crawlproof.com. As of 2026-05-19 the target domain is a parked Railway deployment returning 404 on all paths, so the skill currently emits a service_unavailable result and…

Data & Analytics

Browse the most popular Claude skills, all data & analytics skills, or write your own with the skills generator.