Unconfigured Ad

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

    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

          • GATTACAT
            Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
            by GATTACAT
            Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
            07-01-2026, 11:43 AM
          • SEQadmin2
            Nine Things a Sample Prep Scientist Thinks About Before Sequencing
            by SEQadmin2


            I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

            Here are nine questions we think about, in roughly the order they matter, before...
            06-18-2026, 07:11 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Today, 11:05 AM
          0 responses
          6 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-02-2026, 11:08 AM
          0 responses
          28 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-30-2026, 05:37 AM
          0 responses
          25 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-26-2026, 11:10 AM
          0 responses
          25 views
          0 reactions
          Last Post SEQadmin2  
          Working...