Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Matt.Ralston
    Member
    • Jan 2014
    • 10

    #1

    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!
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #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

    • westerman
      Rick Westerman
      • Jun 2008
      • 1104

      #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

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #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

        • westerman
          Rick Westerman
          • Jun 2008
          • 1104

          #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

          • SEQadmin2
            16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
            by SEQadmin2




            NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
            Today, 06:46 AM
          • SEQadmin2
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-28-2026, 09:57 AM
          0 responses
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-28-2026, 09:51 AM
          0 responses
          14 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 11:13 AM
          0 responses
          68 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          48 views
          0 reactions
          Last Post SEQadmin2  
          Working...