Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • lukas1848
    Member
    • Jun 2011
    • 54

    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.
  • airtime
    Member
    • Jan 2011
    • 14

    #2
    Hi,

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

    Comment

    • lukas1848
      Member
      • Jun 2011
      • 54

      #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

      • airtime
        Member
        • Jan 2011
        • 14

        #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

        • lukas1848
          Member
          • Jun 2011
          • 54

          #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

          • lukas1848
            Member
            • Jun 2011
            • 54

            #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

            • 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
            • SEQadmin2
              From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
              by SEQadmin2


              Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


              The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
              ...
              06-02-2026, 10:05 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Yesterday, 05:37 AM
            0 responses
            6 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-26-2026, 11:10 AM
            0 responses
            16 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-17-2026, 06:09 AM
            0 responses
            51 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-09-2026, 11:58 AM
            0 responses
            110 views
            0 reactions
            Last Post SEQadmin2  
            Working...