Sample Header Ad - 728x90

submitting a job array script on SGE

0 votes
0 answers
345 views
I am trying to make a job array script to do a particular task for several files. Let's assume as a start for only 2 fastq files. Name : abc.fastq , def.fastq #!/bin/bash file=$(ls -1 *.fastq | tail -n +${SGE_TASK_ID}| head -1) filename=${file%.fastq} awk 'NR % 2 == 0{print substr($1,7,100)};NR % 2 ==1' $file > ${filename}_BR.fastq I submitted the script as: qsub -t 1-2:1 -cwd -j y -N array_job ./jobarray.sh But only 1 file is processed which is abc.fastq. What happened to the def.fastq file?. I provided the -t parameter with 2 jobs and SGE_TASK_ID is declared in my script. Hope to hear from you guys soon.
Asked by user3138373 (2589 rep)
Sep 2, 2015, 04:36 PM
Last activity: Aug 25, 2016, 01:39 AM