Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ampsevilla
    Junior Member
    • Mar 2023
    • 7

    mapping quality scores in samtools view?

    Hello!

    I am using samtools view to map short reads (-phred33) against a reference genome.
    The problem is that I don't know how to properly filter the mappings based on their quality since I'm unsure of how to choose proper value for --min-MQ parameter (that is, the minimum mapping quality).

    The reads I intend to map belong to an organism of the same genus but a different species than the organism to which the reference genome belongs. In both species, the rates of heterozygosity and hemizygosity are relatively high, so I believe I need some flexibility when filtering the mappings. I would need to find a quality value that is not too low but also not so restrictive as to discard a large number of valid mappings.

    I'm not sure if 20 or 30 would be a good --min-MQ value for this purpose...
    May I ask for some help?

    Thanks a lot.​
    Last edited by ampsevilla; 05-18-2023, 03:23 AM.
  • GenomicSeq
    Member
    • Oct 2022
    • 39

    #2
    Hello again ampsevilla,

    I'm a little rusty at samtools but I'll do my best to give my opinion. Your particular case sounds tricky because you have to balance between retaining enough valid mappings and filtering out potential false positives.

    I think a value of 20 or 30 for --min-MQ could be a reasonable starting point for your analysis, but it's always a good idea to assess the impact of different thresholds on your specific data. I would start by evaluating the distribution of mapping qualities. Use a tool like samtools view or other utilities to extract the mapping qualities from your alignment file. Plot a histogram of these values to understand their distribution. This should give you an idea of the quality range and how many reads fall into different bins.

    You also mentioned not wanting to be too restrictive and discard a large number of valid mappings. I would evaluate how changing the --min-MQ value affects the number of retained mappings. You can gradually increase the threshold and observe how the number of retained mappings changes. But keep an eye on the point where the number of valid mappings significantly drops, and assess if that value is acceptable for your analysis.

    Another thing you should do is take into account the downstream analysis you plan to perform. Are you looking for highly confident mappings for variant calling or more exploratory analysis? The requirements of your downstream analysis will likely influence the threshold you choose.

    Lastly, I would try to validate against any known data. If you have access to a set of validated mappings you can use it to evaluate the performance of different --min-MQ values. Then you can assess the sensitivity and specificity of different thresholds to identify the one that balances between retaining true positives and filtering false positives.

    Again, I'm not an expert at this type of analysis so it wouldn't hurt to also ask some individuals that have done this particular type of work before.

    Comment

    Latest Articles

    Collapse

    • 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
    • SEQadmin2
      Nine Things a Sample Prep Scientist Thinks About Before Sequencing
      by SEQadmin2


      I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

      Here are nine questions we think about, in roughly the order they matter, before...
      06-18-2026, 07:11 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Today, 11:05 AM
    0 responses
    6 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-02-2026, 11:08 AM
    0 responses
    27 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-30-2026, 05:37 AM
    0 responses
    25 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-26-2026, 11:10 AM
    0 responses
    25 views
    0 reactions
    Last Post SEQadmin2  
    Working...