vimalinx/bio-agent / .claude/skills/vcf-subset
vcf-subset
UnverifiedUse when subsetting VCF files by samples or filtering variant types from bgzipped VCF input.
vcf-subset
Quick Start
- Command:
vcf-subset [OPTIONS] in.vcf.gz > out.vcf - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/vcf-subset - Full reference: See
references/help.md
When To Use This Tool
- Keep only a subset of samples from a compressed VCF.
- Restrict rows to certain variant classes such as SNPs or indels.
- Trim away unused alternate alleles after sample subsetting.
- Extract variants private to a subset of samples.
Common Patterns
# 1) Keep a subset of samples
vcf-subset -c samples.txt in.vcf.gz > subset.vcf
# 2) Keep only indels for one sample and drop non-variant rows
vcf-subset -c SAMPLE1 -t indels -e in.vcf.gz > sample1.indels.vcf
# 3) Keep private variants and trim unused ALTs
vcf-subset -c cases.txt -p -a in.vcf.gz > cases.private.vcf
Recommended Workflow
- Start from a bgzipped VCF and decide whether the primary goal is sample restriction, type filtering, or privacy filtering.
- Supply the target sample list with
-c, either as a file or comma-separated list. - Add row-level modifiers like
-t,-e,-u,-p, or-aonly after thinking through their interaction. - Validate the resulting sample columns and variant counts before feeding the subset into association or QC workflows.
Guardrails
- Input is expected to be a bgzipped VCF.
-fforces past missing requested samples; use it only when you understand exactly which samples are absent.-eexcludes rows without variants in the kept subset, while-rreplaces excluded sample genotypes with reference; combining them changes both row and genotype semantics.-atrimming alternate alleles can change ALT ordering/content, so be careful if downstream annotations depend on the original allele representation.
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 |