Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

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

    Thanks,

    Comment


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

      Comment


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

        Comment


        • #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


          • #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


            • #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


              • #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


                • #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


                  • #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

                    • seqadmin
                      Recent Innovations in Spatial Biology
                      by seqadmin


                      Spatial biology is an exciting field that encompasses a wide range of techniques and technologies aimed at mapping the organization and interactions of various biomolecules in their native environments. As this area of research progresses, new tools and methodologies are being introduced, accompanied by efforts to establish benchmarking standards and drive technological innovation.

                      3D Genomics
                      While spatial biology often involves studying proteins and RNAs in their...
                      Yesterday, 07:30 PM
                    • seqadmin
                      Advancing Precision Medicine for Rare Diseases in Children
                      by seqadmin




                      Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
                      12-16-2024, 07:57 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by seqadmin, 12-30-2024, 01:35 PM
                    0 responses
                    21 views
                    0 likes
                    Last Post seqadmin  
                    Started by seqadmin, 12-17-2024, 10:28 AM
                    0 responses
                    41 views
                    0 likes
                    Last Post seqadmin  
                    Started by seqadmin, 12-13-2024, 08:24 AM
                    0 responses
                    55 views
                    0 likes
                    Last Post seqadmin  
                    Started by seqadmin, 12-12-2024, 07:41 AM
                    0 responses
                    40 views
                    0 likes
                    Last Post seqadmin  
                    Working...
                    X