-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01- trimGalore.sh
180 lines (170 loc) · 3.41 KB
/
01- trimGalore.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
#! /bin/bash
#SBATCH --partition=uoa-compute
#SBATCH --ntasks=24
#SBATCH --time=05:00:00
#SBATCH --mem-per-cpu=8g
#SBATCH --mail-type=ALL
#SBATCH [email protected]
printf " \n"
echo "Pedal to the metal!"
printf " \n"
#loading the necessary TrimGalore software module
echo "loading required modules"
printf "\n"
module load FastQC-0.11.8
module load TrimGalore-0.6.4
module load parallel-20200222
parallel --citation
# Define an array with all the sample names
sample_names=(
"M-T1-Rep1"
"M-T5-Rep2"
"M-T1-Rep2"
"M-T5-Rep3"
"M-T1-Rep4"
"M-T5-Rep5"
"M-T5-Rep6"
"M-T9-Rep1"
"M-T9-Rep2"
"M-T9-Rep3"
"M-T9-Rep4"
"M-T9-Rep6"
"M-T1-Rep6"
"M-T5-Rep1"
"M-T5-Rep4"
"M-T9-Rep5"
"M-T1-Rep5"
"M-T1-Rep3"
"V-T8-Rep1"
"V-T3-Rep1"
"V-T8-Rep2"
"V-T3-Rep2"
"V-T8-Rep3"
"V-T3-Rep3"
"V-T8-Rep4"
"V-T3-Rep4"
"V-T8-Rep5"
"V-T3-Rep5"
"V-T8-Rep6"
"V-T3-Rep6"
"V-T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"
"VMV-T12-Rep3"
"feed-M-Rep1"
"feed-M-Rep3"
"feed-M-Rep2"
"feed-V-Rep1"
"feed-V-Rep2"
"feed-V-Rep3"
"water-M-T5-Rep2"
"water-M-T9-Rep3"
"water-M-T1-Rep1"
"water-V-T3-Rep1"
"water-V-T8-Rep2"
"water-V-T12-Rep3"
"water-MM-T5-Rep2"
"water-MM-T1-Rep1"
"water-MM-T9-Rep3"
"water-VM-T8-Rep2"
"water-VM-T3-Rep1"
"water-VM-T12-Rep3"
"water-MMV-T1-Rep1"
"water-MMV-T9-Rep2"
"water-VMV-T3+12-Rep4"
"water-VMV-T3-Rep1"
"water-VMV-T12-Rep3"
"water-VMV-T8-Rep2"
"negative-1"
"negative-2"
"negative-3"
"positive-2"
"positive-1"
)
#run trim Galore across all zipped ziles
echo "running trim Galore over all fastq files"
printf "\n"
# Iterate over each sample name
for sample in "${sample_names[@]}"; do
echo "Running TrimGalore for $sample"
printf "\n"
echo "running TrimGalore over read pair"
printf "\n"
trim_galore -q 30 --phred33 --paired --gzip --fastqc --fastqc_args "--nogroup" -o "./trimGalored" --length 20 --stringency 1 -e 0 --clip_R1 17 --clip_R2 21 "${sample}_R1.fq.gz" "${sample}_R2.fq.gz"
done
echo "FINITO!!"
printf "\n"