VCFtools Cheatsheet

Update: 2025.6.2 Reference: VCFtools GitHub


1. Filtering Variants

The vcftools suite allows filtering of variants based on various criteria.

Examples:

# Filter variants based on quality threshold
vcftools --vcf input.vcf --recode --recode-INFO-all --out filtered_variants --minQ 30

# Extract only specific chromosomes
vcftools --vcf input.vcf --chr chr1 --chr chr2 --recode --out extracted_chromosomes

# Remove indels from the VCF file
vcftools --vcf input.vcf --remove-indels --recode --out snps_only

2. Summarizing Statistics

Generate various summary statistics for VCF files.

Examples:


3. Sample Subsetting

Subset samples from a VCF file based on a predefined list.

Examples:


4. File Conversion

Convert VCF files into other formats for further analysis.

Examples:


This cheatsheet provides concise usage examples for common VCFtools commands, making it an essential reference for bioinformatics workflows. For detailed documentation, visit the VCFtools Documentation.

Last updated