Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Brian.R
    Junior Member
    • Mar 2014
    • 5

    Compensating for multi-mapper count in mpileup?

    I use mpileup files to call variants for subsections in the genome at a time with a set of custom python/awk scripts. This works well for unique mapping reads, but if I have reads that map to the genome more than once, this information gets lost during mpileup generation.

    I have written some scripts to count the 'mappability' of a given read, as my mapper of choice, bowtie, does not report this in the NH or IH tags, but am struggling a bit incorporating this 'correction factor' in to mpileups.

    From what I can make out in the manuals samtools might not be able to do so. Am I missing something, or is there perhaps a different pileup-like format I could use to extract 'normalised'-coverage and variants?
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #2
    Depending on your goal, you could simply place multi-mapping reads at a random location, which would accomplish the normalization you are looking for.

    Comment

    • Brian.R
      Junior Member
      • Mar 2014
      • 5

      #3
      Well, essentially, if a read maps to 2 loci, and I'm generating a pileup for one of these, I want the bases of this read to only count half towards the total coverage in the pileup.

      Does that make sense?

      I'm working with miRNAs, so mapping results to multiple identical loci, need to be accounted for in some way (ie dividing by the number of identical loci).

      Comment

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #4
        Right... that's what random assignment does, on average. A multi-mapping read is only printed as a single line in the sam file, choosing one of the possible mapping locations at random. Many aligners support this as an output option (I think bowtie does).

        Comment

        • Brian.R
          Junior Member
          • Mar 2014
          • 5

          #5
          I see what your saying. I was working with those settings beforehand, but discussions with colleagues made me rather uncertain if the bowtie settings reported random positions, or rather just "the first occurrence in the genome".

          Probably why I ended up down the path of going for reporting of all mapping positions in the first place.

          Thanks.

          Comment

          • Brian Bushnell
            Super Moderator
            • Jan 2014
            • 2709

            #6


            Looks like there may be some problem in Bowtie's random placement, so I guess you should not rely on it. But since you are postprocessing multimapped reads anyway, YOU could pick one at random and discard the others.

            Comment

            • Brian.R
              Junior Member
              • Mar 2014
              • 5

              #7
              Thanks for that link. I'll give it a go with bwa tomorrow and see how that works out.

              Comment

              • Brian Bushnell
                Super Moderator
                • Jan 2014
                • 2709

                #8
                Originally posted by Brian.R View Post
                Thanks for that link. I'll give it a go with bwa tomorrow and see how that works out.
                Ok. Though I would feel remiss if I did not point you toward BBMap

                It supports random assignment for multi-mapping reads with the "ambig=random" flag.

                Comment

                • Brian.R
                  Junior Member
                  • Mar 2014
                  • 5

                  #9
                  Heh, cool, thanks for the suggestion. I'll compare the three of them once I have some time next week or so

                  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
                  15 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...