Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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

  • #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


    • #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


      • #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


        • #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


          • #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


            • #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


              • #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


                • #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

                  • 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
                  25 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