Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • inesdesantiago
    Member
    • Jan 2009
    • 44

    #1

    What is the difference between sol2std and sol2sanger

    Hello, does any one know what is the difference between these two maq scripts (both available in the latest maq version 0.7.1):

    sol2sanger
    sol2sanger convert Solexa FASTQ to standard/Sanger FASTQ
    Usage: maq sol2sanger in.fastq out.fastq


    sol2std
    sol2std Convert Solexa/Illumina FastQ to the standard/Sanger FASTQ
    Usage: pearl fq_all2std.pl sol2std in.txt > out.fastq


    I tried both scripts with the file "_sequence.txt" that I got from the Illumina. Here are the results for the first sequence:

    s_sequence.txt
    @GAII01_3:8:1:136:1560
    GAGTTCAATTTTGTTAATTCCTTTCTGAAAATAGAT
    +GAII01_3:8:1:136:1560
    WWWWWWWWWWWWWWWWWWWWWWWWWWLWWWRRRIRO


    sol2sanger_s_sequence.fastq
    @GAII01_3:8:1:136:1560
    GAGTTCAATTTTGTTAATTCCTTTCTGAAAATAGAT
    +
    88888888888888888888888888-888333+30


    sol2std_s_sequence.fastq
    @GAII01_3:8:1:136:1560
    GAGTTCAATTTTGTTAATTCCTTTCTGAAAATAGAT
    +
    88888888888888888888888888-888333+30!


    The only difference between the fastq file generated by sol2sanger and sol2std scripts is that the sol2std writes a "!" in the end of the 4th line..
    I checked, it does this in every 4th line of the file..
    What does this means?
    What script is the best?

    Thanks!
    Ines de Santiago
  • regyre
    Member
    • Jan 2009
    • 11

    #2
    Hi,

    If you run the following command:
    Code:
    perl fq_all2std.pl instruction
    You get this output:
    Code:
    FASTQ format is first used in the Sanger Institute, and therefore
    we take the Sanger specification as the standard FASTQ. Although
    Solexa/Illumina reads file looks pretty much like the standard
    FASTQ, they are different in that the qualities are scaled
    differently. In the quality string, if you can see a character
    with its ASCII code higher than 90, probably your file is in the
    Solexa/Illumina format.
    
    Sometimes we also use an integer, instead of a single character,
    to explicitly show the qualities. In that case, negative
    qualities indicates that Solexa/Illumina qualities are used.
    You might find these two threads informative as well:

    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc


    Any topic/question that does not fit into the subcategories below. If you're unsure of where to put something, ask in here!


    Well, to answer your question, both should provide the same output. However as far as I can see, the ! is not introduced on purpose, looks more like a bug to me.

    I've "annotated" the perl sol2std function of the fq_all2std.pl script (maq 0.7.1) below:

    Code:
    sub sol2std {
      my $max = 0;
      while (<>) {
    	if (/^@/) {
    	  
              # print the first entry line
              print;
    	 
              # print the seq line, skip the second ID line and 
              # get the content of the quality line
    
    	  # the actual problem is there, the carriage return 
              # char is captured as well	  
              $_ = <>; print; $_ = <>; $_ = <>;
              
              # my solution is to add this line:
              #  chomp;	  
              my @t = split('', $_);
    
              # here the at array contains all the quality 
              # chars + a carriage return 
     	  my $qual = '';
    
              # here the additional carriage return will be converted 
              # as well; therefore the ! which is introduced
    	  $qual .= $conv_table[ord($_)] for (@t);
    	  print "+\n$qual\n";
    	}
      }
    }

    I hope lh3 will read this thread and can comment on it.

    Therefore, I would recommand to use this for the time being
    Code:
    maq sol2sanger
    Best,

    Comment

    • inesdesantiago
      Member
      • Jan 2009
      • 44

      #3
      thanks very much!

      Comment

      • malachig
        Senior Member
        • Aug 2010
        • 117

        #4
        I have also encountered the trailing '!' produced by the perl sol2std function of the fq_all2std.pl script (maq 0.7.1). This causes an exception if the subsequent fastq file is fed into hmmSplicer. Thanks for the advice on using sol2sanger instead.

        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, 08-06-2026, 07:41 AM
        0 responses
        15 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 08-03-2026, 10:13 AM
        0 responses
        31 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-31-2026, 02:55 AM
        0 responses
        41 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-24-2026, 12:17 PM
        0 responses
        26 views
        0 reactions
        Last Post SEQadmin2  
        Working...