Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Graham Etherington
    Member
    • Apr 2010
    • 22

    Extract perfectly mapped reads from SAM/BAM file

    Hi,
    Given a SAM or BAM file, does anyone know how to identify which paired-sequences map perfectly to the reference? By perfectly mapped, I mean that the query is identical to the the reference (or its reverse complement).
    I'm fine using either command-line tools or programming.
    Many thanks,
    Graham
  • dariober
    Senior Member
    • May 2010
    • 311

    #2
    Hi,
    I think you can look at the NM tag in the SAM/BAM file. If both reads of a pair have NM:i:0 than the match is perfect.

    Dario

    Comment

    • nilshomer
      Nils Homer
      • Nov 2008
      • 1283

      #3
      Make sure that there is also no soft-clipping in the cigar if you want the full read aligned.

      Comment

      Latest Articles

      Collapse

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 11:58 AM
      0 responses
      10 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      25 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      35 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-02-2026, 12:03 PM
      0 responses
      58 views
      0 reactions
      Last Post SEQadmin2  
      Working...