Merging two fastq files
2
4
Entering edit mode
5.2 years ago

I used two lanes on a flow cell for the same library. I have the fastq files now, and want to merge the data together for each duplicate sample. At what point of the downstream analysis should I merge the two, and what command do I use?

ChIP-Seq fastq merge two lanes • 15k views
ADD COMMENT
5
Entering edit mode
5.2 years ago

You can combine them with "cat". For example, if you have paired-end reads, you'll have 4 files, something like this:

read1_L1.fq.gz
read2_L1.fq.gz
read1_L2.fq.gz
read2_L2.fq.gz

You would combine them like this:

cat read1_L1.fq.gz read1_L2.fq.gz > read1_combined.fq.gz
cat read2_L1.fq.gz read2_L2.fq.gz > read2_combined.fq.gz

Do this as early as possible. If your sequences are single-ended then it's even easier.

ADD COMMENT
1
Entering edit mode

I think you probably meant:

cat read1_L1.fq.gz read1_L2.fq.gz > read1_combined.fq.gz
cat read2_L1.fq.gz read2_L2.fq.gz > read2_combined.fq.gz
ADD REPLY
0
Entering edit mode

Good catch; edited :)

ADD REPLY
0
Entering edit mode

Thank you for your help!

ADD REPLY

Login before adding your answer.

Traffic: 1535 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