Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • efoss
    Member
    • Jul 2011
    • 98

    #1

    quality scores in fastq files extracted from sea files

    I extracted some fastq files from sra files. Here are some lines from one of them:

    Code:
    @SRR034473.2 X8097_104:6:1:881:909 length=39
    TCAAAAAATGAAGAAGAAGAAAAAAATGAAAAGGGTGCA
    +SRR034473.2 X8097_104:6:1:881:909 length=39
    CC<7C<<CCC<<C<7C<?CC<<,;,7CC6:?0??:(??.
    @SRR034473.3 X8097_104:6:1:900:876 length=39
    TGAAGTTCTTGTGGTTCAACCAAGTGTATTGCCAGTACT
    +SRR034473.3 X8097_104:6:1:900:876 length=39
    C<?<CCCC77CCC?4?C<4C<<$C,C47?C<??7*<(44
    @SRR034473.4 X8097_104:6:1:905:908 length=39
    TTGATGTGACTTGAAGGCTTCATCTCCTTTTTAGTGATT
    +SRR034473.4 X8097_104:6:1:905:908 length=39
    CCCCCCCCACCCA??CAACAA-CCCA?ACCAA6<A7+??
    In trying to figure out what quality scores are being used in a fastq file, I usually look for strings of Bs at the ends of reads (telling me that it is the old Illumina scoring system) or strings of #s at the end of reads (telling me that it is the normal Sanger scoring system). But in these NCBI-created fastq files, I don't see any #s or Bs. I have three questions:

    1. Why are there no #s or Bs?
    2. How can I figure out what scoring system was used here?
    3. With what I consider a more normal fastq file (with lines like those pasted below), what is the best way to figure out what scoring system is being used?

    Code:
    @SEQ_ID
    GATTTGGGGTTCAAAGCAGTATCGATCAAATAGTAAATCCATTTGTTCAACTCACAGTTT
    +
    !''*((((***+))%%%++)(%%%%).1***-+*''))**55CCF>>>>>>CCCCCCC65
    For what it's worth, the Wikipedia page on the fastq file format implies that quality scores in NCBI-converted fastq files are automatically converted to the Sanger format.

    Thanks.

    Eric
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    1. Maybe they quality controlled prior to uploading?
    2. Look for numbers in the quality score line. If it has numbers, it's Phred+33
    3. As above, look for numbers in the quality score. You could look for symbols too, but I always forget which ones come before the capital letters in ASCII and which ones are between the capital and lower case letters. Phred+64 and Solexa scores will look similar, except the latter can contain =.

    Comment

    • winsettz
      Member
      • Sep 2012
      • 91

      #3
      I'm sure you saw this on the SRA website, but for reference

      Fastq acceptable to SRA

      fastq has been narrowly defined with the goal of minimizing submission failures. However, this narrow definition may imply interpretation and conversion by the submitter.

      Fastq produced by Illumina pipelines is supported.

      The following terms are defined in general:

      READNAME = Text string terminated by white space.

      BASES::= [ACGTNactgn.]+

      QUALITIES ::= [0-9]+ | <quality>\s[0-9]+

      or

      [\!\"\#\$\%\&\'\(\)\*\+,\-\.\/0-9:;<=>\?\@A-I]+

      or

      [\@A-Z\[\\\]\^_`a-h]+

      The permissible fastq format is simply:

      @READNAME
      BASES
      +[READNAME]
      QUALITIES
      where each instance of READNAME, BASES, QUALITIES are separated newline.

      The QUALITIES string can be whitespace-separated numeric phred scores or an ascii string of the phred scores with the ascii character value = phred score + an offset constant used to place the ascii characters in the printable character range. There are 2 predominant offsets: 33 (0 = !) and 64 (0=@).
      A "second opinion" of sorts might be gained by feeding your fastqs into fastqc and see what it thinks.
      (http://www.bioinformatics.babraham.a...ojects/fastqc/)

      Edit:

      And
      http://maq.sourceforge.net/fastq.shtml
      ...Although Solexa/Illumina read file looks pretty much like 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.
      Last edited by winsettz; 02-01-2013, 08:29 AM.

      Comment

      • efoss
        Member
        • Jul 2011
        • 98

        #4
        Thanks very much for the help. These suggestions are really useful.

        Best wishes,

        Eric

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by SEQadmin2




          NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
          Today, 06:46 AM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 10-28-2026, 09:57 AM
        0 responses
        22 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-28-2026, 09:51 AM
        0 responses
        15 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 11:13 AM
        0 responses
        68 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        48 views
        0 reactions
        Last Post SEQadmin2  
        Working...