Test-drive the GATK tools and Best Practices pipelines on Terra
Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.
How to split a multi-sample VCF file using SelectVariant?
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?