Can you concatenate fastq.gz (zipped) and fastq (non-zipped) files?
1
0
Entering edit mode
2.1 years ago
Eliveri ▴ 350

Is is possible to concatenate fastq files which are compressed to different degrees (compression using different methods)? Or concatenate a mix of fastq and fastq.gz files?

The following command seems to work (but I cannot tell if the final files are properly compressed or combined)

cat file1.fastq.gz file2.fastq > combined.fastq.gz

fastq gzip • 875 views
ADD COMMENT
1
Entering edit mode

Even if that works you probably don't want to play with fire. Either uncompress the first file and then cat/bgzip or bgzip the second file and then cat. Tools may fail silently if they have trouble with files created the way you are showing above.

ADD REPLY
3
Entering edit mode
2.1 years ago

but I cannot tell if the final files are properly compressed or combined

gunzip -t combined.fastq.gz && echo "OK"

but I can tell you it's not properly compressed

ADD COMMENT

Login before adding your answer.

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