vcf-to-tab
Quick Start
- Command:
vcf-to-tab [OPTIONS] < in.vcf > out.tab - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/vcf-to-tab - Full reference: See
references/help.md
When To Use This Tool
- Convert a streamed VCF into a simple tabular representation quickly.
- Emit IUPAC-coded alleles if that specific output style is needed.
- Keep using it only in legacy vcftools-style stream pipelines; for new work, prefer
bcftools query.
Common Patterns
# 1) Convert a plain VCF stream to tab
cat input.vcf | vcf-to-tab > out.tab
# 2) Use IUPAC ambiguity codes
cat input.vcf | vcf-to-tab -i > out.iupac.tab
Recommended Workflow
- Stream a valid VCF into stdin.
- Decide whether ambiguity codes are needed with
-i. - Write the tabular output to a file and inspect a few lines for column expectations.
- Move to
bcftools queryif the output specification starts to become more complex than this script can express.
Guardrails
- This is a deprecated vcftools utility;
bcftools queryis the preferred modern replacement. - Input is stdin-driven and output is stdout-driven.
--versionis not supported in the usual way; use-hfor interface help.- Because the format is simple and opinionated, do not expect the field-level flexibility of
bcftools query.