Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • curious.genome
    Member
    • Oct 2013
    • 10

    #1

    Duplicate removal without alignment to reference genome

    Hi guys,

    So our HiSeq data is showing a large number of duplicate sequences. I've come across tools like Picard MarkDups or samtools rmdup which remove duplicates - however they seem to require alignment to a reference genome and use position information to perform the removal.

    Is there some way of performing duplicate removal without using alignment to a reference? (since we don't have a reference!) A naive pair-wise comparison of all sequences to each other would probably take too much time, and not account for localized errors as well, correct ? Should I use a hashtable to store all the sequences and then perform a constant time lookup for each sequence ? Or am I missing an easy way of doing this ?


    Thanks!
  • vivek_
    PhD Student
    • Jul 2012
    • 164

    #2
    You could try a tool like fastx collapser. It would collapse similar sequences into unique reads and give the count of each sequence in the header

    Comment

    • mcnelson.phd
      Senior Member
      • Jul 2011
      • 162

      #3
      I believe that fastx toolkit can do that with the collapser sub command, but it will only identify 100% matches. Mothur also has a similar command, uniq.seqs but again only looks at 100% identity.

      Comment

      • curious.genome
        Member
        • Oct 2013
        • 10

        #4
        That was quick! Thanks Vivek, I'll try fastx collapser.

        From a quick google search, it looks like this tool can only collapse completely identical reads. I might still want to figure out how to deal with a situation where two reads differ only by 1-2 nucleotides due to error - I would want to collapse these 'almost-duplicates' as well.


        Also, just out of curiosity, in principle the fastx-collapser could do the duplicate removal job for everyone right, regardless of whether they have access to a reference genome or not ? Why were the tools MarkDups and rmdup created anyway ? They have an additional time consuming alignment step as well.

        Comment

        • curious.genome
          Member
          • Oct 2013
          • 10

          #5
          Originally posted by mcnelson.phd View Post
          I believe that fastx toolkit can do that with the collapser sub command, but it will only identify 100% matches. Mothur also has a similar command, uniq.seqs but again only looks at 100% identity.
          Thanks mcnelson, I missed your reply. I'l have a go at mothur too, but like you said, I need a fix for the sub 100% match as well.

          Comment

          • mcnelson.phd
            Senior Member
            • Jul 2011
            • 162

            #6
            Originally posted by curious.genome View Post
            I might still want to figure out how to deal with a situation where two reads differ only by 1-2 nucleotides due to error - I would want to collapse these 'almost-duplicates' as well.


            Also, just out of curiosity, in principle the fastx-collapser could do the duplicate removal job for everyone right, regardless of whether they have access to a reference genome or not ? Why were the tools MarkDups and rmdup created anyway ? They have an additional time consuming alignment step as well.
            The answer to both those questions gets at the root of why you want to remove duplicate reads. There are two types of duplicate reads in sequencing libraries, those that are true biological duplicates and those that are due to PCR (or some other bias in library preparation). The reason why some tools utilize a mapping step is to identify if reads are biological duplicates or PCR duplicates. By mapping to a reference, you can then look at a coverage map and determine if a sequence is represented multiple times in your genome/transcriptome/etc and that's why you have duplicate reads or if it's simply b/c some reads were PCR amplified more efficiently.

            On the basis of that, the question I'd pose to you is why you want to identify and remove reads that differ by 1-2 nt? Depending on what you plan on doing with your data, you don't want to remove those reads (or duplicates either for that matter). If you really want to go that route though, you can treat your data like it's amplicon data and basically perform sequence clustering with an identity cutoff that would reflect 1 or 2 nt changes over the length of your reads (e.g 0.99 for 1 base difference in 100bp reads). The best option that I can recommend for doing that is probably usearch since it's faster on HiSeq sized datasets compared to other methods, but there are a number of programs (including mothur) that can do that for you.

            Comment

            • curious.genome
              Member
              • Oct 2013
              • 10

              #7
              Originally posted by mcnelson.phd View Post
              The answer to both those questions gets at the root of why you want to remove duplicate reads. There are two types of duplicate reads in sequencing libraries, those that are true biological duplicates and those that are due to PCR (or some other bias in library preparation). The reason why some tools utilize a mapping step is to identify if reads are biological duplicates or PCR duplicates. By mapping to a reference, you can then look at a coverage map and determine if a sequence is represented multiple times in your genome/transcriptome/etc and that's why you have duplicate reads or if it's simply b/c some reads were PCR amplified more efficiently.

              On the basis of that, the question I'd pose to you is why you want to identify and remove reads that differ by 1-2 nt? Depending on what you plan on doing with your data, you don't want to remove those reads (or duplicates either for that matter). If you really want to go that route though, you can treat your data like it's amplicon data and basically perform sequence clustering with an identity cutoff that would reflect 1 or 2 nt changes over the length of your reads (e.g 0.99 for 1 base difference in 100bp reads). The best option that I can recommend for doing that is probably usearch since it's faster on HiSeq sized datasets compared to other methods, but there are a number of programs (including mothur) that can do that for you.


              Thanks mcnelson ! For now, all I plan to do with the reads is to perform assembly. I am not interested in variants/etc. I planned on removing the duplicates to aid the assembler. Is this a bad idea ?

              Comment

              • mcnelson.phd
                Senior Member
                • Jul 2011
                • 162

                #8
                I'd advise against removing duplicates for your first time doing the assembly because the k-mer abundance profile may get skewed, which can cause your assemblies to be wrong. Most assemblers for Illumina data are very tolerant to errors, and they can do an amazing job with very poor input data. After your get your initial assembly, then it might be worth it to see if removing duplicate and/or erroneous reads will improve things, but what often happens is that you'll get a poorer assembly b/c you've reduced the volume of data you have to work with and this the assembler has a harder time trying to correctly resolve the graph.

                Comment

                • curious.genome
                  Member
                  • Oct 2013
                  • 10

                  #9
                  Thanks for the sound advice, mcnelson. I'll go ahead with the assembly for now

                  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
                  20 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-14-2026, 05:39 AM
                  0 responses
                  26 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-13-2026, 09:56 AM
                  0 responses
                  22 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...