This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Parsing through VCF annotated by Funcotator

I have a variant set annotated by GATK's Funcotator... creates an extra field in the VCF called "Funcotator" with several annotations separated by pipe characters. I want to get some statistics on % intronic vs exonic and missense/nonsense mutations. Is the easiest way to do this using grep? Or does GATK's SelectVariants work?

gatk vcf funcotator annotated

1 answer

There are a few ways you can do this. I'd recommend grabbing a script that I wrote to turn Functoator VCF annotations into CSVs.

I did this so that I could more easily debug things when I was writing it.

The script is here: createFuncotationCsvFromFuncotatorVcf.sh

That should work for you (though it may not work correctly if the VCF header is very large). If you have more troubles you can post over on the GATK forums or open a question ticket on GitHub.

Log in to answer this question.