Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nihil347
    Junior Member
    • May 2013
    • 4

    #1

    mapdamage 2.0 doesn't work with paired ends

    Hi,

    I'm working with adna and use mapdamge to rescale base qualitys specific to the damage patterns of adna.

    Everything works fine for single end reads but with paired end reads I get this errormassage:

    Error in aggregate.data.frame(as.data.frame(x), ...) :
    no rows to aggregate
    Calls: plot.length ... aggregate -> aggregate.default -> aggregate.data.frame
    Execution halted
    Error: plotting with R failed

    It looks like a problem with R, but that could not be the case because everything works fine for SE, as mentioned above.

    The mapdamage homepage says:

    "We assume the pairs are facing inwards when counting the position specific misincorporations and rescaling quality scores. An additional assumption in the rescaling process is the pairs are non-overlapping. Make sure the pairing information in the BAM/SAM file is correct as we rely on the paired end information provided by the file"




    So i tryed

    -samtools view -f 0x02 -b in.bam > out.aligned.bam
    -samtools view -h -F 4 -b in.bam > out.bam and
    -clipOverlap to edit the bamfiles before I use mapdamage.

    nothing helps.

    any idea?
  • ginolhac
    Junior Member
    • Oct 2010
    • 4

    #2
    Hey Nihil347,


    thanks for your post. Actually, there are two different things and what you observed is a desired bahaviour that is now handled gracefully.

    The R error comes from the plotting of the length distributions. The plot.length only works for single-end reads. It could work in theory on paired-end using the length of each pair that we think this does not represent the real insert size and could be misleading.
    With ancient DNA, we do not recommend to use paired-end data that are not overlapping as large pieces of DNA are likely to be contaminants.
    But if you still want to use non overlapping paired-end data then you can and since
    commit b0cb37c (15 July 2013) the program continues and print a warning about the length distribution and this pdf is not produced. The disclaimer you cite on the website refers to the orientation of paired-end reads and is not link to the length.

    For the rescaling, this is totally different and is based on the mis-incorportion frequencies.
    This feature was added recently by Hákon and you can see commit 523b922, 22nd August 2013, mapdamage tagged version 2.01.
    The absence of paired-end length distribution does not interfere at all with the Bayesian inference and the rescaling.

    Originally posted by Nihil347 View Post
    Hi,

    I'm working with adna and use mapdamge to rescale base qualitys specific to the damage patterns of adna.

    Everything works fine for single end reads but with paired end reads I get this errormassage:

    Error in aggregate.data.frame(as.data.frame(x), ...) :
    no rows to aggregate
    Calls: plot.length ... aggregate -> aggregate.default -> aggregate.data.frame
    Execution halted
    Error: plotting with R failed

    It looks like a problem with R, but that could not be the case because everything works fine for SE, as mentioned above.

    The mapdamage homepage says:

    "We assume the pairs are facing inwards when counting the position specific misincorporations and rescaling quality scores. An additional assumption in the rescaling process is the pairs are non-overlapping. Make sure the pairing information in the BAM/SAM file is correct as we rely on the paired end information provided by the file"




    So i tryed

    -samtools view -f 0x02 -b in.bam > out.aligned.bam
    -samtools view -h -F 4 -b in.bam > out.bam and
    -clipOverlap to edit the bamfiles before I use mapdamage.

    nothing helps.

    any idea?

    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, Yesterday, 11:13 AM
    0 responses
    19 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, Yesterday, 10:48 AM
    0 responses
    18 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    36 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    42 views
    0 reactions
    Last Post SEQadmin2  
    Working...