Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • gene_x
    Senior Member
    • May 2010
    • 108

    Why a sequence has 4 lines in fastq format

    As you know, the general format for fastq files have four lines:
    1st: @ with optional sequence identifier
    2nd: sequence
    3rd: + with optional sequence identifier
    4th: quality score for sequence in 2nd line

    The 3rd line doesn't really convey any useful information... do you know why is it included?
  • dkatzel
    Junior Member
    • Mar 2013
    • 5

    #2
    the format doesn't actually require 4 lines. Valid fastq files can be more than 4 lines with the sequence and quality values spread of several lines each. The quality header is used to tell you "there's no more sequence data left". Also since there are several quality encodings, it would be hard to tell where the quality starts otherwise if you didn't know the quality encoding.

    Comment

    • JohnN
      Member
      • Jan 2011
      • 31

      #3
      Originally posted by gene_x View Post
      As you know, the general format for fastq files have four lines:
      1st: @ with optional sequence identifier
      2nd: sequence
      3rd: + with optional sequence identifier
      4th: quality score for sequence in 2nd line

      The 3rd line doesn't really convey any useful information... do you know why is it included?
      To make it easy for lazy programmers like me to know when bases have stopped and quality scores have started? Especially when line feeds can't be trusted?

      Comment

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

        #4
        FASTQ was invented a long time ago, and was initially used with longer Sanger reads where line wrapping was a nice feature.

        See also http://dx.doi.org/10.1093/nar/gkp1137

        Comment

        • gene_x
          Senior Member
          • May 2010
          • 108

          #5
          Originally posted by maubp View Post
          FASTQ was invented a long time ago, and was initially used with longer Sanger reads where line wrapping was a nice feature.

          See also http://dx.doi.org/10.1093/nar/gkp1137
          What is this line wrap? Is it something like \n ?

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
            by SEQadmin2



            Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
            ...
            07-09-2026, 11:10 AM
          • SEQadmin2
            Cancer Drug Resistance: The Lingering Barrier to Rising Survival
            by SEQadmin2



            Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

            There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
            07-08-2026, 05:17 AM
          • 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

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 07-13-2026, 10:26 AM
          0 responses
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-09-2026, 10:04 AM
          0 responses
          32 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-08-2026, 10:08 AM
          0 responses
          20 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-07-2026, 11:05 AM
          0 responses
          34 views
          0 reactions
          Last Post SEQadmin2  
          Working...