Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • pieffe
    Junior Member
    • Apr 2009
    • 4

    CIGAR strings and 'N' symbols

    Just wondering if anybody can help me to understand the following example:


    ref: AC GTACGT
    r1 : ACCGTACGT
    r2 : AC......T

    Will the CIGARs be:

    2M1I6M
    2M6N1M

    OR will it be:
    2M1I6M
    2M5N1M



    In other words, if there are alignment positions with possible insertions in the reference, will the skipped positions (Ns) take into account these possible insertions?


    Also, how do mappers determine segments with skipped N positions?

    Thanks!
  • nilshomer
    Nils Homer
    • Nov 2008
    • 1283

    #2
    Originally posted by pieffe View Post
    Just wondering if anybody can help me to understand the following example:


    ref: AC GTACGT
    r1 : ACCGTACGT
    r2 : AC......T

    Will the CIGARs be:

    2M1I6M
    2M6N1M

    OR will it be:
    2M1I6M
    2M5N1M



    In other words, if there are alignment positions with possible insertions in the reference, will the skipped positions (Ns) take into account these possible insertions?


    Also, how do mappers determine segments with skipped N positions?

    Thanks!
    Code:
    ref: AC GTACGT
    r1 :  ACCGTACGT
    r2 :  AC......T
    In my opinion r2 is not valid. The "." is meant to represent skipping a base within the read that correspond to a reference base, not an insertion. The inserted base should be represented with an "N" if it the inserted base is unknown. Therefore r2 should be "ACN.....T" and the cigar would be 2M1I5N1M.

    You may want to send an email to the samtools-help mailing list for clarification.

    Comment

    • pieffe
      Junior Member
      • Apr 2009
      • 4

      #3
      Thank you for your prompt reply. I think what you says makes sense. However, in the SAM specifications, there is an example where the alignment is spliced and the read does not have a 'N' symbol at all, and yet the cigar has 32N in it.

      I tried to use samtools to dig into this, but got even more confused. I guess I am going to ask to the authors of samtools for clarifications. I will post what I find out.

      Thanks again!

      Comment

      • nilshomer
        Nils Homer
        • Nov 2008
        • 1283

        #4
        Originally posted by pieffe View Post
        Thank you for your prompt reply. I think what you says makes sense. However, in the SAM specifications, there is an example where the alignment is spliced and the read does not have a 'N' symbol at all, and yet the cigar has 32N in it.

        I tried to use samtools to dig into this, but got even more confused. I guess I am going to ask to the authors of samtools for clarifications. I will post what I find out.

        Thanks again!
        The "N" symbol in the read indicates a missing base, the "N" symbol in the cigar indicates a skipped reference base. The splice alignment has no "N" bases but skips reference bases, hence the "N" in the cigar string.
        Last edited by nilshomer; 03-11-2010, 12:53 PM.

        Comment

        • pieffe
          Junior Member
          • Apr 2009
          • 4

          #5
          Hi Nils,

          I think I was too quick to email you a reply. I re-read your answer and you probably are right. The example in the SAM paper won't need N symbols in the read, since there are no insertions in reference.
          I guess that, if I am not misunderstanding, whenever a read has a I symbol in the cigar, other reads will either have P symbols in the cigar or they will have a N symbol in the read and a I symbol in the cigar.

          Thanks again,
          PF

          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, 07-02-2026, 11:08 AM
          0 responses
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-30-2026, 05:37 AM
          0 responses
          23 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-26-2026, 11:10 AM
          0 responses
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-17-2026, 06:09 AM
          0 responses
          55 views
          0 reactions
          Last Post SEQadmin2  
          Working...