This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Combine paired-end fastq files

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

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

3 answers

Use a program from BBMap suite.

reformat.sh in1=R1.fq.gz in2=R2.fq.gz out=interleaved.fq.gz

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

you can use this software Flash2

Log in to answer this question.