File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,17 @@ rule kraken2_classify_report:
3636 shell :
3737 """
3838 if LC_ALL=C gzip -l {input[0]} | awk 'NR==2 {{exit($2!=0)}}'; then
39- echo "100.00\t 0\t 0\t R\t 1\t root" > {output.report} && \
39+ echo "Empty input, filling with dummy data" > {log}
40+ echo "100.00\t 0\t 0\t R\t 1\t root" > {output.report}
4041 echo "C\t A\t 1\t 136|136\t 1:102 |:| 1:102" > {output.raw}
4142 else
42- kraken2 --gzip-compressed \
43- --db {params.db} \
44- --report {output.report} \
45- --output {output.raw} \
46- {params.paired_end} {input} \
47- 2>&1 | tee {log}
43+ kraken2 \
44+ --gzip-compressed \
45+ --db {params.db} \
46+ --report {output.report} \
47+ --output {output.raw} \
48+ {params.paired_end} {input} \
49+ > {log} 2>&1
4850 fi
4951 """
5052
You can’t perform that action at this time.
0 commit comments