Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bioinformer
    Junior Member
    • Mar 2012
    • 3

    #1

    Can you tell recombination/conversion from SAM flags?

    Hi all,

    I have tried for some time now to figure out if I can detect recombination or gene conversion using discordantly mapping reads and the FLAG information Bowtie2 outputs.

    It seems like flags of 97, 145, 161 and 81 are discordant because the paired reads map the incorrect distance apart, 65 and 129 mean the reads mapped to different contigs, and 113 and 177 mean inversions. Is this correct?

    Note: my information comes from this handy website: http://picard.sourceforge.net/explain-flags.html

    tl;dr
    If I look for paired reads with flags of 97, 145, 161 or 81 where both reads map to the same contig, is this a reasonable way to look for gene conversion or recombination events?

    thanks everyone!
  • maubp
    Peter (Biopython etc)
    • Jul 2009
    • 1544

    #2
    Originally posted by bioinformer View Post
    ..., 65 and 129 mean the reads mapped to different contigs, .... Is this correct?
    No. The FLAG (on its own) doesn't tell you if the two paired reads map to the same contig or different contigs - just if they are mapped somewhere.

    Comment

    • bioinformer
      Junior Member
      • Mar 2012
      • 3

      #3
      Thanks for the response. But then what is the difference between:

      97
      * * read paired
      * * mate reverse strand
      * * first in pair

      -and-

      65
      * * read paired
      * * first in pair

      I reasoned that since they're odd numbers we know both reads mapped somewhere so the lack of information about the mate in 65/129 means that it mapped to a different contig since forward/reverse lose their meaning across non-assembled contigs.

      What do SAM flags of 65 or 129 mean and how are they different from 97/145/161/81?

      thanks so much

      Comment

      • maubp
        Peter (Biopython etc)
        • Jul 2009
        • 1544

        #4
        Originally posted by bioinformer View Post
        Thanks for the response. But then what is the difference between:

        97
        * * read paired
        * * mate reverse strand
        * * first in pair
        This read is on the forward strand, --->, but the partner is on the reverse strand <---, which assuming they are mapped to the same contig is normal for Illumina and Sanger reads.

        The FLAG does not tell you if the two reads are mapped to the same contig. You could have one mapped to the forward strand of contig123, and one mapped to the reverse strand of contig456.
        Originally posted by bioinformer View Post
        -and-

        65
        * * read paired
        * * first in pair
        Both this read and its partner are on the forward strand of whatever contig they are mapped too. Mapping on the same strand on the same contig would be normal for Roche 454 paired end data except than many pipelines flip things to make this look like Sanger/Illumina where the partners should be on opposite strands.

        Comment

        • swbarnes2
          Senior Member
          • May 2008
          • 910

          #5
          One of the columns of the .sam tells you where the mate mapped. If that column doesn't have an "=", and both reads mapped (which you need to determine from the flags), then the mate is on a different chromosome. So you can use samtools view | awk to get those reads.

          Comment

          Latest Articles

          Collapse

          • 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
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          25 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          31 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-13-2026, 09:56 AM
          0 responses
          28 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-09-2026, 11:14 AM
          0 responses
          28 views
          0 reactions
          Last Post SEQadmin2  
          Working...