DOKK / manpages / debian 12 / vcftools / vcf-subset.1.en
VCF-SUBSET(1) User Commands VCF-SUBSET(1)

vcf-subset - create subset of VCF file

vcf-subset [OPTIONS] in.vcf.gz > out.vcf

File or comma-separated list of columns to keep in the vcf file. If file, one column per row
Exclude rows not containing variants.
Print only rows where only the subset columns carry an alternate allele.
Replace the excluded types with reference allele instead of dot.
Comma-separated list of variant types to include: SNPs,indels.
Do not exclude rows without calls.
This help message.

cat in.vcf | vcf-subset -r -t indels -e -c SAMPLE1 > out.vcf
July 2011 vcf-subset 0.1.5