Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oriol
    Junior Member
    • Jan 2013
    • 2

    #1

    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!
  • oriol
    Junior Member
    • Jan 2013
    • 2

    #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

    • gmarco
      Member
      • Oct 2012
      • 36

      #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

      • 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
        ...
        Today, 10:25 AM
      • SEQadmin2
        How Immunogenomics Decodes Immunity’s Genetic Blueprint
        by SEQadmin2




        The immune system’s power comes from its genetic diversity, allowing myriad threats to be neutralized through first recognizing foreign antigens. That diversity is also what makes the immune system so difficult to study. Recent advances in sequencing technology and computational biology, however, are giving researchers new tools to understand immune responses and immune-related diseases in greater detail.

        This convergence of genetics, immunology, and computation...
        09-01-2026, 05:41 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 09-25-2026, 09:06 AM
      0 responses
      27 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 09-23-2026, 11:05 AM
      0 responses
      24 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 09-18-2026, 11:37 AM
      1 response
      45 views
      0 reactions
      Last Post pekgio
      by pekgio
       
      Started by SEQadmin2, 09-16-2026, 10:23 AM
      1 response
      55 views
      0 reactions
      Last Post pekgio
      by pekgio
       
      Working...