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!

Did you remember to?

1. Search using the upper-right search box, e.g. using the error message.
2. Try the latest version of tools.
3. Include tool and Java versions.
4. Tell us whether you are following GATK Best Practices.
5. Include relevant details, e.g. platform, DNA- or RNA-Seq, WES (+capture kit) or WGS (PCR-free or PCR+), paired- or single-end, read length, expected average coverage, somatic data, etc.
6. For tool errors, include the error stacktrace as well as the exact command.
7. For format issues, include the result of running ValidateSamFile for BAMs or ValidateVariants for VCFs.
8. For weird results, include an illustrative example, e.g. attach IGV screenshots according to Article#5484.
9. For a seeming variant that is uncalled, include results of following Article#1235.

Did we ask for a bug report?

Then follow instructions in Article#1894.

Formatting tip!

Surround blocks of code, error messages and BAM/VCF snippets--especially content with hashes (#)--with lines with three backticks ( ``` ) each to make a code block.
Powered by Vanilla. Made with Bootstrap.
Picard 2.9.0 is now available. Download and read release notes here.
GATK 3.7 is here! Be sure to read the Version Highlights and optionally the full Release Notes.

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 Cambridge, MAMember, Administrator, Broadie Posts: 11,390 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.