Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SDPA_Pet
    Senior Member
    • Apr 2013
    • 222

    #1

    What is interleaved-paired-end file

    Hello, I am trying to use Megahit to assemble my Illumina HiSeq reads. Here is the Megahit parameter:

    ./megahit [options] {-1 <pe_1.fq> -2 <pe_2.fq> | --12 <pe12.fq> | -r <se.fq>}
    ```

    `-1/-2`, `--12` and `-r` are parameters for inputting paired-end, interleaved-paired-end and single-end files. They accept files in fasta (*.fasta*, *.fa*, *.fna*) or fastq (*.fastq*, *.fq*) formats. They also supports gzip files (with *.gz* extensions) and bzip2 files (with *.bz2* extensions). Please run `./megahit -h` for detailed usage message.

    What does "interleaved-paried-end" file mean? I have joined my R1 and R2 fastq file into one file because they have overlaps. I am not sure if I should use "--12" (for interleaved) or "-r" parameter (for single end files)

    Thanks
  • mastal
    Senior Member
    • Mar 2009
    • 666

    #2
    Interleaved files are when the R1 and R2 reads are combined in one file,
    so that for each read pair, the R1 read in the file comes immediately before
    the R2 read, followed by the R1 read for the next read pair, and so on.

    I think if you have merged the reads together they are probably best described as single end reads.

    Comment

    • SDPA_Pet
      Senior Member
      • Apr 2013
      • 222

      #3
      Hi Thanks,

      Can you paste some sequences from interleaved file?

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        I have joined my R1 and R2 fastq file into one file because they have overlaps.
        If you joined them end-to-end then that does not account for the actual sequence overlap. If R1/R2 reads actually overlap then you need to use bbmerge.sh from BBMap or FLASH or similar software so the two reads are combined (taking into account the sequence overlap) into a single long read.

        An example of interleaved PE reads would be like this

        Code:
        @M10991:61:000000000-A7EML:1:1101:14011:1001 1:N:0:28
        NGCTCCTAGGTCGGCATGATGGGGGAAGGAGAGCATGGGAAGAAATGAGAGAGTAGCAA
        +
        #8BCCGGGGGFEFECFGGGGGGGGG@;FFGGGEG@FF<EE<@FFC,CEGCCGGFF<FGF
        @M10991:61:000000000-A7EML:1:1101:14011:1001 2:N:0:28
        NGCTCCTAGGTCGGCATGACGCTAGCTACGATCGACTACGCTAGCATCGAGAGTAGCAA
        +
        #8BCCGGGGGFEFECFGGGGGGGGG@;FFGGGEG@FF<EE<@FFC,CEGCCGGFF<FGF
        @M10991:61:000000000-A7EML:1:1201:15411:3101 1:N:0:28
        NGCTCCTAGGTCGGCATGATGGGGGAAGGAGAGCATGGGAAGAAATGAGAGAGTAGCAA
        +
        #8BCCGGGGGFEFECFGGGGGGGGG@;FFGGGEG@FF<EE<@FFC,CEGCCGGFF<FGF
        @M10991:61:000000000-A7EML:1:1201:15411:3101 2:N:0:28
        CGCTAGCTACGACTCGACGACAGCGAACACGCGATCGATCGGAAATGAGAGAGTAGCAA
        +
        #8BCCGGGGGFEFECFGGGGGGGGG@;FFGGGEG@FF<EE<@FFC,CEGCCGGFF<FGF

        Comment

        • SDPA_Pet
          Senior Member
          • Apr 2013
          • 222

          #5
          Hi GenoMax,

          So, interleaved PE is kind of cancatenating the two file together, as we do for fasta file in linux (e.g. cat *.fna > total.fna)? -- Does this mean "joined them end-to-end then that does not account for the actual sequence overlap"

          Am I right?

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Not quite. As you see from example above the arrangement is NOT like (which would be equivalent to)
            Code:
            cat R1.fastq R2.fastq > combined.fastq
            
            giving you
            
            read1_R1
            read2_R1
            read3_R1
            read1_R2
            read2_R2
            read3_R2
            but rather

            Code:
            read1_R1
            read1_R2
            read2_R1
            read2_R2
            read3_R1
            read3_R2

            It your reads overlap in the middle (meaning the number of cycles of sequencing is > (insert length/2)) then you would basically get

            Code:
            R1 ---------------------------->
                                 <----------------------------- R2
            After using bbmerge you will get (== represents overlap)

            Merged read -------------------------============----------------------------
            Last edited by GenoMax; 10-05-2016, 05:34 AM.

            Comment

            • SDPA_Pet
              Senior Member
              • Apr 2013
              • 222

              #7
              Hi, Thanks for the help.

              I have never seen the interleaved fastq file before. I have business with several sequencing centers. For all my illumina data, they always give me R1 and R2 files.

              I'm not sure the advantage of interleaved fastq file, because one sample is one file? Or it is generated by other sequencing platform.

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #8
                Interleaved files ensure that all R1/R2 reads are next to each other and you would not get in a situation where the reads would be out of sync (e.g. for independent files that may be trimmed independently/incorrectly).

                That said not many places uses these. JGI (where @Brian works) does and that is one of the reasons why BBMap has support for this format.

                Comment

                • SDPA_Pet
                  Senior Member
                  • Apr 2013
                  • 222

                  #9
                  Hi GenoMax,

                  PS, I have a question about bbMAP. I just installed it. I don't know why when I run some scripts. For example, "reformat.sh". I have to be in the bbmap folder and type ./reformat.sh. Otherwise, the system tells me "command is not found". I am using Unbuntu 64X and I have add the bbMap path in the environment.

                  Do you know why is this.

                  Comment

                  • GenoMax
                    Senior Member
                    • Feb 2008
                    • 7142

                    #10
                    If you added bbmap shell scripts directory (make sure this directory is also added) to your $PATH then the scripts should work from anywhere on the system.

                    Comment

                    • SDPA_Pet
                      Senior Member
                      • Apr 2013
                      • 222

                      #11
                      I only have one directory which is /bbmap/? What else do I need?

                      Comment

                      • GenoMax
                        Senior Member
                        • Feb 2008
                        • 7142

                        #12
                        If the shell scripts are in that directory then that is all you should need. Ensure that all scripts have execute permissions (chmod a+x bbmap/*.sh).

                        Comment

                        • bastianwur
                          Member
                          • Feb 2014
                          • 98

                          #13
                          If you're going to merge the fastq files with a custom script: Make sure to not put read-1 and read-2 in the wrong order, else the assembler might discard them (at least IDBA_UD does; which makes sense; the assembler sees the second read, without having the first read and therefore discards it; then the first read doesn't have the second, and so on).

                          (oh, is the 300 sec waiting time between posts really still necessary? It's quite annoying)

                          Comment

                          Latest Articles

                          Collapse

                          • 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
                          • SEQadmin2
                            New Genomics Technologies Take Aim at Long-Standing Limits
                            by SEQadmin2


                            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                            ...
                            09-28-2026, 10:25 AM

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by SEQadmin2, Yesterday, 11:13 AM
                          0 responses
                          21 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, Yesterday, 10:48 AM
                          0 responses
                          18 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 10-15-2026, 10:52 AM
                          0 responses
                          36 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 10-14-2026, 05:39 AM
                          0 responses
                          42 views
                          0 reactions
                          Last Post SEQadmin2  
                          Working...