To celebrate the release of GATK 4.0, we are giving away free credits for running the GATK4 Best Practices pipelines in FireCloud, our secure online analysis portal. It’s first come first serve, so sign up now to claim your free credits worth $250. Sponsored by Google Cloud. Learn more at

How to split a multi-sample VCF file using SelectVariant?

luongjeluongje Member
edited September 2015 in Ask the GATK team

Hello gatk forums,

Novice gatk user here. I have a VCF file with 200 samples. I am currently trying to split/subset the VCF file such that I am only looking at individual samples. Below is my command line input and the error message I am getting.

java -jar /my/path/GenomeAnalysisTK.jar \ -T SelectVariants \ -R chr22.fa \ -V original.vcf \ -o indiv.vcf \ -sn D66001

Bad input: Samples entered on command line (through -sf or -sn) that are not present in the VCF.

I am sure that my sample is present. What am I doing wrong? Is there an easier way of subsetting a VCF file by sample?



Sign In or Register to comment.