Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • evonne16
    Junior Member
    • Nov 2011
    • 7

    GATK: Failed to load reference dictionary

    Hi,
    When I use DepthOfCoverage of GATK, the error is 'Failed to load reference dictionary' .
    I can't get why.
    My command as below:
    $java -jar GenomeAnalysisTK.jar \ -T DepthOfCoverage \ -R refall/allRef.fa \ -I mapping/DNAnew.sorted.bam \ -o mapping/dcDNA.targetCoverage

    Thanks
  • Heisman
    Senior Member
    • Dec 2010
    • 534

    #2
    Have you used that same reference dictionary for other commands with the GATK successfully?

    Comment

    • me_myself_andI
      Member
      • Nov 2010
      • 30

      #3
      I think you might have to create the dict file manually depending on the GATK version. I see this happening every now and then as well. The extra-complication is that if (my version of) GATK can't read the dict file it will also create an empty reference index file. What works for me is the following:

      Before running GATK:

      1. test if the reference index (refall/allRef.fa.fai in your case) exists and if it doesn't or if it's of size zero, recreate it with 'samtools faidx'.

      2. Also test wether the reference dictionary exists (refall/allRef.fa.dict in your case) and if it doesn't or if it's of size zero recreate it with Picard's CreateSequenceDictionary.

      Andreas

      EDIT: As pointed out by dGho 'samtools index' was meant to be 'samtools faidx'
      Last edited by me_myself_andI; 01-23-2014, 05:35 PM. Reason: corrected mistake: use of wrong subcommand

      Comment

      • wangli
        Member
        • Apr 2012
        • 48

        #4
        Hi, Andreas

        I would like to thank you for your very useful information here. I got my similar problem fixed according to your suggestions.
        Actually, I have used the same dictionary for other commands of GATK successfully before. So, at first, i feel very confused why it can be used for some command but not others. Following your suggestion, I check my .dict and .fai files again, and i found their size is 0. Then i just deleted them. And type in my command. We donot need to use samtools or picard to generate these two files. The new version of GATK can generate itself. But i donot know why after running through a command, these two files turn to 0 size and we need to generate them again. That is weird. But my problem is solved. Thanks again!

        Comment

        • dGho
          Member
          • Jan 2013
          • 43

          #5
          Originally posted by me_myself_andI View Post
          1. test if the reference index (refall/allRef.fa.fai in your case) exists and if it doesn't or if it's of size zero, recreate it with 'samtools index'.
          Your comment was very useful, but just for reference or for future readers, I believe you meant the following command to create a ref index:

          samtools faidx refall/allRef.fa

          Comment

          • me_myself_andI
            Member
            • Nov 2010
            • 30

            #6
            Yes, that's right!

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
              by SEQadmin2


              Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

              The systematic characterization of the human proteome has
              ...
              07-20-2026, 11:48 AM
            • SEQadmin2
              Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
              by SEQadmin2



              Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
              ...
              07-09-2026, 11:10 AM
            • SEQadmin2
              Cancer Drug Resistance: The Lingering Barrier to Rising Survival
              by SEQadmin2



              Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

              There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
              07-08-2026, 05:17 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Yesterday, 11:41 AM
            0 responses
            9 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-20-2026, 11:10 AM
            0 responses
            23 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-13-2026, 10:26 AM
            0 responses
            36 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-09-2026, 10:04 AM
            0 responses
            45 views
            0 reactions
            Last Post SEQadmin2  
            Working...