Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • samtools rmdup error

    Hi,

    I am trying to run samtools rmdup on a bam file and I get the following error messages.

    [bam_rmdup_core] inconsistent BAM file for pair 'HWI-ST1027:65: D03FGACXX:4:2107:2691:8134'. Continue anyway.
    [bam_rmdup_core] inconsistent BAM file for pair 'HWI-ST1027:65: D03FGACXX:4:2208:17576:79909'. Continue anyway.
    [bam_rmdup_core] inconsistent BAM file for pair 'HWI-ST1027:65: D03FGACXX:4:2301:18313:189015'. Continue anyway.
    [bam_rmdup_core] inconsistent BAM file for pair 'HWI-ST1027:65: D03FGACXX:4:2307:15133:98183'. Continue anyway.
    [bam_rmdup_core] inconsistent BAM file for pair 'HWI-ST1027:65: D03FGACXX:4:2301:4254:2861'. Continue anyway.
    I googled and didn't find anything on that, so I hope that someone here might be able to help me.


    edit: just some additional info. I mapped 100 bp PE Illumina reads with stampy&bwa.
    Last edited by lukas1848; 05-08-2012, 03:08 AM.

  • #2
    Hi,

    did you sort your bam file before?
    Some further proceeding steps would be helpful (like full command execution).

    Comment


    • #3
      I sorted my bam files
      samtools view -uS ACAGTG_001.sam | samtools sort - ACAGTG
      and removed the pcr dups like this

      samtools rmdup ACAGTG_001.bam ACAGTG_001_rmdup.bam
      If I use the -S option in rmdup to force treating PE reads as SE reads, the error does not occur (which seems not really surprising, though)

      Comment


      • #4
        Hi,

        ok. How big are your files and your RAM? If you convert sam to uncompressed bam is their size similar?

        regards Air

        Comment


        • #5
          I used a m1.large EC2 instance, so I had 7.5 gb ram. The sam files are ~2.2 gb each. The uncompressed bams are 1/4th of the sam files' size.
          Is this somehow suspicious? I mean, should uncompressed bams be of roughly the same size as the sam template?

          I am thinking about trying out Picard's duplicate removal, but I want to make sure first that my bam files are correct.

          Comment


          • #6
            I contacted the authors of stampy and they said that they occasionally record errors of that kind but that it does not show any ill effects. According to them, samtools is complaining without good reason.

            I think I'll just go with that, even if it still is odd though.
            Last edited by lukas1848; 05-09-2012, 06:38 AM.

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Recent Advances in Sequencing Analysis Tools
              by seqadmin


              The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
              05-06-2024, 07:48 AM
            • seqadmin
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin




              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
              04-22-2024, 07:01 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Today, 07:03 AM
            0 responses
            12 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-10-2024, 06:35 AM
            0 responses
            32 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-09-2024, 02:46 PM
            0 responses
            41 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-07-2024, 06:57 AM
            0 responses
            35 views
            0 likes
            Last Post seqadmin  
            Working...
            X