Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ptong7
    Member
    • Oct 2008
    • 10

    #1

    SAM file flag problem

    Hi all,
    Is any body know what's the the flag means in the SAM file.
    The Flag I got looks different with the SAM manual.

    Thanks!

    Here is a sample of my sam file.

    HWI-EAS283:8:1:1:695#0 69 * 0 0 * * 0 0 NACAAGGCATTGTTGTTGCTATCATTGCTTGCAAGCAGGAATNGCTAATGGAAGACTTCTTTTTTTTTGTGTACTT %/:56465,577-91-265//:######################################################
    HWI-EAS283:8:1:1:695#0 133 * 0 0 * * 0 0 AAANCGCTACGTAATGATTGCAGTGAGCACAGAGCGCCCTACTGCACTCCAGCCTGGGAAACAGAGCGCGATTCCG ############################################################################
    HWI-EAS283:8:1:1:749#0 99 chr7 91549950 37 76M = 91550245 354 NACCTATCTTAATTACGTTTCAAAGTATATACTCTTTTATAANAAATGAGCTCCATAACTTAAAAGCTAGATAACA %0:<;;9::7779<;;99979707999;::9:;::9:<<75.%*5789197978599################### XT:A:U NM:i:3 SM:i:37 AM:i:37 X0:i:1 X1:i:0 XM:i:3 XO:i:0 XG:i:0 MD:Z:0T41C31A1
    HWI-EAS283:8:1:1:749#0 147 chr7 91550245 37 17S59M = 91549950 -354 ATTGTGTTAGACCGTGAGTCCATAAAAATATATAGAGGTAATCTGTGGGCGTTTAGTAAATGGTGGTCCTACNACT #####################################################################B6>%42B XT:A:M NM:i:12 SM:i:37 AM:i:37 XM:i:12 XO:i:0 XG:i:0 MD:Z:2A4C9T1T4A5A6C0T0G5T1T0T6T3
    HWI-EAS283:8:1:1:1047#0 69 * 0 0 * * 0 0 NTTTTTTGTTCCTTTTTTTTCAAGAGGCCAGAGGCAGAGGCCNTTGTCATTTTCTGTGTGTCCAGGTAATTGCGTA %1:::98789:::999:::::985226#################################################
    HWI-EAS283:8:1:1:1047#0 133 * 0 0 * * 0 0 ACCNCGCCTGCCGAGTTTTTCCTTTCTATATTCTTAGTCGTTAAGAATGTTCTATCATGTTGTAATTTTTGTAGTC 0###########################################################################
  • nilshomer
    Nils Homer
    • Nov 2008
    • 1283

    #2
    Originally posted by ptong7 View Post
    Hi all,
    Is any body know what's the the flag means in the SAM file.
    The Flag I got looks different with the SAM manual.

    Thanks!

    Here is a sample of my sam file.

    HWI-EAS283:8:1:1:695#0 69 * 0 0 * * 0 0 NACAAGGCATTGTTGTTGCTATCATTGCTTGCAAGCAGGAATNGCTAATGGAAGACTTCTTTTTTTTTGTGTACTT %/:56465,577-91-265//:######################################################
    HWI-EAS283:8:1:1:695#0 133 * 0 0 * * 0 0 AAANCGCTACGTAATGATTGCAGTGAGCACAGAGCGCCCTACTGCACTCCAGCCTGGGAAACAGAGCGCGATTCCG ############################################################################
    HWI-EAS283:8:1:1:749#0 99 chr7 91549950 37 76M = 91550245 354 NACCTATCTTAATTACGTTTCAAAGTATATACTCTTTTATAANAAATGAGCTCCATAACTTAAAAGCTAGATAACA %0:<;;9::7779<;;99979707999;::9:;::9:<<75.%*5789197978599################### XT:A:U NM:i:3 SM:i:37 AM:i:37 X0:i:1 X1:i:0 XM:i:3 XO:i:0 XG:i:0 MD:Z:0T41C31A1
    HWI-EAS283:8:1:1:749#0 147 chr7 91550245 37 17S59M = 91549950 -354 ATTGTGTTAGACCGTGAGTCCATAAAAATATATAGAGGTAATCTGTGGGCGTTTAGTAAATGGTGGTCCTACNACT #####################################################################B6>%42B XT:A:M NM:i:12 SM:i:37 AM:i:37 XM:i:12 XO:i:0 XG:i:0 MD:Z:2A4C9T1T4A5A6C0T0G5T1T0T6T3
    HWI-EAS283:8:1:1:1047#0 69 * 0 0 * * 0 0 NTTTTTTGTTCCTTTTTTTTCAAGAGGCCAGAGGCAGAGGCCNTTGTCATTTTCTGTGTGTCCAGGTAATTGCGTA %1:::98789:::999:::::985226#################################################
    HWI-EAS283:8:1:1:1047#0 133 * 0 0 * * 0 0 ACCNCGCCTGCCGAGTTTTTCCTTTCTATATTCTTAGTCGTTAAGAATGTTCTATCATGTTGTAATTTTTGTAGTC 0###########################################################################
    Typically, the flag field is converted to an integer value for display. You will have to infer the bits set by their sum. In the newest trunk code, you can use "samtools view" with either the "-x" or "-X" for better viewing (C code only).

    Comment

    • ptong7
      Member
      • Oct 2008
      • 10

      #3
      Hi nilshomer,
      I try "samtools view -x aln.sorted.bam <region>".
      but I got this "view: illegal option -- x"

      Comment

      • nilshomer
        Nils Homer
        • Nov 2008
        • 1283

        #4
        Did you download the latest developers version from the trunk (not the release)?

        Comment

        • ptong7
          Member
          • Oct 2008
          • 10

          #5
          Thanks nilshomer, It works...

          Comment

          • hihoios
            Junior Member
            • Jun 2022
            • 1

            #6
            it's been a long time but the problem i had is the same happy wheels unblocked

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
              by SEQadmin2



              Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

              Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
              ...
              10-14-2026, 09:55 AM
            • SEQadmin2
              New Genomics Technologies Take Aim at Long-Standing Limits
              by SEQadmin2


              Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

              We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
              ...
              09-28-2026, 10:25 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Yesterday, 11:13 AM
            0 responses
            19 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, Yesterday, 10:48 AM
            0 responses
            18 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-15-2026, 10:52 AM
            0 responses
            36 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            42 views
            0 reactions
            Last Post SEQadmin2  
            Working...