Skip to content

Commit 36c6c84

Browse files
authored
Fail if there is a BUSCO error (#8942)
1 parent c7ce706 commit 36c6c84

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/nf-core/busco/busco/main.nf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ process BUSCO_BUSCO {
110110
mv ${prefix}-busco/*/short_summary.*.{json,txt} . || echo "Short summaries were not available: No genes were found."
111111
mv ${prefix}-busco/logs/busco.log ${prefix}-busco.log
112112
113+
if grep 'Run failed; check logs' ${prefix}-busco.batch_summary.txt > /dev/null
114+
then
115+
echo "Busco run failed"
116+
exit 1
117+
fi
118+
113119
cat <<-END_VERSIONS > versions.yml
114120
"${task.process}":
115121
busco: \$( busco --version 2> /dev/null | sed 's/BUSCO //g' )

0 commit comments

Comments
 (0)