Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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?

  • #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


    • #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


      • #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

        • seqadmin
          Current Approaches to Protein Sequencing
          by seqadmin


          Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
          04-04-2024, 04:25 PM
        • seqadmin
          Strategies for Sequencing Challenging Samples
          by seqadmin


          Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
          03-22-2024, 06:39 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 04-11-2024, 12:08 PM
        0 responses
        18 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 10:19 PM
        0 responses
        22 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 09:21 AM
        0 responses
        16 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-04-2024, 09:00 AM
        0 responses
        47 views
        0 likes
        Last Post seqadmin  
        Working...
        X