Hi all,
I want to make a parallel shell script, which could run the trimming processes parallel on different processors and later do the genome assembly. I am trying the following script:
Before doing this, one could also split the whole read file into small chunks (using split
command) and use for loop
to do the trimming on multiple processors.
#!/usr/bin/bash
STEP1: Library1 read Filtering/Trimming &
# Use any software of your choice
STEP2: Library2 read Filtering/Trimming &
STEP3: Library3 read Filtering/Trimming &
wait
velveth demo 65 -short -fastq Library1 -short2 -fastq Library2 -short3 -fastq Library3
velvetg demo -exp_cov auto
Dose anybody have better way to write this? Which would also take care of successful completion of first 3 steps. using their process Ids.
I would really appreciate your inputs. Thanks in advance!
Best regards,
Rahul