Announcement

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

  • BWA - XM tag Question

    I have installed BWA. And build index of hg19 using command:

    bwa index -a bwtsw hg19.fa

    Now I find alignment using command:

    ./bwa aln hg19.fa SRR4493095_1.fastq > aln_sa.sai

    However, I want to find alignments allowing 1 or 2 mismatches.

    From BWA home page, I found, I have to use XM tag.

    But, can't get how to use that means what should be the command.

    Can anybody please help me on this ?

    Thanks.
    Last edited by Arupsss; 06-28-2012, 06:51 AM.

  • #2
    Another point is that, in some places I found - n 0/1/2 this tag gives specified number of mismatch. However, can't understand whether is that true or not. Little bit confusing because some places told to use XM (but don't specify how) some places told to use - n 0/1/2 .

    Comment


    • #3
      You misunderstood the XM tag, XM IS a TAG in the output of BWA SAMPE/SAMSE step (which is a SAM file).

      -n IS a switch (or options/parameters) when you run BWA, there are many switches you can give.

      With default values for these (i.e. don't use them at all) you already can have 1 or 2 mismatches.

      Comment


      • #4
        Originally posted by xied75 View Post
        You misunderstood the XM tag, XM IS a TAG in the output of BWA SAMPE/SAMSE step (which is a SAM file).

        -n IS a switch (or options/parameters) when you run BWA, there are many switches you can give.

        With default values for these (i.e. don't use them at all) you already can have 1 or 2 mismatches.
        Thanks for reply:

        Actually, I am comparing, BWA vs BowTie. For, BowTie, I can specify output allowing mismatch by command

        ./bowtie --all -v 0 hg19 SRR4930952.fastq SRR4930952.txt (v specify number of mismatch).

        I want same command to compare with BWA ( it's paper say's, it allows).

        So, what command should I give to find exact matches and allowing 1/2 mismatches (I am using 150 bp read).

        Comment


        • #5
          -k and/or -n. -k is mismatch in seed, -n is overall, not sure what combination you need with your 150bp read.

          Comment


          • #6
            Originally posted by xied75 View Post
            -k and/or -n. -k is mismatch in seed, -n is overall, not sure what combination you need with your 150bp read.
            I have no restrictions in maximum edit distance in the seed.

            Can you inform me: what does this - n option means.

            It says:

            -n NUM Maximum edit distance if the value is INT, or the fraction of missing alignments given 2% uniform base error rate if FLOAT. In the latter case, the maximum edit distance is automatically chosen for different read lengths. [0.04]

            So, if I run in default setting for 150 bps read, it allows 6 mismatches ?

            And for allowing no mismatches:

            I have to set - n 0.

            For 2 mismatches for 150 bps,

            I have to set - n 2.

            Is this correct ?
            Last edited by Arupsss; 06-28-2012, 07:49 AM.

            Comment


            • #7
              Yes, -n 0 for all match, -n 2 for 2 mismatches.

              Comment


              • #8
                Originally posted by xied75 View Post
                Yes, -n 0 for all match, -n 2 for 2 mismatches.
                Thanks a lot. This I want to make sure. And by default:

                it gives

                [bwa_aln] 17bp reads: max_diff = 2
                [bwa_aln] 38bp reads: max_diff = 3
                [bwa_aln] 64bp reads: max_diff = 4
                [bwa_aln] 93bp reads: max_diff = 5
                [bwa_aln] 124bp reads: max_diff = 6
                [bwa_aln] 157bp reads: max_diff = 7
                [bwa_aln] 190bp reads: max_diff = 8
                [bwa_aln] 225bp reads: max_diff = 9

                mismatches ? True ?

                Comment


                • #9
                  Yes that's the default output you see when there is no -n used.

                  Comment

                  Latest Articles

                  Collapse

                  • seqadmin
                    Advanced Tools Transforming the Field of Cytogenomics
                    by seqadmin


                    At the intersection of cytogenetics and genomics lies the exciting field of cytogenomics. It focuses on studying chromosomes at a molecular scale, involving techniques that analyze either the whole genome or particular DNA sequences to examine variations in structure and behavior at the chromosomal or subchromosomal level. By integrating cytogenetic techniques with genomic analysis, researchers can effectively investigate chromosomal abnormalities related to diseases, particularly...
                    Yesterday, 06:26 AM
                  • seqadmin
                    How RNA-Seq is Transforming Cancer Studies
                    by seqadmin



                    Cancer research has been transformed through numerous molecular techniques, with RNA sequencing (RNA-seq) playing a crucial role in understanding the complexity of the disease. Maša Ivin, Ph.D., Scientific Writer at Lexogen, and Yvonne Goepel Ph.D., Product Manager at Lexogen, remarked that “The high-throughput nature of RNA-seq allows for rapid profiling and deep exploration of the transcriptome.” They emphasized its indispensable role in cancer research, aiding in biomarker...
                    09-07-2023, 11:15 PM
                  • seqadmin
                    Methods for Investigating the Transcriptome
                    by seqadmin




                    Ribonucleic acid (RNA) represents a range of diverse molecules that play a crucial role in many cellular processes. From serving as a protein template to regulating genes, the complex processes involving RNA make it a focal point of study for many scientists. This article will spotlight various methods scientists have developed to investigate different RNA subtypes and the broader transcriptome.

                    Whole Transcriptome RNA-seq
                    Whole transcriptome sequencing...
                    08-31-2023, 11:07 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, Today, 06:57 AM
                  0 responses
                  6 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, Yesterday, 07:53 AM
                  0 responses
                  8 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 09-25-2023, 07:42 AM
                  0 responses
                  14 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 09-22-2023, 09:05 AM
                  0 responses
                  44 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X