Header Leaderboard Ad

Collapse

About FLAG

Collapse

Announcement

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

  • About FLAG

    http://samtools.sourceforge.net/SAM1.pdf

    Code:
    FLAG: bitwise FLAG. Each bit is explained in the following table:
    Bit Description
    0x1 template having multiple segments in sequencing
    0x2 each segment properly aligned according to the aligner
    0x4 segment unmapped
    0x8 next segment in the template unmapped
    0x10 SEQ being reverse complemented
    0x20 SEQ of the next segment in the template being reversed
    0x40 the rst segment in the template
    0x80 the last segment in the template
    0x100 secondary alignment
    0x200 not passing quality controls
    0x400 PCR or optical duplicate
    In the SAM format alignment section, the bitwise FLAG is as above table.
    If the FLAG=165
    OR FLAG=1133,
    Then which category it falls in? Need a little explanation.
    Thanks.

  • #2
    165 is A5 in hexadecimal - or in this case 0x1 | 0x4 | 0x20 | 0x80.

    You can start by substracting the largest value smaller than your number - here 0x80 or 128 - that's set for sure. leaves you 37, that means 32 (0x20) is also set. Leaves you five, and it's easily seen that that`s 4 + 1. (With bit flags, bitwise or and addition are the same operations.

    I'll leave 1133 as an exercise.

    Comment


    • #3
      http://seqanswers.com/forums/showthread.php?t=15280
      --------------
      Ethan

      Comment

      Latest Articles

      Collapse

      • seqadmin
        A Brief Overview and Common Challenges in Single-cell Sequencing Analysis
        by seqadmin


        ​​​​​​The introduction of single-cell sequencing has advanced the ability to study cell-to-cell heterogeneity. Its use has improved our understanding of somatic mutations1, cell lineages2, cellular diversity and regulation3, and development in multicellular organisms4. Single-cell sequencing encompasses hundreds of techniques with different approaches to studying the genomes, transcriptomes, epigenomes, and other omics of individual cells. The analysis of single-cell sequencing data i...

        01-24-2023, 01:19 PM
      • seqadmin
        Introduction to Single-Cell Sequencing
        by seqadmin
        Single-cell sequencing is a technique used to investigate the genome, transcriptome, epigenome, and other omics of individual cells using high-throughput sequencing. This technology has provided many scientific breakthroughs and continues to be applied across many fields, including microbiology, oncology, immunology, neurobiology, precision medicine, and stem cell research.

        The advancement of single-cell sequencing began in 2009 when Tang et al. investigated the single-cell transcriptomes
        ...
        01-09-2023, 03:10 PM

      ad_right_rmr

      Collapse
      Working...
      X