-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathrunKHMER.sh
More file actions
executable file
·51 lines (43 loc) · 1.15 KB
/
runKHMER.sh
File metadata and controls
executable file
·51 lines (43 loc) · 1.15 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
46
47
48
49
50
51
#!/bin/bash
TRIMMOMATIC='/data004/software/GIF/packages/trimmomatic/0.32'
KHMER='/data004/software/GIF/packages/khmer/1.01/khmerEnv/bin'
PRE=$(pwd)
input1=$1
input2=$2
output1=$(basename "${input1%%.*}")
output2=$(basename "${input2%%.*}")
output=$(basename ${input1} | sed 's/1.fastq.gz$//g')
hashsize=6.25e+10
cutoff=100
ksize=20
numHashes=4
#trimmomatic
#java -jar ${TRIMMOMATIC}/trimmomatic-0.32.jar \
#PE -phred33 \
#-threads 16 \
#${input1} \
#${input2} \
#${PRE}/${output1}_paired.fq \
#${PRE}/${output1}_unpaired.fq \
#${PRE}/${output2}_paired.fq \
#${PRE}/${output2}_unpaired.fq \
#ILLUMINACLIP:${progdir}/adapters/TruSeq3-PE.fa:2:30:10 \
#LEADING:3 \
#TRAILING:3 \
#SLIDINGWINDOW:4:15 \
#MINLEN:25
#load virtual env
source ${KHMER}/activate
#interleave
#python ${KHMER}/interleave-reads.py -o ${output}_interleaved.fq ${input1} ${input2}
#normalize
python ${KHMER}/normalize-by-median.py \
--ksize $ksize \
--n_tables $numHashes \
--cutoff $cutoff \
--out ${output}_normalized \
${output}_interleaved.fq;
#extract paired reads
python ${KHMER}/extract-paired-reads.py ${output}_normalized
#split reads
python ${KHMER}/split-paired-reads.py ${output}_normalized.pe