-
Notifications
You must be signed in to change notification settings - Fork 1
/
clusterSnakemake.pbs
85 lines (57 loc) · 2.06 KB
/
clusterSnakemake.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/bash
##################
#### PBS preamble
#### #### #### These are the most frequently changing options
#### Job name
#PBS -N clusterSnakemake
#### Request resources here
#### These are typically, number of processors, amount of memory,
#### an the amount of time a job requires. May include processor
#### type, too.
#PBS -l nodes=1:ppn=1,pmem=4000mb
#PBS -l walltime=45:00
#PBS -l qos=flux
#### Flux account and queue specification here
#### These will change if you work on multiple projects, or need
#### special hardware, like large memory nodes or GPUs or,
#### or if you use software that is restricted to campus use.
#PBS -A ACCOUNT
#PBS -q fluxod
#### #### #### These are the least frequently changing options
#### Your e-mail address and when you want e-mail
#PBS -M EMAIL
#PBS -m bea
#### Join output and error; pass environment to job
#PBS -j oe
#PBS -o code/log/
#PBS -V
# Add a note here to say what software modules should be loaded.
# for this job to run successfully.
# It will be convenient if you give the actual load command(s), e.g.,
#
# module load intel/16.0.4
# module load sratoolkit/2.8.2-1
#### End PBS preamble
##################
#### PBS job only tasks
## Print the nodename(s) to the output in case needed for diagnostics,
## or if you need information about the hardware after the job ran.
if [ -e "$PBS_NODEFILE" ] ; then
echo "Running on"
uniq -c $PBS_NODEFILE
fi
# if running a job, tell which machine its running on
## Change to the directory from which you submit the job, if running
## from within a job
if [ -d "$PBS_O_WORKDIR" ] ; then
cd $PBS_O_WORKDIR
fi
#### Commands your job should run follow this line
##
## Note: In batch jobs, programs should always run in foreground. Do
## not use an & at the end of a command. Bad things will happen.
# Initiating snakemake and running workflow in cluster mode
snakemake --profile config/pbs-torque/ --latency-wait 20
# Printing out job summary
qstat -f $PBS_JOBID
## If you copied any files to /tmp, make sure you delete them here!