Combine paired-end fastq files
3
0
Entering edit mode
5.6 years ago
112498262 ▴ 10

I am trying to use SCARPA for scaffolding. I have been given two separate paired-end fastq files, one containing each forward read and the second containing the corresponding reverse reads. SCARPA requires the read data to be in a single fastq format, whereby the forward and reverse read of each pair are consecutive in the file.

How do I merge my two fastq files to one file in the required format?

Thanks :)

next-gen-sequencing • 16k views
ADD COMMENT
1
Entering edit mode

That is called an interleaved fastq, so googling that should bring up some ideas.

ADD REPLY
0
Entering edit mode

Thank you so much. I used interleave-fastq, it worked a charm :)

ADD REPLY
5
Entering edit mode
5.6 years ago
GenoMax 147k

Use a program from BBMap suite.

reformat.sh in1=R1.fq.gz in2=R2.fq.gz out=interleaved.fq.gz
ADD COMMENT
0
Entering edit mode
4 months ago
ChillarAnand ▴ 80

We can use seqfu tool to interleave them.

Install anaconda and then run

$ conda install -c conda-forge -c bioconda "seqfu>1.0"

To interleave them, run

$ seqfu interleave -1 SRR_1.fastq.gz -2 SRR_2.fastq.gz > SRR.fastq
ADD COMMENT
0
Entering edit mode
4 months ago
xiaoguang ▴ 160

you can use this software Flash2

ADD COMMENT

Login before adding your answer.

Traffic: 1313 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6