-
Notifications
You must be signed in to change notification settings - Fork 0
/
fastqc.sh
43 lines (30 loc) · 1 KB
/
fastqc.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
#!/bin/bash
# Amy Campbell
# 5/2021
# Checking demultiplexed reads prior to denoising with Dada2
r1string="_1.fastq.gz"
r2string="_2.fastq.gz"
READSPATH35=/Users/amycampbell/Documents/IowaWoundData2021/MiSeqV1V3_35/demultiplexed
READSPATH32=/Users/amycampbell/Documents/IowaWoundData2021/MiSeqV1V3_32/demultiplexed
OUTPUT=/Users/amycampbell/Documents/IowaWoundData2021/fastqc
# make output directories for the fastqc
# in each data path
mkdir -p $OUTPUT
#MiSeqV1V3_35
#############
for filename in $READSPATH35/*_1.fastq.gz; do
run1=$filename
run2=${run1/$r1string/$r2string}
fastqc -o $OUTPUT $run1 -f fastq
fastqc -o $OUTPUT $run2 -f fastq
done
# MiSeqV1V3_32
###############
for filename in $READSPATH32/*_1.fastq.gz; do
run1=$filename
run2=${run1/$r1string/$r2string}
fastqc -o $OUTPUT $run1 -f fastq
fastqc -o $OUTPUT $run2 -f fastq
done
multiqc -n MultiQC_PostDemuxed $OUTPUT
mv MultiQC_PostDemuxed /Users/amycampbell/Documents/IowaWoundData2021/MultiQC_PostDemuxed