vimalinx/bio-agent / .claude/skills/sam2vcf-pl
sam2vcf-pl
UnverifiedUse when converting old `samtools pileup -c` output into VCF and filtering for SNP-only or indel-only calls.
sam2vcf-pl
Quick Start
- Command:
sam2vcf.pl [OPTIONS] < in.pileup > out.vcf - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/sam2vcf.pl - Reference: See references/help.md
When To Use This Tool
- Convert legacy
samtools pileup -ctext output into VCF. - Filter calls down to SNPs only with
-sor indels only with-i. - Keep reference alleles in the output with
-Rwhen a downstream comparison expects them. - Rescue older pileup-based workflows that predate current
bcftoolscalling conventions.
Common Patterns
# 1) Convert old pileup output to VCF
samtools pileup -c ref.fa alignments.bam | sam2vcf.pl > calls.vcf
# 2) Emit SNPs only
samtools pileup -c ref.fa alignments.bam | sam2vcf.pl -s > snps.vcf
# 3) Emit indels and provide the reference sequence explicitly
samtools pileup -c ref.fa alignments.bam | sam2vcf.pl -i -r ref.fa > indels.vcf
Recommended Workflow
- Generate pileup input from an older
samtools pileup -c-style workflow rather than modernmpileupdefaults. - Decide whether you need all calls, SNPs only, or indels only before conversion.
- Provide
-r ref.fawhenever indels may appear in the input. - Inspect the resulting header and a few representative records before mixing this legacy VCF into newer pipelines.
Guardrails
- This script expects legacy pileup text on stdin and emits VCFv3.3, not modern VCF4 output.
-r/--refseqis required when indels are present.--helpworks, but--versionis not implemented and exits as an unknown parameter.- Do not combine
-sand-i; treat them as mutually exclusive filters.
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 |