Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • qinbird
    Junior Member
    • Apr 2010
    • 1

    Tophat: how to define primary alignment

    From the sam file generate by Tophat, if there are multiple mapped reads, one of the alignments will be labeled as primary alignment.
    does anybody know how Tophat define primary alignment?
    is there any reference mentioned it?
    thanks!

    i checked one read, there are four alignments.
    all of them have 2 mismatch, but only one are labeled as primary alignment.
  • fongchun
    Member
    • May 2011
    • 55

    #2
    Did you get ever figure this out? I would be interested in knowing this answer.

    Thanks,

    Comment

    • dvanic
      Member
      • Jan 2012
      • 61

      #3
      I am also quite interested in this! Still...

      Comment

      • dvanic
        Member
        • Jan 2012
        • 61

        #4
        Because some of my "non-primary" alignments look quite good in IGV...

        Comment

        • apredeus
          Senior Member
          • Jul 2012
          • 151

          #5
          There seems to be confusion in what's meant by "primary" in the field.

          E.g. SAM flag interpreter http://picard.sourceforge.net/explain-flags.html clearly uses "non-primary" as an equivalent for spliced

          Comment

          • Brian Bushnell
            Super Moderator
            • Jan 2014
            • 2709

            #6
            Originally posted by apredeus View Post
            There seems to be confusion in what's meant by "primary" in the field.

            E.g. SAM flag interpreter http://picard.sourceforge.net/explain-flags.html clearly uses "non-primary" as an equivalent for spliced
            I don't see the word 'spliced' anywhere on that page. The difference between primary and non-primary is that only one primary alignment is allowed. It was pretty clear, at least until 'supplemental alignments' and made things murky. The intent of supplemental appears to be for representing chimeric alignments, and thus it could be used for splice events, while secondary shouldn't be used that way.

            Comment

            • apredeus
              Senior Member
              • Jul 2012
              • 151

              #7
              I don't see the word 'spliced' anywhere on that page.
              Flags of 256/272 in splice aligners' output usually means gapped (spliced) alignment to + and - strand respectively. That's what they call "not primary alignment" on that page.

              The difference between primary and non-primary is that only one primary alignment is allowed.
              Not sure what that means? I figured that if there's one best alignment score the read would be considered as mapping to one genomic position, while if there are few scores that are equally high would be a multimapper. Now, most RNA-seq aligners do allow multimappers up to a certain number of locations, e.g. Tophat's default is 15.

              If you call the read that has the best score primary, it's not clear what's the use of having a term like that since others would be discarded anyway?

              Comment

              • Brian Bushnell
                Super Moderator
                • Jan 2014
                • 2709

                #8
                Originally posted by apredeus View Post
                If you call the read that has the best score primary, it's not clear what's the use of having a term like that since others would be discarded anyway?
                Depends on the application; sometimes they are discarded, sometimes not - they can be used fractionally when calculating coverage, for example. The most important case is when there is no single best-scoring location. Then one location can be assigned 'primary' and the rest 'secondary'. This allows a tool (or person) aware of secondary alignments to use that information later, or for simplicity (for example, when converting sam to fastq), all the secondary sites can just be ignored.

                Comment

                • apredeus
                  Senior Member
                  • Jul 2012
                  • 151

                  #9
                  You're right, I was actually totally wrong to assume that flag to mean spliced as opposed to non-spliced alignment. It's "secondary" as defined by some other criteria.

                  Thank you

                  Comment

                  • dpryan
                    Devon Ryan
                    • Jul 2011
                    • 3478

                    #10
                    Originally posted by apredeus View Post
                    Flags of 256/272 in splice aligners' output usually means gapped (spliced) alignment to + and - strand respectively. That's what they call "not primary alignment" on that page.
                    That's not splicing, it's a chimeric/fusion/non-linear alignment (there are a bunch of terms for this). These days, those should have the 0x800 bit set in the flag.

                    Comment

                    Latest Articles

                    Collapse

                    • SEQadmin2
                      Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                      by SEQadmin2



                      Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                      ...
                      07-09-2026, 11:10 AM
                    • SEQadmin2
                      Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                      by SEQadmin2



                      Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                      There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                      07-08-2026, 05:17 AM
                    • 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

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, 07-13-2026, 10:26 AM
                    0 responses
                    20 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-09-2026, 10:04 AM
                    0 responses
                    30 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-08-2026, 10:08 AM
                    0 responses
                    17 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-07-2026, 11:05 AM
                    0 responses
                    34 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...