How to fix the following error?
ERROR MESSAGE: Fasta index file /data/ngs/references/hg38gatkbundle/Homo_sapiens_assembly38.known_indels.vcf.fai for reference /data/ngs/references/hg38gatkbundle/Homo_sapiens_assembly38.known_indels.vcf does not exist
My command is:
java -jar path/to/gatk3.8.jar -T RealignerTargetCreator -R /path/to/hg38gatkbundle/Homo_sapiens_assembly38.known_indels.vcf -known /path/to/hg38gatkbundle/Mills_and_1000G_gold_standard.indels.hg38.vcf -I HG100.bam -L path/to/hg38gatkbundle/exons.hg38.bed -o HG100.IndelRealigner.intervals
NOTE: I am using hg38gatkbundle as my reference genome. hg38gatkbundle directory does not have any Homo_sapiens_assembly38.known_indels.vcf.fai for Homo_sapiens_assembly38.known_indels.vcf file
Also, exons.hg38.bed is not there in hg38gatkbundle directory
Thanks, I changed the command accordingly and it worked. My command is :
But, still I didnt get the mystery of exons.hg38.bed. In the above command I removed it and it worked.
The
-L
option is just restricting the program to operate over a given set of regions, it's not strictly needed though it might speed things up a bit.It could still be useful for non-GATK variant callers.