genomics-phasing
БесплатноБез исполняемых скриптовНе проверенLoad when summarising a phased VCF (output of WhatsHap / SHAPEIT5 / Eagle2) — phased fraction of het variants, phase-block N50, PS-field parsing…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
genomics-phasing
When to use
The user has a phased VCF (from WhatsHap, SHAPEIT5, Eagle2, etc.)
and wants phasing QC: total het count, phased fraction, phase-block
count, phase-block N50 (in bp), per-block sizes. Phasing detection
relies on the PS (Phase Set) FORMAT field plus pipe-delimited
genotype encoding (0|1 vs 0/1).
This skill does NOT phase variants — it summarises a VCF that has already been phased.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Phased VCF | .vcf with FORMAT/PS and pipe-delimited GT |
yes (unless --demo) |
| Output | Path | Notes |
|---|---|---|
| Per-variant table | tables/phased_variants.csv |
CHROM/POS/GT/PS/phased flag |
| Phase blocks | tables/phase_blocks.csv |
per-PS block start/end/length/n_variants |
| Report | report.md + result.json |
always |
Flow
- Load VCF (
--input <phased.vcf>) or generate a demo phased VCF atoutput_dir/demo_phased.vcfwith--n-variantsrecords (genomics_phasing.py:200). - Parse records; classify each het as phased (
|in GT andPSpopulated) or unphased (/). - Group phased variants by
PS; compute per-block start / end / length / variant count. - Compute phase-block N50 (bp); phased fraction across all hets.
- Write
tables/phased_variants.csv(genomics_phasing.py:327) +tables/phase_blocks.csv(:345) +report.md+result.json(:348).
Gotchas
- No phaser is invoked. This skill ingests an already-phased VCF — it does not run WhatsHap / SHAPEIT5 / Eagle2. Run a phaser upstream and feed its VCF here.
--inputREQUIRED unless--demo.genomics_phasing.py:314raisesValueError("--input required when not using --demo"); non-existent paths raiseFileNotFoundErrorat:317.- Unphased VCFs produce empty phase-block tables. A VCF without any
|genotypes orPSfields will reportphased_fraction = 0and an emptyphase_blocks.csv— but the run does NOT fail. Always check the summary before drawing conclusions. PSis required for block grouping — without it you get ZERO blocks. WhenPSis absent,genomics_phasing.py:126falls back tostr(pos)so every variant becomes a singleton phase-set; then:157filters out blocks with< 2variants, producing zero phase blocks andphase_block_n50_bp = 0. WhatsHap output always includesPS; some other phasers do not — verify before interpreting an "unphased" report.- Multi-sample VCFs are NOT supported. Only the first sample column is parsed; multi-sample phasing comparison is out of scope.
- Demo VCF synthesises ~80% phased het variants in 5–20 blocks. Useful for orchestrator smoke tests; not biologically meaningful.
Key CLI
# Demo (2000 synthetic phased variants)
python omicsclaw.py run genomics-phasing --demo --output /tmp/phase_demo
# Real WhatsHap-phased VCF
python omicsclaw.py run genomics-phasing \
--input sample.whatshap.vcf --output results/
See also
references/parameters.md— every CLI flagreferences/methodology.md— PS-field semantics, phase-block N50 definitionreferences/output_contract.md—tables/phased_variants.csv+phase_blocks.csv- Adjacent skills:
genomics-variant-calling(upstream — produces VCF that gets phased),genomics-vcf-operations(parallel — VCF stats / filtering on the same input),genomics-variant-annotation(downstream — annotate phased variants with gene context)
Установить genomics-phasing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл genomics-phasing?
Load when summarising a phased VCF (output of WhatsHap / SHAPEIT5 / Eagle2) — phased fraction of het variants, phase-block N50, PS-field parsing, pipe-delimited genotype detection. Skip when the input is unphased (run a phaser first) or when calling small variants (use `genomics-variant-calling`).
Как установить скилл genomics-phasing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл genomics-phasing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic