Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display message when error 132 found #6675

Merged
merged 8 commits into from
Sep 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions modules/nf-core/kalign/align/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ process KALIGN_ALIGN {
def prefix = task.ext.prefix ?: "${meta.id}"
def write_output = compress ? ">(pigz -cp ${task.cpus} > ${prefix}.aln.gz)" : "${prefix}.aln"
"""
error_handler() {
mahesh-panchal marked this conversation as resolved.
Show resolved Hide resolved
exit_code=\$?
if [ \$exit_code -eq 132 ]; then
echo "\n\nKALIGN failed because is incompatible with some CPU types.\n\n"
else
trap - ERR
return \$exit_code
fi
}

unpigz -cdf $fasta | \\
kalign \\
$args \\
Expand Down
Loading