Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • marcowanger
    Senior Member
    • Dec 2008
    • 273

    Maq output to SAM format

    1> I have been using MAQ for a while. Now I would like to move on the BWA. Is there any convinent method to convert a MAQ output (.map) to SAM format so to ease comparison between MAQ and BWA?

    2> Regarding the SAM format output by BWA, there is a <flag> column. I read from the manual that it's a bitwise flag. But in my BWA output I get numeric value, (e.g. 83, 99, 163, etc). How can I interpret the result?

    I would really appreciate your help.
    Marco
  • totalnew
    Member
    • Apr 2009
    • 46

    #2
    1. There is an excutable file "maq2sam" come with samtools package to allow you convert maq out to sam format.

    2. For FLAG field, if you want to parse it, simply use $FLAG & 0x01(02, 20, 20..) to determine the meaning of the FLAG bits.

    Comment

    • nilshomer
      Nils Homer
      • Nov 2008
      • 1283

      #3
      Originally posted by totalnew View Post
      2. For FLAG field, if you want to parse it, simply use $FLAG & 0x01(02, 20, 20..) to determine the meaning of the FLAG bits.
      The latest trunk version of samtools also has a "-X" flag to the "samtools view" command to display the flag using intelligible characters. I find this extremely useful.

      Comment

      • marcowanger
        Senior Member
        • Dec 2008
        • 273

        #4
        Originally posted by totalnew View Post
        1. There is an excutable file "maq2sam" come with samtools package to allow you convert maq out to sam format.

        2. For FLAG field, if you want to parse it, simply use $FLAG & 0x01(02, 20, 20..) to determine the meaning of the FLAG bits.
        Thank you totalnew. I have downloaded the samtools 0.1.5c. I think I will use the maq2sam-long for my 75bp long read.
        Marco

        Comment

        • marcowanger
          Senior Member
          • Dec 2008
          • 273

          #5
          Originally posted by nilshomer View Post
          The latest trunk version of samtools also has a "-X" flag to the "samtools view" command to display the flag using intelligible characters. I find this extremely useful.
          I cannot find the flag '-X' in samtools view. Am I using the old version?

          ps. I am using 0.1.5c
          Marco

          Comment

          • nilshomer
            Nils Homer
            • Nov 2008
            • 1283

            #6
            Originally posted by marcowanger View Post
            I cannot find the flag '-X' in samtools view. Am I using the old version?

            ps. I am using 0.1.5c
            Use the latest trunk version (via svn checkout). I think mine is r442.

            Comment

            • marcowanger
              Senior Member
              • Dec 2008
              • 273

              #7
              Originally posted by nilshomer View Post
              Use the latest trunk version (via svn checkout). I think mine is r442.
              I see. I am using the r385 so I think that's the reason.

              One more simple question, what type of quality score associated fastq file does BWA expects? I have searched in the manual but it just says fastq. I don't know if I should convert the my fastq file to sanger fastq first before proceeding.
              Marco

              Comment

              • nilshomer
                Nils Homer
                • Nov 2008
                • 1283

                #8
                Originally posted by marcowanger View Post
                I see. I am using the r385 so I think that's the reason.

                One more simple question, what type of quality score associated fastq file does BWA expects? I have searched in the manual but it just says fastq. I don't know if I should convert the my fastq file to sanger fastq first before proceeding.
                It would be Sanger FASTQ, since BWA is written by Heng Li (at Sanger).

                Comment

                • totalnew
                  Member
                  • Apr 2009
                  • 46

                  #9
                  Originally posted by marcowanger View Post
                  Thank you totalnew. I have downloaded the samtools 0.1.5c. I think I will use the maq2sam-long for my 75bp long read.
                  Yes, for 75bp read, you may have to use maq2sam-long, otherwise, otherwise you will get seg fault :<.

                  I have not downloaded new samtools, I guess it will be more handy to use samtools view -x. For quality score, nilshomer said the right, it is

                  $sanger_quality_char = chr($phred_quality + 33)
                  Last edited by totalnew; 08-10-2009, 08:22 AM.

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                    by SEQadmin2



                    Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                    ...
                    Yesterday, 11:10 AM
                  • SEQadmin2
                    Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                    by SEQadmin2



                    Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                    There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                    07-08-2026, 05:17 AM
                  • GATTACAT
                    Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                    by GATTACAT
                    Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                    07-01-2026, 11:43 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, Yesterday, 10:04 AM
                  0 responses
                  10 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-08-2026, 10:08 AM
                  0 responses
                  7 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-07-2026, 11:05 AM
                  0 responses
                  12 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-02-2026, 11:08 AM
                  0 responses
                  31 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...