-
Notifications
You must be signed in to change notification settings - Fork 0
/
doit16-stats.bash
executable file
·54 lines (41 loc) · 1.22 KB
/
doit16-stats.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
49
50
51
52
53
#! /bin/bash
. $(dirname ${BASH_SOURCE[0]})/doit-preamble.bash
# ------------------------------------------------------------------------
# Compute stats
# ------------------------------------------------------------------------
rm -rf ${STATS}
mkdir -p ${STATS}
echo 1>&2 '# Compute stats...'
ARGS="-q -s"
if [ "$R2_FQ_GZ" ] ; then
${PIPELINE}/scripts/compute-assembly-stats \
-t ${THREADS} \
${ARGS} -S ${STRAIN}${VERSION} \
${INPUTS}/raw_nanopore.fastq.gz \
${FILTLONG}/filtered_nanopore.fastq.gz \
${INPUTS}/raw_short_R1.fastq.gz \
${INPUTS}/raw_short_R2.fastq.gz \
${FASTP}/trimmed_R1.fastq.gz \
${FASTP}/trimmed_R2.fastq.gz \
${DATA}/final.fna \
${DATA}/final.gff \
| tee ${STATS}/stats.tsv
else
${PIPELINE}/scripts/compute-assembly-stats \
-t ${THREADS} \
${ARGS} -S ${STRAIN}${VERSION} \
${INPUTS}/raw_nanopore.fastq.gz \
${FILTLONG}/filtered_nanopore.fastq.gz \
${INPUTS}/raw_short_R1.fastq.gz \
"" \
${FASTP}/trimmed_R1.fastq.gz \
"" \
${DATA}/final.fna \
${DATA}/final.gff \
| tee ${STATS}/stats.tsv
fi
# ------------------------------------------------------------------------
# Done.
# ------------------------------------------------------------------------
echo 1>&2 ''
echo 1>&2 '# Done.'