Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trickytank
    Member
    • Dec 2010
    • 19

    #1

    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]
  • kmcarr
    Senior Member
    • May 2008
    • 1181

    #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

    • trickytank
      Member
      • Dec 2010
      • 19

      #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

      • sklages
        Senior Member
        • May 2008
        • 628

        #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

        • 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...
          Yesterday, 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
        29 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-28-2026, 09:51 AM
        0 responses
        20 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 11:13 AM
        0 responses
        71 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...