Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mboursnell
    Member
    • Jul 2012
    • 17

    #1

    Data Processing Pipeline question

    Can anyone suggest an optimum data processing pipeline for analysing dog next gen sequencing data. We start with BAM files, and generally have about 5 cases and 5 controls. (10 samples = 10 BAM files). We don't want to ignore known SNPs since different breeds have different SNPs.

    Is there a way to analyse all the BAM files in parallel so that information from all of them can be used in producing aligned cleaned deduped BAM files?
  • Rocketknight
    Member
    • Sep 2011
    • 86

    #2
    There is indeed, if you're using GATK. Make sure every BAM file has a unique read group (you can use Picard's AddOrReplaceReadGroups function), mark duplicates with Picard, then merge all the BAM files into one (each read will retain its read group identifier, so you can distinguish them later).

    After that, proceed with the standard GATK pipeline on this single merged BAM file. This has several advantages over single-sample processing: Firstly, novel indels from one sample can be used to help realignment in other samples. Secondly, you can call variants for all samples simultaneously with GATK's UnifiedGenotyper. You can then do VQSR on this multi-sample VCF file, which allows you to use population-level information (InbreedingCoeff) to find false-positive SNPs.

    Comment

    • mboursnell
      Member
      • Jul 2012
      • 17

      #3
      Thanks. Do I use picard/MergeSamFiles to do the merging?

      Comment

      • Rocketknight
        Member
        • Sep 2011
        • 86

        #4
        Yep, that will work. (Edit: Make sure you have SORT_ORDER=coordinate set when you merge, as GATK will expect your BAMs to be sorted)

        Comment

        • mboursnell
          Member
          • Jul 2012
          • 17

          #5
          Do you use the Queue.jar and the DataProcessingPipeline.scala file to run the standard GATK pipeline, or do you make your own pipeline (e.g. in PERL) to do the same thing?

          Comment

          • Rocketknight
            Member
            • Sep 2011
            • 86

            #6
            I tinkered with GATK-Queue, but I had a couple of problems (and I'm not too familiar with Java/Scala), so in the end I just went with a simple Python script to run everything. I used Python's multiprocessing module to run multiple samples at once in order to take advantage of multiple cores without having to split single samples by region and recombine, but this won't be possible if you're merging all your BAM files into one (unless you have several multi-sample BAM files you'd like to process concurrently).

            Comment

            • mboursnell
              Member
              • Jul 2012
              • 17

              #7
              Would it be possible to have a look at your Python script to help me setting up my PERL script? [email protected]

              Comment

              • Rocketknight
                Member
                • Sep 2011
                • 86

                #8
                Sure thing, just sent it there.

                Comment

                • angelinasusan
                  Junior Member
                  • Dec 2012
                  • 3

                  #9
                  Could I take a look at your script?? I badly need some help with a pipeline I am building and this would be very helpful. my id : [email protected]

                  Comment

                  • mrood
                    Junior Member
                    • Feb 2013
                    • 5

                    #10
                    script please?

                    Hi, would anyone be willing to send me their script to look at? I am new to programming and would love an example to build my own off of! [email protected]
                    Thanks in advance!

                    Comment

                    • Jeremy
                      Senior Member
                      • Nov 2009
                      • 190

                      #11
                      You could also use Samtools mpileup and vcftools, it treats each bam file as a separate sample.

                      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, Today, 11:13 AM
                      0 responses
                      11 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, Today, 10:48 AM
                      0 responses
                      10 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-15-2026, 10:52 AM
                      0 responses
                      32 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-14-2026, 05:39 AM
                      0 responses
                      40 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...