Hello, everybody
I have a list of folders that look like this: 123_S1_R1_001 AND 123_S1_R2_001
456_S25_R1_001 AND 456_S25_R2_001
789_S83_R1_001 AND 789_S83_R2_001
Each of the folder contains a fastq file (eg the 123_S1_R1_001 folder contains the file 123_S1_R1_001.fastq.gz in ).
I would like to merge for example the folders 123_S1_R1_001 AND 123_S1_R2_001, into a folder named 123_S1 keeping both fastq.gz files in it. The dataset contains many files, so the task cannot be done manually.
Thank u for your time, Mania
are you capable (experienced enough) to write a bash script?
Unfortunately, I'm kinda new to it.
I've already run the following script, which however moves each fastq in a directory, which has the name as the fastq file.
Please use the formatting bar (especially the
code
option) to present your post better. I've done it for you this time.Thank you!
Thank you.
Before
in bash/z shell:
After
with parallel:
Remove
dry-run
after checking dry run output.