VariantsToTable in GATK does not produce the table of all SNPs in the vcf file
I am trying to convert my vcf file to a flat tab-separated format by using "VariantsToTable" in GATK. I am particularly interested in DP at the sample annotation for my analysis. I am using
/data/programs/gatk-4.0.4.0/gatk VariantsToTable -V final.vcf -GF DP -O snps.DP.tab
My vcf file consists of over 4 million SNPs, but the table that I get from running VariantsToTable consists only nearly 1 million SNPs. I wonder what is wrong! Does anyone knows how can I sort this out. Thanks
• 7,201 views
•
link
2 answers
This is answered in the description of the tool on the Broad's website:
"By default, the tool only extracts PASS or . (unfiltered) variants in the VCF file. Filtered variants may be included in the output by adding the --show-filtered flag"
• 0 views
•
link
Log in to answer this question.
Hello,
were there any warning/error messages? Could you post some examples from the vcf file from variants that are missing in the result?
Thanks.
fin swimmer
No, I did not get any error message. I just get only 1 million SNPs in the table and I do not know which of them from the main vcf file
I have the same question. I am using VariantsToTable command and it removes all the lowQual SNPs. However, I want them too. for example,
The following command works
but not the following command
Thank you, Sneha