Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Gatk multiSample realignment and recalibration

    Hi,
    I have used gatk for single sample realignment followed by recalibration. I want to try multi sample realignment and recalibration as mentioned in the best practice page http://www.broadinstitute.org/gsa/wi...th_the_GATK_v2
    The example doesn't show how to use the commandline.
    Has anyone used this feature? If so can you please share the command line for gatk to call this? Thanks.

  • #2
    Is this what you have in mind? http://www.broadinstitute.org/gsa/wi..._around_indels

    Score recalibration can be found at http://www.broadinstitute.org/gsa/wi..._recalibration

    I could offer more details, but they're simply saying it better (and more completely) than I could.

    Comment


    • #3
      Thanks for your response. Right now I am using the following commandline to do realignment and recalibration sample by sample.

      Code:
      java -Xmx4g -jar /tools/GenomeAnalysisTK-1.0.4013/GenomeAnalysisTK.jar -T RealignerTargetCreator -I test_PCR_removed_sorted.bam -R /Genome/hg19/hg19.fa -o output.intervals 
      
      echo "GATK run realigner"
      java -Xmx4g -jar /tools/GenomeAnalysisTK-1.0.4013/GenomeAnalysisTK.jar -T IndelRealigner -U -S Silent -I test_PCR_removed_sorted.bam -R /Genome/hg19/hg19.fa -targetIntervals output.intervals --output test_reAligned.bam
      
      echo "GATK Count covariates and generate csv"
      java -Xmx4g -jar /tools/GenomeAnalysisTK-1.0.4013/GenomeAnalysisTK.jar -R /Genome/hg19/hg19.fa --DBSNP /GATK/latest_GATK/resources/dbsnp_129_b37.rod -I test_reAligned_sorted.bam --max_reads_at_locus 20000 --default_platform illumina -T CountCovariates -cov ReadGroupCovariate -cov CycleCovariate -cov DinucCovariate -recalFile test_recal.csv
      
      echo " GATK re-calibration"
      java -Xmx4g -jar /tools/GenomeAnalysisTK-1.0.4013/GenomeAnalysisTK.jar -R /Genome/hg19/hg19.fa -I test_reAligned_sorted.bam -T TableRecalibration --default_platform illumina -outputBam test_reAligned_reCal.bam -recalFile test_recal.csv
      But I am interested in Best: multi-sample realignment with known sites and recalibration as mentioned here http://www.broadinstitute.org/gsa/wi..._recalibration

      How to implement the following.
      Code:
      for each sample
          lanes.bam <- merged lane.bam's for sample
          dedup.bam <- MarkDuplicates(lanes.bam)
      
      samples.bam <- merged dedup.bam's for all samples
      realigned.bam <- realign(samples.bam)
      recal.bam <- recal(realigned.bam)
      Please let me know whether my intrepretation as below is correct.
      1. Merge all lane for each sample bam file.
      2. Mark duplicates of sample bam
      3. Merge all the sample dedup bams
      4. Call realignment
      5. Call recalibration.
      Thanks.

      Comment


      • #4
        I'm not an expert, but that does sound reasonable (and very close to what I have). I also call the indel discovery tool before the realignment to get additional regions to focus on.

        I use Picard for the duplicate removal:
        Code:
        java -Xmx8g -jar MarkDuplicates.jar I=bamFile O=bamDupRemFile \ 
        M=duplicateMetricsFile VALIDATION_STRINGENCY=SILENT ASSUME_SORTED=true \
        REMOVE_DUPLICATES=true
        Merging can be done with samtools:
        Code:
        samtools merge mergedBam bam1 bam2 bam3
        Unfortunately, you'll need to redo the header as it will only use the header from the first bam file and it will miss the @RG from the others. Hopefully I'm behind in the news and someone can mention an easy tool to do it, I just have a bit of perl code to do it. I can post it here if you want.

        Comment


        • #5
          Originally posted by fpepin View Post

          Unfortunately, you'll need to redo the header as it will only use the header from the first bam file and it will miss the @RG from the others. Hopefully I'm behind in the news and someone can mention an easy tool to do it, I just have a bit of perl code to do it. I can post it here if you want.
          Picard's MergeSamFiles will merge multiple BAM files and add all @RGs to the header of the merged BAM.

          Comment


          • #6
            Thanks Mard for the info.

            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
            26 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-13-2024, 08:24 AM
            0 responses
            43 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-12-2024, 07:41 AM
            0 responses
            29 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-11-2024, 07:45 AM
            0 responses
            42 views
            0 likes
            Last Post seqadmin  
            Working...
            X