-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDOME2s03_multiQC.sh
More file actions
45 lines (40 loc) · 1.33 KB
/
DOME2s03_multiQC.sh
File metadata and controls
45 lines (40 loc) · 1.33 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
#!/bin/bash
#===============================================================================
# Name : s03_multiQC.sh
# Description : This script will run multiqc on a large number of files
# Usage : sbatch s03_multiQC.sh
# Author : Ai Zhang, ai.z@wustl.edu
# Version : 1.0
# Created On : 2023_08_23
#===============================================================================
#
#Submission script for HTCF
#SBATCH --job-name=multiqc
#SBATCH --mem=20G
#SBATCH --output=slurm/multiQC/z_multiqc_%A_%a.out
#SBATCH --error=slurm/multiQC/z_multiqc_%A_%a.out
#SBATCH --mail-user=paruthiyil@wustl.edu
#SBATCH --mail-type=END
#SBATCH --mail-type=FAIL
eval $( spack load --sh py-multiqc)
basedir="/scratch/gdlab/p.sri/240601_DOME2/RNA/250626_data"
rawin="/scratch/gdlab/p.sri/240601_DOME2/RNA/250626_data/concatreads"
indir="${basedir}/d02_read_qc"
#rawin="/lts/gdlab/raw_data/2025/250505_DOME2_CM_SP_SR_RESEQ3"
cleanin="/scratch/gdlab/p.sri/240601_DOME2/RNA/250626_data/d01a_trimmomatic"
rawout="${indir}/raw_reads/multiqc"
cleanout="${indir}/clean_reads/multiqc"
#mkdir -p ${outdir}
set -x
time sh -c \
"multiqc ${rawin} -o ${rawout} -n raw_multiqc; \
multiqc ${cleanin} -o ${cleanout} -n clean_multiqc"
RC=$?
set +x
if [ $RC -eq 0 ]
then
echo "Job completed successfully"
else
echo "Error Occured in ${sample}!"
exit $RC
fi