Skip to content

Commit

Permalink
DEBUG: check if output_dir is set if not stop
Browse files Browse the repository at this point in the history
  • Loading branch information
Leila011 committed Aug 7, 2024
1 parent eba7eca commit 5e62c75
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/agat/agat_sp_compare_two_annotations/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,20 @@
[[ "$par_debug" == "false" ]] && unset par_debug
[[ "$par_verbose" == "false" ]] && unset par_verbose

# Debug statement to check if par_output_dir is set
echo "par_output_dir is set to: ${par_output_dir}"

# Ensure par_output_dir is set
if [ -z "$par_output_dir" ]; then
echo "Error: par_output_dir is not set."
exit 1
fi

# run agat_sp_compare_two_annotations.pl
agat_sp_compare_two_annotations.pl \
-gff1 "$par_gff1" \
-gff2 "$par_gff2" \
-output "$par_output" \
${par_output_dir:+-o "${par_output_dir}"} \
${par_debug:+--debug} \
${par_verbose:+--verbose} \
${par_config:+--config "${par_config}"}

0 comments on commit 5e62c75

Please sign in to comment.