Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gavin.oliver
    Senior Member
    • Jan 2010
    • 110

    #1

    Using SRMA output to call variants with mpileup

    I am trying to call variants with SAMTools mpileup using a BAM output of the SRMA program but am encountering problems whereby mpileup gives zero output.

    It works fine when I use a BAM file generated pre-realignment so it is quite possible something is missing from my workflow post-realignment.

    The original realignment was performed by splitting by chromosome so the subsequent steps I have employed are:

    1) samtools merge -h original.sam realigned.bam *bam (merge all bam files)
    2) samtools sort -n realigned.bam realigned_nsort.bam (sort by query names)
    3) samtools fixmate realigned_nsort.bam realigned_fixed.bam (fix mate pair info)
    4) MarkDuplicates I= realigned_fixed.bam O=final.bam (mark duplicate reads)
    5) samtools sort realigned_fixed.bam final.bam (sort by coordinates)
    6) samtools mpileup -uf genome.index final.bam

    Mpileup generates nothing at this point. Can anyone suggest what might be going wrong?
  • gavin.oliver
    Senior Member
    • Jan 2010
    • 110

    #2
    I have discovered what the problem is.

    Whilst SAMTools fixmate inserts pair mapping information that was removed by SRMA, it appears to mark all reads as having an unmapped mate. The reads are thus seen as anomalies by mpileup and ignored.

    This seems to be happening because the sort -n command is not producing a properly sorted file.

    E.g. the first three query names in the output file are

    chr1_gl000191_random(Strand-Offset105824--106431)
    chr1_gl000191_random(Strand+Offset5--434)
    chr1_gl000191_random(Strand-Offset106058--106427)

    The reads are paired so each sequence name should appear twice together.

    Any ideas what could be causing the sort to go wrong?
    Last edited by gavin.oliver; 07-19-2011, 06:44 AM.

    Comment

    • jkersh
      Member
      • Apr 2010
      • 11

      #3
      I have just run into the same problem, has anyone found a way to work around the sort by name issue in Samtools? Or is there another way to do this?

      Comment

      • madonjoe
        Junior Member
        • Dec 2013
        • 6

        #4
        Same problem encountered here

        I also ran into the same problem here. I cannot do variant calling based on the newly re-aligned bam file. Is there a workaround?

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
          by SEQadmin2



          Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

          Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
          ...
          10-14-2026, 09:55 AM
        • SEQadmin2
          New Genomics Technologies Take Aim at Long-Standing Limits
          by SEQadmin2


          Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

          We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
          ...
          09-28-2026, 10:25 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        23 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        27 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-13-2026, 09:56 AM
        0 responses
        25 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-09-2026, 11:14 AM
        0 responses
        28 views
        0 reactions
        Last Post SEQadmin2  
        Working...