comparison plinksJob.sh @ 12:29263ba42361

add args for start tar and number of tars
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 25 Feb 2020 22:14:07 +0000
parents b0d9fe66ce8a
children
comparison
equal deleted inserted replaced
11:b0d9fe66ce8a 12:29263ba42361
1 #!/bin/bash 1 #!/bin/bash
2 # Usage: qsub -v t1=1stTar,tn=numTars plinksJob.sh
2 #PBS -l select=2:ncpus=36 3 #PBS -l select=2:ncpus=36
3 #PBS -l place=exclhost 4 #PBS -l place=exclhost
4 #PBS -l walltime=08:00:00 5 #PBS -l walltime=08:00:00
5 #PBS -V 6 #PBS -V
6 #PBS -A dc007 7 #PBS -A dc007
7 #PBS -N plinks 8 #PBS -N plinks
8 9
9 #module load mpt 10 #module load mpt
10 11
11 cd ${PBS_O_WORKDIR} 12 cd ${PBS_O_WORKDIR}
12 bin/plinksMaster.sh 13 ((n1=tn/2))
14 ((s1=t1))
15 ((s2=t1+n1))
16 ((e1=s2-1))
17 ((e2=s1+tn-1))
18 echo $(seq --format="%03.0f" $s1 $e1),$(seq --format="%03.0f" $s2 $e2)
13 19
20 bin/plinksMaster.sh $s1 $e1 $s2 $e2
21