I want to combile two files into one file:
First files name is like this:
218_9W_Pa2_R2_unmapped.fq
218_9W_Pa2_R1_unmapped.fq
218_9W_Pa1_R2_unmapped.fq
218_9W_Pa1_R1_unmapped.fq
218_9W_Co2_R2_unmapped.fq
218_9W_Co2_R1_unmapped.fq
Second file names is like this:
218_9W_Pa2_R2_mapped.fq
218_9W_Pa2_R1_mapped.fq
218_9W_Pa1_R2_mapped.fq
218_9W_Pa1_R1_mapped.fq
218_9W_Co2_R2_mapped.fq
218_9W_Co2_R1_mapped.fq
After combined both files produce file like this:
218_9W_Pa2_R2.fq
218_9W_Pa2_R1.fq
218_9W_Pa1_R2.fq
218_9W_Pa1_R1.fq
218_9W_Co2_R2.fq
218_9W_Co2_R1.fq
Actually, I want to combine mapped and unmapped raw read file to produce final set
Hi,
Can you please also put files location in above shell scripts and it should generate a separate directory that contain merge files.
Here's an example of redirecting content to file in a directory,
dir/file
,folder, you need create folder first bydir
will be automatically created if not existedmkdir -p dir
if it does not exit.