Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • samtools XS:A optional field

    Does anyone know what XS:A field in samtools output mean by any chance?

    XS:A (A is the SAM attribute type) can take the values of "+" or "-". I thought "+" or "-" might be related to how the read is mapped to the ref (forward or reverse complement), but it turned out not the case, because forward or reverse complement read can take both values.

    Thanks!

  • #2
    Originally posted by charlie_sequencing View Post
    Does anyone know what XS:A field in samtools output mean by any chance?

    XS:A (A is the SAM attribute type) can take the values of "+" or "-". I thought "+" or "-" might be related to how the read is mapped to the ref (forward or reverse complement), but it turned out not the case, because forward or reverse complement read can take both values.

    Thanks!
    The optional tags are specific to the aligner that generated them. What aligner did you use? Take a look at the manual from that aligner.

    Comment


    • #3
      There are two places in a SAM file that, on the surface, *seem* to provide equivalent information -- the second column (0 vs 16, or something) and the XS:A field.

      I have a vague memory that the first tells you about mapping relative to the reference sequence. The second (XS:A) tells you something about the direction/strand of the *read itself*.

      I wish I could find the post I read that told me that. I first came across the distinction while trying to understand the input fields required for TopHat. You might give a try searching for "TopHat" and "XS field" together. Please post back if you figure it out.

      Best of luck,

      DG

      Comment


      • #4
        Thanks so much for your reply, nilshomer and dagarfield. I found the Cufflinks manual http://cufflinks.cbcb.umd.edu/manual.html where XS field was specified. When a read is mapped to the ref across splicing junctions, the boundary of intron (GT-AG, or CT-AC) will tell you the value of XS: "+" for GT-AG and "-" for CT-AC. It tells you "which strand the RNA that produced this read came from".

        This led me to think about another question: is TopHat able to report the strand of the read if it is completely contained within an exon, i.e., without N in the CIGAR string?

        Comment


        • #5
          Early RNA-seq protocols were unstranded ie the RNA may have originated on the plus strand, but because the library was created from double stranded cDNA you obtain reads from both the plus and minus strand - in this case the samtools flag for which strand the read mapped to doesnt tell you which strand the RNA it originated from. However, if the read is across a splice junction you can work it out (as charlie_sequencing posted) hence the tophat XS flag. Reads from an unstranded library which do not cross a splice cannot be assigned a strand.

          However, lots of people are doing stranded RNA-seq these days where the reads only come from one strand which is a lot nicer.

          Comment


          • #6
            Other posts that may be of help

            Please check out these posts for a discussion of directional sequencing and XS:A tags:

            Bridged amplification & clustering followed by sequencing by synthesis. (Genome Analyzer / HiSeq / MiSeq)

            and
            Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

            Comment


            • #7
              Originally posted by frozenlyse View Post
              Early RNA-seq protocols were unstranded ie the RNA may have originated on the plus strand, but because the library was created from double stranded cDNA you obtain reads from both the plus and minus strand - in this case the samtools flag for which strand the read mapped to doesnt tell you which strand the RNA it originated from. However, if the read is across a splice junction you can work it out (as charlie_sequencing posted) hence the tophat XS flag. Reads from an unstranded library which do not cross a splice cannot be assigned a strand.

              However, lots of people are doing stranded RNA-seq these days where the reads only come from one strand which is a lot nicer.
              Hi,frozenlyse, As you said, unstranded library we don't konw reads come from which strand. Now I have a dataset of dUTP and I use --library firststrand .Tophat said,"it is assumed that only the strand generated during first strand synthesis is sequenced.",that means, the reads come from minus strand. But I found a half of reads was taged "XS:A:+"

              Comment

              Latest Articles

              Collapse

              • seqadmin
                Recent Developments in Metagenomics
                by seqadmin





                Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
                09-23-2024, 06:35 AM
              • seqadmin
                Understanding Genetic Influence on Infectious Disease
                by seqadmin




                During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

                Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
                09-09-2024, 10:59 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, 10-02-2024, 04:51 AM
              0 responses
              13 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 10-01-2024, 07:10 AM
              0 responses
              21 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 09-30-2024, 08:33 AM
              0 responses
              26 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 09-26-2024, 12:57 PM
              0 responses
              18 views
              0 likes
              Last Post seqadmin  
              Working...
              X