-
Notifications
You must be signed in to change notification settings - Fork 0
/
bcbio.pbs
50 lines (40 loc) · 1.21 KB
/
bcbio.pbs
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# submits bcbio project(=case=family) to the queue with n threads
# parameters:
# - project
# - (optional) threads [default=7]
# - (optional) testing=T
# usage:
# qsub ~/cre/bcbio.pbs -v project=<project>
# adjust ppn and walltime depending on the project
# experience is that the best combination for WES and SK HPC is 7cores/50G
# wgs alignment: -v threads=40 -l mem=150G,vmem=150G, bigmem nodes=512G RAM + 64 cores, 2 nodes - crashes w memory error, 40 threads is too much
#PBS -l walltime=350:00:00,nodes=1:ppn=7
#PBS -joe .
#PBS -d .
#PBS -l vmem=70g,mem=70g
echo "STARTED: " `date`
#nodes node* are cloud nodes and ra/rb are real nodes
echo "NODE: " `hostname`
if [ -z $threads ]
then
threads=7
fi
#to run toy examples in tutorials without queue
if [ -z $project ]
then
project=$1
fi
# testing environment of bcbio
if [ -n $testing ] && [ $testing == "T" ]
then
. /hpf/largeprojects/ccmbio/naumenko/tools/bcbio_testing/.test_profile
echo "Using test bcbio instance"
which bcbio_nextgen.py
bcbio_nextgen.py --version
fi
echo "Running bcbio for " $project " with " $threads " threads"
cd $project/work
bcbio_nextgen.py ../config/${project}.yaml -n $threads
cd ../../
echo "FINISHED: " `date`