Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • cllorens
    Member
    • Nov 2011
    • 44

    May I a question about fastqs and the script fq_all2std?

    Hi Guys

    I testing distinct conversors from solexa fastq to standard sanger but have a couple of naive questions to do om which i am unclear

    I think that as illumina 1.8+ encoding scheme encodes that Phred-score by adding 33 to the score there is no need of conversion as this is sanger too

    Can anyone tell me if I am correct??

    As for illumina 1.5+ and 1.8+

    I donwloaded the fq_all2std script from maq and because in the source file the parameter in for loop aare -64 to 64 and the remaining parameters wherever for the conversion is again 64 i think this file is for illumina 1.3+
    Am i right here??

    Additonally if want to this script to convert from illumina 1.5+ to sanger is it enough to just change 64 wherever noted for 66?? Is that right? I mean is it just as simple as it seems or i am missing something in this last step?

    thank you in advance
  • maubp
    Peter (Biopython etc)
    • Jul 2009
    • 1544

    #2
    Originally posted by cllorens View Post
    I think that as illumina 1.8+ encoding scheme encodes that Phred-score by adding 33 to the score there is no need of conversion as this is sanger too

    Can anyone tell me if I am correct??
    Yes, that part is correct.

    Have you read http://dx.doi.org/10.1093/nar/gkp1137 and http://en.wikipedia.org/wiki/FASTQ_format yet?

    Comment

    • cllorens
      Member
      • Nov 2011
      • 44

      #3
      Hi Peter,
      Yes I saw the wikipedia site you note and some other information (no the NAR paper thank for the reference, I´ll read it with pleasure) and I think i am clear about the differences although in the first question (that you answered me) was asked as sometimes is good to have confirmation about thinks you are clear but not sure at all. My two other doubts are more properly about the script fq_all2std and if about i am right about if it is oriented to illumina 1.3+ (when talking about conversion illumina to sanger there are other functions) and if the few amends in the code I suggest are enough to have these illumina to sanger functions adapted to 1.5+. Based on what i read I think so but again it is good if someone can confirm should i am right or wrong. Perhaps these two questions are more targeted to the original developer of this script I took from Maq. I am not sure but I think is Nilshommer.
      CArlos

      Comment

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

        #4
        If you can read Perl it is fairly clear, I'm quoting from this copy http://maq.sourceforge.net/fq_all2std.pl

        This bit does the FASTQ conversion:
        Code:
        sub sol2std {
          my $max = 0;
          while (<>) {
        	if (/^@/) {
        	  print;
        	  $_ = <>; print; $_ = <>; $_ = <>;
        	  my @t = split('', $_);
        	  my $qual = '';
        	  $qual .= $conv_table[ord($_)] for (@t);
        	  print "+\n$qual\n";
        	}
          }
        }
        And further up here is the definition of the conversation table:
        Code:
        # Solexa->Sanger quality conversion table
        my @conv_table;
        for (-64..64) {
          $conv_table[$_+64] = chr(int(33 + 10*log(1+10**($_/10.0))/log(10)+.499));
        }
        All those logs are implementing the Solexa score to PHRED score conversion (see our NAR paper for the formula and citations, or the wikipedia page). That means this script converts the really old Solexa FASTQ encoding (which can have negative scores) into the Sanger PHRED encoding (which does not have negative scores).

        Unless you are dealing with really really old data, you shouldn't be using this conversion.

        Comment

        • cllorens
          Member
          • Nov 2011
          • 44

          #5
          That is the point in part of my question Peter. I known that is a conversor for old data. I found however interesting the script not for my current data but under the idea have at hand (just in case if need it) a conversor for several previous illumina formats.

          Then this script was done for the early solexa (ASCII characters with range 59–126 and off-set 64) isn´t? But if several amends are done to change the parameters the script should also valid for converting 1.3+ and 1.5+ (again if needed) as SANGER has not changed. That was the remainder of my question.

          Ah, thank you for the reference (I read it) older but quite instructive.

          Comment

          Latest Articles

          Collapse

          • 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, 07-02-2026, 11:08 AM
          0 responses
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-30-2026, 05:37 AM
          0 responses
          23 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-26-2026, 11:10 AM
          0 responses
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-17-2026, 06:09 AM
          0 responses
          55 views
          0 reactions
          Last Post SEQadmin2  
          Working...