Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ssharma
    Member
    • Oct 2010
    • 19

    #1

    Trimming illumina 1.8 reads

    Hi All,
    Recently i got data from illumina 1.8.
    I am trying to trim bad quality reads, i am using FASTX tool kit for this purpose.
    I looked at the quality plot (FASTQC), it shows there are bad quality reads (less than 20) at the end but when i tried to trim it using fastx , what i am getting is untrimmed file, with same read length.
    Am i missing something?
    This is the command i uded to trim the reads.

    fastq_quality_filter -q 20 -p 80 -Q33 -i input.fastq -o output.fastq

    Thanks
    ssharma
  • kmcarr
    Senior Member
    • May 2008
    • 1181

    #2
    Originally posted by ssharma View Post
    Hi All,
    Recently i got data from illumina 1.8.
    I am trying to trim bad quality reads,....

    This is the command i uded to trim the reads.

    fastq_quality_filter -q 20 -p 80 -Q33 -i input.fastq -o output.fastq
    ssharma,

    The program you are using, fastq_quality_filter, does not trim reads, it filters (discards) reads which don't meet the minimums set by your options. The reads which are not filtered will still be their original length. If you want to trim the poor quality bases from the 3' end you need to use fastq_quality_trimmer.

    Comment

    • lshen
      Member
      • Jan 2008
      • 30

      #3
      For trimming only, I used
      awk ' { if ( length($1)<3 || $1~/^\@HWI/ ) print $0 ; else print substr($0, 1, 85) ;} ' in.fastq > out.fastq

      Comment

      • ssharma
        Member
        • Oct 2010
        • 19

        #4
        Thanks Kmcarr,
        My bad, i don't know how i missed that.

        @Ishen: i will try using this too. Thanks

        Comment

        • kga1978
          Senior Member
          • Nov 2010
          • 100

          #5
          You could also try 'prinseq' - I like the feature set in that program for carefully controlling quality

          Comment

          • ssharma
            Member
            • Oct 2010
            • 19

            #6
            Hey Kga1978,
            Thanks for the suggestion. I just tried prinseq and its really good.
            Its doing what i wanted.
            But i just have a confusion:
            I used input file containing 4 million reads a and used the following command:

            perl ~/scripts/FASTAQ/prinseq-lite.pl -fastq in.fastq -trim_qual_left 20 -trim_qual_right 20 -out_format 1 -out_good out_trim

            But i am getting only 3.6 million reads with avg length of 125.9

            So why i am loosing some reads?

            I would really appreciate your help.

            Thanks
            sshama

            Comment

            • kga1978
              Senior Member
              • Nov 2010
              • 100

              #7
              Hi Ssharma,
              Trimming down to 20 may be a little too harsh - and you may be losing reads that are overall low quality (which is fine). I usually trim to a quality of ~10-15 and also include some 'average quality' cutoffs. This is my 'standard' setting:
              -min_len 20 -ns_max_n 4 -min_gc 10 -max_gc 90 -min_qual_mean 18 -trim_qual_left 10 -trim_qual_right 10

              I often lose ~15% on fairly good quality reads.

              Comment

              • drdna
                Member
                • May 2012
                • 76

                #8
                Don't use FASTX for sequence trimming

                FASTX_trimmer is a terrible tool for sequence trimming because it relies on user-defined trimming parameters which are completely arbitrary. Use a tool like LUCY2 or ngs_backbone which trim based on quality parameters.

                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-22-2026, 11:13 AM
                0 responses
                47 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-22-2026, 10:48 AM
                0 responses
                35 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-15-2026, 10:52 AM
                0 responses
                46 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-14-2026, 05:39 AM
                0 responses
                46 views
                0 reactions
                Last Post SEQadmin2  
                Working...