Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hubin.keio
    Junior Member
    • Jan 2012
    • 4

    #1

    Mapping paired-end stranded RNA-seq data

    Hello. I need to map paired-end stranded RNA-seq reads. The library was prepared using ScriptSeq. Can anyone show me how to assign transcripts with the strand information based on mapping? Filtering mapped reads with the 0x10 flag seems not working here, since I got paired-end reads. Thanks.
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    I don't know why that wouldn't work, unless you are looking for reads that have a flag that is literally 16. In a paired end read, they will certainly have the 1 flag, and either the 128 or the 64. And if they are properly paired, they will have the 2 flag, and they might also have the 16 and 32 (hopefully exactly one of those, but 2 or 0 is possible), and the 4 and or 8 might be flagged too.

    Comment

    • alexdobin
      Senior Member
      • Feb 2009
      • 161

      #3
      Most RNA-seq mappers will set the 0x10 bit if the actual sequence from .fastq files is reverse complemented with respect to the "+" genome strand. I believe this is a standard SAM convention. Illimuna PE sequencing produces sequences in such a way that one of the mates agrees with the original RNA, while the other is reverse complementary. Hence, for a correctly (concordantly) paired alignment, the mates will always have inverted 0x10 bits.

      If you have stranded RNA-seq data, then you know - from the library construction - which of the mates, 1st or 2nd, agrees with the original RNA. For example, in the standard "dUTP" protocol it is the 2nd mate that is the first end of the RNA fragments. As @swbarnes2 pointed out, 0x40 bit is set for the 1st mate and 0x80 bit is set for the 2nd mate. Here is awk code:

      if ( (and(FLAG,0x80)>0 && and(FLAG,0x10)==0) || ( (and(FLAG,0x80)==0 && and(FLAG,0x10)>0) )
      {
      strand="+";
      } else {
      strand="-";
      };

      Again, you have to check which mate has the true RNA strand in your ScriptSeq prep.

      Comment

      • hubin.keio
        Junior Member
        • Jan 2012
        • 4

        #4
        Hello @alexdobin and @swbarnes2, thank you so much for your kind response. Your explanation are really useful. After reading the sam format documentation several times and your replies, I started to understand the problem. It looks for my bam file, only the properly-paired reads (0x2) have the right strand information for our spiking control sequence. Without filtering the reads with 0x2, 0x10 flag still gave me wrong strand information in a few cases. Again, thanks for your help.

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
          by SEQadmin2



          CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

          Despite this, “CRISPR helped turn genome editing from a specialized technique into
          ...
          07-31-2026, 11:01 AM
        • SEQadmin2
          Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
          by SEQadmin2


          Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

          The systematic characterization of the human proteome has
          ...
          07-20-2026, 11:48 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 08-06-2026, 07:41 AM
        0 responses
        18 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 08-03-2026, 10:13 AM
        0 responses
        33 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-31-2026, 02:55 AM
        0 responses
        43 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-24-2026, 12:17 PM
        0 responses
        26 views
        0 reactions
        Last Post SEQadmin2  
        Working...