genomics-vcf-operations
БесплатноБез исполняемых скриптовНе проверенLoad when summarising / filtering a VCF — variant classification (SNP / MNP / INS / DEL / COMPLEX), Ti/Tv ratio, QUAL / DP threshold filtering, INFO-field…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
genomics-vcf-operations
When to use
The user has a VCF (cohort, single-sample, or merged) and wants:
classify variants by type (SNP / MNP / INS / DEL / COMPLEX),
compute Ti/Tv on biallelic SNPs, optionally apply hard QUAL / DP
filters, and emit per-chromosome counts. This skill mirrors a
subset of bcftools stats + a simple QUAL/DP filter pass — pure
Python, no bcftools required.
For variant calling itself (BAM → VCF) see genomics-variant-calling;
for functional impact (gene / consequence / impact) use
genomics-variant-annotation.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Variants | .vcf (uncompressed; .vcf.gz not auto-decompressed) |
yes (unless --demo) |
| Output | Path | Notes |
|---|---|---|
| Variant table | tables/variants.csv |
per-variant CHROM/POS/REF/ALT/QUAL/DP/type |
| Filtered VCF | output_dir/filtered.vcf |
only when --min-qual > 0 or --min-dp > 0 |
| Report | report.md + result.json |
always; result.json["data"]["variants_per_chrom"] mirrors per-chrom counts |
Flow
- Load VCF (
--input <file.vcf>) or generate a demo VCF atoutput_dir/demo.vcf(genomics_vcf_operations.py:305). - Parse records; classify each ALT into SNP / MNP / INS / DEL / COMPLEX.
- Apply
--min-qualand--min-dpfilters; writefiltered.vcfif either threshold is active (:329). - Compute Ti/Tv on biallelic SNPs; aggregate per-chromosome counts.
- Write
tables/variants.csv(genomics_vcf_operations.py:325) +report.md+result.json(:341).
Gotchas
--inputREQUIRED unless--demo.genomics_vcf_operations.py:310raisesValueError("--input required when not using --demo"); non-existent paths raiseFileNotFoundErrorat:313..vcf.gzis not auto-decompressed. The script reads plain text; gzipped VCFs raise an unintelligible parse error rather than a cleanbgziphint. Pre-decompress withbgzip -d(orgunzip -k) first.- Filtered VCF only emitted when a filter is active.
--min-qual 0and--min-dp 0(defaults at:296-297) keep every record and SKIP thefiltered.vcfwrite. Pass at least one threshold > 0 to get the filtered file. - Multi-allelic rows are scored per-ALT but counted as one VCF line. Per-allele Ti/Tv is computed correctly, but downstream tools that count "rows" will under-count vs
bcftools view. Pre-normalise (bcftools norm -m -) for row-by-allele math. - DP is read from
INFO/DPonly. Per-sampleFORMAT/DP(genotype-level) is ignored — single-sample VCFs that only put DP in FORMAT will seeDP=NA, and--min-dpwill drop them all. - Demo VCF is a minimal SNV+indel set with random QUAL/DP. Useful for orchestrator smoke tests; not biologically meaningful.
Key CLI
# Demo
python omicsclaw.py run genomics-vcf-operations --demo --output /tmp/vcf_demo
# Filter at QUAL>=30 and DP>=10
python omicsclaw.py run genomics-vcf-operations \
--input cohort.vcf --output results/ \
--min-qual 30 --min-dp 10
See also
references/parameters.md— every CLI flagreferences/methodology.md— variant-type rules, Ti/Tv interpretationreferences/output_contract.md—tables/variants.csv+filtered.vcf- Adjacent skills:
genomics-variant-calling(upstream — produces the VCF),genomics-variant-annotation(downstream — adds gene / consequence / impact),genomics-sv-detection(parallel — SVs instead of small variants),genomics-phasing(parallel — phased VCF analysis)
Установить genomics-vcf-operations в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл genomics-vcf-operations?
Load when summarising / filtering a VCF — variant classification (SNP / MNP / INS / DEL / COMPLEX), Ti/Tv ratio, QUAL / DP threshold filtering, INFO-field parsing. Skip when the input is a BAM (use `genomics-variant-calling` upstream first) or when adding functional annotations (use `genomics-variant-annotation`).
Как установить скилл genomics-vcf-operations?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл genomics-vcf-operations запускает скрипты?
Нет, скилл состоит только из инструкций (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