Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • If one read of a pair is unmapped, is the pair improper?

    Hello everyone, I have a simple question about generic paired-end Illumina data. If one read of a pair is unmapped, does this automatically mean that the pair is improper and is (un)flagged in a SAM file?

    Thanks!

  • #2
    No. An improper pair has both reads mapped, but not in the correct position/orientation for pairing.

    But you may be asking about the 0x2 bit, which is poorly defined. According to the spec:
    "0x2 each segment properly aligned according to the aligner"

    In practice, paired reads where both mapped in the correct orientation and distance get the 0x2 bit set, and otherwise it is not set. By definition, it should be set for single-ended mapped reads, but that is not usually done in practice.

    Comment


    • #3
      Brian: Which samtools spec are you referring to. When I read:

      Code:
      http://samtools.sourceforge.net/samtools.shtml
      Then I get:

      Code:
      0x0002	P	the read is mapped in a proper pair
      Which seems clear to me.

      Comment


      • #4


        2. FLAG: bitwise FLAG. Each bit is explained in the following table:
        Bit Description
        0x1 template having multiple segments in sequencing
        0x2 each segment properly aligned according to the aligner
        0x4 segment unmapped
        0x8 next segment in the template unmapped
        0x10 SEQ being reverse complemented
        0x20 SEQ of the next segment in the template being reversed
        0x40 the rst segment in the template
        0x80 the last segment in the template
        0x100 secondary alignment
        0x200 not passing quality controls
        0x400 PCR or optical duplicate
        0x800 supplementary alignment
        I believe that is the official specification, but it's ambiguous about many things.
        Last edited by Brian Bushnell; 03-31-2014, 12:20 PM.

        Comment


        • #5
          Brian: Thanks. I have glanced at your referenced page in the past but did not notice the discrepancy between its definitions of the flag bit and the ones in the samtools manual page (which, IMHO, are more clear.) I almost always use the samtools program to do my work so that is what I am familiar with. Since you have written at least one program -- the very nice BBMap -- then you are, rightfully, following the official specs.

          From the samtools man page:
          Code:
          Flag	Chr	Description
          0x0001	p	the read is paired in sequencing
          0x0002	P	the read is mapped in a proper pair
          0x0004	u	the query sequence itself is unmapped
          0x0008	U	the mate is unmapped
          0x0010	r	strand of the query (1 for reverse)
          0x0020	R	strand of the mate
          0x0040	1	the read is the first read in a pair
          0x0080	2	the read is the second read in a pair
          0x0100	s	the alignment is not primary
          0x0200	f	the read fails platform/vendor quality checks
          0x0400	d	the read is either a PCR or an optical duplicate

          Comment

          Latest Articles

          Collapse

          • seqadmin
            Essential Discoveries and Tools in Epitranscriptomics
            by seqadmin




            The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
            04-22-2024, 07:01 AM
          • 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

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Yesterday, 08:47 AM
          0 responses
          16 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          60 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          60 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          54 views
          0 likes
          Last Post seqadmin  
          Working...
          X