![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to extract unique hits from a sam file | gfmgfm | Bioinformatics | 10 | 07-07-2019 08:33 AM |
How to extract multi-mapped reads by samtools? | mavishou | RNA Sequencing | 5 | 12-05-2016 06:27 AM |
How to extract mapped and unmapped raw reads from bwa's sam file ? | vaibhavvsk | Bioinformatics | 11 | 02-07-2013 10:01 AM |
SAM/BAM how to retrieve all mapped reads ? | Sylphide | Bioinformatics | 2 | 05-31-2011 07:57 AM |
extract subset (mapped reads) from csfasta and .qual files | KevinLam | SOLiD | 1 | 01-18-2010 01:38 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: Norwich, England. Join Date: Apr 2010
Posts: 22
|
![]()
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 |
![]() |
![]() |
![]() |
#2 |
Senior Member
Location: Cambridge, UK Join Date: May 2010
Posts: 311
|
![]()
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 |
![]() |
![]() |
![]() |
#3 |
Nils Homer
Location: Boston, MA, USA Join Date: Nov 2008
Posts: 1,285
|
![]()
Make sure that there is also no soft-clipping in the cigar if you want the full read aligned.
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|