Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • sanjeevksh
    Junior Member
    • Aug 2009
    • 5

    Bowtie2 --score-min or mismatch setting

    Dear All,

    I am trying to figure out how to set a mismatch (--score-min) value in Bowtie2. On the forum I have seen '--score-min' settings like 'L, -0.5,-0.2', 'C,0,0', 'C,-1,0' and the assigned default setting by Bowtie2 is 'L,-0.6,-0.6'.

    I wish to know the reasons behind deciding values for '--score-min' option. Bowtie2 manual mentions some details that it is a function of read length etc. but does not divulge into further details on how does one decide which function to choose as both 'L' (Linear) and 'C' (Constant) have been used in the cases mentioned above as well as the rationale behind the other two parameters.

    My dataset is from Illumina Hi-Seq 2500 and reads are 150 bp long. I want to try a range of mismatch settings from 1 to 11 or so with '--very-sensitive' option under the '--end-to-end' mode.

    I would highly appreciate any feedback on this.

    Regards,
    Sanjeevksh
    SkSH
  • mastal
    Senior Member
    • Mar 2009
    • 666

    #2
    I don't think you can use the --very-sensitive setting if you plan to vary the number of mismatches, I think --very-sensitive corresponds to a certain predefined set of parameters, namely ' -D 20 -R 3 -N 0 -L 20 -i S,1,0.50',
    where N is the number of mismatches in the seed region.

    Comment

    • dpryan
      Devon Ryan
      • Jul 2011
      • 3478

      #3
      The presets don't alter the score-min setting, so you can mix them at will. The default --score-min will allow up to 15 mismatches for your(I'm ignoring indels here and assuming that you're either using --ignore-quals or that the mismatches occur at positions with high phred scores), so you can gauge the effect by just filtering by MAPQ, the AS tag, or the MD tag.

      A constant (C) score-min is only useful if you want to have a maximum edit-distance regardless of read length (again, I'm ignoring the effect of phred scores on the mismatch penalty). In general with end-to-end alignments, you would want the minimum alignment score to change a bit with length. For actually determining the exact equation to use, the main way to do this is with simulated reads, since the --score-min setting directly affects the MAPQ calculation. The defaults generally produce pretty similar MAPQ scores as other programs (namely BWA).

      Comment

      • sanjeevksh
        Junior Member
        • Aug 2009
        • 5

        #4
        Hi mastal and dpryan,

        Thanks for your replies, are very helpful indeed.

        @mastal:
        I was not referring to the mismatches in the seed region which -N (0 or 1) actually pertains to but for the entire end-to-end alignment. On the same subject, if say I have to use '--very-sensitive' and only change '-N' parameter, do I submit '--very-sensitive -N 1' or '--very-sensitive' becomes obselete if any parameter covered by this option is altered and one has to submit the entire parameter set separately like '-D 20 -R 3 -N 1 -L 20 -i S,1,0.50'?


        @dpryan:
        So this means just map once with a default '--score-min' setting and then apply filters and use as it deems fit? Now would try to find out how to filter by MAPQ, AS tag, or MD tag.

        I am not specifying anything like --ignore-quals.

        Regarding the function to use, I would stick to 'L' which I have used in some test runs.

        Regards,
        Sanjeevksh
        SkSH

        Comment

        • dpryan
          Devon Ryan
          • Jul 2011
          • 3478

          #5
          Yup, exactly. You'll want to filter according to the MD tag, possibly also looking at the sequence in the case of Ns, which you presumably don't want to count.

          Comment

          • sanjeevksh
            Junior Member
            • Aug 2009
            • 5

            #6
            MD gives a string so 'XM:i:<N>' field may be more helpful in this context?

            Cheers!
            Last edited by sanjeevksh; 04-24-2014, 11:18 AM.
            SkSH

            Comment

            • dpryan
              Devon Ryan
              • Jul 2011
              • 3478

              #7
              Indeed, yes, I'd forgotten about that tag!

              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.
                ...
                07-09-2026, 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, 07-13-2026, 10:26 AM
              0 responses
              20 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-09-2026, 10:04 AM
              0 responses
              31 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-08-2026, 10:08 AM
              0 responses
              20 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-07-2026, 11:05 AM
              0 responses
              34 views
              0 reactions
              Last Post SEQadmin2  
              Working...