Question: Gatk Baserecalibrator Phase 2 Error
gravatar for youngcsong
6.8 years ago by
youngcsong100 wrote:


I am running second round of BaseRecalibrator, using the output table generated from first round of BaseRecalibrator (pretty much the similar command, except in a second run, I use -BQSR <table_from_first_round_of_baserecalibrator> ). During the bam file processing procedure, the program quits and spews out this message:

##### ERROR stack trace 
net.sf.picard.PicardException: Unable to load 1(179574784, 180576784) from /projects/seqdev/ysong_snp_indel/hg19a_reference.fa
    at net.sf.picard.reference.IndexedFastaSequenceFile.getSubsequenceAt(
    at org.broadinstitute.sting.utils.fasta.CachingIndexedFastaSequenceFile.getSubsequenceAt(
    at org.broadinstitute.sting.gatk.datasources.providers.ReferenceView.getReferenceBases(
    at org.broadinstitute.sting.gatk.datasources.providers.ReadReferenceView$Provider.getBases(
    at org.broadinstitute.sting.gatk.contexts.ReferenceContext.fetchBasesFromProvider(
    at org.broadinstitute.sting.gatk.contexts.ReferenceContext.getBases(
    at org.broadinstitute.sting.gatk.walkers.bqsr.BaseRecalibrator.calculateIsSNP(
    at org.broadinstitute.sting.gatk.traversals.TraverseReadsNano$TraverseReadsMap.apply(
    at org.broadinstitute.sting.gatk.traversals.TraverseReadsNano$TraverseReadsMap.apply(
    at org.broadinstitute.sting.utils.nanoScheduler.NanoScheduler.executeSingleThreaded(
    at org.broadinstitute.sting.utils.nanoScheduler.NanoScheduler.execute(
    at org.broadinstitute.sting.gatk.traversals.TraverseReadsNano.traverse(
    at org.broadinstitute.sting.gatk.traversals.TraverseReadsNano.traverse(
    at org.broadinstitute.sting.gatk.executive.LinearMicroScheduler.execute(
    at org.broadinstitute.sting.gatk.GenomeAnalysisEngine.execute(
    at org.broadinstitute.sting.gatk.CommandLineExecutable.execute(
    at org.broadinstitute.sting.commandline.CommandLineProgram.start(
    at org.broadinstitute.sting.commandline.CommandLineProgram.start(
    at org.broadinstitute.sting.gatk.CommandLineGATK.main(
##### ERROR ------------------------------------------------------------------------------------------
##### ERROR A GATK RUNTIME ERROR has occurred (version 2.8-1-g932cd3a):
##### ERROR
##### ERROR This might be a bug. Please check the documentation guide to see if this is a known problem.

Just to include more detail, I am running this in a local server with following command:

java -Xmx8g -jar GenomeAnalysisTK-2.8-1/GenomeAnalysisTK.jar -T BaseRecalibrator -R <reference_fasta.fa>  -I <bam_file_generated_from_IndelRealigner> -BQSR <table_from_round_1_of_BaseRecalibrator> -o <output_table_from_round_2_of_BaseRecalibrator> -knownSites <vcf_file_from_GATK_bundle>

More specifically, <vcf_file_from_gatk_bundle> is 1000G_omni2.5.b37.vcf. I could put more vcf into the analysis, but decided to play safe and use one file for now.

Nonetheless, has anyone encountered such issue?

gatk error • 2.3k views
ADD COMMENTlink written 6.8 years ago by youngcsong100

The error message suggests that it can't get the reference sequence on chromosome 1 between 179574784 and 180576784. You might check that that range exists and ensure that the .fai file matches the .fa file (just remake the fasta index).

See also this post on the GATK forum.

ADD REPLYlink modified 6.8 years ago • written 6.8 years ago by Devon Ryan98k

hmm, so that's what it meant 1(179574784, 180576784)...although I've been using the same .fa and .fai file for the past three GATK commands and they seemed to be okay. I am in a process of re-running this right now, and if it does throw a same message, then I might try recreating the .fai file

ADD REPLYlink modified 6.8 years ago • written 6.8 years ago by youngcsong100

so the second time running the second actually processed the chr1 regions mentioned in the previous error and its progressing...very strange indeed.

ADD REPLYlink written 6.8 years ago by youngcsong100
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1767 users visited in the last hour