-
Notifications
You must be signed in to change notification settings - Fork 0
/
doit03.bash
executable file
·34 lines (25 loc) · 955 Bytes
/
doit03.bash
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
#! /bin/bash
. doit-preamble.bash
# ------------------------------------------------------------------------
# Step 3. FASTQC, round 2
# ------------------------------------------------------------------------
echo 1>&2 '# Running FASTQC on trimmed reads'
rm -rf ${FASTQC2}
for i in $SAMPLES_INDICES ; do
echo 1>&2 '##' $i':' ${FASTQC2}/${SAMPLES_NAME[$i]}_R1
mkdir -p ${FASTQC2}/${SAMPLES_NAME[$i]}_R1
fastqc -t ${THREADS} \
-o ${FASTQC2}/${SAMPLES_NAME[$i]}_R1 \
${FASTP}/trimmed_${i}_R1.fastq.gz
if [ "$PE" ] ; then
echo 1>&2 '##' $i':' ${FASTQC2}/${SAMPLES_NAME[$i]}_R2
mkdir -p ${FASTQC2}/${SAMPLES_NAME[$i]}_R2
fastqc -t ${THREADS} \
-o ${FASTQC2}/${SAMPLES_NAME[$i]}_R2 \
${FASTP}/trimmed_${i}_R2.fastq.gz
fi
done
# ------------------------------------------------------------------------
# Done.
# ------------------------------------------------------------------------
echo 1>&2 '# Done.'