Seqanswers Leaderboard Ad

Collapse

Announcement

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

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

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


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

      Comment


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


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


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


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

              Comment


              • #8
                Sure thing, just sent it there.

                Comment


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


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


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

                      Comment

                      Latest Articles

                      Collapse

                      • seqadmin
                        Essential Discoveries and Tools in Epitranscriptomics
                        by seqadmin




                        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
                        04-22-2024, 07:01 AM
                      • seqadmin
                        Current Approaches to Protein Sequencing
                        by seqadmin


                        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
                        04-04-2024, 04:25 PM

                      ad_right_rmr

                      Collapse

                      News

                      Collapse

                      Topics Statistics Last Post
                      Started by seqadmin, 04-11-2024, 12:08 PM
                      0 responses
                      59 views
                      0 likes
                      Last Post seqadmin  
                      Started by seqadmin, 04-10-2024, 10:19 PM
                      0 responses
                      57 views
                      0 likes
                      Last Post seqadmin  
                      Started by seqadmin, 04-10-2024, 09:21 AM
                      0 responses
                      51 views
                      0 likes
                      Last Post seqadmin  
                      Started by seqadmin, 04-04-2024, 09:00 AM
                      0 responses
                      56 views
                      0 likes
                      Last Post seqadmin  
                      Working...
                      X