-
Notifications
You must be signed in to change notification settings - Fork 0
/
doit12-unicycler.bash
executable file
·49 lines (33 loc) · 1.25 KB
/
doit12-unicycler.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#! /bin/bash
. $(dirname ${BASH_SOURCE[0]})/doit-preamble.bash
# ------------------------------------------------------------------------
# Run unicycler (for a second opinion on the assembly)
# ------------------------------------------------------------------------
if [ -z "${R1_FQ_GZ}" ] ; then
echo 1>&2 '# No Illumina reads. Skipping unicycler.'
else
echo 1>&2 '# Running unicycler'
rm -rf ${UNICYCLER}
mkdir ${UNICYCLER}
unicycler -t ${THREADS} \
-1 ${FASTP}/trimmed_R1.fastq.gz \
-2 ${FASTP}/trimmed_R2.fastq.gz \
-l ${FILTLONG}/filtered_nanopore.fastq.gz \
-o ${UNICYCLER}
if [ -e ${DATA}/assembly.fasta ] ; then
echo 1>&2 '# Running DNADiff against Trycycler assembly'
mkdir ${UNICYCLER}/dnadiff
cp ${DATA}/assembly.fasta ${UNICYCLER}/dnadiff/trycycler.fasta
cp ${UNICYCLER}/assembly.fasta ${UNICYCLER}/dnadiff/unicycler.fasta
cd ${UNICYCLER}/dnadiff
dnadiff trycycler.fasta unicycler.fasta
echo ''
cat out.report
fi
fi
# ------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Done.
# ------------------------------------------------------------------------
echo 1>&2 ''
echo 1>&2 '# Done.'