How To Merge Two Fastq.Gz Files?
With gzip files, you can simply concatenate the files using `cat`:
cat sample1_R1.gz sample2_R1.gz file3.gz > sample_merge_R1.gz
cat sample1_R2.gz sample2_R2.gz file3.gz > sample_merge_R2.gz
You can also do this:
zcat sample1_R1.gz sample2_R1.gz file3.gz |gzip - > sample_merge_R1.gz
zcat sample1_R2.gz sample2_R2.gz file3.gz |gzip - > sample_merge_R2.gz
Comments
Post a Comment