The current GATK version is 3.7-0
Examples: Monday, today, last week, Mar 26, 3/26/04

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Powered by Vanilla. Made with Bootstrap.
GATK 3.7 is here! Be sure to read the Version Highlights and optionally the full Release Notes.
Register now for the upcoming GATK Best Practices workshop, Feb 20-22 in Leuven, Belgium. Open to all comers! More info and signup at

RealignerTargetCreator parameter -known [File] fails when creating .idx file.

CoryzaCoryza EnschedeMember Posts: 11


I'm trying to use the RealignerTargetCreator as a test with 1 know file; 1000G_phase1.indels.b37.vcf. At first the contigs didn't match with my .BAM file (chr1/chr2 vs 1/2), so I adjusted that. Now when running it for the first time; java - jar [path to genomeAnalysisTK.jar] -T RealignerTargetCreator -R [.fasta] -I [.bam] -o [.intervals] -known [path to 1000g_phase1_adjusted.indels.b37.vcf] it gives the following error: "I/O error loading or writing tribble index file for [path to 1000g]". When running it the second time, I get the following error; "Problem detecting index type", because the .idx file is not correctly created.

What am I doing wrong?

Best Answer


  • CoryzaCoryza EnschedeMember Posts: 11
    edited April 2014

    Also when formatting the data file from chr1/chr2 to 1/2 and don't change the indel files, I get the same error. EDIT: When downloading the .idx files instead of creating them, it works. How can this happen?

  • Geraldine_VdAuweraGeraldine_VdAuwera Administrator, Dev Posts: 11,029 admin

    Do you mean you used scripting tools to modify the contig names in your resource files? If so that's the wrong thing to do, because there may be more differences between the reference builds than just the contig names. You should always download the resource files that match the correct version of the reference, not convert them yourself, because that is unsafe. The index issue is just one symptom of that.

    Geraldine Van der Auwera, PhD

  • CoryzaCoryza EnschedeMember Posts: 11

    I've done as you suggested. Downloaded both the genome ( and 2 indel files, named above. Keep having the same problem (there are .idx files also to download, but I wonder why RealignerTargetCreator won't do that).

    `##### ERROR MESSAGE: I/O error loading or writing tribble index file for G:\Stage_Enschede\methods_GenomeAnalysisTK\GenomeAnalysisTK-3.1-1\indels\1000G_phase1.indels.hg19.vcf

    ERROR --------------------------------------------------------------------


Sign In or Register to comment.