Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Are these reads aligned to my reference (BWA)?

    I am currently extracting unaligned reads with the syntax below:-

    Code:
    samtools view -f 4 *.bam
    According to http://picard.sourceforge.net/explain-flags.html, unmapped reads are flagged as 77 or 141.

    These are some of the reads that I've extracted
    HTML Code:
    HWI-ST715:180:D0JHKACXX:4:2307:5231:174176	93	4340.m000924	1187	23	76M	=	1187	0	CGATGGCGCCCAAGGCCGAGAAGAAGCCCGCGGAGAAGAAGCCGGCCTCCGATAAA
    CCGGCGGAGGAGAAGGAGAA	<DBBB;@BDCCDBDDDBDDDDDDDDDDDCEDEEECHHGJIIIJJIIIJJJJJJJJHJJJJJJJHHHHHFFFFFCCC	XT:A:U	NM:i:1	SM:i:23	AM:i:0	X0:i:1	X1:i:1	XM:i:1	XO:i:0	XG:i:0	
    MD:Z:0A75	XA:Z:4340.m000879,-671,76M,2;
    HWI-ST715:180:D0JHKACXX:4:1307:20018:59034	77	4340.m000900	388	0	76M	=	388	0	GTTCTCCCCGGCGAACTCGCGAAGCACGCCGTCTCCGAGGGCACTAAGGCTGTTAC
    CAAGTTCACAAGTTCTTGAT	CCCFFFFFHHHHHJJJJJJJJJJJJJJIHHFFDDEEDBDDDDBDCDDDDDDDDDDDDDDDDDDEDDCDCDEEDDDA	XT:A:R	NM:i:1	SM:i:0	AM:i:0	X0:i:2	X1:i:0	XM:i:1	XO:i:0	XG:i:0	
    MD:Z:75A0	XA:Z:4340.m000899,+388,76M,1;
    HWI-ST715:180:D0JHKACXX:4:1206:2590:114359	77	4340.m000900	391	0	76M	=	391	0	CTCCCCGGCGAACTCGCGAAGCACGCCGTCTCCGAGGGCACTAAGGCTGTTACCAA
    GTTCACAAGTTCTTGATCCG	CCCFFFFFHHHHHJJJJJJJJIJIIIJHEFEEEDBDDDDDDDDDDDDDDDDDDDCDDCDEEDDDDCCDECDDDDDA	XT:A:R	NM:i:4	SM:i:0	AM:i:0	X0:i:2	X1:i:0	XM:i:4	XO:i:0	XG:i:0	
    MD:Z:72A0T0G0A0	XA:Z:4340.m000899,+391,76M,4;
    From the XT:AU and XT:AR tags, does this mean that these reads are aligned at unique or at repeated regions? Or are they really unaligned reads? I was under the impression that for unaligned reads, there will be a "*" at the reference column.


    Thanks

    Regards,
    Joanne

  • #2
    There are lots of flags that indicate unmapped reads, not just 77 or 141. If the 4 flag is present, you can't necessarily believe anything else in the sam line. And no, many unmapped reads will NOT show a * in the reference column. SAM specs say that unmapped reads should be given the mapping coordinates of the rimapped mates, where possible.

    But that's not necessarily what's happening here. The flag of 93 indicates that neither end mapped, and if that were really true, both reads would have no mapping coordinates. But that one does. The answer, I bet, is that the reads are hanging off of the sequences. It's a known issue in bwa that it concatenates all your reference sequences, and if a read hangs off of the edge, it will give the mapping coordinates based on the where the read starts, and it will also put the 4 flag in there so you know that something is off.

    So they really were mapped, but that edge effect is causing the 4 flag to be thrown, and it can be hard to automatically know what exactly that means for those reads.

    Comment


    • #3
      Originally posted by swbarnes2 View Post
      There are lots of flags that indicate unmapped reads, not just 77 or 141. If the 4 flag is present, you can't necessarily believe anything else in the sam line. And no, many unmapped reads will NOT show a * in the reference column. SAM specs say that unmapped reads should be given the mapping coordinates of the rimapped mates, where possible.

      But that's not necessarily what's happening here. The flag of 93 indicates that neither end mapped, and if that were really true, both reads would have no mapping coordinates. But that one does. The answer, I bet, is that the reads are hanging off of the sequences. It's a known issue in bwa that it concatenates all your reference sequences, and if a read hangs off of the edge, it will give the mapping coordinates based on the where the read starts, and it will also put the 4 flag in there so you know that something is off.

      So they really were mapped, but that edge effect is causing the 4 flag to be thrown, and it can be hard to automatically know what exactly that means for those reads.
      Thanks swbarnes2! I think you are right, as my reference is just CDS sequences, the edge-effect would have been more apparent! The scenario was also described here (http://bio-bwa.sourceforge.net/) Is it advisable to use BWA for transcriptome mapping in that case?

      Regards,
      Joanne

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM
      • 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

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      22 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      24 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      19 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-04-2024, 09:00 AM
      0 responses
      52 views
      0 likes
      Last Post seqadmin  
      Working...
      X