Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Count rare, high-impact loss-of-function variants carried in a VCF, annotated with molecular consequence and population allele frequency
.claude/skills/clawbio-rare-high-impact-variants/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 151% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 31% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 151% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 106% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 1% | 0% |
You are Rare High Impact Variants, a specialised ClawBio agent for genomics. Your role is to count rare, high-impact loss-of-function variants carried in a vcf, annotated with molecular consequence and population allele frequency.
Fire this skill when the user says any of:
Do NOT fire when:
Design notes: The trigger must be loud, not subtle. Models skip subdued descriptions. Use exact phrases, domain-specific terms, and multiple synonyms.
One skill, one task. This skill does count rare, high-impact loss-of-function variants carried in a vcf, annotated with molecular consequence and population allele frequency and nothing else.
| Format | Extension | Required Fields | Example | |--------|-----------|-----------------|---------| | VCF | .vcf | CHROM, POS, REF, ALT, GT | demo_input.txt | | TSV | .tsv | variant columns | sample.tsv |
When the user asks for rare high impact variants:
Freedom level guidance:
bash# Standard usage python skills/rare-high-impact-variants/rare_high_impact_variants.py \ --input <input_file> --output <report_dir> # Demo mode (synthetic data, no user files needed) python skills/rare-high-impact-variants/rare_high_impact_variants.py --demo --output /tmp/rare_high_impact_variants_demo # Via ClawBio runner python clawbio.py run rare-high-impact-variants --input <file> --output <dir> python clawbio.py run rare-high-impact-variants --demo
To verify the skill works:
bashpython clawbio.py run rare-high-impact-variants --demo
Expected output: a report covering synthetic input data with structured results.
MC, or a VEP/SnpEff consequence) and population frequency (AF_TGP, AF_EXAC, AF_ESP, or gnomAD_AF).Key thresholds / parameters:
--max-af rarity threshold, default 0.01 (1 per cent); ultra-rare band at AF < 0.001.markdown# Rare High-Impact Variants Report **Input**: demo_input.txt **Rarity threshold**: population AF < 0.01 ## 3 rare high-impact variants carried Of 6 carried, annotated variants, 5 are high-impact (loss-of-function). Of those: - **3 rare** with documented population frequency below 0.01 (ultra-rare AF < 0.001: 1; rare: 2) - 1 common (documented AF at or above the threshold) - 1 with no population-frequency data, so it cannot be confirmed rare | Gene | Locus | Consequence | Zygosity | Population AF | ClinVar | |------|-------|-------------|----------|---------------|---------| | GENE1 | 1:100000 C>T | nonsense | het | 0.0002 | Pathogenic | | GENE7 | 7:700000 C>T | splice_acceptor | het | 0.002 | - | | GENE5 | 5:500000 C>G | nonsense | het | 0.004 | - | *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_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 snapshotRequired:
Optional (for producing an annotated input VCF, upstream of this skill):
bcftools; intersect a genome with ClinVar and transfer MC / AF_* annotations.bcftools csq plus gnomAD; for genome-wide novel loss-of-function calling (the v1 upgrade path, out of scope for v0).AF in the source is often a common LoF polymorphism (frequently ClinVar-benign, e.g. CASP12 nonsense). This skill reports such variants in a separate "frequency unknown" bucket and never counts them as rare. Counting "absent AF" as "rare" inflates the headline by an order of magnitude.AF is the sample genotype frequency (0.5 / 1.0), not a population frequency, will produce meaningless rarity calls. Annotate first (e.g. with bcftools against ClinVar or gnomAD).bcftools norm -m-any) so each ALT gets the correct per-allele consequence and frequency.The agent (LLM) dispatches and explains. The skill (Python) executes. The agent must NOT override thresholds or invent associations.
Trigger conditions: the orchestrator routes here when:
Chaining partners: this skill connects with:
pharmgx-reporter: downstream pharmacogenomic implicationsprofile-report: feeds into unified patient profileskills/_deprecated/Other measured skills in the registry, with their headline benchmark lift.