forked from saalfeldlab/parallel-elastic-alignment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
submit-export-jobs
executable file
·34 lines (27 loc) · 960 Bytes
/
submit-export-jobs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Export overlapping chunks that were independently aligned with a
# transformation that is the linear interpolant of both independently
# estimated transformations in the overlapping range, weights run from 0-1
# across the range.
#
# Call:
# ./submit-export-jobs <file-list> <chunk-size>
n=`wc -l < ${1}`
mod=${2:-100}
step=$(($mod/2))
first=0
last=$(($n-1))
pwd=`pwd`
mkdir -p $pwd/jobs/log
cd $pwd/jobs/log
#echo "qsub -pe batch 4 `pwd`/jobs/export-project-range-$first-$(($first+$step-1))"
#qsub -pe batch 4 `pwd`/jobs/export-project-range-$first-$(($first+$step-1))
#for i in `seq $first $step $(($last-3*$step))`
for i in `seq $first $step $(($last-$step))`
do
range="$i-$(($i+3*$step-1))"
# echo "qsub -pe batch 4 `pwd`/jobs/export-project-intersection-$range"
# qsub -pe batch 16 -l night=true `pwd`/jobs/export-project-intersection-$range
qsub -cwd -pe batch 16 $pwd/jobs/export-project-intersection-$range
done
cd $pwd