Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

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

    Comment


    • #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


      • #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


        • #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


          • #6
            Yes, that's right!

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Advancing Precision Medicine for Rare Diseases in Children
              by seqadmin




              Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
              12-16-2024, 07:57 AM
            • seqadmin
              Recent Advances in Sequencing Technologies
              by seqadmin



              Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

              Long-Read Sequencing
              Long-read sequencing has seen remarkable advancements,...
              12-02-2024, 01:49 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 12-17-2024, 10:28 AM
            0 responses
            33 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-13-2024, 08:24 AM
            0 responses
            48 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-12-2024, 07:41 AM
            0 responses
            34 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-11-2024, 07:45 AM
            0 responses
            46 views
            0 likes
            Last Post seqadmin  
            Working...
            X