Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • giampe
    Member
    • Aug 2009
    • 23

    fastq_quality_trimmer options

    Hi ,
    I'm writing to ask some question about FastQ quality trimmer.
    I have loaded Fastx toolkit on my linux machine, I want to use that tool to trim bases from the 3' and 5' and with a low quality score <28.
    I have a paired end data files of 101 bases, only in the R2 file I have a decrease of quality in the 3' and in the 5' end, I attached the relative quality box plot.
    How should I set the parameter reported below of Fastq quality trimmer to obtain a good quality box plot as for R1 (attached)?

    fastq_quality_trimmer -h
    usage: fastq_quality_trimmer [-h] [-v] [-t N] [-l N] [-z] [-i INFILE] [-o OUTFILE]
    Part of FASTX Toolkit 0.0.13 by A. Gordon ([email protected])

    [-h] = This helpful help screen.
    [-t N] = Quality threshold - nucleotides with lower
    quality will be trimmed (from the end of the sequence).
    [-l N] = Minimum length - sequences shorter than this (after trimming)
    will be discarded. Default = 0 = no minimum length.
    [-z] = Compress output with GZIP.
    [-i INFILE] = FASTQ input file. default is STDIN.
    [-o OUTFILE] = FASTQ output file. default is STDOUT.
    [-v] = Verbose - report number of sequences.
    If [-o] is specified, report will be printed to STDOUT.
    If [-o] is not specified (and output goes to STDOUT),
    report will be printed to STDERR.

    I will appreciate your help.
    Thanks
    Attached Files
  • Kennels
    Senior Member
    • Feb 2011
    • 149

    #2
    Originally posted by giampe View Post
    Hi ,
    I'm writing to ask some question about FastQ quality trimmer.
    I have loaded Fastx toolkit on my linux machine, I want to use that tool to trim bases from the 3' and 5' and with a low quality score <28.
    I have a paired end data files of 101 bases, only in the R2 file I have a decrease of quality in the 3' and in the 5' end, I attached the relative quality box plot.
    How should I set the parameter reported below of Fastq quality trimmer to obtain a good quality box plot as for R1 (attached)?

    fastq_quality_trimmer -h
    usage: fastq_quality_trimmer [-h] [-v] [-t N] [-l N] [-z] [-i INFILE] [-o OUTFILE]
    Part of FASTX Toolkit 0.0.13 by A. Gordon ([email protected])

    [-h] = This helpful help screen.
    [-t N] = Quality threshold - nucleotides with lower
    quality will be trimmed (from the end of the sequence).
    [-l N] = Minimum length - sequences shorter than this (after trimming)
    will be discarded. Default = 0 = no minimum length.
    [-z] = Compress output with GZIP.
    [-i INFILE] = FASTQ input file. default is STDIN.
    [-o OUTFILE] = FASTQ output file. default is STDOUT.
    [-v] = Verbose - report number of sequences.
    If [-o] is specified, report will be printed to STDOUT.
    If [-o] is not specified (and output goes to STDOUT),
    report will be printed to STDERR.

    I will appreciate your help.
    Thanks
    Hi,
    First you need to decide on the quality threshold. If you try 28, then:

    fastq_quality_trimmer -v -t 28 -l 80 -i inputfile.fastq -o <outputfilename.fastq>
    (you can remove -l 80 if you don't care what your minimum remaining length should be. You also need to be careful with this option as it will discard any sequences shorter than the set length. If so, you will end up with different number of reads in your paired R1 and R2 files, and also lose pairing information).

    I am not sure if this tool trims from both ends, you could try with a small subset of your data.

    I would also recommend you try using a software called trimmomatic. It is versatile, much quicker, and maintains the paired information.

    Comment

    • JackieBadger
      Senior Member
      • Mar 2009
      • 385

      #3
      I second Trimmomatic as being much better

      Comment

      • giampe
        Member
        • Aug 2009
        • 23

        #4
        Hi kennels,
        thanks for your suggestion. I want to try Trimmomatic tool, but I didn't find a guide for its installation for a linux machine. I have just downloaded the binary folder from

        Downloading Trimmomatic
        Version 0.22: binary and source

        Sorry but I'm a biologist so if you could help me in the installation I will be grateful to you!

        Comment

        • Kennels
          Senior Member
          • Feb 2011
          • 149

          #5
          Hi,
          I completely understand your situation as I was/am pretty much in the same boat.
          Once you download the binary, the .jar file it can simply be run from the folder without doing anything. You do need java installed on your linux machine though (try googling 'install java linux' if you're having trouble with this). There are examples of the command invocation on the trimmomatic page, and you literally just need to follow what it has written. The commands in capital letters are the options you can adjust for the program. I found it a little confusing at first, so here's an example code i use for myself:

          Code:
          java -classpath /usr/local/bin/Trimmomatic-0.22/trimmomatic-0.22.jar org.usadellab.trimmomatic.TrimmomaticPE -threads 4 -phred33 -trimlog read1.fastq.gz read2.fastq.gz read1.paired read1.unpaired read2.paired read2.unpaired ILLUMINACLIP:adapterseq.fa:2:40:15 TRAILING:20 HEADCROP:12 MINLEN:50
          You can use the compressed .gz file of your reads straightaway as well, which is convenient. Adjust the options to your liking.

          I found the ILLUMINACLIP option a little hard to understand. Basically you need a separate file containing the adapter sequences you want to clip off (if you want to do this that is. Otherwise you can leave it out of your command). The header for the adapter sequences must also be named according to the software instructions. e.g.
          >three-prime-adapter/1
          AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC
          >five-prime-adapter/2
          ACTAGCCTTCTCGTGTGCAGACTTGAGGTCAGTG

          You need to have the same Prefix name (before the /1 and /2) if you want to invoke palindrome clipping, otherwise you can clip in simple mode as I have above. Have a read about the adapter fasta file on their page.

          After running, you end up with the .paired files which maintains your paired information, and 'orphaned' reads in the .unpaired files.

          hope this helps.
          Last edited by Kennels; 01-10-2013, 03:12 PM.

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Cancer Drug Resistance: The Lingering Barrier to Rising Survival
            by SEQadmin2



            Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

            There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
            Yesterday, 05:17 AM
          • GATTACAT
            Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
            by GATTACAT
            Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
            07-01-2026, 11:43 AM
          • SEQadmin2
            Nine Things a Sample Prep Scientist Thinks About Before Sequencing
            by SEQadmin2


            I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

            Here are nine questions we think about, in roughly the order they matter, before...
            06-18-2026, 07:11 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Yesterday, 10:08 AM
          0 responses
          6 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-07-2026, 11:05 AM
          0 responses
          8 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-02-2026, 11:08 AM
          0 responses
          31 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-30-2026, 05:37 AM
          0 responses
          29 views
          0 reactions
          Last Post SEQadmin2  
          Working...