Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • SAM flag forward/reverse first/second

    Hello,
    I am a little confused with the interpretation of SAM flags
    From http://ppotato.wordpress.com/2010/08...-paired-reads/

    ...
    0×0010 16 strand of the query (0 for forward; 1 for reverse strand)
    --
    0×0040 64 the read is the first read in a pair
    0×0080 128 the read is the second read in a pair

    What is the difference? Shouldn't forward correspond to first read in a pair and reverse correspond to second read in a pair?

    I have a bam file with paired-unmapped reads- I am trying to extract the reads and mates into separate files. How would I use the SAM flag to figure this out please?

    I have read related stuff about this on the forum, but I am new to this, and cannot quite parse the exact information I need from it. Thank you so much!

  • #2
    What is the difference? Shouldn't forward correspond to first read in a pair and reverse correspond to second read in a pair?
    No, that's not true at all. The DNA usually gets sheared, and then one adaptor goes on one end, and the other goes on the other end, and the adaptors don't know which end is forward according to the convention of your fasta.

    You can use samtools view to filter by flags. All the lines with 64 in the flag came from the first fastq, the ones with 128 came from the second fastq.

    Comment


    • #3
      Thanks very much for this!

      Comment


      • #4
        thank you for this great chance to learn

        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
        18 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 10:19 PM
        0 responses
        22 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 09:21 AM
        0 responses
        16 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-04-2024, 09:00 AM
        0 responses
        47 views
        0 likes
        Last Post seqadmin  
        Working...
        X