Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • stephlo
    Junior Member
    • Nov 2012
    • 2

    GATK: read counts varying between programs

    Hi all,

    I am doing an exome analysis with BWA 0.6.1-r104 and GATK v2.2-8-gec077cd.
    I have paired end reads, my protocol until now is (in brief, omitting options etc.)

    bwa aln R1.fastq
    bwa aln R2.fastq
    bwa sampe R1.sai R2.sai
    picard/CleanSam.jar
    picard/SortSam.jar
    picard/MarkDuplicates.jar
    picard/AddOrReplaceReadGroups.jar
    picard/BuildBamIndex.jar
    GATK -T RealignerTargetCreator -known dbsnp.vcf
    GATK -T IndelRealigner -known dbsnp.vcf
    GATK -T BaseRecalibrator -knownSites dbsnp.vcf
    GATK -T PrintReads


    A closer look on the output of the above toolchain revealed changes in read counts I did not quite understand.

    I have 85767226 paired end = 171534452 sequences in fastQ file

    BWA reports this number, the cleaned SAM file has 171534452 alignments as expected.



    MarkDuplicates reports:

    Read 165619516 records. 2 pairs never matched.
    Marking 20272927 records as duplicates.
    Found 2919670 optical duplicate clusters.

    so nearly 6 million reads seem to miss.



    CreateTargets MicroScheduler reports

    35915555 reads were filtered out during traversal out of 166579875 total (21.56%)
    -> 428072 reads (0.26% of total) failing BadMateFilter
    -> 16077607 reads (9.65% of total) failing DuplicateReadFilter
    -> 19409876 reads (11.65% of total) failing MappingQualityZeroFilter

    so nearly 5 million reads seem to miss



    The Realigner MicroScheduler reports

    0 reads were filtered out during traversal out of 171551640 total (0.00%)

    which appears a miracle to me since
    1) there are even more reads now than input sequences,
    2) all those crappy reads reported by CreateTargets do not appear.



    From Base recalibration MicroScheduler, I get

    41397379 reads were filtered out during traversal out of 171703265 total (24.11%)
    -> 16010068 reads (9.32% of total) failing DuplicateReadFilter
    -> 25387311 reads (14.79% of total) failing MappingQualityZeroFilter

    ..... so my reads got even more offspring, but, e.g., the duplicate reads reappear with "roughly" the same number.


    I found these varying counts a little irritating -- can someone please give me a hint on the logics of these numbers? And, does the protocol look meaningful?


    Thanks for any comments!
  • fjrossello
    Member
    • Sep 2011
    • 30

    #2
    Originally posted by stephlo View Post
    Hi all,

    I am doing an exome analysis with BWA 0.6.1-r104 and GATK v2.2-8-gec077cd.
    I have paired end reads, my protocol until now is (in brief, omitting options etc.)

    bwa aln R1.fastq
    bwa aln R2.fastq
    bwa sampe R1.sai R2.sai
    picard/CleanSam.jar
    picard/SortSam.jar
    picard/MarkDuplicates.jar
    picard/AddOrReplaceReadGroups.jar
    picard/BuildBamIndex.jar
    GATK -T RealignerTargetCreator -known dbsnp.vcf
    GATK -T IndelRealigner -known dbsnp.vcf
    GATK -T BaseRecalibrator -knownSites dbsnp.vcf
    GATK -T PrintReads


    A closer look on the output of the above toolchain revealed changes in read counts I did not quite understand.

    I have 85767226 paired end = 171534452 sequences in fastQ file

    BWA reports this number, the cleaned SAM file has 171534452 alignments as expected.



    MarkDuplicates reports:

    Read 165619516 records. 2 pairs never matched.
    Marking 20272927 records as duplicates.
    Found 2919670 optical duplicate clusters.

    so nearly 6 million reads seem to miss.



    CreateTargets MicroScheduler reports

    35915555 reads were filtered out during traversal out of 166579875 total (21.56%)
    -> 428072 reads (0.26% of total) failing BadMateFilter
    -> 16077607 reads (9.65% of total) failing DuplicateReadFilter
    -> 19409876 reads (11.65% of total) failing MappingQualityZeroFilter

    so nearly 5 million reads seem to miss



    The Realigner MicroScheduler reports

    0 reads were filtered out during traversal out of 171551640 total (0.00%)

    which appears a miracle to me since
    1) there are even more reads now than input sequences,
    2) all those crappy reads reported by CreateTargets do not appear.



    From Base recalibration MicroScheduler, I get

    41397379 reads were filtered out during traversal out of 171703265 total (24.11%)
    -> 16010068 reads (9.32% of total) failing DuplicateReadFilter
    -> 25387311 reads (14.79% of total) failing MappingQualityZeroFilter

    ..... so my reads got even more offspring, but, e.g., the duplicate reads reappear with "roughly" the same number.


    I found these varying counts a little irritating -- can someone please give me a hint on the logics of these numbers? And, does the protocol look meaningful?


    Thanks for any comments!
    Hi Stephio,

    Just a comment. I use a similar approach - no CleanSam step used - for exome capture analysis and got comparable results. IMHO, the protocol We are currently following is standard and sound. At the same time, I found no logical explanation to the variation in the no. of read counts. I am also concerned about the high no. of failing MappingQualityZeroFilter reads. Any logical/clear explanation for that?


    Cheers,

    Fernando

    Comment

    • stephlo
      Junior Member
      • Nov 2012
      • 2

      #3
      Hi Fernando,

      I posted the same question on the GATK forum and was told not to worry as long as those counts are "roughly silimar" :




      Best,

      Stephan

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        07-09-2026, 11:10 AM
      • SEQadmin2
        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
        by SEQadmin2



        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
        07-08-2026, 05:17 AM
      • GATTACAT
        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by GATTACAT
        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
        07-01-2026, 11:43 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 07-13-2026, 10:26 AM
      0 responses
      24 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-09-2026, 10:04 AM
      0 responses
      33 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      21 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-07-2026, 11:05 AM
      0 responses
      34 views
      0 reactions
      Last Post SEQadmin2  
      Working...