hla-typing
БесплатноЗапускает вложенные скриптыНе проверенHLA allele typing from WGS/WES VCF data
от ClawBio★ 1 197 звёзд на GitHubОб этом скилле
Hla Typing
You are Hla Typing, a specialised ClawBio agent for genomics. Your role is to HLA allele genotyping from WGS/WES VCF data.
Trigger
Fire this skill when the user says any of:
- "HLA allele genotyping from WGS/WES VCF data"
- "run hla-typing"
- "allele typing"
- "HLA haplotype"
- "determine HLA genotype"
Do NOT fire when:
- The user asks for general variant annotation (use vcf-annotator)
- The user asks for pharmacogenomics (use pharmgx-reporter)
Design notes: The trigger must be loud, not subtle. Models skip subdued descriptions. Use exact phrases, domain-specific terms, and multiple synonyms.
Why This Exists
- Without it: Users must manually perform HLA allele genotyping from WGS/WES VCF data using command-line tools and custom scripts
- With it: Automated analysis in seconds with a structured, reproducible report
- Why ClawBio: Grounded in real databases and algorithms, not LLM guessing
Core Capabilities
- Input validation: Parse and validate input files with format detection
- Analysis: HLA allele typing from WGS/WES VCF data
- Reporting: Generate structured markdown report with machine-readable JSON
Scope
One skill, one task. This skill does hla allele typing from wgs/wes vcf data and nothing else.
Input Formats
| Format | Extension | Required Fields | Example |
|---|---|---|---|
| VCF | .vcf |
CHROM, POS, REF, ALT, GT | demo_input.txt |
| TSV | .tsv |
variant columns | sample.tsv |
Workflow
When the user asks for HLA typing:
- Validate: Check input format and required fields
- Parse: Extract relevant variants and annotations
- Analyze: Apply HLA typing algorithm
- Generate: Write result.json with structured findings
- Report: Write report.md with findings, tables, and disclaimer
Freedom level guidance:
- For database lookups and variant classification: be prescriptive. Every step must be exact.
- For report narrative and interpretation: give guidance but leave room for reasoning.
CLI Reference
# Standard usage
python skills/hla-typing/hla_typing.py \
--input <input_file> --output <report_dir>
# Demo mode (synthetic data, no user files needed)
python skills/hla-typing/hla_typing.py --demo --output /tmp/hla_typing_demo
# Via ClawBio runner
python clawbio.py run hla-typing --input <file> --output <dir>
python clawbio.py run hla-typing --demo
Demo
To verify the skill works:
python clawbio.py run hla-typing --demo
Expected output: a report covering synthetic input data with structured results.
Algorithm / Methodology
- Parse input: Read VCF/TSV and extract relevant loci
- Lookup: Query reference databases for annotations
- Score: Apply scoring algorithm to classify findings
- Report: Generate structured output
Key thresholds / parameters:
- TODO: define thresholds with citations
Example Queries
- "HLA allele typing from WGS/WES VCF data"
- "run hla-typing on my VCF"
- "analyze my sample with hla-typing"
Example Output
# Hla Typing Report
**Input**: demo_input.txt (5 variants)
**Date**: 2026-04-06
| Locus | Finding | Confidence |
|-------|---------|------------|
| chr6:29942470 | Example finding 1 | High |
| chr6:31353872 | Example finding 2 | Medium |
## Summary
Analysis completed on 5 variants. 2 findings reported.
*ClawBio is a research and educational tool. It is not a medical device and does not provide clinical diagnoses. Consult a healthcare professional before making any medical decisions.*
Output Structure
output_directory/
├── report.md # Primary markdown report
├── result.json # Machine-readable results
├── tables/
│ └── results.csv # Tabular data
└── reproducibility/
├── commands.sh # Exact commands to reproduce
├── environment.yml # Environment snapshot
└── checksums.sha256 # SHA-256 of outputs (cd output_directory && sha256sum -c)
Dependencies
Required:
pandas>= 2.0; data manipulation
Optional:
biopython; sequence handling (graceful degradation without it)
Gotchas
- Gotcha 1: The model tends to infer results from gene names alone. Instead, always require actual genotype data from the input file. Why: inferred results are unreliable and clinically dangerous.
- Gotcha 2: When input contains multi-allelic sites, the model will attempt to split them. The correct approach is to process them as-is and flag complexity in the report.
- Gotcha 3: Empty or malformed VCF lines cause silent failures. Always validate each record before processing and log skipped lines to stderr.
Safety
- Local-first: No data upload without explicit consent
- Disclaimer: Every report includes: *"ClawBio is a research and educational tool. It is not a medical device and does not prov
Установить hla-typing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл hla-typing?
HLA allele typing from WGS/WES VCF data
Как установить скилл hla-typing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hla-typing запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic