Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StephaniePi83
    Member
    • Sep 2011
    • 52

    #1

    how to filter low quality reads ?

    Dear all,
    I read a paper in which they analyze small RNA seq data.
    In a first step, they filter Low quality reads.
    I know that we can use FASTQC in order to evaluate the quality of RNAseq data, but which tool can i use to remove low quality reads ? Which threshold can i use or how to fixe a threshold ?
    Thanks in advance for your reply !
  • Wallysb01
    Senior Member
    • Feb 2011
    • 286

    #2
    If you're using single end reads, the fastx toolkit is pretty simple and easy to use. You can filter based on any quality score you want in a lot of different ways. Ie. the average quality score of the read needs to be equal or greater than X, or you must have at least Y bases at or above quality Z. It is pretty friendly, but it doesn't handle paired reads very well, because it will remove one side of the pair, and not flag the other side as now just a single end read if the quality score is above the cut off. I've used sickle for trimming PE reads, and highly recommend it. I believe the same group at UC Davis has a paired read filtering script too.

    Comment

    • SES
      Senior Member
      • Mar 2010
      • 275

      #3
      Check out PRINSEQ, it has a stand alone and web-based version.

      Comment

      • tahamasoodi
        Success
        • May 2012
        • 130

        #4
        I have some low quality PE fastq files (read 1 and read 2 separate files). Will fastx toolkit work for these samples?
        Thanks,

        Comment

        • westerman
          Rick Westerman
          • Jun 2008
          • 1104

          #5
          Read up on Trimmomatic before you start using fastx toolkit on PE sequences. fastx toolkit can be used with PE but you'll need to do more work in order to keep the reads matching between R1 and R2.

          Comment

          • tahamasoodi
            Success
            • May 2012
            • 130

            #6
            Hi,

            I tried Trimmomatic but could not succeed, I'm getting empty files. I used the following command:
            java -classpath trimmomatic-0.15.jar org.usadellab.trimmomatic.TrimmomaticPE read1.fastq.gz read2.fastq.gz read1_forward_paired.fastq.gz read1_forward_unpaired.fastq.gz read2_reverse_paired.fastq.gz read2_reverse_unpaired.fastq.gz LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15 MINLEN:36

            I've some issues with the command I used:
            1)Input is read1 and read2, why we need unpaired output files as in this case read1_forward_unpaired.fastq.gz and read2_reverse_unpaired.fastq.gz?
            2)I didn't use illumina clipping as i don't have this!
            3) Seeing the above FastQC graphs, what quality threshold shall I give?

            Where i'm doing the mistake?
            Thanks,

            Comment

            • westerman
              Rick Westerman
              • Jun 2008
              • 1104

              #7
              Originally posted by tahamasoodi View Post

              Where i'm doing the mistake?
              If I was to make a single guess I am willing to bet that you should use the most recent version (0.22) instead of the 0.15 version.

              Are there no log files or error messages you can examine?

              As for the need for unpaired output files this is so that reads that no longer have a mate (due to the MINLEN) have a place to go to.
              Last edited by westerman; 11-27-2012, 11:18 AM. Reason: Added a question mark.

              Comment

              • tahamasoodi
                Success
                • May 2012
                • 130

                #8
                Now I'm at home, tomorrow I'll let you know the version but there are no error messages, just 4 empty output files after 5-8 mins.

                Further I'm using bwa for the alignment, if I give the flag -q 15 or q 20, is it not enough to keep the low quality sequences apart from aligning the reference genome?
                Thanks,

                Comment

                • westerman
                  Rick Westerman
                  • Jun 2008
                  • 1104

                  #9
                  Originally posted by tahamasoodi View Post
                  Further I'm using bwa for the alignment, if I give the flag -q 15 or q 20, is it not enough to keep the low quality sequences apart from aligning the reference genome?
                  That was not your original question which was:

                  Will fastx toolkit work for these samples?
                  Yes, you could use BWA with a high -q flag. Or bowtie2 with or without the qseq quality filtering. In either case you could do further processing on the resultant BAM file in order to get rid of poor mapping reads.

                  Comment

                  • tahamasoodi
                    Success
                    • May 2012
                    • 130

                    #10
                    Because of fastx toolkit failure for PE data and some error in Trimmomatic, the question has changed to bwa. Is -q 15 ok for the attached data?

                    Click image for larger version

Name:	per_base_quality.png
Views:	2
Size:	10.9 KB
ID:	304011

                    Click image for larger version

Name:	per_base_quality1.png
Views:	2
Size:	11.6 KB
ID:	304012

                    Click image for larger version

Name:	per_base_quality2.png
Views:	2
Size:	11.4 KB
ID:	304013

                    Click image for larger version

Name:	per_base_quality3.png
Views:	2
Size:	11.4 KB
ID:	304014

                    What further processing is needed for BAM files?
                    Thanks,

                    Comment

                    • westerman
                      Rick Westerman
                      • Jun 2008
                      • 1104

                      #11
                      Sure. -q 15 will get rid of the bad parts of your reads. Personally I like a -q 20 cutoff but it does depend on what you want to retain. For mapping to a known reference (instead of de-novo work) a poor quality dataset can be tolerated.

                      The BAM file will have a MAPQ (mapping quality) score which can be used to get rid of reads that do not map very well either due to q-score, repeat region, etc.

                      Comment

                      • tahamasoodi
                        Success
                        • May 2012
                        • 130

                        #12
                        Thanks a lot!
                        Another question, how ever it is not related to this thread but i thought it is the best time to ask. May I know how can we calculate the following:

                        Reads mapped to the human genome
                        Reads mapped to the target regions (exome)
                        Coverage of target regions at 1x
                        Coverage of target regions at 10x
                        Coverage of target regions at 50x

                        Thanks again,
                        Thanks,

                        Comment

                        • tahamasoodi
                          Success
                          • May 2012
                          • 130

                          #13
                          Hi Westerman,

                          I'm using the latest version of Trimmomatic but still getting the empty output files. My syntax is:

                          root@taha-MacPro:~/Softwares/Trimmomatic-0.22# java -classpath trimmomatic-0.22.jar org.usadellab.trimmomatic.TrimmomaticPE /home/taha/Desktop/Sample_lane5/lane5_NoIndex_L005_R1_001.fastq.gz /home/taha/Desktop/Sample_lane5/lane5_NoIndex_L005_R2_001.fastq.gz /home/taha/Desktop/Sample_lane5/123_paired.fastq.gz /home/taha/Desktop/Sample_lane5/123_unpaired.fastq.gz /home/taha/Desktop/Sample_lane5/123_pairedR2.fastq.gz /home/taha/Desktop/Sample_lane5/123_unpairedR2.fastq.gz LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15

                          Final message is:
                          Input Read Pairs: 87970561 Both Surviving: 0 (0.00%) Forward Only Surviving: 0 (0.00%) Reverse Only Surviving: 0 (0.00%) Dropped: 87970561 (100.00%)
                          TrimmomaticPE: Completed successfully

                          How can I get rid of this?
                          Thanks,

                          Comment

                          • westerman
                            Rick Westerman
                            • Jun 2008
                            • 1104

                            #14
                            Thanks for the complete report. I am guessing here but perhaps you need to indicate the proper quality scoring? I suspect that you are using the latest Illumina technology and thus should add '-phred33' to the command line.

                            Comment

                            • tahamasoodi
                              Success
                              • May 2012
                              • 130

                              #15
                              Hi Westerman,

                              Fantantic, it is now running. I ll let you know again when it finishes.

                              Thanks,
                              Thanks,

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