vimalinx/bio-agent / .claude/skills/bcftools
bcftools
UnverifiedUse when working with VCF/BCF variant files for indexing, manipulation, analysis, or variant calling.
bcftools
Quick Start
- Command:
bcftools - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/bcftools - Version: 1.22
- Full reference: See references/help.md for complete help text and subcommand details
When To Use This Tool
- Inspect, filter, normalize, query, call, and summarize VCF/BCF files.
- Default companion tool for modern variant workflows.
- Use it after alignment/variant calling and before downstream annotation or cohort comparison.
- Prefer subcommand-oriented use such as
view,norm,query,stats,call, ormpileup.
Common Patterns
# 1) Subset and view a compressed VCF
bcftools view -r chr1:100000-110000 cohort.vcf.gz
# 2) Normalize variants against a reference
bcftools norm -f reference.fa -Oz -o cohort.norm.vcf.gz cohort.vcf.gz
bcftools index cohort.norm.vcf.gz
# 3) Extract tabular fields
bcftools query -f '%CHROM\t%POS\t%REF\t%ALT[\t%GT]\n' cohort.vcf.gz
# 4) Produce summary statistics
bcftools stats cohort.vcf.gz > cohort.stats.txt
Recommended Workflow
- Keep VCF/BCF indexed whenever possible.
- Use
vieworfilterto subset before heavier operations. - Normalize indels with
normbefore comparing or merging callsets. - Use
queryandstatsfor reporting instead of ad hoc parsing when possible.
Guardrails
- Indexed VCF/BCF works in all situations; streams and unindexed files do not.
bcftools normneeds the correct reference FASTA to do honest left-alignment and normalization.- Use
plugin -lvbefore reinventing functionality that already exists in a plugin. - Be explicit about compressed output with
-Ozor BCF output with-Obwhen building pipelines.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |