Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Illumina paired-end names

    I've had these reads in Fastq format from an Illumina machine but noticed the paired end names are not ending in the usual /1 and /2, but instead /1 and /3. Picard doesn't handle these properly. I want to check this doesn't have another meaning I should know about.

    Thanks.

    First end:
    Code:
    @SequenceIdentifier#0/1
    [base calls]
    +SequenceIdentifier#0/1
    [quality scores]
    second end:
    Code:
    @SequenceIdentifier#0/3
    [base calls]
    +SequenceIdentifier#0/3
    [quality scores]

  • #2
    These FASTQ files were probably not produced directly by the Illumina software, perhaps they were output by srf2fastq. srf2fastq records the read segment number after the slash. If the protocol used was a standard illumina index recipe then read 1 is segment 1, the index read is segment 2 and read 2 is segment 3. Alternatively the processing pipeline may be configured to discard the last base(s) of the reads; in this case the saved part of read 1 is segment 1, the discarded part of read 1 is segment 2 and then the saved part of read 2 is segment 3. As you can see in both of these situations the /3 will be added to what you are calling read 2.

    You can fix these names with sed:

    Code:
    # sed -i.bak '/^[@\+]<unique part of your sequence identifier>/ s/\/3$/\/2/' filename.fastq
    This will replace the 3 with a 2 at the end of your sequence identifier lines. It will save a copy of the original file as filename.fastq.bak

    Comment


    • #3
      Hey thanks for that. Thanks for the explanation.

      I wrote something myself earlier to do a similar thing, except I was also checking things were as I expected:
      Code:
      #!/usr/bin/perl -w
      
      use warnings;
      
      =pod
      
      This script fixes the second read pair names in FastQ files, from 
      /3 to /2. 
      
      Usage: 
      cat input-fastq.txt | perl correct-readpairs.pl > output.fq 
      
      =cut
      
      $row = 1;
      while(<STDIN>) { 
              if($row % 2) { # only every first and third row to act on.
                       if(! s/\/3$/\/2/o) {
                              die "We have not considered the possibility of the following line:\n$_";
                      }
              }
              print $_;
              $row++;
      }

      Comment


      • #4
        Originally posted by trickytank View Post
        I've had these reads in Fastq format from an Illumina machine but noticed the paired end names are not ending in the usual /1 and /2, but instead /1 and /3. Picard doesn't handle these properly. I want to check this doesn't have another meaning I should know about.

        Thanks.

        First end:
        Code:
        @SequenceIdentifier#0/1
        [base calls]
        +SequenceIdentifier#0/1
        [quality scores]
        second end:
        Code:
        @SequenceIdentifier#0/3
        [base calls]
        +SequenceIdentifier#0/3
        [quality scores]
        This was probably a run with an index read; in this case the index read gets the number "2", the pairs are "1" and "3".

        hth,
        Sven

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Essential Discoveries and Tools in Epitranscriptomics
          by seqadmin




          The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
          04-22-2024, 07:01 AM
        • seqadmin
          Current Approaches to Protein Sequencing
          by seqadmin


          Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
          04-04-2024, 04:25 PM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 11:49 AM
        0 responses
        15 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-24-2024, 08:47 AM
        0 responses
        16 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-11-2024, 12:08 PM
        0 responses
        62 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 10:19 PM
        0 responses
        60 views
        0 likes
        Last Post seqadmin  
        Working...
        X