Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MolecularToast
    Junior Member
    • Aug 2010
    • 9

    #1

    FixMateInformation after GATK realignment

    I'm using GATK to analyze some paired-end Illumina exome data and have been running into a problem after realignment using IndelRealigner. After realignment, I have been trying to use Picard's FixMateInformation to take the realigned query-name-sorted bams and produce fixed, coordinate-sorted bams. This function creates a bunch of temp files and does so fairly quickly. However, the process of merging these temp files together takes an extraordinarily long time. Not sure what I'm doing wrong here.

    Is it possible to simply use the FixMate and Sort functions in SamTools to perform the same task? This I've done and it works relatively quickly.

    Lastly, one other quick question, after realignment using IndelRealigner, a one exome bam file which is only about 7.3 GB (following initial alignment with BWA) becomes approximately 32.8 GB. Is this supposed to happen?

    Thanks, Toast
  • dawe
    Senior Member
    • Apr 2009
    • 258

    #2
    Originally posted by MolecularToast View Post
    However, the process of merging these temp files together takes an extraordinarily long time. Not sure what I'm doing wrong here.
    I thought it was normal :-) I had to process 6 bam files and it took slightly less than 3 weeks (from recalibration to final rmdup).

    Originally posted by MolecularToast View Post
    Lastly, one other quick question, after realignment using IndelRealigner, a one exome bam file which is only about 7.3 GB (following initial alignment with BWA) becomes approximately 32.8 GB. Is this supposed to happen?

    Thanks, Toast
    The BAM produced after the indelrealigner is huge, that is supposed to happen and I suspect it is related to the BAM file structure. Sorted files are smaller than unsorted ones. After InderRealigner you have the "less sorted" BAM file.

    Comment

    • Michael.James.Clark
      Senior Member
      • Apr 2009
      • 207

      #3
      As far as FixMateInformation, I did not find it taking that excessively long. This was on only around 50,000,000 reads, but it took less than two hours. You can definitely try bumping up the MAX_RECORDS_IN_RAM parameter assuming you do have a lot of RAM to speed it up. My guess based on what you said is that you are spending tons of time reading and writing to disk (tmp files) which you can reduce by using more RAM. Remember to pass JVM more RAM when you run it.

      As for the huge BAM file, is your final BAM file uncompressed? You can compress it further with multiple tools (does IndelRealigner have the option to output compressed BAM?).
      Mendelian Disorder: A blogshare of random useful information for general public consumption. [Blog]
      Breakway: A Program to Identify Structural Variations in Genomic Data [Website] [Forum Post]
      Projects: U87MG whole genome sequence [Website] [Paper]

      Comment

      • MolecularToast
        Junior Member
        • Aug 2010
        • 9

        #4
        Thank you both for your replies. I tried increasing the MAX_RECORDS_IN_RAM once and all it seemed to do was create larger temp files that merged just as slowly. I'll try passing even more RAM to JVM and see if that speeds it up any but I'm nearly maxed out already.

        I completely missed that before but, yes, it is an uncompressed BAM file and IndelRealigner does have an additional argument you can use to compress the output. That makes sense now.

        Anyone know though whether SamTools FixMate and Sort functions can accomplish the same thing as Picards FixMateInformation?

        Thanks, Toast

        Comment

        • NGSfan
          Senior Member
          • Apr 2009
          • 181

          #5
          If you are using Fedora/Ubuntu linux *and* you have tons of RAM (128 or 256GB) you might want to use /dev/shm/ which is the temporary RAM drive as your tmp directory.

          Comment

          • MolecularToast
            Junior Member
            • Aug 2010
            • 9

            #6
            Thank you - I did end up running it on a linux box with about 4x the comp power and 4x the RAM and it did speed it up (comparatively) quite a bit (at least within my tolerable range).

            Thank you everyone for your suggestions. As near as I can tell the samtools alternative method did allow for downstream processing but I haven't compared the calls.

            Comment

            • hiberbear
              Junior Member
              • Jul 2012
              • 3

              #7
              Originally posted by MolecularToast View Post
              Thank you - I did end up running it on a linux box with about 4x the comp power and 4x the RAM and it did speed it up (comparatively) quite a bit (at least within my tolerable range).

              Thank you everyone for your suggestions. As near as I can tell the samtools alternative method did allow for downstream processing but I haven't compared the calls.
              Could you post your parameter for FixMateInformation? I have the same problems, it is really slowly.

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                by SEQadmin2



                Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                ...
                10-14-2026, 09:55 AM
              • SEQadmin2
                New Genomics Technologies Take Aim at Long-Standing Limits
                by SEQadmin2


                Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                ...
                09-28-2026, 10:25 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 10-22-2026, 11:13 AM
              0 responses
              50 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-22-2026, 10:48 AM
              0 responses
              37 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              46 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              46 views
              0 reactions
              Last Post SEQadmin2  
              Working...