Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • girlmonkey
    Member
    • Aug 2013
    • 11

    #1

    Trimming - looking for a complete solution

    Hi, I found this previous discussion which covers a lot of what I'd like to know:

    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc


    but not quite all! I am working with HaloPlex data. Before alignment, I need to remove Haloplex adapters, and also clip 5bp from both ends of both forward and reverse reads. I should also not be left with any empty or orphan (i.e. unmatched reads).

    I had previously been taking an approach to trim adapters with cutadapt, use a separate Perl script to remove the 5bp, then re-run cutadapt with a 'fake' adpater sequence to drop zero-length reads, then finally run another script to drop orphans. While this works, it seems tools like Trimmomatic or Trim Galore could achieve the same in a more efficient one-step manner.

    My problem is therefore that neither tool seems to deal with both ends of the reads:

    Trimmomatic has 'CROP: Cut the read to a specified length by removing bases from the end'

    Trim Galore has --clip_R1 <int> and --clip_R2 <int> to remove <int> bp from the 5' end of read 1 and read 2.

    Unless I've misunderstood, this only deals with one end of the reads. The reason I need to clip these bases from both ends is to remove residual bases from the restriction enzyme footprint.

    TIA!
  • mastal
    Senior Member
    • Mar 2009
    • 666

    #2
    Trimmomatic also has HEADCROP, which removes bases from the 5' end of the reads.

    Comment

    • girlmonkey
      Member
      • Aug 2013
      • 11

      #3
      Sorry - there's an error is my OP - HEADCROP is the option I meant to mention. CROP is actually not much use to me, as it's the opposite of what I'd like to do (specifying the length of sequence to be left behind as opposed to what to remove), so I still have the situation that I can only clip from one end (5').

      Ideally (in the case of Trimmomatic) I'm looking for a 'TAILCROP' option...

      Comment

      • mastal
        Senior Member
        • Mar 2009
        • 666

        #4
        Originally posted by girlmonkey View Post
        Sorry - there's an error is my OP - HEADCROP is the option I meant to mention. CROP is actually not much use to me, as it's the opposite of what I'd like to do (specifying the length of sequence to be left behind as opposed to what to remove), so I still have the situation that I can only clip from one end (5').

        Ideally (in the case of Trimmomatic) I'm looking for a 'TAILCROP' option...
        I guess it depends at which stage of the trimming and adapter removal steps you need to cut the bases from the 3' end, if you can do it as the first step, then CROP would be OK, unless your reads are all different lengths.

        Comment

        • girlmonkey
          Member
          • Aug 2013
          • 11

          #5
          Thanks for your reply. The reads are initially all the same length (150bp), but adapter trimming should come first (after which they are all different lengths) before the clipping of 5bp from the ends.

          Comment

          • fkrueger
            Senior Member
            • Sep 2009
            • 627

            #6
            We have just implemented two new options into Trim Galore (--three_prime_clip_r1 and --three_prime_clip_r2) to clip off any number of bases from the 3' ends of reads after adapter/quality trimming has finished. girlmonkey is just testing the new version, if it works fine it will find its way into the next release.

            Comment

            • SES
              Senior Member
              • Mar 2010
              • 275

              #7
              PRINSEQ has many options for trimming the 3' end of reads. There is '--trim_right' for trimming a specified length, '--trim_right_p' for trimming a certain percentage, '--trim_ns_right' for trimming poly-N tails, '--trim_qual_right' for trimming by a certain quality threshold, and '--trim_to_len' to specify trimming to a certain length.

              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...