Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • flobpf
    Member
    • Apr 2010
    • 76

    #1

    Direction/Orientation of Illumina read in SAM file

    Documenting my 3 hours spent trying to understand what parameter in SAM file tells read orientation in the hope it will turn out to be helpful to someone. (but if my inference below is wrong!, please post a reply!)

    I have been looking up ways to find which strand a read is mapping to and in the SAM file, there seems to be two confusing parameters:
    Code:
    XS:A:+ and XS:A-
    and
    0 or 16 in the second column
    After much researching to confirm my belief of 0 or 16 corresponding to read orientation on strand, I found that the SAM specification PDF says:
    Column 2 is bitwise FLAG and a bit value 0x10 means SEQ being reverse complemented
    I then ignored this for some time ('coz I didnt know what this meant!!) before realizing that bit value of 0X10 corresponds to a decimal value of 16 (Thanks Google!!)

    So if the second column is 0, it means read is mapping to one strand, and a value of 16 means it is mapping to the other strand. Still havent figured out clearly what XS:A stands for...whether it relates to a read mapping across a splice junction or even a completely exonic read is considered...not quite sure...

    these posts may be of help:
    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

    AND
    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc
  • nicolallias
    Member
    • Jan 2010
    • 23

    #2
    Hi,
    Look at the second column, the CIGAR line, set its values in http://picard.sourceforge.net/explain-flags.html

    You can also use in command line
    Code:
    smatools view -X

    Comment

    • roll
      Member
      • Aug 2009
      • 38

      #3
      Originally posted by nicolallias View Post
      Hi,
      Look at the second column, the CIGAR line, set its values in http://picard.sourceforge.net/explain-flags.html

      You can also use in command line
      Code:
      smatools view -X
      what exactly does samtools view -x or -X do?

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        Originally posted by roll View Post
        what exactly does samtools view -x or -X do?
        Code:
        -x       output FLAG in HEX (samtools-C specific)
        -X       output FLAG in string (samtools-C specific)

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          How Immunogenomics Decodes Immunity’s Genetic Blueprint
          by SEQadmin2




          The immune system’s power comes from its genetic diversity, allowing myriad threats to be neutralized through first recognizing foreign antigens. That diversity is also what makes the immune system so difficult to study. Recent advances in sequencing technology and computational biology, however, are giving researchers new tools to understand immune responses and immune-related diseases in greater detail.

          This convergence of genetics, immunology, and computation...
          Today, 05:41 AM
        • SEQadmin2
          Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
          by SEQadmin2



          CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

          Despite this, “CRISPR helped turn genome editing from a specialized technique into
          ...
          07-31-2026, 11:01 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 08-24-2026, 10:32 AM
        0 responses
        39 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 08-20-2026, 11:17 AM
        0 responses
        45 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 08-18-2026, 10:05 AM
        0 responses
        50 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 08-13-2026, 12:22 PM
        0 responses
        49 views
        0 reactions
        Last Post SEQadmin2  
        Working...