Skip to content

Commit

Permalink
[MODIF] Check if ice is in the path
Browse files Browse the repository at this point in the history
  • Loading branch information
nservant committed Mar 31, 2020
1 parent 63ead9b commit 82bcdde
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions bin/HiC-Pro
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@ if [[ -z $INPUT || -z $OUTPUT || -z $CONF ]]; then
fi


## check if ice is in the PATH
if [[ $MAKE_OPTS == "" || $MAKE_OPTS =~ "ice_norm" ]]; then
which ice > /dev/null
if [ $? != "0" ]; then
echo -e "Error: The 'ice' command is not in your path. Please check where the 'iced' python package has been installed and update your PATH !"
exit 1;
fi
fi

#####################
## Check Config file
#####################
Expand Down Expand Up @@ -181,14 +190,6 @@ if [[ ! -z $ALLELE_SPECIFIC_SNP && ! -r $ALLELE_SPECIFIC_SNP ]]; then
die "ALLELE_SPECIFIC_SNP $ALLELE_SPECIFIC_SNP not found. Exit"
fi

## check if ice is in the PATH
if [[ $MAKE_OPTS =~ "ice_norm" ]]; then
which ice > /dev/null;
if [ $? != "0" ]; then
echo -e "The 'ice' command is not in your path. Please check where the 'iced' python package has been installed and update your PATH !"
exit 1;
fi
fi
#####################
## Check step option
#####################
Expand Down

0 comments on commit 82bcdde

Please sign in to comment.