Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lpn
    Member
    • May 2011
    • 17

    #1

    converting CASAVA 1.8 qual scores

    Does anybody have a tested program to convert Illumina CASAVA 1.8 qual scores (Phred+33) to the previous version Illumina 1.5+ (Phred+64)?
    Last edited by lpn; 03-02-2012, 10:19 AM.
  • gringer
    David Eccles (gringer)
    • May 2011
    • 845

    #2
    Given that you're asking for a "tested program", I presume that the Galaxy tool will be good enough:

    Galaxy is a community-driven web-based analysis platform for life science research.

    Comment

    • lpn
      Member
      • May 2011
      • 17

      #3
      What about something that I can run in the command lane?

      Comment

      • gringer
        David Eccles (gringer)
        • May 2011
        • 845

        #4
        What about something that I can run in the command lene?
        Why do you need a Phred+64 offset and/or the command line?

        Most programs should work with Phred+33 (e.g. append '-Q 33' to the fastx command line).

        Also, Biopython can read files as one format and write them as another:



        Here's a quick python conversion script, derived from an example on that page:

        Code:
        #!/usr/bin/python
        from Bio import SeqIO
        SeqIO.convert("input.fastq", "fastq-sanger", "output.fastq", "fastq-illumina")
        The hashbang isn't strictly needed, and the import is obvious, but it seemed too small with just a single line of code.

        Comment

        • Jon_Keats
          Senior Member
          • Mar 2010
          • 279

          #5
          Gringer thanks for the "-Q 33" heads up for FastX. You solved a major headache of mine. Now only if the Illumina mate-pairs we made were not 88% duplicates... As Homer would say, Doh....

          Comment

          • maubp
            Peter (Biopython etc)
            • Jul 2009
            • 1544

            #6
            If you are still looking for a command line tool for the job, EMBOSS seqret can do this (and the reverse).

            Comment

            • lpn
              Member
              • May 2011
              • 17

              #7
              Originally posted by gringer View Post
              Why do you need a Phred+64 offset and/or the command line?
              Because tophat doesn't seem to handle well Phred+33 (CASAVA 1.8), but works with Phred+64 (CASAVA 1.5+).

              Originally posted by gringer View Post
              Most programs should work with Phred+33 (e.g. append '-Q 33' to the fastx command line).



              Also, Biopython can read files as one format and write them as another:



              Here's a quick python conversion script, derived from an example on that page:

              Code:
              #!/usr/bin/python
              from Bio import SeqIO
              SeqIO.convert("input.fastq", "fastq-sanger", "output.fastq", "fastq-illumina")
              The hashbang isn't strictly needed, and the import is obvious, but it seemed too small with just a single line of code.
              Thanks a lot!

              Comment

              • gringer
                David Eccles (gringer)
                • May 2011
                • 845

                #8
                Originally posted by lpn View Post
                Because tophat doesn't seem to handle well Phred+33 (CASAVA 1.8), but works with Phred+64 (CASAVA 1.5+).
                This is interesting and doesn't match my experience with tophat on recent Illumina runs. Do you have any "--solexa1.3-quals" options on your command line? Removing that should stop bowtie from using Phred+64, and go back to the default Phred+33.

                There's also the Bowtie "--phred33-quals" option, which I guess you could add to tophat's bowtie call to force this:
                Code:
                nano $(which tophat)

                Comment

                • Jon_Keats
                  Senior Member
                  • Mar 2010
                  • 279

                  #9
                  As gringer said if you DO NOT specify a qual flag it will work fine. You are not the only person with HiSeq data which finally encodes the quality values in the standard sanger format for which nearly all programs expect by by default. The flag, for most today, is just for processing legacy datasets.

                  Comment

                  • lpn
                    Member
                    • May 2011
                    • 17

                    #10
                    Originally posted by gringer View Post
                    This is interesting and doesn't match my experience with tophat on recent Illumina runs. Do you have any "--solexa1.3-quals" options on your command line? Removing that should stop bowtie from using Phred+64, and go back to the default Phred+33.

                    There's also the Bowtie "--phred33-quals" option, which I guess you could add to tophat's bowtie call to force this:
                    Code:
                    nano $(which tophat)
                    That works, but subsequent analysis produces strange results.
                    Last edited by lpn; 03-03-2012, 07:53 AM.

                    Comment

                    • gringer
                      David Eccles (gringer)
                      • May 2011
                      • 845

                      #11
                      Originally posted by lpn View Post
                      That works, but subsequent analysis produces strange results.
                      What works? I suggested two options (not counting the python code). One was to remove --solexa1.3-quals from the tophat command line, and the other was to modify the bowtie parameters. I was deliberately vague about the second option because you need to know what you're doing before you do it (e.g. change the bowtie options everywhere bowtie is called, and change the tophat code that expects Phred+64 output).
                      Last edited by gringer; 03-03-2012, 11:57 AM.

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