forked from jonasns/LiveRNome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path181214_Trimmomatic_PE.sh
57 lines (50 loc) · 1.9 KB
/
181214_Trimmomatic_PE.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
#!/bin/bash
#script made to trim away adapters and cut away poor quality ends of RNA-seq reads.
#Made by Jonas N. Søndergaard
#Made on 181214
#UPPMAX commands (Uppsala Multidisciplinary Center for Advanced Computational Science)
#SBATCH -A uppmax_proj_number
#SBATCH -p core
#SBATCH -n 2
#SBATCH -t 6:00:00
#SBATCH -J 181214_Trimmomatic_PE
#SBATCH --output=181214_Trimmomatic_PE.out
#SBATCH --error=181214_Trimmomatic_PE.err
#load packages. bioinfo-tools is loaded on uppmax in order to load all other packages used.
module load bioinfo-tools
module load trimmomatic/0.36
#file paths
FQ_PATH=/proj/cleanFQ
OUTPUT_PATH=/proj/trimmedFQfiles
#loop to run Trimmomatic for 34 files
for i in {1..34}; do \
FILE_NAME=`sed "${i}q;d" Name.list`
java -jar $TRIMMOMATIC_HOME/trimmomatic.jar \
PE \
-phred33 \
${FQ_PATH}/${FILE_NAME}_R1.fastq.gz \
${FQ_PATH}/${FILE_NAME}_R2.fastq.gz \
${OUTPUT_PATH}/${FILE_NAME}_tc_R1.fastq.gz \
${OUTPUT_PATH}/${FILE_NAME}_tc_unpaired_R1.fastq.gz \
${OUTPUT_PATH}/${FILE_NAME}_tc_R2.fastq.gz \
${OUTPUT_PATH}/${FILE_NAME}_tc_unpaired_R2.fastq.gz \
ILLUMINACLIP:/proj/TruSeq3-PE-2.fa:2:30:10 \
CROP:73 \
HEADCROP:11 \
LEADING:3 \
TRAILING:3 \
SLIDINGWINDOW:4:15 \
MINLEN:30 \
>>${OUTPUT_PATH}/${FILE_NAME}.trimmomatic.stdout.stderr.txt 2>&1
done
#README
#PE: reads are paired end
#-phred33: the quality pipeline used
#ILLUMINACLIP: remove Illumina adapters
#CROP: cut away all bases after this base # from the end of the read
#HEADCROP: cut away the first bases corresponding to the #
#LEADING: remove leading low quality or N bases (below quality 3)
#TRAILING: Remove trailing low quality or N bases (below quality 3)
#SLIDINGWINDOW: Scan the read with a 4-base wide sliding window, cutting when the average quality per base drops below 15
#MINLEN: minimum length of reads to keep.
#>> send all messages from Trimmomatic (including errors and warnings) into the specified file