Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Error in flags after picard FixMateInformation?

    Hi!

    I am not sure, but it seems that after using Picard's FixMateInformation, some flags of the BAM file are wrong.

    For instance, my initial BAM file has these two reads:

    HWI-ST731_145:7:1306:17910:58342#15@0 409 12 57997071 3 76M * 0 0 GGAGGAGATCAGCGAGAGGCTGGAAGAAGCTGGCGGGGCGACGTCAGCCCAGATTGAGATGAACAAGAAGCGCGAG DDDDDEDDDDDDDDCDDDEEEECEEDFFFGHHJJJJJJJJJIIIJIJIJJJJIIJJIJJIIJIHHHHHFFFFFCCC CC:Z:= MD:Z:30C45 RG:Z1126ACXX_7_15 XG:i:0 NH:i:2 HI:i:0 NM:i:1 XM:i:1 XN:i:0 XO:i:0 CP:i:58221643 AS:i:-5 XS:A:+ YT:Z:UU
    HWI-ST731_145:7:1306:17910:58342#15@0 1177 12 58221643 3 76M * 0 0 GGAGGAGATCAGCGAGAGGCTGGAAGAAGCTGGCGGGGCGACGTCAGCCCAGATTGAGATGAACAAGAAGCGCGAG DDDDDEDDDDDDDDCDDDEEEECEEDFFFGHHJJJJJJJJJIIIJIJIJJJJIIJJIJJIIJIHHHHHFFFFFCCC MD:Z:30C45 RG:Z1126ACXX_7_15 XG:i:0 NH:i:2 HI:i:1 NM:i:1 XM:i:1 XN:i:0 XO:i:0 AS:i:-5 XS:A:+ YT:Z:UU
    If I am not mistaken, the first and second reads have the flag 0x8 (i.e. next segment in the template unmapped). Furthermore, the first read has the flag 0x100 (i.e. secondary alignment). From these flags, I understand that these two alignments are the same read aligned in two different places.

    After using the FixMateInformation function with this file, these two reads became:

    HWI-ST731_145:7:1306:17910:58342#15@0 433 12 57997071 3 76M = 58221643 224573 GGAGGAGATCAGCGAGAGGCTGGAAGAAGCTGGCGGGGCGACGTCAGCCCAGATTGAGATGAACAAGAAGCGCGAG DDDDDEDDDDDDDDCDDDEEEECEEDFFFGHHJJJJJJJJJIIIJIJIJJJJIIJJIJJIIJIHHHHHFFFFFCCC CC:Z:= MD:Z:30C45 RG:Z1126ACXX_7_15 XG:i:0 NH:i:2 HI:i:0 NM:i:1 XM:i:1 XN:i:0 XO:i:0 CP:i:58221643 MQ:i:3 AS:i:-5 XS:A:+ YT:Z:UU
    HWI-ST731_145:7:1306:17910:58342#15@0 1201 12 58221643 3 76M = 57997071 -224573 GGAGGAGATCAGCGAGAGGCTGGAAGAAGCTGGCGGGGCGACGTCAGCCCAGATTGAGATGAACAAGAAGCGCGAG DDDDDEDDDDDDDDCDDDEEEECEEDFFFGHHJJJJJJJJJIIIJIJIJJJJIIJJIJJIIJIHHHHHFFFFFCCC MD:Z:30C45 RG:Z1126ACXX_7_15 XG:i:0 NH:i:2 HI:i:1 NM:i:1 XM:i:1 XN:i:0 XO:i:0 MQ:i:3 AS:i:-5 XS:A:+ YT:Z:UU
    Now, these two reads does not have the flag 0x8. Furthermore, their RNEXT and PNEXT fields indicate that one is the mate of the other.

    This behavior is correct?

    Thanks in advance!

  • #2
    If someone using old Picard versions has the same issue: It was a Picard bug. The Picard team solved it very fast in newer versions.

    Comment


    • #3
      I'm experiencing weird behavior in cufflinks when using Picard tools FixMateInformation on *.bam produced by tophat2.

      Using picard-tools-1.129 and cufflinks v2.2.1.

      I'm not getting same results after using fixmate on tophat2 bams. I usually align with tophat2, filter by a quality score of 5 to retain only unique alignments and then fixmate bam with picard tools.

      However comparing cufflinks results with and without Picard FixMateInformation make a really big difference. Results with fixmate make no biological sense at all.

      Could this be the issue?

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Strategies for Sequencing Challenging Samples
        by seqadmin


        Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
        03-22-2024, 06:39 AM
      • seqadmin
        Techniques and Challenges in Conservation Genomics
        by seqadmin



        The field of conservation genomics centers on applying genomics technologies in support of conservation efforts and the preservation of biodiversity. This article features interviews with two researchers who showcase their innovative work and highlight the current state and future of conservation genomics.

        Avian Conservation
        Matthew DeSaix, a recent doctoral graduate from Kristen Ruegg’s lab at The University of Colorado, shared that most of his research...
        03-08-2024, 10:41 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Yesterday, 06:37 PM
      0 responses
      10 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, Yesterday, 06:07 PM
      0 responses
      9 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 03-22-2024, 10:03 AM
      0 responses
      51 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 03-21-2024, 07:32 AM
      0 responses
      67 views
      0 likes
      Last Post seqadmin  
      Working...
      X