Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • liu_xt005
    Member
    • Jun 2011
    • 24

    #1

    FastX-toolkit

    I am going to clean some exome sequence data (paired-end) generated by Illumina using FastX-toolkit. Could you please suggest a good procedure, for instance,
    1. fastx_clipper
    2. fastx_quality_filter
    3. fastx_quality_trimmer
    ...?
    I am confused about the steps as well as the order.
    Thanks very much!
  • odoyle81
    Member
    • Aug 2011
    • 31

    #2
    I'm actually confused about this too...
    Is it better to do clipper first, and then quality filter?
    When determining where to clip, do you look at the fastQC results? For example if my graph of quality scores across all bases and I see that after position 85 QC falls below 20, should I just clip all reads at 85?
    Thanks!

    Comment

    • pbluescript
      Senior Member
      • Nov 2009
      • 224

      #3
      Originally posted by odoyle81 View Post
      I'm actually confused about this too...
      Is it better to do clipper first, and then quality filter?
      When determining where to clip, do you look at the fastQC results? For example if my graph of quality scores across all bases and I see that after position 85 QC falls below 20, should I just clip all reads at 85?
      Thanks!
      I would not hard clip based on just Fastqc. Remember it's just showing you the distribution of quality scores, and you will have plenty of reads that have good quality all the way through. As for whether to even trim the reads at all, that depends. Could you provide more details about your library and what you plan to do with the reads?

      Comment

      • odoyle81
        Member
        • Aug 2011
        • 31

        #4
        We have a couple different projects:

        1. A population of mutants segregating for a phenotype... we want to locate the deletion, so I want to use one of these programs to do that (pindel, svseq, cortex (just learned about that one today)).
        2. We also want to do a reference alignment with another sample.. I was going to use BWA..

        We have Illumina 100bp PE reads.

        If I trim then quality filter, I keep 74% of reads
        If I just quality filter then I keep 70% of reads
        I was trimming to 89bp and quality filter q=20 p=80

        I thought it was really important to QC the reads before further processing?
        Last edited by odoyle81; 03-09-2012, 09:42 AM.

        Comment

        • pbluescript
          Senior Member
          • Nov 2009
          • 224

          #5
          Originally posted by odoyle81 View Post
          I thought it was really important to QC the reads before further processing?
          It is important to QC the reads, but it might not be necessary to trim the reads based on quality. Most aligners are aware of the quality of the bases and will take that into account when mapping. BWA is a good example since it can soft clip reads. If you do trim off low quality tails with PE data and map with BWA, you might even get worse results than if you just map the reads without trimming them. BWA can have a hard time determining the size distribution of the insert if you do quality trimming.

          Comment

          • odoyle81
            Member
            • Aug 2011
            • 31

            #6
            Thanks for that perspective!
            So after quality filtering, I will probably lose some of the reads from pairs. I've been reading about how remove the orphaned reads. Does everyone do this with custom scripts or is there a tool for this?

            Comment

            • ETHANol
              Senior Member
              • Feb 2010
              • 308

              #7
              Two things:
              1) The best way to get an idea of the best way to trim is to trim a couple different ways and see which aligns the best. While it is probably too time consuming to do this for all data sets, it's informative to kind of get an idea what things are doing.
              2) You might want to take a look at Trimmomatic. It is way faster than the FASTX Toolkit.
              --------------
              Ethan

              Comment

              • Zam
                Member
                • Apr 2010
                • 51

                #8
                Just a comment for odoyle81 about using Cortex - you should not need to pre-quality filter the reads for Cortex (unless you have massive massive coverage, in which case it will do no harm I guess). Just use the inbuilt error-cleaning mechanisms, and it should work just fine.

                Comment

                • vivi7
                  Member
                  • Mar 2014
                  • 10

                  #9
                  fastx_barcodes_splitter issue with the run

                  Hi,

                  I saw the post and I hope maybe some of you can help me

                  When I run fastx_barcode_splitter.pl with this script

                  /usr/local/bin/fastx_barcode_splitter.pl --bcfile ./Barcodes9nt.txt --prefix ./Rescued9nt --suffix .fq –bol

                  In the command line it looks like is running (no error message, no > sign), see attachment for screenshot.
                  However is not running at all, I can see with top that is not using any memory or CPUs and it has been ‘running’ for days on a very small file without producing any results.
                  The input file is in the STDIN folder as supposed to.

                  I would be very grateful if you could suggest what might be wrong.
                  Thanks in advance
                  Vivi

                  Comment

                  • odoyle81
                    Member
                    • Aug 2011
                    • 31

                    #10
                    Unfortunately I can't advice on why that isn't working for you, but I would recommend you just write your own script, or try to find one on the internet - most of the FASTX tools are out of date and not updated and don't work that well. For example, this looks like one that might work:

                    If you google, you should be able to find a bunch, as it is a pretty simple operation that needs to be done.
                    I can't offer much support, and maybe this isn't the most efficient way to do it (it is kinda slow), but the one I wrote is here:

                    In any case, learning to write your own will allow you to adapt to your specific needs.

                    hope that helps.

                    Comment

                    • vivi7
                      Member
                      • Mar 2014
                      • 10

                      #11
                      Thank you very much!!!

                      Comment

                      • luofastx
                        Junior Member
                        • Oct 2014
                        • 2

                        #12
                        fastx_trimmer: input file (/BJPROJ/Data_production/HiseqX/140807_ST-E00142_0036_BH04CYALXX/DHE00358/DHE00358_L5_2.fq.gz) has unknown file format (not FASTA or FASTQ), first character = ^_ (31) ????

                        Comment

                        • luofastx
                          Junior Member
                          • Oct 2014
                          • 2

                          #13
                          if fastx-toolkit can read gzip file?

                          fastx_trimmer: input file (/BJPROJ/Data_production/HiseqX/140807_ST-E00142_0036_BH04CYALXX/DHE00358/DHE00358_L5_2.fq.gz) has unknown file format (not FASTA or FASTQ), first character = ^_ (31)
                          what is the reason to this error?

                          Comment

                          • GenoMax
                            Senior Member
                            • Feb 2008
                            • 7142

                            #14
                            See: https://www.biostars.org/p/83237/

                            Comment

                            Latest Articles

                            Collapse

                            • SEQadmin2
                              Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                              by SEQadmin2



                              CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                              Despite this, “CRISPR helped turn genome editing from a specialized technique into
                              ...
                              07-31-2026, 11:01 AM
                            • SEQadmin2
                              Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                              by SEQadmin2


                              Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                              The systematic characterization of the human proteome has
                              ...
                              07-20-2026, 11:48 AM

                            ad_right_rmr

                            Collapse

                            News

                            Collapse

                            Topics Statistics Last Post
                            Started by SEQadmin2, Yesterday, 10:05 AM
                            0 responses
                            8 views
                            0 reactions
                            Last Post SEQadmin2  
                            Started by SEQadmin2, 08-13-2026, 12:22 PM
                            0 responses
                            32 views
                            0 reactions
                            Last Post SEQadmin2  
                            Started by SEQadmin2, 08-11-2026, 10:35 AM
                            0 responses
                            27 views
                            0 reactions
                            Last Post SEQadmin2  
                            Started by SEQadmin2, 08-06-2026, 07:41 AM
                            0 responses
                            38 views
                            0 reactions
                            Last Post SEQadmin2  
                            Working...