-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprep0_fastqc.sh
More file actions
47 lines (40 loc) · 1.45 KB
/
prep0_fastqc.sh
File metadata and controls
47 lines (40 loc) · 1.45 KB
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
# prep0_fastqc version 1
# Jannetta's bioinformatics scripts repuprosed for NICR by Louise Pease October 2017
# The purpose of this script is t run fastqc on all your sample files.
# The source file variables.sh, is included with values set for a few
# variables that will be used in the pipelines. Make sure these are set
# before you run the scripts. Of importance for this script is the value
# of WORK.
#
#!/bin/bash -e
#$ -cwd -V
#$ -pe smp 1
#$ -l h_vmem=40G
#$ -q all.q
#$ -m a
#$ -N fastqc
#$ -o /user/logs/fastqc.$JOB_ID.$TASK_ID.out
#$ -e /user/logs/fastqc.$JOB_ID.$TASK_ID.err
module add apps/fastqc/0.11.5
###module add apps/java/jre-1.8.0
##export DISPLAY=:0.0
start_time=$(date)
start_secs=$(date +%s)
echo "### Logging Info ###"
echo "###â| Job: ${JOB_ID}: ${JOB_NAME} ###"
echo "### Array ID: ${SGE_TASK_ID} ###"
echo "###â| Job Occupying ${NSLOTS} slots ###"
echo "### Job running on ${HOSTNAME} ###"
echo "### Started at: ${start_time} ###"
echo
source /user/scripts/C_variables_hg19.sh
source ${scripts}/fastqc_variables.sh
readarray -t FILENAME < ${scripts}/samples.txt
echo "fastqc -o $fastqcOutput "
fastqc $WORK/${FILENAME[$SGE_TASK_ID-1]}/${FILENAME[$SGE_TASK_ID-1]}_1.fastq.gz $WORK/${FILENAME[$SGE_TASK_ID-1]}/${FILENAME[$SGE_TASK_ID-1]}_2.fastq.gz -o $fastqcOutput
end_time=$(date)
end_secs=$(date +%s)
time_elapsed=$(echo "${end_secs} - ${start_secs}" | bc)
echo
echo "### Ended at: ${end_time} ###"
echo "### Time Elapsed: ${time_elapsed} ###"