-
Notifications
You must be signed in to change notification settings - Fork 2
/
job_script.sh
54 lines (37 loc) · 1.15 KB
/
job_script.sh
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
#!/bin/sh
# Job Name
#$ -N fastqc
# Execute the script from the Current Working Directory
#$ -cwd
# Merge the output of the script, and any error messages generated to one file
#$ -j y
# Tell the job your memory requirements
#$ -l h_vmem=8G
# Send mail when the job is submitted, and when the job completes
#$ -m be
# Specify an email address to use
#$ -M [email protected]
## print useful information about the computing environment
## to the log file
echo ""
echo Hello World!
echo I am: `hostname` now at: `date`
echo Running in directory: `pwd`
echo ""
## load the module for the fastqc program
module load FastQC/0.11.9-Java-1.8.0_45
## list loaded modules
module list
## run fastqc on our 2 fastq files
fastqc 22057_S2_R1_subsample.fastq.gz
fastqc 22057_S2_R2_subsample.fastq.gz
## unload fastqc and any other loaded modules
module purge
module load uge
## load multiqc
module load multiqc/1.9-Python-3.6.13
## run multiqc which will summarize the results of our fastqc commands.
multiqc .
# sleep pauses for a specified number of seconds. we add this
# to make sure our job takes enough time for us to practice monitoring with qstat.
sleep 300