Skip to content

Commit

Permalink
report to basedir
Browse files Browse the repository at this point in the history
  • Loading branch information
t-whalley committed Nov 6, 2024
1 parent 3d7e723 commit 2668046
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/preprocessingModules.nf
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,15 @@ process kraken2 {
run_afanc=\$(jq '.afanc' ${kraken2_json})
if [ \$run_afanc == '\"true\"' ]; then printf "${sample_name}"; else echo '{"error":"Kraken's top family hit either wasn't Mycobacteriaceae, or there were < 100k Mycobacteriaceae reads. Sample will not proceed further than afanc."}' | jq '.' > ${error_log} && printf "no" && jq -s ".[0] * .[1]" ${software_json} ${error_log} > ${report_json}; fi
#create report no matter what
cp ${software_json} ${report_json}
if [ \$run_afanc == '\"true\"' ]; then
printf "${sample_name}"
else
echo '{"error":"Kraken's top family hit either wasn't Mycobacteriaceae, or there were < 100k Mycobacteriaceae reads. Sample will not proceed further than afanc."}' \
| jq '.' > ${error_log} && printf "no" && jq -s ".[0] * .[1]" ${software_json} ${error_log} > ${report_json}
fi
"""

stub:
Expand Down

0 comments on commit 2668046

Please sign in to comment.