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
                        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, 10:52 AM
                      0 responses
                      11 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-14-2026, 05:39 AM
                      0 responses
                      19 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-13-2026, 09:56 AM
                      0 responses
                      17 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-09-2026, 11:14 AM
                      0 responses
                      27 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...