Skip to content

Commit

Permalink
Merge pull request #390 from ASLeonard/optionally_missing_tools
Browse files Browse the repository at this point in the history
only fail if non-installed programs are required
  • Loading branch information
AndreaGuarracino committed Apr 10, 2024
2 parents 0dfa42b + c23e223 commit de71ee5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions partition-before-pggb
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,15 @@ check_tool_availability "seqwish" "seqwish"
check_tool_availability "smoothxg" "smoothxg"
check_tool_availability "odgi" "odgi"
check_tool_availability "gfaffix" "gfaffix"
if [ "$vcf_spec" != "false" ]; then
check_tool_availability "vg" "vg"
check_tool_availability "vcfbub" "vcfbub"
check_tool_availability "vcfwave" "vcfwave"
check_tool_availability "bcftools" "bcftools"
fi
if [[ $multiqc == true ]]; then
check_tool_availability "MultiQC" "multiqc"
fi

# If there are missing tools, report them and exit
if [ ${#missing_tools[@]} -ne 0 ]; then
Expand Down
4 changes: 4 additions & 0 deletions pggb
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,15 @@ check_tool_availability "seqwish" "seqwish"
check_tool_availability "smoothxg" "smoothxg"
check_tool_availability "odgi" "odgi"
check_tool_availability "gfaffix" "gfaffix"
if [ "$vcf_spec" != "false" ]; then
check_tool_availability "vg" "vg"
check_tool_availability "vcfbub" "vcfbub"
check_tool_availability "vcfwave" "vcfwave"
check_tool_availability "bcftools" "bcftools"
fi
if [[ $multiqc == true ]]; then
check_tool_availability "MultiQC" "multiqc"
fi

# If there are missing tools, report them and exit
if [ ${#missing_tools[@]} -ne 0 ]; then
Expand Down

0 comments on commit de71ee5

Please sign in to comment.