Heads up:
We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We encourage our fourm members to be more involved, jump in and help out your fellow researchers with their questions. GATK forum is a community forum and helping each other with using GATK tools and research is the cornerstone of our success as a genomics research community.We appreciate your help!

Test-drive the GATK tools and Best Practices pipelines on Terra

Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.

VariantRecalibrator error using GATK bundle vcf files


I'm using gatk- and I'm trying to call VariantRecalibrator

/opt/gatk- VariantRecalibrator \
-V vcf/${SAMPLE_ID}.vcf.gz \
--resource hapmap,known=false,training=true,truth=true,prior=15.0:${VARIANCE_REFERENCE}/hapmap_3.3.b37.vcf.gz \
--resource omni,known=false,training=true,truth=false,prior=12.0:${VARIANCE_REFERENCE}/1000G_omni2.5.b37.vcf.gz \
--resource 1000G,known=false,training=true,truth=false,prior=10.0:${VARIANCE_REFERENCE}/1000G_phase1.snps.high_confidence.b37.vcf.gz \
--resource dbsnp,known=true,training=false,truth=false,prior=2.0:${VARIANCE_REFERENCE}/dbsnp_138.b37.vcf.gz \
-an DP \
-an QD \
-an FS \
-an SOR \
-an MQ \
-an MQRankSum \
-an ReadPosRankSum \
-an InbreedingCoeff \
-mode SNP \
-O recalibration/output.snp.recal \
--tranches-file recalibration/output.snp.tranches \
--rscript-file recalibration/output.snp.plots.R

I downloaded the reference vcf files from the GATK bundle but I got this error

A USER ERROR has occurred: Input /datos/nagen/gatk_resources/hapmap_3.3.b37.vcf.gz must support random access to enable queries by interval. If it's a file, please index it using the bundled tool IndexFeatureFile

the hapmap_3.3.b37.vcf.idx.gz is in the same folder than hapmap_3.3.b37.vcf.gz

when trying to index the file with IndexFeatureFile I got this error

A USER ERROR has occurred: File /datos/nagen/gatk_resources/hapmap_3.3.b37.vcf.gz is malformed: Input file is not in valid block compressed format., for input source: /datos/nagen/gatk_resources/hapmap_3.3.b37.vcf.gz caused by Input file is not in valid block compressed format., for input source: /datos/nagen/gatk_resources/hapmap_3.3.b37.vcf.gz

running /opt/gatk- ValidateVariants -V /datos/nagen/gatk_resources/hapmap_3.3.b37.vcf.gz shows no problem

08:46:04.435 INFO ValidateVariants - Initializing engine
08:46:04.729 INFO FeatureManager - Using codec VCFCodec to read file file:///datos/nagen/gatk_resources/hapmap_3.3.b37.vcf.gz
08:46:04.743 INFO ValidateVariants - Done initializing engine
08:46:04.743 INFO ProgressMeter - Starting traversal
08:46:04.743 INFO ProgressMeter - Current Locus Elapsed Minutes Variants Processed Variants/Minute
08:46:11.050 INFO ProgressMeter - X:155073731 0.1 4165754 39642385.4
08:46:11.050 INFO ProgressMeter - Traversal complete. Processed 4165754 total variants in 0.1 minutes.
08:46:11.050 INFO ValidateVariants - Shutting down engine

any ideas?

thans in advance for your help,



  • SheilaSheila Broad InstituteMember, Broadie admin

    Hi Alberto,

    Weird. Can you try unzipping the VCF and index and seeing if the tool runs?

    Also, which version of Java are you using? Can you try with the latest GATK version?


  • mshrutimshruti Member

    Hi @Sheila,

    I was facing a similar problem when running BaseRecalibrator. “An index is required but was not found for file /share/PI/euan/apps/gatk/gatk_bundle_b37/dbsnp_138.b37.vcf.gz. Support for unindexed block-compressed files has been temporarily disabled. Try running IndexFeatureFile on the input.”
    I had copied the dbsnp_138.b37.vcf.gz file from GATK resource bundle ftp site -ftp://ftp.broadinstitute.org/bundle/b37/ along with the index files.

    Unzipping the VCFs and zipping them again with bgzip and later indexing with IndexFeatureFile resolved the issue.

  • SheilaSheila Broad InstituteMember, Broadie admin


    Thanks for reporting your solution. Also, perhaps this thread will help.


Sign In or Register to comment.