Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • balsampoplar
    Member
    • Mar 2014
    • 14

    #1

    fastx quality trimmer and gzipped fastq

    Hello -

    I am using fastq_quality_trimmer tool from the Fastx toolkit to do some quality control on my gzipped fastq file. However, I keep getting wrong file type error. Are the fastq files to be gunzipped prior to using them with this tool?

    Edit 1: I figured out that I needed to use zcat to feed the data to this tool as follows:

    $> zcat sequences_fastq.gz | fastq_quality_trimmer -t 30 -l 35 -z -o sequences_trimmed_fastq.gz

    This results in the following error:
    fastq_quality_trimmer: Invalid quality score value (char '#' ord 35 quality value -29) on line 4

    I am not quite sure if I understand what's causing this.
    Last edited by balsampoplar; 03-07-2014, 02:37 PM.
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #2
    This is because fastx is obsolete and requires everything to use ASCII-64 qualities, but your data is modern and uses ASCII-33 qualities.

    I suggest you use a different trimmer. For example, from the BBTools package:

    reformat.sh in=sequences_fastq.gz out=trimmed.fq.gz qtrim=rl trimq=20 minlen=40

    That will trim the left and right sides of reads to Q20 using the Phred method (superior to fastx's method), and discard resulting reads that are shorter than 40 after trimming (that parameter is optional).

    I've attached a study I did recently on quality trimming using various trimmers. Note that each point on the graphs represents trimming with a different threshold, so the lower-left point for an algorithm is trimming to Q40, and the upper-right is trimming to Q0. 30 is generally way too high a trimming threshold for any purposes, by the way.
    Attached Files
    Last edited by Brian Bushnell; 03-07-2014, 02:55 PM.

    Comment

    • SES
      Senior Member
      • Mar 2010
      • 275

      #3
      Originally posted by Brian Bushnell View Post
      This is because fastx is obsolete and requires everything to use ASCII-64 qualities.
      This is not true, the FastX toolkit has had the '-Q 33' option for Sanger FASTQ data for maybe 4 years now. Though, there is the eternal question of why these things are not documented......but it's pretty common knowledge now. You will see this discussed quite a bit on seqanswers and biostars.

      Comment

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #4
        Originally posted by SES View Post
        This is not true, the FastX toolkit has had the '-Q 33' option for Sanger FASTQ data for maybe 4 years now. Though, there is the eternal question of why these things are not documented......but it's pretty common knowledge now. You will see this discussed quite a bit on seqanswers and biostars.
        Oh, thanks for the correction; that would have made my testing easier. It should really be the default, otherwise anyone running modern data will get an immediate, mysterious crash.

        Comment

        • balsampoplar
          Member
          • Mar 2014
          • 14

          #5
          Thank you Brian and SES. As it turns out, I had to use both -Q and -t flags in order to successfully run the fastq_quality_trimmer. Using one of the other generated input formatting errors.

          Unfortunately, the documentation of the program makes no mention of the -Q call. In fact if you access the help menu, -Q does not even show up. Also, what is the rationale behind having to use both flags? Don't they mean the same thing?

          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
          45 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          34 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          44 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          45 views
          0 reactions
          Last Post SEQadmin2  
          Working...