Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

genomics-viz

БесплатноБез исполняемых скриптовНе проверен

Builds interactive D3 visualizations of genetics and genomics concepts for the vault's docs/ GitHub Pages site — each one a teaching object with a…

lyndonklот lyndonkl★ 208 звёзд на GitHub

Об этом скилле

Genomics visualization

A visualization in this vault is a teaching object, not a decoration on a post. It exists to make one genetics claim — usually a single evergreen note — feel true to a reader who has the algebra but not yet the intuition. The bar is high: an interactive figure earns its place only when motion or interactivity does work that a static plot cannot (watching allele frequency drift to fixation across replicate populations teaches drift in a way a single trajectory never will).

This skill is the domain specialization layer. The mechanics live elsewhere and are assumed: d3-visualization for scales, shapes, layouts, transitions, and interaction (zoom/pan/brush); visual-storytelling-design for narrative structure and the annotation layer; cognitive-design for why an encoding works (preattentive processing, encoding hierarchy, working-memory limits). Use those three for the how; use this for the what, the genomics-specific encodings, and the publish path into docs/.

Every figure is built around the publishing claim, so begin from the evergreen note it serves, and let its declarative title become the figure's takeaway title.

1. Concept → visualization catalog

Pick the form from the concept. Each row names the encoding spine and the one interaction that earns the "interactive" label.

Concept (evergreen claim) Chart form Encoding spine The interaction that teaches
Hardy–Weinberg equilibrium parabola of genotype freqs vs allele freq p x = p, y = freq of AA/Aa/aa as curves drag p; watch the three curves and the Aa maximum at p=0.5
Allele-frequency drift small-multiples of replicate trajectories x = generation, y = p, one line per population set N and replicates; press run; watch fixation/loss spread
LD decay vs distance scatter + fitted decay curve x = distance (kb/cM), y = r² slide recombination rate / N_e; the curve's half-life moves
Recombination chromosome ribbon with crossovers position along homologs, crossover marks step meioses; watch haplotype blocks reshuffle
Additive vs dominance variance stacked decomposition of genotypic values genotype on x, value on y, V_A vs V_D bands drag the heterozygote value; V_D appears as the curvature
Breeder's equation / response selection on a phenotype distribution trait density, truncation point, shifted mean drag the selection threshold; R = h²·S animates next gen
GxE reaction norms lines across environments x = environment index, y = genotype mean toggle genotypes; crossing norms = the interaction
Genomic-prediction accuracy vs training-set size learning curve x = N_train (log), y = prediction accuracy r slide heritability and marker density; curve saturates
Population-structure PCA scatter of PC1×PC2 x = PC1, y = PC2, color = subpopulation brush a cluster; lasso to inspect membership
Manhattan plot scatter of −log10(p) along the genome x = genomic position, y = −log10(p), color = chr hover a peak; zoom a region; significance line draggable
Kinship / G-matrix heatmap symmetric matrix heatmap row × col = individuals, color = relatedness reorder by cluster; hover a cell for the pair's coefficient

Hold one claim per figure (the atomicity rule of conventions.md mirrored in pixels). A figure trying to show both drift and selection is two figures.

2. Encoding guidance

Encode the load-bearing variable in the channel the eye reads first. The cognitive-design encoding hierarchy for quantitative data, most to least accurate: position → length → angle/slope → area → color hue/saturation. Spend the top of the hierarchy on the variable the claim is about.

  • Preattentive attributes (color, motion, orientation, size) make one thing pop before the reader attends. Use exactly one to mark the focus — a single red point in a gray Manhattan field, the one fixated population among the drifting gray ensemble. More than one preattentive pop and nothing pops.
  • The Manhattan-plot trap: rainbow-coloring 20 chromosomes spends hue on a labeling variable (which chromosome) while the claim is about height (significance). Use two alternating muted grays for chromosomes; reserve a single saturated accent for hits above the line. Hue carries the categorical label only.
  • Heatmaps (kinship/G-matrix): relatedness is sequential and one-directional, so use a single-hue sequential ramp (e.g. viridis), never a rainbow. A diverging ramp is only for data with a meaningful midpoint (signed values around zero).
  • Colorblind-safe by default: ~8% of male readers have red–green deficiency. Use viridis/cividis for sequential, Okabe–Ito or ColorBrewer "Set2"/"Dark2" for categorical. Never encode a distinction by red-vs-green alone — pair color with shape, position, or a direct label. Verify the final palette against a deuteranopia simulation.
  • Direct-label over legend wherever lines or clusters can carry
Полный SKILL.md на GitHub

Установить genomics-viz в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл genomics-viz?

Builds interactive D3 visualizations of genetics and genomics concepts for the vault's docs/ GitHub Pages site — each one a teaching object with a takeaway-stating title, an annotation layer, and a guided reading order. Specializes d3-visualization, visual-storytelling-design, and cognitive-design for the crop-genetics / genomic-selection domain, supplying a concept-to-visualization catalog, preattentive encoding guidance, colorblind-safe palettes, accessibility requirements, and a fixed docs/ file layout. Delegates design review to the cognitive-design-architect agent and runs design-evaluation-audit and cognitive-fallacies-guard before publish. Use when turning an evergreen claim into an interactive figure, building or revising a docs/ visualization, or planning the site's viz layout. Trigger keywords — D3 viz, interactive figure, GitHub Pages chart, Hardy-Weinberg, Manhattan plot, allele drift, LD decay, breeder's equation, genomic prediction accuracy, reaction norm, kinship heatmap.

Как установить скилл genomics-viz?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл genomics-viz запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить genomics-viz с