This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Why gatk VariantAnnotator required bam and coverage files

Hi All,

I try to perform gatk VariantAnnotator, from their website:

VariantAnnotator \ -R reference.fasta \ -I input.bam \ -V input.vcf \ -o output.vcf \ -A Coverage \ --dbsnp dbsnp.vcf

I would like to ask why they may require the bam file for this function? I know that the mandatory field input.vcf already computed from the bam file itself. What may affect if I do not include the bam file?

Best,

gatk variantannotator

1 answer

I would like to ask why they may require the bam file for this function?

hum.. if you want to add the coverage, where do you think gatk can get this information elsewhete than in the bam files ?

I think the coverage could also computed from bam file itself, but let say I do not include the coverage, do you have any idea why it needs the bam file?

thank you!

Log in to answer this question.